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: [] }
%t3 = type { ptr addrspace(4) } ; "struct.metal::_imageblock_base"
%t8 = type void (%t3, ptr addrspace(1), ptr addrspace(2), ptr addrspace(2), <2 x i16>, <2 x i16>, i16, i16)
%t11 = type <4 x half> (<4 x half>, <4 x half>, <4 x half>)
%t12 = type ptr addrspace(2) ()
%t14 = type { <4 x half>, i8 }
%t16 = type %t14 (ptr addrspace(1), ptr addrspace(2), <2 x i16>, <2 x i16>, i16, i32)
%t17 = type i16 ()
%t18 = type <4 x half> (<4 x half>, <4 x half>, i16, i16)
%t19 = type void (<4 x half>, i32, <2 x i16>, i32, i16)
%t21 = type [2 x i32]
%t23 = type { <2 x i16>, <2 x i16>, i16, half } ; "struct.TtgBlurParams"
c10 = %t21 [27, 0]
c52 = <3 x i32> [0, 1, 2]
c56 = <4 x i32> [0, 1, 2, poison]
c57 = <4 x i32> [0, 1, 2, 7]

define %t8 @f0 "ttg_tile_simd_blur" convergent "frame-pointer"="all" "min-legal-vector-width"="64" "no-builtins"="" "no-trapping-math"="true" "stack-protector-buffer-size"="8" %a2( align 4 dereferenceable(12) Ref nocapture "air-buffer-no-alias"="" ) %a3( Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = getelementptr inbounds %t23, %a2, i64 0, i32 2
  %i1 = load i16, %i0, align 4
  %i2 = icmp eq %i1, i16 0
  %i3 = insertelement <2 x i16> undef, %a7, i64 0
  %i4 = insertelement %i3, %a6, i64 1
  %i5 = insertelement <2 x i16> undef, %a6, i64 0
  %i6 = insertelement %i5, %a7, i64 1
  %i7 = select <2 x i16> %i2, %i6, %i4
  %i8 = getelementptr inbounds %t23, %a2, i64 0, i32 0
  %i9 = load <2 x i16>, %i8, align 4
  %i10 = mul <2 x i16> %a5, %a4
  %i11 = add <2 x i16> %i9, %i10
  %i12 = add <2 x i16> %i11, %i7
  %i13 = tail call ptr addrspace(2) @f2 [air Sampler(GetReadSampler)]()
  %i14 = tail call %t14 @f3 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: true, form: Current, status: true, access: Some(Read), states_access: true })](%a1, %i13, %i12, <2 x i16> zeroinitializer, i16 0, i32 1) arg0( Ref nocapture )
  %i15 = freeze %t14 %i14
  %i16 = extractvalue <4 x half> %i15, 0
  %i17 = getelementptr inbounds %t23, %a2, i64 0, i32 1
  %i18 = load <2 x i16>, %i17, align 4
  %i19 = add <2 x i16> %i18, %i12
  %i20 = tail call %t14 @f3 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: true, form: Current, status: true, access: Some(Read), states_access: true })](%a1, %i13, %i19, <2 x i16> zeroinitializer, i16 0, i32 1) arg0( Ref nocapture )
  %i21 = extractvalue <4 x half> %i20, 0
  %i22 = load half, %a3, align 2
  %i23 = insertelement <4 x half> poison, %i22, i64 0
  %i24 = shufflevector <4 x half> %i23, <4 x half> poison, <0, 0, 0, 0>
  %i25 = tail call i16 @f4 [air SimdgroupSize(SimdgroupSize { ty: I16 })]()
  %i26 = tail call <4 x half> @f5 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillDown, ty: Some(NumTy { elem: F16, lanes: 4 }), sign: None })](%i16, %i21, i16 0, %i25) convergent
  %i27 = tail call <4 x half> @f1 [air Math(Math { f: Fma, precision: Precise, ty: NumTy { elem: F16, lanes: 4 } })](%i24, %i26, <4 x half> zeroinitializer)
  %i28 = getelementptr inbounds half, %a3, i64 1
  %i29 = load half, %i28, align 2
  %i30 = insertelement <4 x half> poison, %i29, i64 0
  %i31 = shufflevector <4 x half> %i30, <4 x half> poison, <0, 0, 0, 0>
  %i32 = tail call <4 x half> @f5 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillDown, ty: Some(NumTy { elem: F16, lanes: 4 }), sign: None })](%i16, %i21, i16 1, %i25) convergent
  %i33 = tail call <4 x half> @f1 [air Math(Math { f: Fma, precision: Precise, ty: NumTy { elem: F16, lanes: 4 } })](%i31, %i32, %i27)
  %i34 = getelementptr inbounds half, %a3, i64 2
  %i35 = load half, %i34, align 2
  %i36 = insertelement <4 x half> poison, %i35, i64 0
  %i37 = shufflevector <4 x half> %i36, <4 x half> poison, <0, 0, 0, 0>
  %i38 = tail call <4 x half> @f5 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillDown, ty: Some(NumTy { elem: F16, lanes: 4 }), sign: None })](%i16, %i21, i16 2, %i25) convergent
  %i39 = tail call <4 x half> @f1 [air Math(Math { f: Fma, precision: Precise, ty: NumTy { elem: F16, lanes: 4 } })](%i37, %i38, %i33)
  %i40 = getelementptr inbounds half, %a3, i64 3
  %i41 = load half, %i40, align 2
  %i42 = insertelement <4 x half> poison, %i41, i64 0
  %i43 = shufflevector <4 x half> %i42, <4 x half> poison, <0, 0, 0, 0>
  %i44 = tail call <4 x half> @f5 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillDown, ty: Some(NumTy { elem: F16, lanes: 4 }), sign: None })](%i16, %i21, i16 3, %i25) convergent
  %i45 = tail call <4 x half> @f1 [air Math(Math { f: Fma, precision: Precise, ty: NumTy { elem: F16, lanes: 4 } })](%i43, %i44, %i39)
  %i46 = getelementptr inbounds half, %a3, i64 4
  %i47 = load half, %i46, align 2
  %i48 = insertelement <4 x half> poison, %i47, i64 0
  %i49 = shufflevector <4 x half> %i48, <4 x half> poison, <0, 0, 0, 0>
  %i50 = tail call <4 x half> @f5 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillDown, ty: Some(NumTy { elem: F16, lanes: 4 }), sign: None })](%i16, %i21, i16 4, %i25) convergent
  %i51 = tail call <4 x half> @f1 [air Math(Math { f: Fma, precision: Precise, ty: NumTy { elem: F16, lanes: 4 } })](%i49, %i50, %i45)
  %i52 = getelementptr inbounds half, %a3, i64 5
  %i53 = load half, %i52, align 2
  %i54 = insertelement <4 x half> poison, %i53, i64 0
  %i55 = shufflevector <4 x half> %i54, <4 x half> poison, <0, 0, 0, 0>
  %i56 = tail call <4 x half> @f5 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillDown, ty: Some(NumTy { elem: F16, lanes: 4 }), sign: None })](%i16, %i21, i16 5, %i25) convergent
  %i57 = tail call <4 x half> @f1 [air Math(Math { f: Fma, precision: Precise, ty: NumTy { elem: F16, lanes: 4 } })](%i55, %i56, %i51)
  %i58 = getelementptr inbounds half, %a3, i64 6
  %i59 = load half, %i58, align 2
  %i60 = insertelement <4 x half> poison, %i59, i64 0
  %i61 = shufflevector <4 x half> %i60, <4 x half> poison, <0, 0, 0, 0>
  %i62 = tail call <4 x half> @f5 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillDown, ty: Some(NumTy { elem: F16, lanes: 4 }), sign: None })](%i16, %i21, i16 6, %i25) convergent
  %i63 = tail call <4 x half> @f1 [air Math(Math { f: Fma, precision: Precise, ty: NumTy { elem: F16, lanes: 4 } })](%i61, %i62, %i57)
  %i64 = getelementptr inbounds half, %a3, i64 7
  %i65 = load half, %i64, align 2
  %i66 = insertelement <4 x half> poison, %i65, i64 0
  %i67 = shufflevector <4 x half> %i66, <4 x half> poison, <0, 0, 0, 0>
  %i68 = tail call <4 x half> @f5 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillDown, ty: Some(NumTy { elem: F16, lanes: 4 }), sign: None })](%i16, %i21, i16 7, %i25) convergent
  %i69 = tail call <4 x half> @f1 [air Math(Math { f: Fma, precision: Precise, ty: NumTy { elem: F16, lanes: 4 } })](%i67, %i68, %i63)
  %i70 = getelementptr inbounds half, %a3, i64 8
  %i71 = load half, %i70, align 2
  %i72 = insertelement <4 x half> poison, %i71, i64 0
  %i73 = shufflevector <4 x half> %i72, <4 x half> poison, <0, 0, 0, 0>
  %i74 = tail call <4 x half> @f5 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillDown, ty: Some(NumTy { elem: F16, lanes: 4 }), sign: None })](%i16, %i21, i16 8, %i25) convergent
  %i75 = tail call <4 x half> @f1 [air Math(Math { f: Fma, precision: Precise, ty: NumTy { elem: F16, lanes: 4 } })](%i73, %i74, %i69)
  %i76 = getelementptr inbounds half, %a3, i64 9
  %i77 = load half, %i76, align 2
  %i78 = insertelement <4 x half> poison, %i77, i64 0
  %i79 = shufflevector <4 x half> %i78, <4 x half> poison, <0, 0, 0, 0>
  %i80 = tail call <4 x half> @f5 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillDown, ty: Some(NumTy { elem: F16, lanes: 4 }), sign: None })](%i16, %i21, i16 9, %i25) convergent
  %i81 = tail call <4 x half> @f1 [air Math(Math { f: Fma, precision: Precise, ty: NumTy { elem: F16, lanes: 4 } })](%i79, %i80, %i75)
  %i82 = getelementptr inbounds half, %a3, i64 10
  %i83 = load half, %i82, align 2
  %i84 = insertelement <4 x half> poison, %i83, i64 0
  %i85 = shufflevector <4 x half> %i84, <4 x half> poison, <0, 0, 0, 0>
  %i86 = tail call <4 x half> @f5 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillDown, ty: Some(NumTy { elem: F16, lanes: 4 }), sign: None })](%i16, %i21, i16 10, %i25) convergent
  %i87 = tail call <4 x half> @f1 [air Math(Math { f: Fma, precision: Precise, ty: NumTy { elem: F16, lanes: 4 } })](%i85, %i86, %i81)
  %i88 = getelementptr inbounds half, %a3, i64 11
  %i89 = load half, %i88, align 2
  %i90 = insertelement <4 x half> poison, %i89, i64 0
  %i91 = shufflevector <4 x half> %i90, <4 x half> poison, <0, 0, 0, 0>
  %i92 = tail call <4 x half> @f5 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillDown, ty: Some(NumTy { elem: F16, lanes: 4 }), sign: None })](%i16, %i21, i16 11, %i25) convergent
  %i93 = tail call <4 x half> @f1 [air Math(Math { f: Fma, precision: Precise, ty: NumTy { elem: F16, lanes: 4 } })](%i91, %i92, %i87)
  %i94 = shufflevector <3 x half> %i93, <4 x half> poison, <0, 1, 2>
  %i95 = getelementptr inbounds %t23, %a2, i64 0, i32 3
  %i96 = load half, %i95, align 2
  %i97 = insertelement <3 x half> poison, %i96, i64 0
  %i98 = shufflevector <3 x half> %i97, <3 x half> poison, <0, 0, 0>
  %i99 = fmul <3 x half> %i94, %i98
  %i100 = shufflevector <4 x half> %i99, <3 x half> poison, <0, 1, 2, poison>
  %i101 = shufflevector <4 x half> %i100, %i93, <0, 1, 2, 7>
  tail call void @f6 [air Imageblock(Store(NumTy { elem: F16, lanes: 4 }))](%i101, i32 0, %i7, i32 0, i16 0)
  ret void
}

declare %t11 @f1 "air.fma.v4f16" memory(NoModRef, NoModRef, NoModRef)

declare %t12 @f2 "air.get_read_sampler" memory(NoModRef, Ref, NoModRef)

declare %t16 @f3 "air.read_texture_2d.i16.v4f16" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t17 @f4 "air.get_simdgroup_size.i16" memory(NoModRef, NoModRef, NoModRef)

declare %t18 @f5 "air.simd_shuffle_and_fill_down.v4f16" convergent

declare %t19 @f6 "air.store.implicit_imageblock.v4f16" memory(Mod, Mod, Mod)
!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.imageblock"
!md10 = !"implicit"
!md11 = !"air.struct_type_info"
!md12 = !"half4"
!md13 = !"color"
!md14 = !"air.render_target"
!md15 = !"air.arg_type_align_size"
!md16 = !"air.arg_type_name"
!md17 = !"imageblock<TtgBlurPixel, layout_implicit>"
!md18 = !"air.arg_name"
!md19 = !"block"
!md20 = !"air.texture"
!md21 = !"air.location_index"
!md22 = !"air.read"
!md23 = !"texture2d<half, read>"
!md24 = !"source"
!md25 = !"air.buffer"
!md26 = !"air.buffer_size"
!md27 = !"air.address_space"
!md28 = !"ushort2"
!md29 = !"origin"
!md30 = !"fill"
!md31 = !"ushort"
!md32 = !"transpose"
!md33 = !"half"
!md34 = !"scale"
!md35 = !"air.arg_type_size"
!md36 = !"TtgBlurParams"
!md37 = !"params"
!md38 = !"weights"
!md39 = !"air.threadgroup_position_in_grid"
!md40 = !"tile"
!md41 = !"air.threads_per_threadgroup"
!md42 = !"size"
!md43 = !"air.thread_index_in_simdgroup"
!md44 = !"lane"
!md45 = !"air.simdgroup_index_in_threadgroup"
!md46 = !"simdgroup"
!md47 = !"air.compile.denorms_disable"
!md48 = !"air.compile.fast_math_disable"
!md49 = !"air.compile.framebuffer_fetch_enable"
!md50 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md51 = !"Metal"
!md52 = i32 2
!md53 = %t21 c10
!md54 = i32 1
!md55 = i32 4
!md56 = i32 7
!md57 = i32 31
!md58 = i32 128
!md59 = i32 8
!md60 = i32 16
!md61 = ptr addrspace(0) @f0
!md62 = i32 0
!md63 = i32 12
!md64 = i32 10
!md65 = i32 3
!md66 = i32 5
!md67 = i32 6
!md68 = !{!md52, !md0, !md53}
!md69 = !{!md54, !md1, !md55}
!md70 = !{!md56, !md2, !md52}
!md71 = !{!md56, !md3, !md57}
!md72 = !{!md56, !md4, !md57}
!md73 = !{!md56, !md5, !md57}
!md74 = !{!md56, !md6, !md58}
!md75 = !{!md56, !md7, !md59}
!md76 = !{!md56, !md8, !md60}
!md77 = !{}
!md78 = !{!md62, !md59, !md62, !md12, !md13, !md14, !md62}
!md79 = !{!md62, !md9, !md10, !md11, !md78, !md15, !md59, !md16, !md17, !md18, !md19}
!md80 = !{!md54, !md20, !md21, !md62, !md54, !md22, !md16, !md23, !md18, !md24}
!md81 = !{!md62, !md55, !md62, !md28, !md29, !md55, !md55, !md62, !md28, !md30, !md59, !md52, !md62, !md31, !md32, !md64, !md52, !md62, !md33, !md34}
!md82 = !{!md52, !md25, !md26, !md63, !md21, !md62, !md54, !md22, !md27, !md52, !md11, !md81, !md35, !md63, !md15, !md55, !md16, !md36, !md18, !md37}
!md83 = !{!md65, !md25, !md21, !md54, !md54, !md22, !md27, !md52, !md35, !md52, !md15, !md52, !md16, !md33, !md18, !md38}
!md84 = !{!md55, !md39, !md16, !md28, !md18, !md40}
!md85 = !{!md66, !md41, !md16, !md28, !md18, !md42}
!md86 = !{!md67, !md43, !md16, !md31, !md18, !md44}
!md87 = !{!md56, !md45, !md16, !md31, !md18, !md46}
!md88 = !{!md79, !md80, !md82, !md83, !md84, !md85, !md86, !md87}
!md89 = !{!md61, !md77, !md88}
!md90 = !{!md47}
!md91 = !{!md48}
!md92 = !{!md49}
!md93 = !{!md50}
!md94 = !{!md52, !md59, !md62}
!md95 = !{!md51, !md55, !md62, !md62}
!"llvm.module.flags" = !{!md68, !md69, !md70, !md71, !md72, !md73, !md74, !md75, !md76}
!"air.kernel" = !{!md89}
!"air.compile_options" = !{!md90, !md91, !md92}
!"llvm.ident" = !{!md93}
!"air.version" = !{!md94}
!"air.language_version" = !{!md95}
