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: [] }
%t2 = type [2 x i64]
%t7 = type void (ptr addrspace(2), <2 x i32>)
%t10 = type <2 x float> (<2 x i32>)
%t13 = type { <4 x float>, i8 }
%t16 = type %t13 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t17 = type void (ptr addrspace(1), <2 x i32>, <4 x float>, i32, i32)
%t19 = type [2 x i32]
%t20 = type { ptr addrspace(1) } ; "struct.metal::texture2d"
%t21 = type { ptr addrspace(1) } ; "struct.metal::texture2d.0"
%t22 = type { %t20, %t21 } ; "struct.Copy"
c11 = %t2 [34901797601017929, 0]
c12 = %t2 [34901797601050697, 0]
c14 = %t19 [26, 5]
c26 = <2 x float> [0x3F000000, 0x3F000000]
c27 = <2 x float> [0x3E800000, 0x3F000000]
c32 = <4 x float> [0x40000000, 0x40000000, 0x40000000, 0x40000000]
@g0 "__air_sampler_state" = internal addrspace(2) constant %t2 c11, align 8
@g1 "__air_sampler_state.1" = internal addrspace(2) constant %t2 c12, align 8

define %t7 @f0 "a4_heap_sample" convergent "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 = tail call reassoc nnan ninf nsz arcp contract afn <2 x float> @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 2 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 2 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a1)
  %i1 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i0, <2 x float> c26
  %i2 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i1, <2 x float> c27
  %i3 = getelementptr inbounds %t22, %a0, i64 0, i32 0, i32 0
  %i4 = load ptr addrspace(1), %i3, align 8
  %i5 = tail call %t13 @f2 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, 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, device_coherent: false })](%i4, ptr addrspace(2) @g0, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i6 = extractvalue <4 x float> %i5, 0
  %i7 = tail call %t13 @f2 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, 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, device_coherent: false })](%i4, ptr addrspace(2) @g1, %i1, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i8 = extractvalue <4 x float> %i7, 0
  %i9 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i8, <4 x float> c32
  %i10 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i9, %i6
  %i11 = getelementptr inbounds %t22, %a0, i64 0, i32 1, i32 0
  %i12 = load ptr addrspace(1), %i11, align 8
  tail call void @f3 [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, device_coherent: false })](%i12, %a1, %i10, i32 0, i32 2) arg0( nocapture )
  ret void
}

declare %t10 @f1 "air.convert.f.v2f32.u.v2i32" memory(NoModRef, NoModRef, NoModRef)

declare %t16 @f2 "air.sample_texture_2d.v4f32" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )

declare %t17 @f3 "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 = !"Copy"
!md28 = !"copy"
!md29 = !"air.thread_position_in_grid"
!md30 = !"uint2"
!md31 = !"gid"
!md32 = !"air.compile.denorms_disable"
!md33 = !"air.compile.fast_math_enable"
!md34 = !"air.compile.framebuffer_fetch_enable"
!md35 = !"air.sampler_state"
!md36 = !"Apple metal version 32023.883 (metalfe-32023.883)"
!md37 = !"Metal"
!md38 = i32 2
!md39 = %t19 c14
!md40 = i32 1
!md41 = i32 4
!md42 = i32 7
!md43 = i32 31
!md44 = i32 128
!md45 = i32 8
!md46 = i32 16
!md47 = ptr addrspace(0) @f0
!md48 = i32 0
!md49 = ptr addrspace(2) @g0
!md50 = ptr addrspace(2) @g1
!md51 = !{!md38, !md0, !md39}
!md52 = !{!md40, !md1, !md41}
!md53 = !{!md42, !md2, !md38}
!md54 = !{!md42, !md3, !md43}
!md55 = !{!md42, !md4, !md43}
!md56 = !{!md42, !md5, !md43}
!md57 = !{!md42, !md6, !md44}
!md58 = !{!md42, !md7, !md45}
!md59 = !{!md42, !md8, !md46}
!md60 = !{}
!md61 = !{!md48, !md18, !md11, !md48, !md40, !md19, !md20, !md15, !md21, !md16}
!md62 = !{!md40, !md18, !md11, !md40, !md40, !md24, !md20, !md22, !md21, !md23}
!md63 = !{!md48, !md45, !md48, !md15, !md16, !md17, !md61, !md45, !md45, !md48, !md22, !md23, !md17, !md62}
!md64 = !{!md48, !md9, !md10, !md46, !md11, !md48, !md40, !md12, !md13, !md38, !md14, !md63, !md25, !md46, !md26, !md45, !md20, !md27, !md21, !md28}
!md65 = !{!md40, !md29, !md20, !md30, !md21, !md31}
!md66 = !{!md64, !md65}
!md67 = !{!md47, !md60, !md66}
!md68 = !{!md32}
!md69 = !{!md33}
!md70 = !{!md34}
!md71 = !{!md35, !md49}
!md72 = !{!md35, !md50}
!md73 = !{!md36}
!md74 = !{!md38, !md45, !md48}
!md75 = !{!md37, !md41, !md48, !md48}
!"llvm.module.flags" = !{!md51, !md52, !md53, !md54, !md55, !md56, !md57, !md58, !md59}
!"air.kernel" = !{!md67}
!"air.compile_options" = !{!md68, !md69, !md70}
!"air.sampler_states" = !{!md71, !md72}
!"llvm.ident" = !{!md73}
!"air.version" = !{!md74}
!"air.language_version" = !{!md75}
