target triple = "air64_v29-apple-macosx27.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 (ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), i32)
%t6 = type void (ptr addrspace(1), ptr addrspace(1), ptr addrspace(3), i32, i32)
%t8 = type void (ptr addrspace(1), ptr addrspace(1), <2 x i32>)
%t11 = type <4 x float> (<4 x float>, ptr addrspace(0))
%t13 = type <4 x float> (<4 x float>, <4 x i32>)
%t14 = type void (i32, i32, i32)
%t16 = type i32 (ptr addrspace(1), i32, i32, i32, i32, i1)
%t17 = type i32 (ptr addrspace(1), i32, i32, i32, i1)
%t19 = type ptr addrspace(2) ()
%t21 = type { <4 x float>, i8 }
%t22 = type %t21 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32)
%t23 = type void (ptr addrspace(1), <2 x i32>, <4 x float>, i32, i32)
%t26 = type [2 x i32]
%t27 = type { i32 } ; "struct.metal::_atomic"
c15 = %t26 [27, 0]

define %t4 @f0 "a29_split_floats" memory(ModRef, 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" %a0( Ref nocapture "air-buffer-no-alias"="" ) %a1( Mod nocapture "air-buffer-no-alias"="" ) %a2( Mod nocapture "air-buffer-no-alias"="" ) %a3( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = alloca <4 x i32>, i32 1, align 16
  %i1 = bitcast %i0 to ptr addrspace(0)
  %i2 = zext %a4 to i64
  %i3 = getelementptr inbounds <4 x float>, %a0, %i2
  %i4 = load <4 x float>, %i3, align 16
  %i5 = call reassoc nnan ninf nsz arcp contract afn <4 x float> @f3 [air Math(Math { f: Frexp, precision: Precise, ty: NumTy { elem: F32, lanes: 4 } })](%i4, %i0) arg1( Mod nocapture )
  %i6 = getelementptr inbounds <4 x float>, %a1, %i2
  store %i5, %i6, align 16
  %i8 = load <4 x i32>, %i0, align 16
  %i9 = getelementptr inbounds <4 x i32>, %a2, %i2
  store %i8, %i9, align 16
  %i11 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f4 [air Math(Math { f: Ldexp, precision: Fast, ty: NumTy { elem: F32, lanes: 4 } })](%i5, %i8)
  %i12 = getelementptr inbounds <4 x float>, %a3, %i2
  store %i11, %i12, align 16
  ret void
}

define %t6 @f1 "a29_atomics_and_barrier" 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" %a0( nocapture "air-buffer-no-alias"="" ) %a1( Mod nocapture "air-buffer-no-alias"="" ) %a2( nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a4 to i64
  %i1 = getelementptr inbounds i32, %a2, %i0
  store %a4, %i1, align 4
  tail call void @f5 [air Sync(Barrier { name: Threadgroup, flags: MemFlags { device: true, threadgroup: true, texture: false, threadgroup_imageblock: false, object_data: false }, order: Some(SeqCst), scope: Threadgroup, memory: Threadgroup })](i32 3, i32 5, i32 1) convergent
  %i4 = load i32, %i1, align 4
  %i5 = getelementptr inbounds %t27, %a0, i64 0, i32 0
  %i6 = tail call i32 @f6 [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: Some(MemFlags { device: false, threadgroup: false, texture: false, threadgroup_imageblock: false, object_data: false }), stated_volatile: true })](%i5, %i4, i32 0, i32 2, i32 0, i1 0) arg0( nocapture )
  %i7 = tail call i32 @f7 [air Atomic(Atomic { space: Global, op: Or, sign: Some(Unsigned), ty: NumTy { elem: I32, lanes: 1 }, order: Relaxed, failure: None, scope: Device, volatile: false, fetch: true, flags: Some(MemFlags { device: false, threadgroup: false, texture: false, threadgroup_imageblock: false, object_data: false }), stated_volatile: true })](%i5, i32 1, i32 0, i32 2, i32 0, i1 0) arg0( nocapture )
  %i8 = tail call i32 @f8 [air Atomic(Atomic { space: Global, op: Load, sign: None, ty: NumTy { elem: I32, lanes: 1 }, order: Relaxed, failure: None, scope: Device, volatile: false, fetch: true, flags: Some(MemFlags { device: false, threadgroup: false, texture: false, threadgroup_imageblock: false, object_data: false }), stated_volatile: true })](%i5, i32 0, i32 2, i32 0, i1 0) arg0( nocapture )
  %i9 = add i32 %i8, %i6
  %i10 = zext %a3 to i64
  %i11 = getelementptr inbounds i32, %a1, %i10
  store %i9, %i11, align 4
  ret void
}

define %t8 @f2 "a29_read_texels" "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" %a0( Ref nocapture ) %a1( nocapture ) {
bb0:
  %i0 = tail call ptr addrspace(2) @f9 [air Sampler(GetReadSampler)]()
  %i1 = tail call %t21 @f10 [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: Current, status: true, access: Some(Read), states_access: true })](%a0, %i0, %a2, <2 x i32> zeroinitializer, i32 0, i32 1) arg0( Ref nocapture )
  %i2 = extractvalue <4 x float> %i1, 0
  tail call void @f11 [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: Some(Write), states_access: true })](%a1, %a2, %i2, i32 0, i32 2) arg0( nocapture )
  ret void
}

declare %t11 @f3 "air.frexp.v4f32" memory(ModRef, NoModRef, NoModRef) %a1( Mod nocapture )

declare %t13 @f4 "air.fast_ldexp.v4f32" memory(NoModRef, NoModRef, NoModRef)

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

declare %t16 @f6 "air.atomic.global.add.u.i32" %a0( nocapture )

declare %t16 @f7 "air.atomic.global.or.u.i32" %a0( nocapture )

declare %t17 @f8 "air.atomic.global.load.i32" %a0( nocapture )

declare %t19 @f9 "air.get_read_sampler" memory(NoModRef, Ref, NoModRef)

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

declare %t23 @f11 "air.write_texture_2d.v4f32" memory(ModRef, NoModRef, NoModRef) %a0( nocapture )
!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.buffer"
!md10 = !"air.location_index"
!md11 = !"air.read"
!md12 = !"air.address_space"
!md13 = !"air.arg_type_size"
!md14 = !"air.arg_type_align_size"
!md15 = !"air.arg_type_name"
!md16 = !"float4"
!md17 = !"air.arg_name"
!md18 = !"in"
!md19 = !"air.read_write"
!md20 = !"mantissas"
!md21 = !"int4"
!md22 = !"exponents"
!md23 = !"rebuilt"
!md24 = !"air.thread_position_in_grid"
!md25 = !"uint"
!md26 = !"i"
!md27 = !"air.struct_type_info"
!md28 = !"__s"
!md29 = !"metal::_atomic"
!md30 = !"counter"
!md31 = !"out"
!md32 = !"scratch"
!md33 = !"air.thread_index_in_threadgroup"
!md34 = !"tid"
!md35 = !"air.texture"
!md36 = !"texture2d<float, read>"
!md37 = !"src"
!md38 = !"air.write"
!md39 = !"texture2d<float, write>"
!md40 = !"dst"
!md41 = !"uint2"
!md42 = !"gid"
!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 = !"omnipotent char"
!md49 = !"Simple C++ TBAA"
!md50 = !"air-alias-scope-arg(0)"
!md51 = !"air-alias-scope-arg(2)"
!md52 = !"air-alias-scope-arg(1)"
!md53 = !"int"
!md54 = i32 2
!md55 = %t26 c15
!md56 = i32 1
!md57 = i32 4
!md58 = i32 7
!md59 = i32 31
!md60 = i32 128
!md61 = i32 8
!md62 = i32 16
!md63 = ptr addrspace(0) @f0
!md64 = i32 0
!md65 = i32 3
!md66 = ptr addrspace(0) @f1
!md67 = ptr addrspace(0) @f2
!md68 = i32 9
!md69 = i64 0
!md70 = !{!md54, !md0, !md55}
!md71 = !{!md56, !md1, !md57}
!md72 = !{!md58, !md2, !md54}
!md73 = !{!md58, !md3, !md59}
!md74 = !{!md58, !md4, !md59}
!md75 = !{!md58, !md5, !md59}
!md76 = !{!md58, !md6, !md60}
!md77 = !{!md58, !md7, !md61}
!md78 = !{!md58, !md8, !md62}
!md79 = !{}
!md80 = !{!md64, !md9, !md10, !md64, !md56, !md11, !md12, !md56, !md13, !md62, !md14, !md62, !md15, !md16, !md17, !md18}
!md81 = !{!md56, !md9, !md10, !md56, !md56, !md19, !md12, !md56, !md13, !md62, !md14, !md62, !md15, !md16, !md17, !md20}
!md82 = !{!md54, !md9, !md10, !md54, !md56, !md19, !md12, !md56, !md13, !md62, !md14, !md62, !md15, !md21, !md17, !md22}
!md83 = !{!md65, !md9, !md10, !md65, !md56, !md19, !md12, !md56, !md13, !md62, !md14, !md62, !md15, !md16, !md17, !md23}
!md84 = !{!md57, !md24, !md15, !md25, !md17, !md26}
!md85 = !{!md80, !md81, !md82, !md83, !md84}
!md86 = !{!md63, !md79, !md85}
!md87 = !{!md64, !md57, !md64, !md25, !md28}
!md88 = !{!md64, !md9, !md10, !md64, !md56, !md19, !md12, !md56, !md27, !md87, !md13, !md57, !md14, !md57, !md15, !md29, !md17, !md30}
!md89 = !{!md56, !md9, !md10, !md56, !md56, !md19, !md12, !md56, !md13, !md57, !md14, !md57, !md15, !md25, !md17, !md31}
!md90 = !{!md54, !md9, !md10, !md64, !md56, !md19, !md12, !md65, !md13, !md57, !md14, !md57, !md15, !md25, !md17, !md32}
!md91 = !{!md65, !md24, !md15, !md25, !md17, !md26}
!md92 = !{!md57, !md33, !md15, !md25, !md17, !md34}
!md93 = !{!md88, !md89, !md90, !md91, !md92}
!md94 = !{!md66, !md79, !md93}
!md95 = !{!md64, !md35, !md10, !md64, !md56, !md11, !md15, !md36, !md17, !md37}
!md96 = !{!md56, !md35, !md10, !md56, !md56, !md38, !md15, !md39, !md17, !md40}
!md97 = !{!md54, !md24, !md15, !md41, !md17, !md42}
!md98 = !{!md95, !md96, !md97}
!md99 = !{!md67, !md79, !md98}
!md100 = !{!md43}
!md101 = !{!md44}
!md102 = !{!md45}
!md103 = !{!md46}
!md104 = !{!md54, !md68, !md64}
!md105 = !{!md47, !md57, !md56, !md64}
!md106 = !{!md49}
!md107 = !{!md48, !md106, !md69}
!md108 = !{!md53, !md107, !md69}
!md109 = !{!md108, !md108, !md69}
!"llvm.module.flags" = !{!md70, !md71, !md72, !md73, !md74, !md75, !md76, !md77, !md78}
!"air.kernel" = !{!md86, !md94, !md99}
!"air.compile_options" = !{!md100, !md101, !md102}
!"llvm.ident" = !{!md103}
!"air.version" = !{!md104}
!"air.language_version" = !{!md105}
