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>, <3 x float>, <2 x float> }>
%t9 = type %t5 (i32, ptr addrspace(1), ptr addrspace(2))
%t10 = type <4 x float> (<4 x float>, <3 x float>, <2 x float>)
%t11 = type float (float)
%t12 = type float (<3 x float>, <3 x float>)
%t14 = type [2 x i32]
%t16 = type [4 x <4 x float>]
%t17 = type { %t16 } ; "struct.metal::matrix"
%t18 = type { %t17, %t17, %t17 } ; "struct.RchVertexMathUniforms"
c7 = %t14 [27, 0]
c24 = <4 x i32> [1, 1, 1, 1]
c26 = <4 x i32> [2, 2, 2, 2]
c28 = <4 x i32> [3, 3, 3, 3]
c29 = <3 x i32> [0, 1, 2]
c31 = <3 x i32> [1, 1, 1]
c32 = <3 x i32> [2, 2, 2]
c34 = <2 x i32> [0, 1]
c35 = <2 x float> [0x3F000000, 0x3F000000]
c37 = <3 x float> [0x3F000000, 0x3F000000, 0x3F000000]
c39 = <4 x i32> [0, 1, 2, poison]

define %t9 @f0 "rch_vertex_math" 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"="" ) %a2( align 16 dereferenceable(192) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a0 to i64
  %i1 = getelementptr inbounds <4 x float>, %a1, %i0
  %i2 = load <4 x float>, %i1, align 16
  %i3 = getelementptr inbounds %t18, %a2, i64 0, i32 0, i32 0, i64 0
  %i4 = load <4 x float>, %i3, align 16
  %i5 = shufflevector <4 x float> %i2, <4 x float> poison, <0, 0, 0, 0>
  %i6 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i4, %i5
  %i7 = getelementptr inbounds %t18, %a2, i64 0, i32 0, i32 0, i64 1
  %i8 = load <4 x float>, %i7, align 16
  %i9 = shufflevector <4 x float> %i2, <4 x float> undef, <1, 1, 1, 1>
  %i10 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i8, %i9
  %i11 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i10, %i6
  %i12 = getelementptr inbounds %t18, %a2, i64 0, i32 0, i32 0, i64 2
  %i13 = load <4 x float>, %i12, align 16
  %i14 = shufflevector <4 x float> %i2, <4 x float> undef, <2, 2, 2, 2>
  %i15 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i13, %i14
  %i16 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i11, %i15
  %i17 = getelementptr inbounds %t18, %a2, i64 0, i32 0, i32 0, i64 3
  %i18 = load <4 x float>, %i17, align 16
  %i19 = shufflevector <4 x float> %i2, <4 x float> undef, <3, 3, 3, 3>
  %i20 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i18, %i19
  %i21 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i16, %i20
  %i22 = getelementptr inbounds %t18, %a2, i64 0, i32 1, i32 0, i64 0
  %i23 = load <4 x float>, %i22, align 16
  %i24 = shufflevector <4 x float> %i21, <4 x float> poison, <0, 0, 0, 0>
  %i25 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i24, %i23
  %i26 = getelementptr inbounds %t18, %a2, i64 0, i32 1, i32 0, i64 1
  %i27 = load <4 x float>, %i26, align 16
  %i28 = shufflevector <4 x float> %i21, <4 x float> undef, <1, 1, 1, 1>
  %i29 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i28, %i27
  %i30 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i25, %i29
  %i31 = getelementptr inbounds %t18, %a2, i64 0, i32 1, i32 0, i64 2
  %i32 = load <4 x float>, %i31, align 16
  %i33 = shufflevector <4 x float> %i21, <4 x float> undef, <2, 2, 2, 2>
  %i34 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i32, %i33
  %i35 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i30, %i34
  %i36 = getelementptr inbounds %t18, %a2, i64 0, i32 1, i32 0, i64 3
  %i37 = load <4 x float>, %i36, align 16
  %i38 = shufflevector <4 x float> %i21, <4 x float> undef, <3, 3, 3, 3>
  %i39 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i37, %i38
  %i40 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i35, %i39
  %i41 = getelementptr inbounds %t18, %a2, i64 0, i32 2, i32 0, i64 0
  %i42 = load <4 x float>, %i41, align 16
  %i43 = shufflevector <4 x float> %i40, <4 x float> poison, <0, 0, 0, 0>
  %i44 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i43, %i42
  %i45 = getelementptr inbounds %t18, %a2, i64 0, i32 2, i32 0, i64 1
  %i46 = load <4 x float>, %i45, align 16
  %i47 = shufflevector <4 x float> %i40, <4 x float> undef, <1, 1, 1, 1>
  %i48 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i47, %i46
  %i49 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i44, %i48
  %i50 = getelementptr inbounds %t18, %a2, i64 0, i32 2, i32 0, i64 2
  %i51 = load <4 x float>, %i50, align 16
  %i52 = shufflevector <4 x float> %i40, <4 x float> undef, <2, 2, 2, 2>
  %i53 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i52, %i51
  %i54 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i49, %i53
  %i55 = getelementptr inbounds %t18, %a2, i64 0, i32 2, i32 0, i64 3
  %i56 = load <4 x float>, %i55, align 16
  %i57 = shufflevector <4 x float> %i40, <4 x float> undef, <3, 3, 3, 3>
  %i58 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i56, %i57
  %i59 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i54, %i58
  %i60 = shufflevector <3 x float> %i4, <4 x float> poison, <0, 1, 2>
  %i61 = shufflevector <3 x float> %i8, <4 x float> poison, <0, 1, 2>
  %i62 = shufflevector <3 x float> %i13, <4 x float> poison, <0, 1, 2>
  %i63 = shufflevector <3 x float> %i2, <4 x float> undef, <0, 0, 0>
  %i64 = fmul reassoc nnan ninf nsz arcp contract afn <3 x float> %i60, %i63
  %i65 = shufflevector <3 x float> %i2, <4 x float> undef, <1, 1, 1>
  %i66 = fmul reassoc nnan ninf nsz arcp contract afn <3 x float> %i61, %i65
  %i67 = fadd reassoc nnan ninf nsz arcp contract afn <3 x float> %i66, %i64
  %i68 = shufflevector <3 x float> %i2, <4 x float> undef, <2, 2, 2>
  %i69 = fmul reassoc nnan ninf nsz arcp contract afn <3 x float> %i62, %i68
  %i70 = fadd reassoc nnan ninf nsz arcp contract afn <3 x float> %i67, %i69
  %i71 = tail call reassoc nnan ninf nsz arcp contract afn float @f3 [air Math(Math { f: Dot, precision: Precise, ty: NumTy { elem: F32, lanes: 3 } })](%i70, %i70)
  %i72 = tail call reassoc nnan ninf nsz arcp contract afn float @f2 [air Math(Math { f: Rsqrt, precision: Fast, ty: NumTy { elem: F32, lanes: 1 } })](%i71)
  %i73 = insertelement <3 x float> poison, %i72, i64 0
  %i74 = shufflevector <3 x float> %i73, <3 x float> poison, <0, 0, 0>
  %i75 = fmul reassoc nnan ninf nsz arcp contract afn <3 x float> %i74, %i70
  %i76 = shufflevector <2 x float> %i21, <4 x float> poison, <0, 1>
  %i77 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i76, <2 x float> c35
  %i78 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i77, <2 x float> c35
  %i79 = insertvalue %t5 undef %i59, 0
  %i80 = insertvalue %i79 %i75, 1
  %i81 = insertvalue %i80 %i78, 2
  ret %i81
}

define %t10 @f1 "rch_vertex_math_color" 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 = fmul reassoc nnan ninf nsz arcp contract afn <3 x float> %a1, <3 x float> c37
  %i1 = fadd reassoc nnan ninf nsz arcp contract afn <3 x float> %i0, <3 x float> c37
  %i2 = shufflevector <4 x float> %i1, <3 x float> poison, <0, 1, 2, poison>
  %i3 = insertelement %i2, float 0x3F800000, i64 3
  ret %i3
}

declare %t11 @f2 "air.fast_rsqrt.f32" memory(NoModRef, NoModRef, NoModRef)

declare %t12 @f3 "air.dot.v3f32" 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.vertex_output"
!md15 = !"generated(6normalDv3_f)"
!md16 = !"float3"
!md17 = !"normal"
!md18 = !"generated(2uvDv2_f)"
!md19 = !"float2"
!md20 = !"uv"
!md21 = !"air.vertex_id"
!md22 = !"uint"
!md23 = !"vid"
!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 = !"positions"
!md31 = !"air.buffer_size"
!md32 = !"air.struct_type_info"
!md33 = !"float4x4"
!md34 = !"model"
!md35 = !"view"
!md36 = !"projection"
!md37 = !"RchVertexMathUniforms"
!md38 = !"u"
!md39 = !"air.render_target"
!md40 = !"air.center"
!md41 = !"air.no_perspective"
!md42 = !"air.arg_unused"
!md43 = !"air.fragment_input"
!md44 = !"air.perspective"
!md45 = !"air.compile.denorms_disable"
!md46 = !"air.compile.fast_math_enable"
!md47 = !"air.compile.framebuffer_fetch_enable"
!md48 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md49 = !"Metal"
!md50 = i32 2
!md51 = %t14 c7
!md52 = i32 1
!md53 = i32 4
!md54 = i32 7
!md55 = i32 31
!md56 = i32 128
!md57 = i32 8
!md58 = i32 16
!md59 = ptr addrspace(0) @f0
!md60 = i32 0
!md61 = i32 192
!md62 = i32 64
!md63 = ptr addrspace(0) @f1
!md64 = !{!md50, !md0, !md51}
!md65 = !{!md52, !md1, !md53}
!md66 = !{!md54, !md2, !md50}
!md67 = !{!md54, !md3, !md55}
!md68 = !{!md54, !md4, !md55}
!md69 = !{!md54, !md5, !md55}
!md70 = !{!md54, !md6, !md56}
!md71 = !{!md54, !md7, !md57}
!md72 = !{!md54, !md8, !md58}
!md73 = !{!md9, !md10, !md11, !md12, !md13}
!md74 = !{!md14, !md15, !md10, !md16, !md12, !md17}
!md75 = !{!md14, !md18, !md10, !md19, !md12, !md20}
!md76 = !{!md73, !md74, !md75}
!md77 = !{!md60, !md21, !md10, !md22, !md12, !md23}
!md78 = !{!md52, !md24, !md25, !md60, !md52, !md26, !md27, !md52, !md28, !md58, !md29, !md58, !md10, !md11, !md12, !md30}
!md79 = !{!md60, !md62, !md60, !md33, !md34, !md62, !md62, !md60, !md33, !md35, !md56, !md62, !md60, !md33, !md36}
!md80 = !{!md50, !md24, !md31, !md61, !md25, !md52, !md52, !md26, !md27, !md50, !md32, !md79, !md28, !md61, !md29, !md58, !md10, !md37, !md12, !md38}
!md81 = !{!md77, !md78, !md80}
!md82 = !{!md59, !md76, !md81}
!md83 = !{!md39, !md60, !md60, !md10, !md11}
!md84 = !{!md83}
!md85 = !{!md60, !md9, !md40, !md41, !md10, !md11, !md12, !md13, !md42}
!md86 = !{!md52, !md43, !md15, !md40, !md44, !md10, !md16, !md12, !md17}
!md87 = !{!md50, !md43, !md18, !md40, !md44, !md10, !md19, !md12, !md20, !md42}
!md88 = !{!md85, !md86, !md87}
!md89 = !{!md63, !md84, !md88}
!md90 = !{!md45}
!md91 = !{!md46}
!md92 = !{!md47}
!md93 = !{!md48}
!md94 = !{!md50, !md57, !md60}
!md95 = !{!md49, !md53, !md60, !md60}
!"llvm.module.flags" = !{!md64, !md65, !md66, !md67, !md68, !md69, !md70, !md71, !md72}
!"air.vertex" = !{!md82}
!"air.fragment" = !{!md89}
!"air.compile_options" = !{!md90, !md91, !md92}
!"llvm.ident" = !{!md93}
!"air.version" = !{!md94}
!"air.language_version" = !{!md95}
