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 <{ <4 x float>, i32, i32 }>
%t6 = type %t4 (i32, i32, ptr addrspace(2))
%t7 = type float (i32)
%t8 = type i32 (<4 x float>, i32, i32)
%t10 = type i32 (<4 x float>, i32, i32, <3 x float>, i32)
%t13 = type i1 (<3 x i1>)
%t15 = type [2 x i32]
c8 = %t15 [27, 0]
c23 = <2 x float> [0x40000000, 0x40000000]
c24 = <2 x float> [0xBF800000, 0xBF800000]
c27 = <4 x i32> [0, 1, poison, poison]
c31 = <4 x float> [poison, poison, 0x3F000000, 0x3F800000]
c32 = <4 x i32> [0, 1, 6, 7]
c35 = <3 x float> [0x3F800000, 0x3F800000, 0x3F800000]

define %t6 @f0 "rt6_layered_vertex" 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" %a2( Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = shl i32 %a0, i32 1
  %i1 = and i32 %i0, i32 2
  %i2 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [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 })](%i1)
  %i3 = insertelement <2 x float> undef, %i2, i64 0
  %i4 = and i32 %a0, i32 2
  %i5 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [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 })](%i4)
  %i6 = insertelement %i3, %i5, i64 1
  %i7 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i6, <2 x float> c23
  %i8 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i7, <2 x float> c24
  %i9 = shufflevector <4 x float> %i8, <2 x float> poison, <0, 1, poison, poison>
  %i10 = shufflevector <4 x float> %i9, <4 x float> c31, <0, 1, 6, 7>
  %i11 = zext %a1 to i64
  %i12 = getelementptr inbounds i32, %a2, %i11
  %i13 = load i32, %i12, align 4
  %i14 = add i32 %a1, i32 1
  %i15 = insertvalue %t4 undef %i10, 0
  %i16 = insertvalue %i15 %i13, 1
  %i17 = insertvalue %i16 %i14, 2
  ret %i17
}

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

define %t8 @f2 "rt6_layered_fragment" memory(NoModRef, 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" {
bb0:
  %i0 = shl i32 %a2, i32 8
  %i1 = or i32 %i0, %a1
  ret %i1
}

define %t10 @f3 "rt6_layered_weights" memory(NoModRef, 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" {
bb0:
  %i0 = fcmp reassoc nnan ninf nsz arcp contract afn oge %a3, <3 x float> zeroinitializer
  %i1 = tail call i1 @f4 [air BoolReduce(BoolReduce { all: true, lanes: 3 })](%i0)
  br %i1, bb1, bb2
bb1:
  %i3 = fcmp reassoc nnan ninf nsz arcp contract afn ole %a3, <3 x float> c35
  %i4 = tail call i1 @f4 [air BoolReduce(BoolReduce { all: true, lanes: 3 })](%i3)
  %i5 = select i32 %i4, i32 8388608, i32 0
  br bb2
bb2:
  %i7 = phi i32 [i32 0, bb0], [%i5, bb1]
  %i8 = shl i32 %a4, i32 16
  %i9 = and i32 %i8, i32 8323072
  %i10 = shl i32 %a2, i32 8
  %i11 = or i32 %i10, %a1
  %i12 = or i32 %i11, %i9
  %i13 = or i32 %i12, %i7
  ret %i13
}

declare %t13 @f4 "air.all.v3i1" memory(NoModRef, NoModRef, NoModRef)
!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.render_target_array_index"
!md15 = !"uint"
!md16 = !"layer"
!md17 = !"air.vertex_output"
!md18 = !"generated(3tagj)"
!md19 = !"tag"
!md20 = !"air.vertex_id"
!md21 = !"vid"
!md22 = !"air.instance_id"
!md23 = !"iid"
!md24 = !"air.buffer"
!md25 = !"air.location_index"
!md26 = !"air.read"
!md27 = !"air.address_space"
!md28 = !"air.arg_type_size"
!md29 = !"air.arg_type_align_size"
!md30 = !"layers"
!md31 = !"air.render_target"
!md32 = !"air.center"
!md33 = !"air.no_perspective"
!md34 = !"air.arg_unused"
!md35 = !"air.fragment_input"
!md36 = !"air.flat"
!md37 = !"air.barycentric_coord"
!md38 = !"air.perspective"
!md39 = !"float3"
!md40 = !"weights"
!md41 = !"air.primitive_id"
!md42 = !"primitive"
!md43 = !"air.compile.denorms_disable"
!md44 = !"air.compile.fast_math_enable"
!md45 = !"air.compile.framebuffer_fetch_enable"
!md46 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md47 = !"Metal"
!md48 = i32 2
!md49 = %t15 c8
!md50 = i32 1
!md51 = i32 4
!md52 = i32 7
!md53 = i32 31
!md54 = i32 128
!md55 = i32 8
!md56 = i32 16
!md57 = ptr addrspace(0) @f0
!md58 = i32 0
!md59 = ptr addrspace(0) @f2
!md60 = ptr addrspace(0) @f3
!md61 = i32 3
!md62 = !{!md48, !md0, !md49}
!md63 = !{!md50, !md1, !md51}
!md64 = !{!md52, !md2, !md48}
!md65 = !{!md52, !md3, !md53}
!md66 = !{!md52, !md4, !md53}
!md67 = !{!md52, !md5, !md53}
!md68 = !{!md52, !md6, !md54}
!md69 = !{!md52, !md7, !md55}
!md70 = !{!md52, !md8, !md56}
!md71 = !{!md9, !md10, !md11, !md12, !md13}
!md72 = !{!md14, !md10, !md15, !md12, !md16}
!md73 = !{!md17, !md18, !md10, !md15, !md12, !md19}
!md74 = !{!md71, !md72, !md73}
!md75 = !{!md58, !md20, !md10, !md15, !md12, !md21}
!md76 = !{!md50, !md22, !md10, !md15, !md12, !md23}
!md77 = !{!md48, !md24, !md25, !md58, !md50, !md26, !md27, !md48, !md28, !md51, !md29, !md51, !md10, !md15, !md12, !md30}
!md78 = !{!md75, !md76, !md77}
!md79 = !{!md57, !md74, !md78}
!md80 = !{!md31, !md58, !md58, !md10, !md15}
!md81 = !{!md80}
!md82 = !{!md58, !md9, !md32, !md33, !md10, !md11, !md12, !md13, !md34}
!md83 = !{!md50, !md14, !md10, !md15, !md12, !md16}
!md84 = !{!md48, !md35, !md18, !md36, !md10, !md15, !md12, !md19}
!md85 = !{!md82, !md83, !md84}
!md86 = !{!md59, !md81, !md85}
!md87 = !{!md61, !md37, !md32, !md38, !md10, !md39, !md12, !md40}
!md88 = !{!md51, !md41, !md10, !md15, !md12, !md42}
!md89 = !{!md82, !md83, !md84, !md87, !md88}
!md90 = !{!md60, !md81, !md89}
!md91 = !{!md43}
!md92 = !{!md44}
!md93 = !{!md45}
!md94 = !{!md46}
!md95 = !{!md48, !md55, !md58}
!md96 = !{!md47, !md51, !md58, !md58}
!"llvm.module.flags" = !{!md62, !md63, !md64, !md65, !md66, !md67, !md68, !md69, !md70}
!"air.vertex" = !{!md79}
!"air.fragment" = !{!md86, !md90}
!"air.compile_options" = !{!md91, !md92, !md93}
!"llvm.ident" = !{!md94}
!"air.version" = !{!md95}
!"air.language_version" = !{!md96}
