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 <4 x float> (<4 x float>, ptr addrspace(1), ptr addrspace(2), ptr addrspace(1), ptr addrspace(2))
%t9 = type <2 x i32> (<2 x float>)
%t10 = type <2 x float> (<2 x i32>)
%t11 = type float (i32)
%t13 = type half (i32)
%t14 = type i32 (i32, i32)
%t15 = type i32 (ptr addrspace(1), i32)
%t18 = type { <4 x half>, i8 }
%t20 = type %t18 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t22 = type [2 x i32]
%t24 = type { <2 x float>, <2 x float>, i32, i32 } ; "struct.UniformProbe"
c12 = %t22 [27, 0]
c30 = <2 x i32> [0, 1]
c38 = <4 x float> [0x0, 0x0, 0x0, 0x3F800000]

define %t5 @f0 "rch_uniform_branch" 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" %a2( Ref nocapture ) %a3( Mod nocapture "air-buffer-no-alias"="" ) %a4( align 8 dereferenceable(24) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
  %i1 = tail call <2 x i32> @f1 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
  %i2 = getelementptr inbounds %t24, %a4, i64 0, i32 0
  %i3 = load <2 x float>, %i2, align 8
  %i4 = tail call reassoc nnan ninf nsz arcp contract afn <2 x float> @f2 [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 })](%i1)
  %i5 = getelementptr inbounds %t24, %a4, i64 0, i32 1
  %i6 = load <2 x float>, %i5, align 8
  %i7 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i6, %i4
  %i8 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i7, %i3
  %i9 = getelementptr inbounds %t24, %a4, i64 0, i32 3
  %i10 = load i32, %i9, align 4
  %i11 = icmp eq %i10, i32 0
  br %i11, bb1, bb2
bb1:
  %i13 = getelementptr inbounds %t24, %a4, i64 0, i32 2
  %i14 = load i32, %i13, align 8
  %i15 = extractelement %i1, i64 0
  br bb3
bb2:
  %i17 = tail call i32 @f6 [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, device_coherent: false })](%a1, i32 0) arg0( Ref nocapture )
  %i18 = tail call reassoc nnan ninf nsz arcp contract afn float @f3 [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 })](%i17)
  %i19 = insertelement <2 x float> undef, %i18, i64 0
  %i20 = tail call i32 @f7 [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, device_coherent: false })](%a1, i32 0) arg0( Ref nocapture )
  %i21 = tail call reassoc nnan ninf nsz arcp contract afn float @f3 [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 })](%i20)
  %i22 = insertelement %i19, %i21, i64 1
  %i23 = fdiv reassoc nnan ninf nsz arcp contract afn <2 x float> %i8, %i22
  %i24 = extractelement %i1, i64 0
  %i25 = getelementptr inbounds %t24, %a4, i64 0, i32 2
  %i26 = load i32, %i25, align 8
  %i27 = tail call i32 @f5 [air Math(Math { f: MulHi(Unsigned), precision: Precise, ty: NumTy { elem: I32, lanes: 1 } })](%i24, %i26)
  %i28 = and i32 %i27, i32 1
  br bb3
bb3:
  %i30 = phi i32 [%i15, bb1], [%i24, bb2]
  %i31 = phi i32 [%i14, bb1], [%i26, bb2]
  %i32 = phi i32 [i32 0, bb1], [%i28, bb2]
  %i33 = phi <2 x float> [%i8, bb1], [%i23, bb2]
  %i34 = tail call %t18 @f8 [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: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true, device_coherent: false })](%a1, %a2, %i33, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i35 = extractvalue <4 x half> %i34, 0
  %i36 = tail call reassoc nnan ninf nsz arcp contract afn half @f4 [air Convert(Convert { dst: NumTy { elem: F16, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i32)
  %i37 = insertelement <4 x half> poison, %i36, i64 0
  %i38 = shufflevector <4 x half> %i37, <4 x half> poison, <0, 0, 0, 0>
  %i39 = fadd reassoc nnan ninf nsz arcp contract afn <4 x half> %i38, %i35
  %i40 = extractelement %i1, i64 1
  %i41 = mul i32 %i31, %i40
  %i42 = add i32 %i41, %i30
  %i43 = zext %i42 to i64
  %i44 = getelementptr inbounds <4 x half>, %a3, %i43
  store %i39, %i44, align 8
  ret <4 x float> c38
}

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

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

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

declare %t13 @f4 "air.convert.f.f16.u.i32" memory(NoModRef, NoModRef, NoModRef)

declare %t14 @f5 "air.mul_hi.u.i32" memory(NoModRef, NoModRef, NoModRef)

declare %t15 @f6 "air.get_width_texture_2d" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t15 @f7 "air.get_height_texture_2d" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t20 @f8 "air.sample_texture_2d.v4f16" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( 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.render_target"
!md10 = !"air.arg_type_name"
!md11 = !"float4"
!md12 = !"air.position"
!md13 = !"air.center"
!md14 = !"air.no_perspective"
!md15 = !"air.arg_name"
!md16 = !"position"
!md17 = !"air.texture"
!md18 = !"air.location_index"
!md19 = !"air.sample"
!md20 = !"texture2d<half, sample>"
!md21 = !"t"
!md22 = !"air.sampler"
!md23 = !"sampler"
!md24 = !"s"
!md25 = !"air.buffer"
!md26 = !"air.read_write"
!md27 = !"air.address_space"
!md28 = !"air.arg_type_size"
!md29 = !"air.arg_type_align_size"
!md30 = !"half4"
!md31 = !"out"
!md32 = !"air.buffer_size"
!md33 = !"air.read"
!md34 = !"air.struct_type_info"
!md35 = !"float2"
!md36 = !"origin"
!md37 = !"step"
!md38 = !"uint"
!md39 = !"columns"
!md40 = !"normalized"
!md41 = !"UniformProbe"
!md42 = !"p"
!md43 = !"air.compile.denorms_disable"
!md44 = !"air.compile.fast_math_enable"
!md45 = !"air.compile.framebuffer_fetch_enable"
!md46 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md47 = !"Metal"
!md48 = i32 2
!md49 = %t22 c12
!md50 = i32 1
!md51 = i32 4
!md52 = i32 7
!md53 = i32 31
!md54 = i32 128
!md55 = i32 8
!md56 = i32 16
!md57 = ptr addrspace(0) @f0
!md58 = i32 0
!md59 = i32 3
!md60 = i32 24
!md61 = i32 20
!md62 = !{!md48, !md0, !md49}
!md63 = !{!md50, !md1, !md51}
!md64 = !{!md52, !md2, !md48}
!md65 = !{!md52, !md3, !md53}
!md66 = !{!md52, !md4, !md53}
!md67 = !{!md52, !md5, !md53}
!md68 = !{!md52, !md6, !md54}
!md69 = !{!md52, !md7, !md55}
!md70 = !{!md52, !md8, !md56}
!md71 = !{!md9, !md58, !md58, !md10, !md11}
!md72 = !{!md71}
!md73 = !{!md58, !md12, !md13, !md14, !md10, !md11, !md15, !md16}
!md74 = !{!md50, !md17, !md18, !md58, !md50, !md19, !md10, !md20, !md15, !md21}
!md75 = !{!md48, !md22, !md18, !md58, !md50, !md10, !md23, !md15, !md24}
!md76 = !{!md59, !md25, !md18, !md58, !md50, !md26, !md27, !md50, !md28, !md55, !md29, !md55, !md10, !md30, !md15, !md31}
!md77 = !{!md58, !md55, !md58, !md35, !md36, !md55, !md55, !md58, !md35, !md37, !md56, !md51, !md58, !md38, !md39, !md61, !md51, !md58, !md38, !md40}
!md78 = !{!md51, !md25, !md32, !md60, !md18, !md50, !md50, !md33, !md27, !md48, !md34, !md77, !md28, !md60, !md29, !md55, !md10, !md41, !md15, !md42}
!md79 = !{!md73, !md74, !md75, !md76, !md78}
!md80 = !{!md57, !md72, !md79}
!md81 = !{!md43}
!md82 = !{!md44}
!md83 = !{!md45}
!md84 = !{!md46}
!md85 = !{!md48, !md55, !md58}
!md86 = !{!md47, !md51, !md58, !md58}
!"llvm.module.flags" = !{!md62, !md63, !md64, !md65, !md66, !md67, !md68, !md69, !md70}
!"air.fragment" = !{!md80}
!"air.compile_options" = !{!md81, !md82, !md83}
!"llvm.ident" = !{!md84}
!"air.version" = !{!md85}
!"air.language_version" = !{!md86}
