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: [] }
%t3 = type <{ <4 x float> }>
%t6 = type %t3 (i32, ptr addrspace(2))
%t9 = type <4 x half> ()
%t10 = type <4 x float> (ptr addrspace(2))
%t11 = type <4 x half> (ptr addrspace(2))
%t14 = type void (ptr addrspace(1))
%t15 = type void (ptr addrspace(1), ptr addrspace(1))
%t16 = type void (ptr addrspace(1), i32)
%t18 = type { <4 x float>, i8 }
%t22 = type %t18 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t23 = type i32 (ptr addrspace(1), i32, i32, i32, i1)
%t25 = type [2 x i32]
%t28 = type { ptr addrspace(1) } ; "struct.metal::texture2d"
%t29 = type { ptr addrspace(2) } ; "struct.metal::sampler"
%t30 = type { ptr addrspace(2), %t28, %t29 } ; "struct.Entry"
%t31 = type { ptr addrspace(1) } ; "struct.Tally"
%t32 = type { i32 } ; "struct.metal::_atomic"
%t34 = type { ptr addrspace(1) } ; "struct.metal::command_buffer"
%t35 = type { %t34 } ; "struct.Commands"
c12 = %t25 [27, 2]
c27 = <2 x i32> [0, 1]
c34 = <4 x i32> [0, 1, poison, poison]
c37 = <4 x float> [poison, poison, 0x0, 0x3F800000]
c38 = <4 x i32> [0, 1, 6, 7]
c43 = <4 x half> [0x3C00, 0x3800, 0x0, 0x3C00]
c45 = <2 x float> [0x3F000000, 0x3F000000]

define %t6 @f0 "rd_slot_vertex" memory(NoModRef, NoModRef, NoModRef) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="64" "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( align 16 dereferenceable(16) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = load <4 x float>, %a1, align 16
  %i1 = shufflevector <2 x float> %i0, <4 x float> poison, <0, 1>
  %i2 = icmp eq %a0, i32 1
  %i3 = select reassoc nnan ninf nsz arcp contract afn float %i2, float 0x3CA3D70A, float 0x0
  %i4 = insertelement <2 x float> undef, %i3, i64 0
  %i5 = icmp eq %a0, i32 2
  %i6 = select reassoc nnan ninf nsz arcp contract afn float %i5, float 0x3CA3D70A, float 0x0
  %i7 = insertelement %i4, %i6, i64 1
  %i8 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i1, %i7
  %i9 = shufflevector <4 x float> %i8, <2 x float> poison, <0, 1, poison, poison>
  %i10 = shufflevector <4 x float> %i9, <4 x float> c37, <0, 1, 6, 7>
  %i11 = insertvalue %t3 undef %i10, 0
  ret %i11
}

define %t9 @f1 "rd_color_fragment" memory(NoModRef, NoModRef, NoModRef) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="64" "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" {
bb0:
  ret <4 x half> c43
}

define %t6 @f2 "rd_entry_vertex" memory(NoModRef, NoModRef, NoModRef) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="64" "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( align 8 dereferenceable(24) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = getelementptr inbounds %t30, %a1, i64 0, i32 0
  %i1 = load ptr addrspace(2), %i0, align 8
  %i2 = load <4 x float>, %i1, align 16
  %i3 = shufflevector <2 x float> %i2, <4 x float> poison, <0, 1>
  %i4 = icmp eq %a0, i32 1
  %i5 = select reassoc nnan ninf nsz arcp contract afn float %i4, float 0x3CA3D70A, float 0x0
  %i6 = insertelement <2 x float> undef, %i5, i64 0
  %i7 = icmp eq %a0, i32 2
  %i8 = select reassoc nnan ninf nsz arcp contract afn float %i7, float 0x3CA3D70A, float 0x0
  %i9 = insertelement %i6, %i8, i64 1
  %i10 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i3, %i9
  %i11 = shufflevector <4 x float> %i10, <2 x float> poison, <0, 1, poison, poison>
  %i12 = shufflevector <4 x float> %i11, <4 x float> c37, <0, 1, 6, 7>
  %i13 = insertvalue %t3 undef %i12, 0
  ret %i13
}

define %t10 @f3 "rd_entry_fragment" convergent 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" %a0( align 8 dereferenceable(24) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = getelementptr inbounds %t30, %a0, i64 0, i32 2, i32 0
  %i1 = load ptr addrspace(2), %i0, align 8
  %i2 = getelementptr inbounds %t30, %a0, i64 0, i32 1, i32 0
  %i3 = load ptr addrspace(1), %i2, align 8
  %i4 = 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: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true, device_coherent: false })](%i3, %i1, <2 x float> c45, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i5 = extractvalue <4 x float> %i4, 0
  ret %i5
}

define %t11 @f4 "rd_tally_fragment" "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="64" "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( align 8 dereferenceable(8) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = getelementptr inbounds %t31, %a0, i64 0, i32 0
  %i1 = load ptr addrspace(1), %i0, align 8
  %i2 = getelementptr inbounds %t32, %i1, i64 0, i32 0
  %i3 = tail call i32 @f9 [air Atomic(Atomic { space: Global, op: Add, sign: Some(Unsigned), ty: NumTy { elem: I32, lanes: 1 }, order: Relaxed, failure: None, scope: Device, volatile: true, fetch: true, flags: None, stated_volatile: true })](%i2, i32 1, i32 0, i32 2, i1 1) arg0( nocapture )
  ret <4 x half> c43
}

define %t14 @f5 "rd_touch" "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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( nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = getelementptr inbounds %t32, %a0, i64 0, i32 0
  %i1 = tail call i32 @f9 [air Atomic(Atomic { space: Global, op: Add, sign: Some(Unsigned), ty: NumTy { elem: I32, lanes: 1 }, order: Relaxed, failure: None, scope: Device, volatile: true, fetch: true, flags: None, stated_volatile: true })](%i0, i32 1, i32 0, i32 2, i1 1) arg0( nocapture )
  ret void
}

define %t15 @f6 "rd_encode" "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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( nocapture "air-buffer-no-alias"="" ) %a1( align 8 dereferenceable(8) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = getelementptr inbounds %t32, %a0, i64 0, i32 0
  %i1 = tail call i32 @f9 [air Atomic(Atomic { space: Global, op: Add, sign: Some(Unsigned), ty: NumTy { elem: I32, lanes: 1 }, order: Relaxed, failure: None, scope: Device, volatile: true, fetch: true, flags: None, stated_volatile: true })](%i0, i32 1, i32 0, i32 2, i1 1) arg0( nocapture )
  %i2 = icmp eq %i1, i32 4294967295
  br %i2, bb1, bb2
bb1:
  %i4 = getelementptr inbounds %t35, %a1, i64 0, i32 0, i32 0
  %i5 = load ptr addrspace(1), %i4, align 8
  tail call void @f7 [air IndirectCommand(ResetRenderCommand)](%i5, i32 0) arg0( nocapture )
  br bb2
bb2:
  ret void
}

declare %t16 @f7 "air.reset_render_command" %a0( nocapture )

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

declare %t23 @f9 "air.atomic.global.add.u.i32" %a0( 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.position"
!md10 = !"air.arg_type_name"
!md11 = !"float4"
!md12 = !"air.arg_name"
!md13 = !"position"
!md14 = !"air.vertex_id"
!md15 = !"uint"
!md16 = !"vid"
!md17 = !"air.buffer"
!md18 = !"air.buffer_size"
!md19 = !"air.location_index"
!md20 = !"air.read"
!md21 = !"air.address_space"
!md22 = !"air.arg_type_size"
!md23 = !"air.arg_type_align_size"
!md24 = !"at"
!md25 = !"air.indirect_buffer"
!md26 = !"air.struct_type_info"
!md27 = !"air.indirect_argument"
!md28 = !"texture2d<float, sample>"
!md29 = !"texture"
!md30 = !"air.texture"
!md31 = !"air.sample"
!md32 = !"sampler"
!md33 = !"texels"
!md34 = !"air.sampler"
!md35 = !"Entry"
!md36 = !"entry"
!md37 = !"air.render_target"
!md38 = !"half4"
!md39 = !"metal::_atomic"
!md40 = !"count"
!md41 = !"air.read_write"
!md42 = !"__s"
!md43 = !"Tally"
!md44 = !"tally"
!md45 = !"command_buffer"
!md46 = !"commands"
!md47 = !"air.command_buffer"
!md48 = !"Commands"
!md49 = !"table"
!md50 = !"air.compile.denorms_disable"
!md51 = !"air.compile.fast_math_enable"
!md52 = !"air.compile.framebuffer_fetch_enable"
!md53 = !"Apple metal version 32023.922 (metalfe-32023.922.4)"
!md54 = !"Metal"
!md55 = !"air-alias-scope-arg(1)"
!md56 = !"any pointer"
!md57 = !"omnipotent char"
!md58 = !"Simple C++ TBAA"
!md59 = !"_ZTSN5metal9texture2dIfLNS_6accessE0ELNS_16memory_coherenceE0EvEE"
!md60 = !"__metal_texture_2d_t"
!md61 = !"__metal_sampler_t"
!md62 = !"air-alias-scope-arg(0)"
!md63 = i32 2
!md64 = %t25 c12
!md65 = i32 1
!md66 = i32 4
!md67 = i32 7
!md68 = i32 31
!md69 = i32 128
!md70 = i32 8
!md71 = i32 16
!md72 = ptr addrspace(0) @f0
!md73 = i32 0
!md74 = ptr addrspace(0) @f2
!md75 = i32 24
!md76 = ptr addrspace(0) @f1
!md77 = ptr addrspace(0) @f3
!md78 = ptr addrspace(0) @f4
!md79 = ptr addrspace(0) @f5
!md80 = ptr addrspace(0) @f6
!md81 = i64 0
!md82 = i64 8
!md83 = !{!md63, !md0, !md64}
!md84 = !{!md65, !md1, !md66}
!md85 = !{!md67, !md2, !md63}
!md86 = !{!md67, !md3, !md68}
!md87 = !{!md67, !md4, !md68}
!md88 = !{!md67, !md5, !md68}
!md89 = !{!md67, !md6, !md69}
!md90 = !{!md67, !md7, !md70}
!md91 = !{!md67, !md8, !md71}
!md92 = !{!md9, !md10, !md11, !md12, !md13}
!md93 = !{!md92}
!md94 = !{!md73, !md14, !md10, !md15, !md12, !md16}
!md95 = !{!md65, !md17, !md18, !md71, !md19, !md73, !md65, !md20, !md21, !md63, !md22, !md71, !md23, !md71, !md10, !md11, !md12, !md24}
!md96 = !{!md94, !md95}
!md97 = !{!md72, !md93, !md96}
!md98 = !{!md73, !md17, !md19, !md73, !md65, !md20, !md21, !md63, !md22, !md71, !md23, !md71, !md10, !md11, !md12, !md13}
!md99 = !{!md65, !md30, !md19, !md65, !md65, !md31, !md10, !md28, !md12, !md29}
!md100 = !{!md63, !md34, !md19, !md63, !md65, !md10, !md32, !md12, !md33}
!md101 = !{!md73, !md70, !md73, !md11, !md13, !md27, !md98, !md70, !md70, !md73, !md28, !md29, !md27, !md99, !md71, !md70, !md73, !md32, !md33, !md27, !md100}
!md102 = !{!md65, !md25, !md18, !md75, !md19, !md73, !md65, !md20, !md21, !md63, !md26, !md101, !md22, !md75, !md23, !md70, !md10, !md35, !md12, !md36}
!md103 = !{!md94, !md102}
!md104 = !{!md74, !md93, !md103}
!md105 = !{!md37, !md73, !md73, !md10, !md38}
!md106 = !{!md105}
!md107 = !{}
!md108 = !{!md76, !md106, !md107}
!md109 = !{!md37, !md73, !md73, !md10, !md11}
!md110 = !{!md109}
!md111 = !{!md73, !md25, !md18, !md75, !md19, !md73, !md65, !md20, !md21, !md63, !md26, !md101, !md22, !md75, !md23, !md70, !md10, !md35, !md12, !md36}
!md112 = !{!md111}
!md113 = !{!md77, !md110, !md112}
!md114 = !{!md73, !md66, !md73, !md15, !md42}
!md115 = !{!md73, !md17, !md19, !md73, !md65, !md41, !md21, !md65, !md26, !md114, !md22, !md66, !md23, !md66, !md10, !md39, !md12, !md40}
!md116 = !{!md73, !md70, !md73, !md39, !md40, !md27, !md115}
!md117 = !{!md73, !md25, !md18, !md70, !md19, !md73, !md65, !md20, !md21, !md63, !md26, !md116, !md22, !md70, !md23, !md70, !md10, !md43, !md12, !md44}
!md118 = !{!md117}
!md119 = !{!md78, !md106, !md118}
!md120 = !{!md115}
!md121 = !{!md79, !md107, !md120}
!md122 = !{!md73, !md47, !md19, !md73, !md65, !md10, !md45, !md12, !md46}
!md123 = !{!md73, !md70, !md73, !md45, !md46, !md27, !md122}
!md124 = !{!md65, !md25, !md18, !md70, !md19, !md65, !md65, !md20, !md21, !md65, !md26, !md123, !md22, !md70, !md23, !md70, !md10, !md48, !md12, !md49}
!md125 = !{!md115, !md124}
!md126 = !{!md80, !md107, !md125}
!md127 = !{!md50}
!md128 = !{!md51}
!md129 = !{!md52}
!md130 = !{!md53}
!md131 = !{!md63, !md70, !md73}
!md132 = !{!md54, !md66, !md73, !md73}
!md133 = !{!md58}
!md134 = !{!md57, !md133, !md81}
!md135 = !{!md56, !md134, !md81}
!md136 = !{!md60, !md134, !md81}
!md137 = !{!md59, !md136, !md81}
!md138 = !{!md61, !md134, !md81}
!"llvm.module.flags" = !{!md83, !md84, !md85, !md86, !md87, !md88, !md89, !md90, !md91}
!"air.vertex" = !{!md97, !md104}
!"air.fragment" = !{!md108, !md113, !md119}
!"air.kernel" = !{!md121, !md126}
!"air.compile_options" = !{!md127, !md128, !md129}
!"llvm.ident" = !{!md130}
!"air.version" = !{!md131}
!"air.language_version" = !{!md132}
