target triple = "air64_v28-apple-macosx26.0.0"
source_filename = "-"
; datalayout DataLayout { endian: Little, pointers: {0: PointerSpec { size_bits: 64, abi_bits: 64, pref_bits: 64, index_bits: 64 }}, ints: {1: AlignSpec { abi_bits: 8, pref_bits: 8 }, 8: AlignSpec { abi_bits: 8, pref_bits: 8 }, 16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }}, floats: {16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }, 128: AlignSpec { abi_bits: 128, pref_bits: 128 }}, vectors: {16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 24: AlignSpec { abi_bits: 32, pref_bits: 32 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 48: AlignSpec { abi_bits: 64, pref_bits: 64 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }, 96: AlignSpec { abi_bits: 128, pref_bits: 128 }, 128: AlignSpec { abi_bits: 128, pref_bits: 128 }, 192: AlignSpec { abi_bits: 256, pref_bits: 256 }, 256: AlignSpec { abi_bits: 256, pref_bits: 256 }, 512: AlignSpec { abi_bits: 512, pref_bits: 512 }, 1024: AlignSpec { abi_bits: 1024, pref_bits: 1024 }}, aggregate: AlignSpec { abi_bits: 0, pref_bits: 64 }, native_ints: [8, 16, 32], stack_align_bits: None, alloca_space: 0, program_space: 0, globals_space: 0, mangling: None, fn_ptr_align: None, non_integral: [] }
%t4 = type void (ptr addrspace(2), i32)
%t6 = type float (i32)
%t7 = type ptr addrspace(2) ()
%t10 = type { <4 x float>, i8 }
%t13 = type %t10 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32)
%t15 = type i1 (ptr addrspace(1))
%t16 = type i32 (ptr addrspace(1), i32)
%t17 = type void (ptr addrspace(1), <2 x i32>, <4 x float>, i32, i32)
%t19 = type [2 x i32]
%t21 = type { ptr addrspace(1) } ; "struct.metal::texture2d"
%t22 = type { ptr addrspace(1) } ; "struct.metal::texture2d.0"
%t23 = type { %t21, %t22 } ; "struct.Resources"
c10 = %t19 [26, 5]
c21 = <2 x i32> [poison, 0]
c26 = <4 x float> [poison, poison, 0x0, 0x0]

define %t4 @f0 "a4_heap_textures" "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a0( align 8 dereferenceable(16) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = insertelement <2 x i32> c21, %a1, i64 0
  %i1 = getelementptr inbounds %t23, %a0, i64 0, i32 0, i32 0
  %i2 = load ptr addrspace(1), %i1, align 8
  %i3 = tail call ptr addrspace(2) @f2 [air Sampler(GetReadSampler)]()
  %i4 = tail call %t10 @f3 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%i2, %i3, %i0, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i5 = extractvalue <4 x float> %i4, 0
  %i6 = tail call i1 @f4 [air Texture(Texture { op: IsNull, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%i2) arg0( Ref nocapture )
  %i7 = select reassoc nnan ninf nsz arcp contract afn float %i6, float 0x3F800000, float 0x0
  %i8 = tail call i32 @f5 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%i2, i32 0) arg0( Ref nocapture )
  %i9 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i8)
  %i10 = insertelement <4 x float> c26, %i9, i64 0
  %i11 = insertelement %i10, %i7, i64 1
  %i12 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i11, %i5
  %i13 = getelementptr inbounds %t23, %a0, i64 0, i32 1, i32 0
  %i14 = load ptr addrspace(1), %i13, align 8
  tail call void @f6 [air Texture(Texture { op: Write, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Write), states_access: true })](%i14, %i0, %i12, i32 0, i32 2) arg0( nocapture )
  ret void
}

declare %t6 @f1 "air.convert.f.f32.u.i32" memory(NoModRef, NoModRef, NoModRef)

declare %t7 @f2 "air.get_read_sampler" memory(NoModRef, Ref, NoModRef)

declare %t13 @f3 "air.read_texture_2d.v4f32" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t15 @f4 "air.is_null_texture_2d" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t16 @f5 "air.get_width_texture_2d" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t17 @f6 "air.write_texture_2d.v4f32" memory(ModRef, NoModRef, NoModRef) %a0( nocapture )
!md0 = !"SDK Version"
!md1 = !"wchar_size"
!md2 = !"frame-pointer"
!md3 = !"air.max_device_buffers"
!md4 = !"air.max_constant_buffers"
!md5 = !"air.max_threadgroup_buffers"
!md6 = !"air.max_textures"
!md7 = !"air.max_read_write_textures"
!md8 = !"air.max_samplers"
!md9 = !"air.indirect_buffer"
!md10 = !"air.buffer_size"
!md11 = !"air.location_index"
!md12 = !"air.read"
!md13 = !"air.address_space"
!md14 = !"air.struct_type_info"
!md15 = !"texture2d<float, sample>"
!md16 = !"source"
!md17 = !"air.indirect_argument"
!md18 = !"air.texture"
!md19 = !"air.sample"
!md20 = !"air.arg_type_name"
!md21 = !"air.arg_name"
!md22 = !"texture2d<float, write>"
!md23 = !"target"
!md24 = !"air.write"
!md25 = !"air.arg_type_size"
!md26 = !"air.arg_type_align_size"
!md27 = !"Resources"
!md28 = !"res"
!md29 = !"air.thread_position_in_grid"
!md30 = !"uint"
!md31 = !"gid"
!md32 = !"air.compile.denorms_disable"
!md33 = !"air.compile.fast_math_enable"
!md34 = !"air.compile.framebuffer_fetch_enable"
!md35 = !"Apple metal version 32023.883 (metalfe-32023.883)"
!md36 = !"Metal"
!md37 = i32 2
!md38 = %t19 c10
!md39 = i32 1
!md40 = i32 4
!md41 = i32 7
!md42 = i32 31
!md43 = i32 128
!md44 = i32 8
!md45 = i32 16
!md46 = ptr addrspace(0) @f0
!md47 = i32 0
!md48 = !{!md37, !md0, !md38}
!md49 = !{!md39, !md1, !md40}
!md50 = !{!md41, !md2, !md37}
!md51 = !{!md41, !md3, !md42}
!md52 = !{!md41, !md4, !md42}
!md53 = !{!md41, !md5, !md42}
!md54 = !{!md41, !md6, !md43}
!md55 = !{!md41, !md7, !md44}
!md56 = !{!md41, !md8, !md45}
!md57 = !{}
!md58 = !{!md47, !md18, !md11, !md47, !md39, !md19, !md20, !md15, !md21, !md16}
!md59 = !{!md39, !md18, !md11, !md39, !md39, !md24, !md20, !md22, !md21, !md23}
!md60 = !{!md47, !md44, !md47, !md15, !md16, !md17, !md58, !md44, !md44, !md47, !md22, !md23, !md17, !md59}
!md61 = !{!md47, !md9, !md10, !md45, !md11, !md47, !md39, !md12, !md13, !md37, !md14, !md60, !md25, !md45, !md26, !md44, !md20, !md27, !md21, !md28}
!md62 = !{!md39, !md29, !md20, !md30, !md21, !md31}
!md63 = !{!md61, !md62}
!md64 = !{!md46, !md57, !md63}
!md65 = !{!md32}
!md66 = !{!md33}
!md67 = !{!md34}
!md68 = !{!md35}
!md69 = !{!md37, !md44, !md47}
!md70 = !{!md36, !md40, !md47, !md47}
!"llvm.module.flags" = !{!md48, !md49, !md50, !md51, !md52, !md53, !md54, !md55, !md56}
!"air.kernel" = !{!md64}
!"air.compile_options" = !{!md65, !md66, !md67}
!"llvm.ident" = !{!md68}
!"air.version" = !{!md69}
!"air.language_version" = !{!md70}
