target triple = "air64_v18-apple-macosx10.11.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>, <2 x float> }>
%t6 = type %t4 (i32)
%t7 = type float (i32)
%t8 = type <4 x float> (<4 x float>, <2 x float>)
%t13 = type void (ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(3), <2 x i32>, i32)
%t14 = type i32 (float)
%t15 = type void (i32, i32)
%t16 = type i32 (ptr addrspace(1), i32)
%t17 = type float (ptr addrspace(1), i32, <2 x i32>, i32)
%t18 = type <4 x float> (ptr addrspace(1), <2 x i32>, i32)
%t19 = type void (ptr addrspace(1), <2 x i32>, <4 x float>, i32)
%t20 = type i32 (ptr addrspace(1), i32, i32, i32)
%t22 = type [2 x i32]
%t25 = type { i32 } ; "struct.metal::_atomic"
c16 = %t22 [27, 0]
c29 = <2 x float> [0x40000000, 0x40000000]
c30 = <2 x float> [0xBF800000, 0xBF800000]
c33 = <4 x i32> [0, 1, poison, poison]
c37 = <4 x float> [poison, poison, 0x0, 0x3F800000]
c38 = <4 x i32> [0, 1, 6, 7]
c41 = <4 x i32> [0, 1, 6, 3]

define %t6 @f0 "a18_vs" 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 = and i32 %a0, i32 1
  %i1 = 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 })](%i0)
  %i2 = insertelement <2 x float> undef, %i1, i64 0
  %i3 = lshr i32 %a0, i32 1
  %i4 = and i32 %i3, i32 1
  %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 %i2, %i5, i64 1
  %i7 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i6, <2 x float> c29
  %i8 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i7, <2 x float> c30
  %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 %t4 undef %i10, 0
  %i12 = insertvalue %i11 %i6, 1
  ret %i12
}

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

define %t8 @f2 "a18_fs" 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 = shufflevector <4 x float> %a1, <2 x float> poison, <0, 1, poison, poison>
  %i1 = insertelement %i0, float 0x3F800000, i64 3
  %i2 = shufflevector <4 x float> %i1, %a0, <0, 1, 6, 3>
  ret %i2
}

define %t13 @f3 "a18_blit" 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" %a3( nocapture ) %a4( Mod nocapture ) %a5( nocapture ) {
bb0:
  %i0 = tail call i32 @f6 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true, device_coherent: false })](%a0, i32 0) arg0( Ref nocapture )
  store %i0, %a4, align 4
  %i2 = tail call i32 @f7 [air Texture(Texture { op: Query(Height), image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true, device_coherent: false })](%a0, i32 0) arg0( Ref nocapture )
  %i3 = getelementptr inbounds i32, %a4, i64 1
  store %i2, %i3, align 4
  %i5 = tail call reassoc nnan ninf nsz arcp contract afn float @f8 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: true }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 1 }, sign: None }), coord16: false, form: Legacy, status: false, access: None, states_access: false, device_coherent: false })](%a2, i32 1, %a6, i32 0) arg0( Ref nocapture )
  %i6 = zext %a7 to i64
  %i7 = getelementptr inbounds float, %a5, %i6
  store %i5, %i7, align 4
  tail call void @f5 [air Sync(Barrier { name: Threadgroup, flags: MemFlags { device: false, threadgroup: true, texture: false, threadgroup_imageblock: false, object_data: false }, order: None, scope: Threadgroup, memory: Threadgroup })](i32 2, i32 1) convergent
  %i10 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f9 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Legacy, status: false, access: None, states_access: false, device_coherent: false })](%a0, %a6, i32 0) arg0( Ref nocapture )
  %i11 = load float, %i7, align 4
  %i12 = insertelement <4 x float> poison, %i11, i64 0
  %i13 = shufflevector <4 x float> %i12, <4 x float> poison, <0, 0, 0, 0>
  %i14 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i13, %i10
  tail call void @f10 [air Texture(Texture { op: Write, 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: None, states_access: false, device_coherent: false })](%a1, %a6, %i14, i32 0) arg0( nocapture )
  %i16 = getelementptr inbounds %t25, %a3, i64 0, i32 0
  %i17 = tail call i32 @f11 [air Atomic(Atomic { space: Global, op: Add, sign: Some(Unsigned), ty: NumTy { elem: I32, lanes: 1 }, order: Relaxed, failure: None, scope: Device, volatile: false, fetch: true, flags: None, stated_volatile: false })](%i16, i32 1, i32 0, i32 2) arg0( nocapture )
  %i18 = extractelement %i14, i64 0
  %i19 = tail call i32 @f4 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 1 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 1 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i18)
  %i20 = tail call i32 @f12 [air Atomic(Atomic { space: Global, op: Max, sign: Some(Unsigned), ty: NumTy { elem: I32, lanes: 1 }, order: Relaxed, failure: None, scope: Device, volatile: false, fetch: true, flags: None, stated_volatile: false })](%i16, %i19, i32 0, i32 2) arg0( nocapture )
  ret void
}

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

declare %t15 @f5 "air.wg.barrier" convergent

declare %t16 @f6 "air.get_width_texture_2d" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t16 @f7 "air.get_height_texture_2d" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t17 @f8 "air.read_depth_2d.f32" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t18 @f9 "air.read_texture_2d.v4f32" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t19 @f10 "air.write_texture_2d.v4f32" memory(ModRef, NoModRef, NoModRef) %a0( nocapture )

declare %t20 @f11 "air.atomic.global.add.u.i32" %a0( nocapture )

declare %t20 @f12 "air.atomic.global.max.u.i32" %a0( nocapture )
!md0 = !"SDK Version"
!md1 = !"wchar_size"
!md2 = !"frame-pointer"
!md3 = !"air.position"
!md4 = !"air.arg_type_name"
!md5 = !"float4"
!md6 = !"air.arg_name"
!md7 = !"pos"
!md8 = !"air.vertex_output"
!md9 = !"generated(2uvDv2_f)"
!md10 = !"float2"
!md11 = !"uv"
!md12 = !"air.vertex_id"
!md13 = !"uint"
!md14 = !"vid"
!md15 = !"air.render_target"
!md16 = !"air.center"
!md17 = !"air.no_perspective"
!md18 = !"air.fragment_input"
!md19 = !"air.perspective"
!md20 = !"air.texture"
!md21 = !"air.location_index"
!md22 = !"air.read"
!md23 = !"texture2d<float, read>"
!md24 = !"src"
!md25 = !"air.write"
!md26 = !"texture2d<float, write>"
!md27 = !"dst"
!md28 = !"depth2d<float, read>"
!md29 = !"depth"
!md30 = !"air.buffer"
!md31 = !"air.read_write"
!md32 = !"air.struct_type_info"
!md33 = !"__s"
!md34 = !"air.arg_type_size"
!md35 = !"air.arg_type_align_size"
!md36 = !"metal::_atomic"
!md37 = !"counter"
!md38 = !"sizes"
!md39 = !"float"
!md40 = !"scratch"
!md41 = !"air.thread_position_in_grid"
!md42 = !"uint2"
!md43 = !"gid"
!md44 = !"air.thread_index_in_threadgroup"
!md45 = !"tid"
!md46 = !"air.compile.denorms_disable"
!md47 = !"air.compile.fast_math_enable"
!md48 = !"air.compile.framebuffer_fetch_disable"
!md49 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md50 = !"Metal"
!md51 = i32 2
!md52 = %t22 c16
!md53 = i32 1
!md54 = i32 4
!md55 = i32 7
!md56 = ptr addrspace(0) @f0
!md57 = i32 0
!md58 = ptr addrspace(0) @f2
!md59 = ptr addrspace(0) @f3
!md60 = i32 3
!md61 = i32 5
!md62 = i32 6
!md63 = i32 8
!md64 = !{!md51, !md0, !md52}
!md65 = !{!md53, !md1, !md54}
!md66 = !{!md55, !md2, !md51}
!md67 = !{!md3, !md4, !md5, !md6, !md7}
!md68 = !{!md8, !md9, !md4, !md10, !md6, !md11}
!md69 = !{!md67, !md68}
!md70 = !{!md57, !md12, !md4, !md13, !md6, !md14}
!md71 = !{!md70}
!md72 = !{!md56, !md69, !md71}
!md73 = !{!md15, !md57, !md4, !md5}
!md74 = !{!md73}
!md75 = !{!md57, !md3, !md16, !md17, !md4, !md5, !md6, !md7}
!md76 = !{!md53, !md18, !md9, !md16, !md19, !md4, !md10, !md6, !md11}
!md77 = !{!md75, !md76}
!md78 = !{!md58, !md74, !md77}
!md79 = !{}
!md80 = !{!md57, !md20, !md21, !md57, !md53, !md22, !md4, !md23, !md6, !md24}
!md81 = !{!md53, !md20, !md21, !md53, !md53, !md25, !md4, !md26, !md6, !md27}
!md82 = !{!md51, !md20, !md21, !md51, !md53, !md22, !md4, !md28, !md6, !md29}
!md83 = !{!md57, !md54, !md57, !md13, !md33}
!md84 = !{!md60, !md30, !md21, !md57, !md53, !md31, !md32, !md83, !md34, !md54, !md35, !md54, !md4, !md36, !md6, !md37}
!md85 = !{!md54, !md30, !md21, !md53, !md53, !md31, !md34, !md54, !md35, !md54, !md4, !md13, !md6, !md38}
!md86 = !{!md61, !md30, !md21, !md57, !md53, !md31, !md34, !md54, !md35, !md54, !md4, !md39, !md6, !md40}
!md87 = !{!md62, !md41, !md4, !md42, !md6, !md43}
!md88 = !{!md55, !md44, !md4, !md13, !md6, !md45}
!md89 = !{!md80, !md81, !md82, !md84, !md85, !md86, !md87, !md88}
!md90 = !{!md59, !md79, !md89}
!md91 = !{!md46}
!md92 = !{!md47}
!md93 = !{!md48}
!md94 = !{!md49}
!md95 = !{!md53, !md63, !md57}
!md96 = !{!md50, !md53, !md53, !md57}
!"llvm.module.flags" = !{!md64, !md65, !md66}
!"air.vertex" = !{!md72}
!"air.fragment" = !{!md78}
!"air.kernel" = !{!md90}
!"air.compile_options" = !{!md91, !md92, !md93}
!"llvm.ident" = !{!md94}
!"air.version" = !{!md95}
!"air.language_version" = !{!md96}
