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: [] }
%t5 = type void (ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(2), i32)
%t7 = type float (i32)
%t8 = type ptr addrspace(2) ()
%t11 = type { <4 x float>, i8 }
%t13 = type %t11 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32)
%t14 = type i32 (ptr addrspace(1), i32)
%t16 = type i1 (ptr addrspace(1))
%t18 = type [2 x i32]
c10 = %t18 [26, 5]
c22 = <2 x i32> [poison, 0]
c27 = <4 x float> [poison, poison, poison, 0x0]

define %t5 @f0 "a4_select_is_null" "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" %a2( Mod nocapture "air-buffer-no-alias"="" ) %a3( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = and i32 %a4, i32 1
  %i1 = load i32, %a3, align 4
  %i2 = icmp eq %i0, %i1
  %i3 = select ptr addrspace(1) %i2, %a0, %a1
  %i4 = insertelement <2 x i32> c22, %a4, i64 0
  %i5 = tail call ptr addrspace(2) @f2 [air Sampler(GetReadSampler)]()
  %i6 = tail call %t11 @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 })](%i3, %i5, %i4, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i7 = extractvalue <4 x float> %i6, 0
  %i8 = tail call i32 @f4 [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 })](%i3, 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 = tail call i32 @f5 [air Texture(Texture { op: Query(Height), image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%i3, i32 0) arg0( Ref nocapture )
  %i11 = 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 })](%i10)
  %i12 = tail call i1 @f6 [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 })](%i3) arg0( Ref nocapture )
  %i13 = select reassoc nnan ninf nsz arcp contract afn float %i12, float 0x3F800000, float 0x0
  %i14 = insertelement <4 x float> c27, %i9, i64 0
  %i15 = insertelement %i14, %i11, i64 1
  %i16 = insertelement %i15, %i13, i64 2
  %i17 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i16, %i7
  %i18 = zext %a4 to i64
  %i19 = getelementptr inbounds <4 x float>, %a2, %i18
  store %i17, %i19, align 16
  ret void
}

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

declare %t8 @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 %t14 @f4 "air.get_width_texture_2d" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t14 @f5 "air.get_height_texture_2d" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t16 @f6 "air.is_null_texture_2d" memory(Ref, NoModRef, NoModRef) %a0( Ref 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.texture"
!md10 = !"air.location_index"
!md11 = !"air.sample"
!md12 = !"air.arg_type_name"
!md13 = !"texture2d<float, sample>"
!md14 = !"air.arg_name"
!md15 = !"a"
!md16 = !"b"
!md17 = !"air.buffer"
!md18 = !"air.read_write"
!md19 = !"air.address_space"
!md20 = !"air.arg_type_size"
!md21 = !"air.arg_type_align_size"
!md22 = !"float4"
!md23 = !"out"
!md24 = !"air.buffer_size"
!md25 = !"air.read"
!md26 = !"uint"
!md27 = !"pick"
!md28 = !"air.thread_position_in_grid"
!md29 = !"gid"
!md30 = !"air.compile.denorms_disable"
!md31 = !"air.compile.fast_math_enable"
!md32 = !"air.compile.framebuffer_fetch_enable"
!md33 = !"Apple metal version 32023.883 (metalfe-32023.883)"
!md34 = !"Metal"
!md35 = i32 2
!md36 = %t18 c10
!md37 = i32 1
!md38 = i32 4
!md39 = i32 7
!md40 = i32 31
!md41 = i32 128
!md42 = i32 8
!md43 = i32 16
!md44 = ptr addrspace(0) @f0
!md45 = i32 0
!md46 = i32 3
!md47 = !{!md35, !md0, !md36}
!md48 = !{!md37, !md1, !md38}
!md49 = !{!md39, !md2, !md35}
!md50 = !{!md39, !md3, !md40}
!md51 = !{!md39, !md4, !md40}
!md52 = !{!md39, !md5, !md40}
!md53 = !{!md39, !md6, !md41}
!md54 = !{!md39, !md7, !md42}
!md55 = !{!md39, !md8, !md43}
!md56 = !{}
!md57 = !{!md45, !md9, !md10, !md45, !md37, !md11, !md12, !md13, !md14, !md15}
!md58 = !{!md37, !md9, !md10, !md37, !md37, !md11, !md12, !md13, !md14, !md16}
!md59 = !{!md35, !md17, !md10, !md45, !md37, !md18, !md19, !md37, !md20, !md43, !md21, !md43, !md12, !md22, !md14, !md23}
!md60 = !{!md46, !md17, !md24, !md38, !md10, !md37, !md37, !md25, !md19, !md35, !md20, !md38, !md21, !md38, !md12, !md26, !md14, !md27}
!md61 = !{!md38, !md28, !md12, !md26, !md14, !md29}
!md62 = !{!md57, !md58, !md59, !md60, !md61}
!md63 = !{!md44, !md56, !md62}
!md64 = !{!md30}
!md65 = !{!md31}
!md66 = !{!md32}
!md67 = !{!md33}
!md68 = !{!md35, !md42, !md45}
!md69 = !{!md34, !md38, !md45, !md45}
!"llvm.module.flags" = !{!md47, !md48, !md49, !md50, !md51, !md52, !md53, !md54, !md55}
!"air.kernel" = !{!md63}
!"air.compile_options" = !{!md64, !md65, !md66}
!"llvm.ident" = !{!md67}
!"air.version" = !{!md68}
!"air.language_version" = !{!md69}
