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]
%t8 = type void (ptr addrspace(1), ptr addrspace(1), ptr addrspace(2), <2 x i32>)
%t11 = type <4 x float> (<4 x float>, ptr addrspace(1), ptr addrspace(2))
%t13 = type <2 x i32> (<2 x float>)
%t14 = type void (ptr addrspace(1), ptr addrspace(2), ptr addrspace(1), i32)
%t15 = type float (i32)
%t16 = type void (ptr addrspace(1), ptr addrspace(1), i32)
%t17 = type ptr addrspace(2) ()
%t19 = type { <4 x float>, i8 }
%t20 = type %t19 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32)
%t22 = type %t19 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i32, i32)
%t23 = type %t19 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t25 = type [2 x i32]
c15 = %t2 [34901797601023049, 0]
c17 = %t25 [26, 5]
c28 = <2 x i32> [1, 0]
c31 = <2 x i32> [0, 1]
c34 = <2 x i32> [poison, 1]
c38 = <2 x float> [0x3E800000, poison]
@g0 "__air_sampler_state" = internal addrspace(2) constant %t2 c15, align 8

define %t8 @f0 "read_across_blocks" "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( Mod nocapture "air-buffer-no-alias"="" ) %a2( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call ptr addrspace(2) @f6 [air Sampler(GetReadSampler)]()
  %i1 = tail call %t19 @f7 [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, device_coherent: false })](%a0, %i0, %a3, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i2 = extractvalue <4 x float> %i1, 0
  %i3 = extractelement %a3, i64 0
  %i4 = load i32, %a2, align 4
  %i5 = icmp ult %i3, %i4
  br %i5, bb1, bb2
bb1:
  %i7 = add <2 x i32> %a3, <2 x i32> c28
  %i8 = tail call %t19 @f7 [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, device_coherent: false })](%a0, %i0, %i7, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i9 = extractvalue <4 x float> %i8, 0
  %i10 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i9, %i2
  br bb2
bb2:
  %i12 = phi <4 x float> [%i10, bb1], [%i2, bb0]
  %i13 = extractelement %a3, i64 1
  %i14 = shl i32 %i13, i32 2
  %i15 = add i32 %i14, %i3
  %i16 = zext %i15 to i64
  %i17 = getelementptr inbounds <4 x float>, %a1, %i16
  store %i12, %i17, align 16
  ret void
}

define %t11 @f1 "fragment_read_across_blocks" memory(Ref, Ref, Ref) "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( align 4 dereferenceable(4) 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) @f6 [air Sampler(GetReadSampler)]()
  %i3 = tail call %t19 @f7 [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, device_coherent: false })](%a1, %i2, %i1, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i4 = extractvalue <4 x float> %i3, 0
  %i5 = extractelement %i1, i64 0
  %i6 = load i32, %a2, align 4
  %i7 = icmp ult %i5, %i6
  br %i7, bb1, bb2
bb1:
  %i9 = add <2 x i32> %i1, <2 x i32> c28
  %i10 = tail call %t19 @f7 [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, device_coherent: false })](%a1, %i2, %i9, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i11 = extractvalue <4 x float> %i10, 0
  %i12 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i11, %i4
  br bb2
bb2:
  %i14 = phi <4 x float> [%i12, bb1], [%i4, bb0]
  ret %i14
}

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

define %t14 @f3 "gather_dynamic_offset" "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( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = and i32 %a3, i32 7
  %i1 = add nsw i32 %i0, i32 4294967292
  %i2 = insertelement <2 x i32> c34, %i1, i64 0
  %i3 = tail call reassoc nnan ninf nsz arcp contract afn float @f4 [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 })](%a3)
  %i4 = insertelement <2 x float> poison, %i3, i64 0
  %i5 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i4, <2 x float> c38
  %i6 = shufflevector <2 x float> %i5, <2 x float> poison, <0, 0>
  %i7 = tail call %t19 @f8 [air Texture(Texture { op: Gather { component: Some(X), compare: false, 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 })](%a0, %a1, %i6, i1 1, %i2, i32 0, i32 0) arg0( Ref nocapture ) arg1( Ref nocapture )
  %i8 = extractvalue <4 x float> %i7, 0
  %i9 = zext %a3 to i64
  %i10 = getelementptr inbounds <4 x float>, %a2, %i9
  store %i8, %i10, align 16
  ret void
}

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

define %t16 @f5 "sample_bicubic" convergent memory(ModRef, 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" %a0( Ref nocapture ) %a1( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call reassoc nnan ninf nsz arcp contract afn float @f4 [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 })](%a2)
  %i1 = insertelement <2 x float> poison, %i0, i64 0
  %i2 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i1, <2 x float> c38
  %i3 = shufflevector <2 x float> %i2, <2 x float> poison, <0, 0>
  %i4 = tail call %t19 @f9 [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, device_coherent: false })](%a0, ptr addrspace(2) @g0, %i3, i1 1, <2 x i32> zeroinitializer, i1 1, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i5 = extractvalue <4 x float> %i4, 0
  %i6 = zext %a2 to i64
  %i7 = getelementptr inbounds <4 x float>, %a1, %i6
  store %i5, %i7, align 16
  ret void
}

declare %t17 @f6 "air.get_read_sampler" memory(NoModRef, Ref, NoModRef)

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

declare %t22 @f8 "air.gather_texture_2d.v4f32" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )

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