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: [] }
%t4 = type void (ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), i32)
%t6 = type void (ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(2), i32)
%t9 = type <4 x float> (<4 x float>, ptr addrspace(1))
%t10 = type i32 (float)
%t11 = type ptr addrspace(2) ()
%t13 = type { <4 x float>, i8 }
%t14 = type %t13 (ptr addrspace(1), ptr addrspace(2), i32, i32)
%t15 = type void (ptr addrspace(1), i32, <4 x float>, i32)
%t16 = type i32 (ptr addrspace(1))
%t18 = type [2 x i32]
%t22 = type { ptr addrspace(1) } ; "struct.metal::texture_buffer"
%t23 = type { ptr addrspace(1) } ; "struct.metal::texture_buffer.0"
%t24 = type { %t22, %t23 } ; "struct.TbArgs"
c10 = %t18 [27, 2]

define %t4 @f0 "tb_word_formats" "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 "air-buffer-no-alias"="" ) %a4( Mod nocapture "air-buffer-no-alias"="" ) %a5( Mod nocapture "air-buffer-no-alias"="" ) %a6( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call ptr addrspace(2) @f4 [air Sampler(GetReadSampler)]()
  %i1 = tail call %t13 @f5 [air Texture(Texture { op: Read, image: ImageShape { dim: Buffer, 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(Read), states_access: true, device_coherent: false })](%a1, %i0, %a7, i32 1) arg0( Ref nocapture )
  %i2 = extractvalue <4 x float> %i1, 0
  %i3 = zext %a7 to i64
  %i4 = getelementptr inbounds <4 x float>, %a4, %i3
  store %i2, %i4, align 16
  %i6 = getelementptr inbounds <4 x float>, %a0, %i3
  %i7 = load <4 x float>, %i6, align 16
  tail call void @f6 [air Texture(Texture { op: Write, image: ImageShape { dim: Buffer, 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 })](%a2, %a7, %i7, i32 2) arg0( nocapture )
  %i9 = tail call %t13 @f5 [air Texture(Texture { op: Read, image: ImageShape { dim: Buffer, 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(ReadWrite), states_access: true, device_coherent: false })](%a3, %i0, %a7, i32 3) arg0( Ref nocapture )
  %i10 = extractvalue <4 x float> %i9, 0
  %i11 = getelementptr inbounds <4 x float>, %a5, %i3
  store %i10, %i11, align 16
  tail call void @f6 [air Texture(Texture { op: Write, image: ImageShape { dim: Buffer, 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(ReadWrite), states_access: true, device_coherent: false })](%a3, %a7, %i7, i32 3) arg0( nocapture )
  %i14 = icmp eq %a7, i32 0
  br %i14, bb1, bb2
bb1:
  %i16 = tail call i32 @f7 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: Buffer, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true, device_coherent: false })](%a1) arg0( Ref nocapture )
  store %i16, %a6, align 4
  %i18 = tail call i32 @f7 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: Buffer, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true, device_coherent: false })](%a2) arg0( Ref nocapture )
  %i19 = getelementptr inbounds i32, %a6, i64 1
  store %i18, %i19, align 4
  %i21 = tail call i32 @f7 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: Buffer, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true, device_coherent: false })](%a3) arg0( Ref nocapture )
  %i22 = getelementptr inbounds i32, %a6, i64 2
  store %i21, %i22, align 4
  br bb2
bb2:
  ret void
}

define %t6 @f1 "tb_word_formats_args" "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 "air-buffer-no-alias"="" ) %a1( Mod nocapture "air-buffer-no-alias"="" ) %a2( Mod nocapture "air-buffer-no-alias"="" ) %a3( align 8 dereferenceable(16) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = getelementptr inbounds %t24, %a3, i64 0, i32 0, i32 0
  %i1 = load ptr addrspace(1), %i0, align 8
  %i2 = tail call ptr addrspace(2) @f4 [air Sampler(GetReadSampler)]()
  %i3 = tail call %t13 @f5 [air Texture(Texture { op: Read, image: ImageShape { dim: Buffer, 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(Read), states_access: true, device_coherent: false })](%i1, %i2, %a4, i32 1) arg0( Ref nocapture )
  %i4 = extractvalue <4 x float> %i3, 0
  %i5 = zext %a4 to i64
  %i6 = getelementptr inbounds <4 x float>, %a1, %i5
  store %i4, %i6, align 16
  %i8 = getelementptr inbounds <4 x float>, %a0, %i5
  %i9 = load <4 x float>, %i8, align 16
  %i10 = getelementptr inbounds %t24, %a3, i64 0, i32 1, i32 0
  %i11 = load ptr addrspace(1), %i10, align 8
  tail call void @f6 [air Texture(Texture { op: Write, image: ImageShape { dim: Buffer, 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 })](%i11, %a4, %i9, i32 2) arg0( nocapture )
  %i13 = icmp eq %a4, i32 0
  br %i13, bb1, bb2
bb1:
  %i15 = getelementptr inbounds i32, %a2, i64 1
  %i16 = tail call i32 @f7 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: Buffer, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true, device_coherent: false })](%i1) arg0( Ref nocapture )
  store %i16, %a2, align 4
  %i18 = tail call i32 @f7 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: Buffer, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true, device_coherent: false })](%i11) arg0( Ref nocapture )
  store %i18, %i15, align 4
  br bb2
bb2:
  ret void
}

define %t9 @f2 "tb_word_fragment" 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" %a1( Ref nocapture ) {
bb0:
  %i0 = extractelement %a0, i64 0
  %i1 = tail call i32 @f3 [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 })](%i0)
  %i2 = urem i32 %i1, i32 5
  %i3 = tail call ptr addrspace(2) @f4 [air Sampler(GetReadSampler)]()
  %i4 = tail call %t13 @f5 [air Texture(Texture { op: Read, image: ImageShape { dim: Buffer, 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(Read), states_access: true, device_coherent: false })](%a1, %i3, %i2, i32 1) arg0( Ref nocapture )
  %i5 = extractvalue <4 x float> %i4, 0
  ret %i5
}

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

declare %t11 @f4 "air.get_read_sampler" memory(NoModRef, Ref, NoModRef)

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

declare %t15 @f6 "air.write_texture_buffer_1d.v4f32" memory(ModRef, NoModRef, NoModRef) %a0( nocapture )

declare %t16 @f7 "air.get_width_texture_buffer_1d" 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.buffer"
!md10 = !"air.location_index"
!md11 = !"air.read"
!md12 = !"air.address_space"
!md13 = !"air.arg_type_size"
!md14 = !"air.arg_type_align_size"
!md15 = !"air.arg_type_name"
!md16 = !"float4"
!md17 = !"air.arg_name"
!md18 = !"values"
!md19 = !"air.texture"
!md20 = !"texture_buffer<float, read>"
!md21 = !"src"
!md22 = !"air.write"
!md23 = !"texture_buffer<float, write>"
!md24 = !"dst"
!md25 = !"air.read_write"
!md26 = !"texture_buffer<float, read_write>"
!md27 = !"rw"
!md28 = !"reads"
!md29 = !"rw_reads"
!md30 = !"uint"
!md31 = !"widths"
!md32 = !"air.thread_position_in_grid"
!md33 = !"t"
!md34 = !"air.indirect_buffer"
!md35 = !"air.buffer_size"
!md36 = !"air.struct_type_info"
!md37 = !"air.indirect_argument"
!md38 = !"TbArgs"
!md39 = !"args"
!md40 = !"air.render_target"
!md41 = !"air.position"
!md42 = !"air.center"
!md43 = !"air.no_perspective"
!md44 = !"pos"
!md45 = !"air.compile.denorms_disable"
!md46 = !"air.compile.fast_math_enable"
!md47 = !"air.compile.framebuffer_fetch_enable"
!md48 = !"Apple metal version 32023.922 (metalfe-32023.922.4)"
!md49 = !"Metal"
!md50 = !"omnipotent char"
!md51 = !"Simple C++ TBAA"
!md52 = !"air-alias-scope-arg(0)"
!md53 = !"int"
!md54 = i32 2
!md55 = %t18 c10
!md56 = i32 1
!md57 = i32 4
!md58 = i32 7
!md59 = i32 31
!md60 = i32 128
!md61 = i32 8
!md62 = i32 16
!md63 = ptr addrspace(0) @f0
!md64 = i32 0
!md65 = i32 3
!md66 = i32 5
!md67 = i32 6
!md68 = ptr addrspace(0) @f1
!md69 = ptr addrspace(0) @f2
!md70 = i64 0
!md71 = !{!md54, !md0, !md55}
!md72 = !{!md56, !md1, !md57}
!md73 = !{!md58, !md2, !md54}
!md74 = !{!md58, !md3, !md59}
!md75 = !{!md58, !md4, !md59}
!md76 = !{!md58, !md5, !md59}
!md77 = !{!md58, !md6, !md60}
!md78 = !{!md58, !md7, !md61}
!md79 = !{!md58, !md8, !md62}
!md80 = !{}
!md81 = !{!md64, !md9, !md10, !md64, !md56, !md11, !md12, !md56, !md13, !md62, !md14, !md62, !md15, !md16, !md17, !md18}
!md82 = !{!md56, !md19, !md10, !md64, !md56, !md11, !md15, !md20, !md17, !md21}
!md83 = !{!md54, !md19, !md10, !md56, !md56, !md22, !md15, !md23, !md17, !md24}
!md84 = !{!md65, !md19, !md10, !md54, !md56, !md25, !md15, !md26, !md17, !md27}
!md85 = !{!md57, !md9, !md10, !md56, !md56, !md25, !md12, !md56, !md13, !md62, !md14, !md62, !md15, !md16, !md17, !md28}
!md86 = !{!md66, !md9, !md10, !md54, !md56, !md25, !md12, !md56, !md13, !md62, !md14, !md62, !md15, !md16, !md17, !md29}
!md87 = !{!md67, !md9, !md10, !md65, !md56, !md25, !md12, !md56, !md13, !md57, !md14, !md57, !md15, !md30, !md17, !md31}
!md88 = !{!md58, !md32, !md15, !md30, !md17, !md33}
!md89 = !{!md81, !md82, !md83, !md84, !md85, !md86, !md87, !md88}
!md90 = !{!md63, !md80, !md89}
!md91 = !{!md56, !md9, !md10, !md56, !md56, !md25, !md12, !md56, !md13, !md62, !md14, !md62, !md15, !md16, !md17, !md28}
!md92 = !{!md54, !md9, !md10, !md65, !md56, !md25, !md12, !md56, !md13, !md57, !md14, !md57, !md15, !md30, !md17, !md31}
!md93 = !{!md64, !md19, !md10, !md64, !md56, !md11, !md15, !md20, !md17, !md21}
!md94 = !{!md56, !md19, !md10, !md56, !md56, !md22, !md15, !md23, !md17, !md24}
!md95 = !{!md64, !md61, !md64, !md20, !md21, !md37, !md93, !md61, !md61, !md64, !md23, !md24, !md37, !md94}
!md96 = !{!md65, !md34, !md35, !md62, !md10, !md57, !md56, !md11, !md12, !md54, !md36, !md95, !md13, !md62, !md14, !md61, !md15, !md38, !md17, !md39}
!md97 = !{!md57, !md32, !md15, !md30, !md17, !md33}
!md98 = !{!md81, !md91, !md92, !md96, !md97}
!md99 = !{!md68, !md80, !md98}
!md100 = !{!md40, !md64, !md64, !md15, !md16}
!md101 = !{!md100}
!md102 = !{!md64, !md41, !md42, !md43, !md15, !md16, !md17, !md44}
!md103 = !{!md56, !md19, !md10, !md64, !md56, !md11, !md15, !md20, !md17, !md33}
!md104 = !{!md102, !md103}
!md105 = !{!md69, !md101, !md104}
!md106 = !{!md45}
!md107 = !{!md46}
!md108 = !{!md47}
!md109 = !{!md48}
!md110 = !{!md54, !md61, !md64}
!md111 = !{!md49, !md57, !md64, !md64}
!md112 = !{!md51}
!md113 = !{!md50, !md112, !md70}
!md114 = !{!md113, !md113, !md70}
!md115 = !{!md53, !md113, !md70}
!md116 = !{!md115, !md115, !md70}
!"llvm.module.flags" = !{!md71, !md72, !md73, !md74, !md75, !md76, !md77, !md78, !md79}
!"air.kernel" = !{!md90, !md99}
!"air.fragment" = !{!md105}
!"air.compile_options" = !{!md106, !md107, !md108}
!"llvm.ident" = !{!md109}
!"air.version" = !{!md110}
!"air.language_version" = !{!md111}
