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 <4 x float> (i32, ptr addrspace(2))
%t10 = type void (<4 x float>, ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1))
%t13 = type <2 x i32> (<2 x float>)
%t14 = type i32 (float)
%t16 = type { <4 x float>, i8 }
%t18 = type %t16 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t20 = type <4 x float> (<4 x i32>)
%t21 = type <4 x i32> (<4 x i32>, <4 x i32>)
%t22 = type <4 x float> (<4 x float>)
%t23 = type ptr addrspace(2) ()
%t24 = type %t16 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32)
%t25 = type void (ptr addrspace(1), <2 x i32>, <4 x float>, i32, i32)
%t26 = type float (float)
%t27 = type float (ptr addrspace(1), ptr addrspace(2), <2 x float>, i32)
%t28 = type i32 (i32, i32)
%t30 = type [2 x i32]
c27 = %t2 [34901797601018002, 0]
c29 = %t30 [27, 0]
c41 = <4 x i32> [0, 1, poison, poison]
c45 = <4 x float> [poison, poison, 0x0, 0x3F800000]
c46 = <4 x i32> [0, 1, 6, 7]
c52 = <2 x i32> [0, 1]
c54 = <2 x float> [0x3D000000, 0x3D000000]
c56 = <4 x float> [0x3C000000, 0x3C000000, 0x3C000000, 0x3C000000]
c57 = <4 x float> [0x3F800000, 0x3F000000, 0x3E800000, 0x3F800000]
c62 = <4 x float> [0x2F800000, 0x2F800000, poison, poison]
c64 = <4 x float> [0x2F800000, 0x2F800000, 0x2F800000, 0x2F800000]
c65 = <2 x float> [0x3F000000, 0x3F000000]
@g0 "__air_sampler_state" = internal addrspace(2) constant %t2 c27, align 8

define %t7 @f0 "rch_tangle_vertex" memory(NoModRef, NoModRef, NoModRef) "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" %a1( Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a0 to i64
  %i1 = getelementptr inbounds <2 x float>, %a1, %i0
  %i2 = load <2 x float>, %i1, align 8
  %i3 = shufflevector <4 x float> %i2, <2 x float> poison, <0, 1, poison, poison>
  %i4 = shufflevector <4 x float> %i3, <4 x float> c45, <0, 1, 6, 7>
  ret %i4
}

define %t10 @f1 "rch_tangle_sample_after" 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 ) %a4( 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> @f2 [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 = tail call ptr addrspace(2) @f16 [air Sampler(GetReadSampler)]()
  %i3 = tail call %t16 @f17 [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 })](%a2, %i2, %i1, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i4 = extractvalue <4 x float> %i3, 0
  %i5 = extractelement %i4, i64 0
  %i6 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i0, <2 x float> c54
  %i7 = tail call %t16 @f12 [air Texture(Texture { op: Sample { compare: false, lod: Level, 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 })](%a1, ptr addrspace(2) @g0, %i6, i1 1, <2 x i32> zeroinitializer, i1 1, 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> c56
  %i10 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i9, <4 x float> c57
  %i11 = fcmp reassoc nnan ninf nsz arcp contract afn une %i5, float 0x3F800000
  br %i11, bb1, bb2
bb1:
  %i13 = extractelement %i1, i64 1
  %i14 = shl i32 %i13, i32 6
  %i15 = extractelement %i1, i64 0
  %i16 = add i32 %i14, %i15
  %i17 = zext %i16 to i64
  %i18 = getelementptr inbounds <4 x float>, %a4, %i17
  %i19 = bitcast %i18 to ptr addrspace(1)
  %i20 = load <4 x i32>, %i19, align 16
  %i21 = bitcast %i4 to <4 x i32>
  %i22 = shufflevector <4 x i32> %i21, <4 x i32> poison, <0, 0, 0, 0>
  %i23 = tail call <4 x i32> @f14 [air Math(Math { f: MulHi(Unsigned), precision: Precise, ty: NumTy { elem: I32, lanes: 4 } })](%i20, %i22)
  %i24 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f13 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 4 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i23)
  %i25 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i24, <4 x float> c62
  %i26 = shufflevector <2 x float> %i25, <4 x float> poison, <0, 1>
  %i27 = tail call %t16 @f12 [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 })](%a1, ptr addrspace(2) @g0, %i26, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i28 = extractvalue <4 x float> %i27, 0
  br bb2
bb2:
  %i30 = phi <4 x float> [%i28, bb1], [%i10, bb0]
  tail call void @f18 [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 })](%a3, %i1, %i30, i32 0, i32 2) arg0( nocapture )
  ret void
}

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

define %t10 @f3 "rch_tangle_dfdx_after" 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" %a1( Ref nocapture ) %a2( Ref nocapture ) %a4( 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> @f2 [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 = tail call ptr addrspace(2) @f16 [air Sampler(GetReadSampler)]()
  %i3 = tail call %t16 @f17 [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 })](%a2, %i2, %i1, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i4 = extractvalue <4 x float> %i3, 0
  %i5 = extractelement %i4, i64 0
  %i6 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i0, <2 x float> c54
  %i7 = tail call %t16 @f12 [air Texture(Texture { op: Sample { compare: false, lod: Level, 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 })](%a1, ptr addrspace(2) @g0, %i6, i1 1, <2 x i32> zeroinitializer, i1 1, 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> c56
  %i10 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i9, <4 x float> c57
  %i11 = fcmp reassoc nnan ninf nsz arcp contract afn une %i5, float 0x3F800000
  br %i11, bb1, bb2
bb1:
  %i13 = extractelement %i1, i64 1
  %i14 = shl i32 %i13, i32 6
  %i15 = extractelement %i1, i64 0
  %i16 = add i32 %i14, %i15
  %i17 = zext %i16 to i64
  %i18 = getelementptr inbounds <4 x float>, %a4, %i17
  %i19 = bitcast %i18 to ptr addrspace(1)
  %i20 = load <4 x i32>, %i19, align 16
  %i21 = bitcast %i4 to <4 x i32>
  %i22 = shufflevector <4 x i32> %i21, <4 x i32> poison, <0, 0, 0, 0>
  %i23 = tail call <4 x i32> @f14 [air Math(Math { f: MulHi(Unsigned), precision: Precise, ty: NumTy { elem: I32, lanes: 4 } })](%i20, %i22)
  %i24 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f13 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 4 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i23)
  %i25 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i24, <4 x float> c64
  %i26 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f15 [air Derivative(Derivative { op: Dfdx, fast: false, ty: NumTy { elem: F32, lanes: 4 } })](%i25) convergent
  br bb2
bb2:
  %i28 = phi <4 x float> [%i26, bb1], [%i10, bb0]
  tail call void @f18 [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 })](%a3, %i1, %i28, i32 0, i32 2) arg0( nocapture )
  ret void
}

define %t10 @f4 "rch_tangle_quad_after" 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" %a1( Ref nocapture ) %a2( Ref nocapture ) %a4( 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> @f2 [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 = tail call ptr addrspace(2) @f16 [air Sampler(GetReadSampler)]()
  %i3 = tail call %t16 @f17 [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 })](%a2, %i2, %i1, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i4 = extractvalue <4 x float> %i3, 0
  %i5 = extractelement %i4, i64 0
  %i6 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i0, <2 x float> c54
  %i7 = tail call %t16 @f12 [air Texture(Texture { op: Sample { compare: false, lod: Level, 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 })](%a1, ptr addrspace(2) @g0, %i6, i1 1, <2 x i32> zeroinitializer, i1 1, 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> c56
  %i10 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i9, <4 x float> c57
  %i11 = fcmp reassoc nnan ninf nsz arcp contract afn une %i5, float 0x3F800000
  br %i11, bb1, bb2
bb1:
  %i13 = extractelement %i1, i64 1
  %i14 = shl i32 %i13, i32 6
  %i15 = extractelement %i1, i64 0
  %i16 = add i32 %i14, %i15
  %i17 = zext %i16 to i64
  %i18 = getelementptr inbounds <4 x float>, %a4, %i17
  %i19 = bitcast %i18 to ptr addrspace(1)
  %i20 = load <4 x i32>, %i19, align 16
  %i21 = bitcast %i4 to <4 x i32>
  %i22 = shufflevector <4 x i32> %i21, <4 x i32> poison, <0, 0, 0, 0>
  %i23 = tail call <4 x i32> @f14 [air Math(Math { f: MulHi(Unsigned), precision: Precise, ty: NumTy { elem: I32, lanes: 4 } })](%i20, %i22)
  %i24 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f13 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 4 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i23)
  %i25 = extractelement %i24, i64 0
  %i26 = fmul reassoc nnan ninf nsz arcp contract afn float %i25, float 0x2F800000
  %i27 = tail call reassoc nnan ninf nsz arcp contract afn float @f19 [air Group(Group { scope: Quad, op: Sum, ty: Some(NumTy { elem: F32, lanes: 1 }), sign: None })](%i26) convergent
  %i28 = insertelement <4 x float> poison, %i27, i64 0
  %i29 = shufflevector <4 x float> %i28, <4 x float> poison, <0, 0, 0, 0>
  br bb2
bb2:
  %i31 = phi <4 x float> [%i29, bb1], [%i10, bb0]
  tail call void @f18 [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 })](%a3, %i1, %i31, i32 0, i32 2) arg0( nocapture )
  ret void
}

define %t10 @f5 "rch_tangle_lod_after" 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 ) %a4( 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> @f2 [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 = tail call ptr addrspace(2) @f16 [air Sampler(GetReadSampler)]()
  %i3 = tail call %t16 @f17 [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 })](%a2, %i2, %i1, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i4 = extractvalue <4 x float> %i3, 0
  %i5 = extractelement %i4, i64 0
  %i6 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i0, <2 x float> c54
  %i7 = tail call %t16 @f12 [air Texture(Texture { op: Sample { compare: false, lod: Level, 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 })](%a1, ptr addrspace(2) @g0, %i6, i1 1, <2 x i32> zeroinitializer, i1 1, 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> c56
  %i10 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i9, <4 x float> c57
  %i11 = fcmp reassoc nnan ninf nsz arcp contract afn une %i5, float 0x3F800000
  br %i11, bb1, bb2
bb1:
  %i13 = extractelement %i1, i64 1
  %i14 = shl i32 %i13, i32 6
  %i15 = extractelement %i1, i64 0
  %i16 = add i32 %i14, %i15
  %i17 = zext %i16 to i64
  %i18 = getelementptr inbounds <4 x float>, %a4, %i17
  %i19 = bitcast %i18 to ptr addrspace(1)
  %i20 = load <4 x i32>, %i19, align 16
  %i21 = bitcast %i4 to <4 x i32>
  %i22 = shufflevector <4 x i32> %i21, <4 x i32> poison, <0, 0, 0, 0>
  %i23 = tail call <4 x i32> @f14 [air Math(Math { f: MulHi(Unsigned), precision: Precise, ty: NumTy { elem: I32, lanes: 4 } })](%i20, %i22)
  %i24 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f13 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 4 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i23)
  %i25 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i24, <4 x float> c62
  %i26 = shufflevector <2 x float> %i25, <4 x float> poison, <0, 1>
  %i27 = tail call reassoc nnan ninf nsz arcp contract afn float @f20 [air Texture(Texture { op: CalculateLod { clamped: false }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g0, %i26, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i28 = insertelement <4 x float> poison, %i27, i64 0
  %i29 = shufflevector <4 x float> %i28, <4 x float> poison, <0, 0, 0, 0>
  br bb2
bb2:
  %i31 = phi <4 x float> [%i29, bb1], [%i10, bb0]
  tail call void @f18 [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 })](%a3, %i1, %i31, i32 0, i32 2) arg0( nocapture )
  ret void
}

define %t10 @f6 "rch_tangle_quad_before" 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" %a1( Ref nocapture ) %a2( Ref nocapture ) %a4( 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> @f2 [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 = tail call ptr addrspace(2) @f16 [air Sampler(GetReadSampler)]()
  %i3 = tail call %t16 @f17 [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 })](%a2, %i2, %i1, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i4 = extractvalue <4 x float> %i3, 0
  %i5 = extractelement %i4, i64 0
  %i6 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i0, <2 x float> c54
  %i7 = tail call %t16 @f12 [air Texture(Texture { op: Sample { compare: false, lod: Level, 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 })](%a1, ptr addrspace(2) @g0, %i6, i1 1, <2 x i32> zeroinitializer, i1 1, 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> c56
  %i10 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i9, <4 x float> c57
  %i11 = fcmp reassoc nnan ninf nsz arcp contract afn une %i5, float 0x3F800000
  br %i11, bb1, bb2
bb1:
  %i13 = extractelement %a0, i64 0
  %i14 = tail call reassoc nnan ninf nsz arcp contract afn float @f19 [air Group(Group { scope: Quad, op: Sum, ty: Some(NumTy { elem: F32, lanes: 1 }), sign: None })](%i13) convergent
  %i15 = extractelement %i1, i64 1
  %i16 = shl i32 %i15, i32 6
  %i17 = extractelement %i1, i64 0
  %i18 = add i32 %i16, %i17
  %i19 = zext %i18 to i64
  %i20 = getelementptr inbounds <4 x float>, %a4, %i19
  %i21 = bitcast %i20 to ptr addrspace(1)
  %i22 = load <4 x i32>, %i21, align 16
  %i23 = bitcast %i4 to <4 x i32>
  %i24 = shufflevector <4 x i32> %i23, <4 x i32> poison, <0, 0, 0, 0>
  %i25 = tail call <4 x i32> @f14 [air Math(Math { f: MulHi(Unsigned), precision: Precise, ty: NumTy { elem: I32, lanes: 4 } })](%i22, %i24)
  %i26 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f13 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 4 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i25)
  %i27 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i26, <4 x float> c64
  %i28 = fmul reassoc nnan ninf nsz arcp contract afn float %i14, float 0x3C000000
  %i29 = insertelement <4 x float> poison, %i28, i64 0
  %i30 = shufflevector <4 x float> %i29, <4 x float> poison, <0, 0, 0, 0>
  %i31 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i27, %i30
  br bb2
bb2:
  %i33 = phi <4 x float> [%i31, bb1], [%i10, bb0]
  tail call void @f18 [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 })](%a3, %i1, %i33, i32 0, i32 2) arg0( nocapture )
  ret void
}

define %t10 @f7 "rch_tangle_sample_before" 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 ) %a4( 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> @f2 [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 = tail call ptr addrspace(2) @f16 [air Sampler(GetReadSampler)]()
  %i3 = tail call %t16 @f17 [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 })](%a2, %i2, %i1, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i4 = extractvalue <4 x float> %i3, 0
  %i5 = extractelement %i4, i64 0
  %i6 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i0, <2 x float> c54
  %i7 = tail call %t16 @f12 [air Texture(Texture { op: Sample { compare: false, lod: Level, 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 })](%a1, ptr addrspace(2) @g0, %i6, i1 1, <2 x i32> zeroinitializer, i1 1, 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> c56
  %i10 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i9, <4 x float> c57
  %i11 = fcmp reassoc nnan ninf nsz arcp contract afn une %i5, float 0x3F800000
  br %i11, bb1, bb2
bb1:
  %i13 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i0, <2 x float> c65
  %i14 = tail call %t16 @f12 [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 })](%a1, ptr addrspace(2) @g0, %i13, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i15 = extractvalue <4 x float> %i14, 0
  %i16 = extractelement %i1, i64 1
  %i17 = shl i32 %i16, i32 6
  %i18 = extractelement %i1, i64 0
  %i19 = add i32 %i17, %i18
  %i20 = zext %i19 to i64
  %i21 = getelementptr inbounds <4 x float>, %a4, %i20
  %i22 = bitcast %i21 to ptr addrspace(1)
  %i23 = load <4 x i32>, %i22, align 16
  %i24 = bitcast %i4 to <4 x i32>
  %i25 = shufflevector <4 x i32> %i24, <4 x i32> poison, <0, 0, 0, 0>
  %i26 = tail call <4 x i32> @f14 [air Math(Math { f: MulHi(Unsigned), precision: Precise, ty: NumTy { elem: I32, lanes: 4 } })](%i23, %i25)
  %i27 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f13 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 4 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i26)
  %i28 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i27, <4 x float> c64
  %i29 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i15, <4 x float> c56
  %i30 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i28, %i29
  br bb2
bb2:
  %i32 = phi <4 x float> [%i30, bb1], [%i10, bb0]
  tail call void @f18 [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 })](%a3, %i1, %i32, i32 0, i32 2) arg0( nocapture )
  ret void
}

define %t10 @f8 "rch_tangle_unread" 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 ) %a4( 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> @f2 [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 = tail call ptr addrspace(2) @f16 [air Sampler(GetReadSampler)]()
  %i3 = tail call %t16 @f17 [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 })](%a2, %i2, %i1, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i4 = extractvalue <4 x float> %i3, 0
  %i5 = extractelement %i4, i64 0
  %i6 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i0, <2 x float> c54
  %i7 = tail call %t16 @f12 [air Texture(Texture { op: Sample { compare: false, lod: Level, 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 })](%a1, ptr addrspace(2) @g0, %i6, i1 1, <2 x i32> zeroinitializer, i1 1, 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> c56
  %i10 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i9, <4 x float> c57
  %i11 = fcmp reassoc nnan ninf nsz arcp contract afn une %i5, float 0x3F800000
  br %i11, bb1, bb2
bb1:
  %i13 = extractelement %i1, i64 1
  %i14 = shl i32 %i13, i32 6
  %i15 = extractelement %i1, i64 0
  %i16 = add i32 %i14, %i15
  %i17 = zext %i16 to i64
  %i18 = getelementptr inbounds <4 x float>, %a4, %i17
  %i19 = bitcast %i18 to ptr addrspace(1)
  %i20 = load <4 x i32>, %i19, align 16
  %i21 = bitcast %i4 to <4 x i32>
  %i22 = shufflevector <4 x i32> %i21, <4 x i32> poison, <0, 0, 0, 0>
  %i23 = tail call <4 x i32> @f14 [air Math(Math { f: MulHi(Unsigned), precision: Precise, ty: NumTy { elem: I32, lanes: 4 } })](%i20, %i22)
  %i24 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f13 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 4 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i23)
  %i25 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i24, <4 x float> c64
  %i26 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i0, <2 x float> c65
  %i27 = tail call %t16 @f12 [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 })](%a1, ptr addrspace(2) @g0, %i26, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i28 = extractvalue <4 x float> %i27, 0
  %i29 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i28, <4 x float> c56
  %i30 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i29, %i25
  br bb2
bb2:
  %i32 = phi <4 x float> [%i30, bb1], [%i10, bb0]
  tail call void @f18 [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 })](%a3, %i1, %i32, i32 0, i32 2) arg0( nocapture )
  ret void
}

define %t10 @f9 "rch_tangle_merge_after" 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 ) %a4( 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> @f2 [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 = tail call ptr addrspace(2) @f16 [air Sampler(GetReadSampler)]()
  %i3 = tail call %t16 @f17 [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 })](%a2, %i2, %i1, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i4 = extractvalue <4 x float> %i3, 0
  %i5 = extractelement %i4, i64 0
  %i6 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i0, <2 x float> c54
  %i7 = tail call %t16 @f12 [air Texture(Texture { op: Sample { compare: false, lod: Level, 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 })](%a1, ptr addrspace(2) @g0, %i6, i1 1, <2 x i32> zeroinitializer, i1 1, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i8 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i0, <2 x float> c65
  %i9 = fcmp reassoc nnan ninf nsz arcp contract afn une %i5, float 0x3F800000
  br %i9, bb1, bb2
bb1:
  %i11 = extractelement %i1, i64 1
  %i12 = shl i32 %i11, i32 6
  %i13 = extractelement %i1, i64 0
  %i14 = add i32 %i12, %i13
  %i15 = zext %i14 to i64
  %i16 = getelementptr inbounds <4 x float>, %a4, %i15
  %i17 = bitcast %i16 to ptr addrspace(1)
  %i18 = load <4 x i32>, %i17, align 16
  %i19 = bitcast %i4 to <4 x i32>
  %i20 = shufflevector <4 x i32> %i19, <4 x i32> poison, <0, 0, 0, 0>
  %i21 = tail call <4 x i32> @f14 [air Math(Math { f: MulHi(Unsigned), precision: Precise, ty: NumTy { elem: I32, lanes: 4 } })](%i18, %i20)
  %i22 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f13 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 4 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i21)
  %i23 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i22, <4 x float> c62
  %i24 = shufflevector <2 x float> %i23, <4 x float> poison, <0, 1>
  br bb2
bb2:
  %i26 = phi <2 x float> [%i24, bb1], [%i8, bb0]
  %i27 = extractvalue <4 x float> %i7, 0
  %i28 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i27, <4 x float> c56
  %i29 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i28, <4 x float> c57
  %i30 = tail call %t16 @f12 [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 })](%a1, ptr addrspace(2) @g0, %i26, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i31 = extractvalue <4 x float> %i30, 0
  %i32 = extractelement %i31, i64 3
  %i33 = fadd reassoc nnan ninf nsz arcp contract afn float %i32, float 0x3F800000
  %i34 = insertelement <4 x float> poison, %i33, i64 0
  %i35 = shufflevector <4 x float> %i34, <4 x float> poison, <0, 0, 0, 0>
  %i36 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i35, %i29
  tail call void @f18 [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 })](%a3, %i1, %i36, i32 0, i32 2) arg0( nocapture )
  ret void
}

define %t10 @f10 "rch_tangle_loop_after" 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 ) %a4( 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> @f2 [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 = tail call ptr addrspace(2) @f16 [air Sampler(GetReadSampler)]()
  %i3 = tail call %t16 @f17 [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 })](%a2, %i2, %i1, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i4 = extractvalue <4 x float> %i3, 0
  %i5 = extractelement %i4, i64 0
  %i6 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i0, <2 x float> c54
  %i7 = tail call %t16 @f12 [air Texture(Texture { op: Sample { compare: false, lod: Level, 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 })](%a1, ptr addrspace(2) @g0, %i6, i1 1, <2 x i32> zeroinitializer, i1 1, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i8 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i0, <2 x float> c65
  %i9 = extractelement %i1, i64 1
  %i10 = shl i32 %i9, i32 6
  %i11 = extractelement %i1, i64 0
  %i12 = add i32 %i10, %i11
  %i13 = bitcast %i4 to <4 x i32>
  %i14 = shufflevector <4 x i32> %i13, <4 x i32> poison, <0, 0, 0, 0>
  %i15 = fsub reassoc nnan ninf nsz arcp contract afn float float 0x3F800000, %i5
  %i16 = fmul reassoc nnan ninf nsz arcp contract afn float %i15, float 0x40800000
  %i17 = tail call i32 @f11 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 1 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 1 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i16)
  %i18 = call i32 @f21 [llvm Int { op: UMax, ty: NumTy { elem: I32, lanes: 1 } }](%i17, i32 1)
  br bb1
bb1:
  %i20 = phi i32 [i32 0, bb0], [%i32, bb1]
  %i21 = phi <2 x float> [%i8, bb0], [%i31, bb1]
  %i22 = add i32 %i12, %i20
  %i23 = zext %i22 to i64
  %i24 = getelementptr inbounds <4 x float>, %a4, %i23
  %i25 = bitcast %i24 to ptr addrspace(1)
  %i26 = load <4 x i32>, %i25, align 16
  %i27 = tail call <4 x i32> @f14 [air Math(Math { f: MulHi(Unsigned), precision: Precise, ty: NumTy { elem: I32, lanes: 4 } })](%i26, %i14)
  %i28 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f13 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 4 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i27)
  %i29 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i28, <4 x float> c62
  %i30 = shufflevector <2 x float> %i29, <4 x float> poison, <0, 1>
  %i31 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i30, %i21
  %i32 = add nuw i32 %i20, i32 1
  %i33 = icmp eq %i32, %i18
  br %i33, bb2, bb1, !llvm.loop LoopHints { unroll: Default, must_progress: true }
bb2:
  %i35 = extractvalue <4 x float> %i7, 0
  %i36 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i35, <4 x float> c56
  %i37 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i36, <4 x float> c57
  %i38 = tail call %t16 @f12 [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 })](%a1, ptr addrspace(2) @g0, %i31, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i39 = extractvalue <4 x float> %i38, 0
  %i40 = extractelement %i39, i64 3
  %i41 = fadd reassoc nnan ninf nsz arcp contract afn float %i40, float 0x3F800000
  %i42 = insertelement <4 x float> poison, %i41, i64 0
  %i43 = shufflevector <4 x float> %i42, <4 x float> poison, <0, 0, 0, 0>
  %i44 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i43, %i37
  tail call void @f18 [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 })](%a3, %i1, %i44, i32 0, i32 2) arg0( nocapture )
  ret void
}

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

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

declare %t20 @f13 "air.convert.f.v4f32.u.v4i32" memory(NoModRef, NoModRef, NoModRef)

declare %t21 @f14 "air.mul_hi.u.v4i32" memory(NoModRef, NoModRef, NoModRef)

declare %t22 @f15 "air.dfdx.v4f32" convergent

declare %t23 @f16 "air.get_read_sampler" memory(NoModRef, Ref, NoModRef)

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

declare %t25 @f18 "air.write_texture_2d.v4f32" memory(ModRef, NoModRef, NoModRef) %a0( nocapture )

declare %t26 @f19 "air.quad_sum.f32" convergent

declare %t27 @f20 "air.calculate_unclamped_lod_texture_2d" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )

declare %t28 @f21 "llvm.umax.i32" memory(NoModRef, NoModRef, NoModRef)
!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.position"
!md10 = !"air.arg_type_name"
!md11 = !"float4"
!md12 = !"air.vertex_id"
!md13 = !"uint"
!md14 = !"air.arg_name"
!md15 = !"vid"
!md16 = !"air.buffer"
!md17 = !"air.location_index"
!md18 = !"air.read"
!md19 = !"air.address_space"
!md20 = !"air.arg_type_size"
!md21 = !"air.arg_type_align_size"
!md22 = !"float2"
!md23 = !"corners"
!md24 = !"air.center"
!md25 = !"air.no_perspective"
!md26 = !"position"
!md27 = !"air.texture"
!md28 = !"air.sample"
!md29 = !"texture2d<float, sample>"
!md30 = !"noise"
!md31 = !"coverage"
!md32 = !"air.write"
!md33 = !"texture2d<float, write>"
!md34 = !"dst"
!md35 = !"src"
!md36 = !"air.compile.denorms_disable"
!md37 = !"air.compile.fast_math_enable"
!md38 = !"air.compile.framebuffer_fetch_enable"
!md39 = !"air.sampler_state"
!md40 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md41 = !"Metal"
!md42 = !"omnipotent char"
!md43 = !"Simple C++ TBAA"
!md44 = !"air-alias-scope-arg(4)"
!md45 = !"air-alias-scope-textures"
!md46 = i32 2
!md47 = %t30 c29
!md48 = i32 1
!md49 = i32 4
!md50 = i32 7
!md51 = i32 31
!md52 = i32 128
!md53 = i32 8
!md54 = i32 16
!md55 = ptr addrspace(0) @f0
!md56 = i32 0
!md57 = ptr addrspace(0) @f1
!md58 = i32 3
!md59 = ptr addrspace(0) @f3
!md60 = ptr addrspace(0) @f4
!md61 = ptr addrspace(0) @f5
!md62 = ptr addrspace(0) @f6
!md63 = ptr addrspace(0) @f7
!md64 = ptr addrspace(0) @f8
!md65 = ptr addrspace(0) @f9
!md66 = ptr addrspace(0) @f10
!md67 = ptr addrspace(2) @g0
!md68 = i64 0
!md69 = !{!md46, !md0, !md47}
!md70 = !{!md48, !md1, !md49}
!md71 = !{!md50, !md2, !md46}
!md72 = !{!md50, !md3, !md51}
!md73 = !{!md50, !md4, !md51}
!md74 = !{!md50, !md5, !md51}
!md75 = !{!md50, !md6, !md52}
!md76 = !{!md50, !md7, !md53}
!md77 = !{!md50, !md8, !md54}
!md78 = !{!md9, !md10, !md11}
!md79 = !{!md78}
!md80 = !{!md56, !md12, !md10, !md13, !md14, !md15}
!md81 = !{!md48, !md16, !md17, !md56, !md48, !md18, !md19, !md46, !md20, !md53, !md21, !md53, !md10, !md22, !md14, !md23}
!md82 = !{!md80, !md81}
!md83 = !{!md55, !md79, !md82}
!md84 = !{}
!md85 = !{!md56, !md9, !md24, !md25, !md10, !md11, !md14, !md26}
!md86 = !{!md48, !md27, !md17, !md56, !md48, !md28, !md10, !md29, !md14, !md30}
!md87 = !{!md46, !md27, !md17, !md48, !md48, !md28, !md10, !md29, !md14, !md31}
!md88 = !{!md58, !md27, !md17, !md46, !md48, !md32, !md10, !md33, !md14, !md34}
!md89 = !{!md49, !md16, !md17, !md56, !md48, !md18, !md19, !md48, !md20, !md54, !md21, !md54, !md10, !md11, !md14, !md35}
!md90 = !{!md85, !md86, !md87, !md88, !md89}
!md91 = !{!md57, !md84, !md90}
!md92 = !{!md59, !md84, !md90}
!md93 = !{!md60, !md84, !md90}
!md94 = !{!md61, !md84, !md90}
!md95 = !{!md62, !md84, !md90}
!md96 = !{!md63, !md84, !md90}
!md97 = !{!md64, !md84, !md90}
!md98 = !{!md65, !md84, !md90}
!md99 = !{!md66, !md84, !md90}
!md100 = !{!md36}
!md101 = !{!md37}
!md102 = !{!md38}
!md103 = !{!md39, !md67}
!md104 = !{!md40}
!md105 = !{!md46, !md53, !md56}
!md106 = !{!md41, !md49, !md56, !md56}
!md107 = !{!md43}
!md108 = !{!md42, !md107, !md68}
!md109 = !{!md108, !md108, !md68}
!"llvm.module.flags" = !{!md69, !md70, !md71, !md72, !md73, !md74, !md75, !md76, !md77}
!"air.vertex" = !{!md83}
!"air.fragment" = !{!md91, !md92, !md93, !md94, !md95, !md96, !md97, !md98, !md99}
!"air.compile_options" = !{!md100, !md101, !md102}
!"air.sampler_states" = !{!md103}
!"llvm.ident" = !{!md104}
!"air.version" = !{!md105}
!"air.language_version" = !{!md106}
