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 (i32, ptr addrspace(1), ptr addrspace(1))
%t7 = type i64 (i1)
%t9 = type float (float)
%t11 = type float (float, i16)
%t13 = type [2 x i32]
c8 = %t13 [27, 0]

define %t4 @f0 "simd_functions_in_a_vertex_function" convergent "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" %a1( Ref nocapture "air-buffer-no-alias"="" ) %a2( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a0 to i64
  %i1 = getelementptr inbounds float, %a1, %i0
  %i2 = load float, %i1, align 4
  %i3 = tail call reassoc nnan ninf nsz arcp contract afn float @f2 [air Group(Group { scope: Simdgroup, op: Sum, ty: Some(NumTy { elem: F32, lanes: 1 }), sign: None })](%i2) convergent
  %i4 = tail call reassoc nnan ninf nsz arcp contract afn float @f3 [air Group(Group { scope: Simdgroup, op: Shuffle, ty: Some(NumTy { elem: F32, lanes: 1 }), sign: None })](%i2, i16 5) convergent
  %i5 = tail call reassoc nnan ninf nsz arcp contract afn float @f4 [air Group(Group { scope: Simdgroup, op: ShuffleXor, ty: Some(NumTy { elem: F32, lanes: 1 }), sign: None })](%i2, i16 1) convergent
  %i6 = fcmp reassoc nnan ninf nsz arcp contract afn ogt %i2, float 0x0
  %i7 = tail call i64 @f1 [air Group(Group { scope: Simdgroup, op: Ballot, ty: Some(NumTy { elem: I64, lanes: 1 }), sign: None })](%i6) convergent
  %i8 = mul i32 %a0, i32 5
  %i9 = zext %i8 to i64
  %i10 = getelementptr inbounds i32, %a2, %i9
  %i11 = bitcast %i10 to ptr addrspace(1)
  store %i3, %i11, align 4
  %i13 = add i32 %i8, i32 1
  %i14 = zext %i13 to i64
  %i15 = getelementptr inbounds i32, %a2, %i14
  %i16 = bitcast %i15 to ptr addrspace(1)
  store %i4, %i16, align 4
  %i18 = add i32 %i8, i32 2
  %i19 = zext %i18 to i64
  %i20 = getelementptr inbounds i32, %a2, %i19
  %i21 = bitcast %i20 to ptr addrspace(1)
  store %i5, %i21, align 4
  %i23 = trunc %i7 to i32
  %i24 = add i32 %i8, i32 3
  %i25 = zext %i24 to i64
  %i26 = getelementptr inbounds i32, %a2, %i25
  store %i23, %i26, align 4
  %i28 = lshr i64 %i7, i64 32
  %i29 = trunc %i28 to i32
  %i30 = add i32 %i8, i32 4
  %i31 = zext %i30 to i64
  %i32 = getelementptr inbounds i32, %a2, %i31
  store %i29, %i32, align 4
  ret void
}

declare %t7 @f1 "air.simd_ballot.i64" convergent

declare %t9 @f2 "air.simd_sum.f32" convergent

declare %t11 @f3 "air.simd_shuffle.f32" convergent

declare %t11 @f4 "air.simd_shuffle_xor.f32" 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.vertex_id"
!md10 = !"air.arg_type_name"
!md11 = !"uint"
!md12 = !"air.arg_name"
!md13 = !"vid"
!md14 = !"air.buffer"
!md15 = !"air.location_index"
!md16 = !"air.read"
!md17 = !"air.address_space"
!md18 = !"air.arg_type_size"
!md19 = !"air.arg_type_align_size"
!md20 = !"float"
!md21 = !"in"
!md22 = !"air.read_write"
!md23 = !"out"
!md24 = !"air.compile.denorms_disable"
!md25 = !"air.compile.fast_math_enable"
!md26 = !"air.compile.framebuffer_fetch_enable"
!md27 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md28 = !"Metal"
!md29 = i32 2
!md30 = %t13 c8
!md31 = i32 1
!md32 = i32 4
!md33 = i32 7
!md34 = i32 31
!md35 = i32 128
!md36 = i32 8
!md37 = i32 16
!md38 = ptr addrspace(0) @f0
!md39 = i32 0
!md40 = !{!md29, !md0, !md30}
!md41 = !{!md31, !md1, !md32}
!md42 = !{!md33, !md2, !md29}
!md43 = !{!md33, !md3, !md34}
!md44 = !{!md33, !md4, !md34}
!md45 = !{!md33, !md5, !md34}
!md46 = !{!md33, !md6, !md35}
!md47 = !{!md33, !md7, !md36}
!md48 = !{!md33, !md8, !md37}
!md49 = !{}
!md50 = !{!md39, !md9, !md10, !md11, !md12, !md13}
!md51 = !{!md31, !md14, !md15, !md39, !md31, !md16, !md17, !md31, !md18, !md32, !md19, !md32, !md10, !md20, !md12, !md21}
!md52 = !{!md29, !md14, !md15, !md31, !md31, !md22, !md17, !md31, !md18, !md32, !md19, !md32, !md10, !md11, !md12, !md23}
!md53 = !{!md50, !md51, !md52}
!md54 = !{!md38, !md49, !md53}
!md55 = !{!md24}
!md56 = !{!md25}
!md57 = !{!md26}
!md58 = !{!md27}
!md59 = !{!md29, !md36, !md39}
!md60 = !{!md28, !md32, !md39, !md39}
!"llvm.module.flags" = !{!md40, !md41, !md42, !md43, !md44, !md45, !md46, !md47, !md48}
!"air.vertex" = !{!md54}
!"air.compile_options" = !{!md55, !md56, !md57}
!"llvm.ident" = !{!md58}
!"air.version" = !{!md59}
!"air.language_version" = !{!md60}
