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> (i32, ptr addrspace(1))
%t6 = type i32 (i32)
%t8 = type i32 (i16)
%t9 = type i32 ()
%t11 = type <4 x i32> (i32)
%t13 = type i32 (i32, i1)
%t15 = type i64 (i1)
%t16 = type i32 (i32, i16)
%t18 = type [2 x i32]
c13 = %t18 [27, 0]
c26 = <4 x i32> [0, 1, poison, poison]
c30 = <4 x float> [poison, poison, 0x0, 0x3F800000]
c31 = <4 x i32> [0, 1, 6, 7]

define %t5 @f0 "fragment_lanes_vertex" memory(Ref, 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> c30, <0, 1, 6, 7>
  ret %i4
}

define %t6 @f1 "fragment_lane" memory(NoModRef, NoModRef, NoModRef) "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" {
bb0:
  ret %a0
}

define %t8 @f2 "fragment_lane_ushort" memory(NoModRef, NoModRef, NoModRef) "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" {
bb0:
  %i0 = zext %a0 to i32
  ret %i0
}

define %t9 @f3 "fragment_global_lane" memory(NoModRef, NoModRef, NoModRef) "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" {
bb0:
  %i0 = tail call i32 @f4 [air GlobalBuiltin(GlobalBuiltin { var: ThreadIndexInSimdgroup, ty: I32 })]()
  ret %i0
}

declare %t9 @f4 "air.get_thread_index_in_simdgroup.i32" memory(NoModRef, NoModRef, NoModRef)

define %t6 @f5 "fragment_simd_width" memory(NoModRef, NoModRef, NoModRef) "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" {
bb0:
  ret %a0
}

define %t11 @f6 "fragment_lane_shuffles" 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" {
bb0:
  %i0 = tail call i64 @f8 [air Group(Group { scope: Simdgroup, op: Ballot, ty: Some(NumTy { elem: I64, lanes: 1 }), sign: None })](i1 1) convergent
  %i1 = trunc %i0 to i32
  %i2 = tail call i32 @f7 [air Math(Math { f: Ctz { zero_undef: false }, precision: Precise, ty: NumTy { elem: I32, lanes: 1 } })](%i1, i1 0)
  %i3 = insertelement <4 x i32> undef, %a0, i64 0
  %i4 = trunc %a0 to i16
  %i5 = tail call i32 @f9 [air Group(Group { scope: Simdgroup, op: Shuffle, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a0, %i4) convergent
  %i6 = insertelement %i3, %i5, i64 1
  %i7 = insertelement %i6, %i2, i64 2
  %i8 = trunc %i2 to i16
  %i9 = tail call i32 @f9 [air Group(Group { scope: Simdgroup, op: Shuffle, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a0, %i8) convergent
  %i10 = insertelement %i7, %i9, i64 3
  ret %i10
}

declare %t13 @f7 "air.ctz.i32" memory(NoModRef, NoModRef, NoModRef)

declare %t15 @f8 "air.simd_ballot.i64" convergent

declare %t16 @f9 "air.simd_shuffle.u.i32" convergent
!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 = !"positions"
!md24 = !"air.render_target"
!md25 = !"air.thread_index_in_simdgroup"
!md26 = !"lane"
!md27 = !"ushort"
!md28 = !"air.threads_per_simdgroup"
!md29 = !"width"
!md30 = !"uint4"
!md31 = !"air.compile.denorms_disable"
!md32 = !"air.compile.fast_math_enable"
!md33 = !"air.compile.framebuffer_fetch_enable"
!md34 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md35 = !"Metal"
!md36 = i32 2
!md37 = %t18 c13
!md38 = i32 1
!md39 = i32 4
!md40 = i32 7
!md41 = i32 31
!md42 = i32 128
!md43 = i32 8
!md44 = i32 16
!md45 = ptr addrspace(0) @f0
!md46 = i32 0
!md47 = ptr addrspace(0) @f1
!md48 = ptr addrspace(0) @f2
!md49 = ptr addrspace(0) @f3
!md50 = ptr addrspace(0) @f5
!md51 = ptr addrspace(0) @f6
!md52 = i32 3
!md53 = !{!md36, !md0, !md37}
!md54 = !{!md38, !md1, !md39}
!md55 = !{!md40, !md2, !md36}
!md56 = !{!md40, !md3, !md41}
!md57 = !{!md40, !md4, !md41}
!md58 = !{!md40, !md5, !md41}
!md59 = !{!md40, !md6, !md42}
!md60 = !{!md40, !md7, !md43}
!md61 = !{!md40, !md8, !md44}
!md62 = !{!md9, !md10, !md11}
!md63 = !{!md62}
!md64 = !{!md46, !md12, !md10, !md13, !md14, !md15}
!md65 = !{!md38, !md16, !md17, !md46, !md38, !md18, !md19, !md38, !md20, !md43, !md21, !md43, !md10, !md22, !md14, !md23}
!md66 = !{!md64, !md65}
!md67 = !{!md45, !md63, !md66}
!md68 = !{!md24, !md46, !md46, !md10, !md13}
!md69 = !{!md68}
!md70 = !{!md46, !md25, !md10, !md13, !md14, !md26}
!md71 = !{!md70}
!md72 = !{!md47, !md69, !md71}
!md73 = !{!md46, !md25, !md10, !md27, !md14, !md26}
!md74 = !{!md73}
!md75 = !{!md48, !md69, !md74}
!md76 = !{}
!md77 = !{!md49, !md69, !md76}
!md78 = !{!md46, !md28, !md10, !md13, !md14, !md29}
!md79 = !{!md78}
!md80 = !{!md50, !md69, !md79}
!md81 = !{!md24, !md46, !md46, !md10, !md30}
!md82 = !{!md81}
!md83 = !{!md51, !md82, !md71}
!md84 = !{!md31}
!md85 = !{!md32}
!md86 = !{!md33}
!md87 = !{!md34}
!md88 = !{!md36, !md43, !md46}
!md89 = !{!md35, !md52, !md38, !md46}
!"llvm.module.flags" = !{!md53, !md54, !md55, !md56, !md57, !md58, !md59, !md60, !md61}
!"air.vertex" = !{!md67}
!"air.fragment" = !{!md72, !md75, !md77, !md80, !md83}
!"air.compile_options" = !{!md84, !md85, !md86}
!"llvm.ident" = !{!md87}
!"air.version" = !{!md88}
!"air.language_version" = !{!md89}
