	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_tile_offsets_packed
_calc_tile_offsets_packed:              ## @calc_tile_offsets_packed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	4(%rsi), %r15d
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r11
	movq	(%rdi), %r10
	movq	8(%r10), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	32(%rsi), %rax
	movl	(%rsi), %r14d
	movl	(%rax), %r12d
	movq	24(%rsi), %rcx
	movl	8(%rsi), %r13d
	xorl	%r9d, %r9d
	xorps	%xmm0, %xmm0
	xorl	%edi, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r9d
	cmpl	%r15d, %r9d
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, %eax
	shlq	$5, %rax
	movl	(%rcx,%rax), %edx
	imull	%r14d, %edx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%rdi,%rax), %r8d
	shlq	$5, %r8
	movl	4(%rcx,%r8), %ebx
	imull	%r12d, %ebx
	sarl	$3, %ebx
	addl	%edx, %ebx
	movl	%ebx, 8(%rcx,%r8)
	movups	%xmm0, 16(%rcx,%r8)
	testb	$7, %bl
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	incl	%eax
	cmpl	%eax, %r13d
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %edi
	jmp	LBB0_8
LBB0_5:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	(%rcx), %edi
	movl	(%r10), %edx
	movq	16(%rsi), %rcx
	movq	_IMAGE_CONVERT_IN@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %r8
	cmoveq	%rcx, %r8
	leaq	L_.str(%rip), %rsi
	movq	%r11, %rcx
	pushq	%rbx
	pushq	%rax
	callq	_dev_err
	addq	$16, %rsp
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"task %u: ctx %p: %s@[%d,%d]: phys %08x\n"

	.comm	_IMAGE_CONVERT_IN,8,3           ## @IMAGE_CONVERT_IN
L_.str.1:                               ## @.str.1
	.asciz	"Input"

L_.str.2:                               ## @.str.2
	.asciz	"Output"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_calc_tile_offsets_packed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_tile_offsets_packed
_calc_tile_offsets_packed:              ; @calc_tile_offsets_packed
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w9, [x1, #4]
	cbz	w9, LBB0_9
; %bb.1:
	mov	x3, x0
	mov	w5, #0
	mov	w10, #0
	ldr	x8, [x0]
	ldr	x11, [x8, #8]
	ldr	w12, [x1]
	ldp	x13, x14, [x1, #24]
	ldr	w14, [x14]
	ldr	w15, [x1, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w5, w5, #1
	cmp	w5, w9
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cbz	w15, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w6, #0
	mov	w16, w10
	lsl	x16, x16, #5
	ldr	w16, [x13, x16]
	mul	w16, w16, w12
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w17, w10, w6
	add	x17, x13, x17, lsl #5
	ldr	w0, [x17, #4]
	mul	w0, w0, w14
	add	w7, w16, w0, asr #3
	str	w7, [x17, #8]
	stp	xzr, xzr, [x17, #16]
	tst	w7, #0x7
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w6, w6, #1
	cmp	w15, w6
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w10, w10, w6
	b	LBB0_2
LBB0_8:
	ldr	x9, [x11]
	ldr	w0, [x9]
	ldr	w2, [x8]
	ldr	x8, [x1, #16]
Lloh0:
	adrp	x9, _IMAGE_CONVERT_IN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IMAGE_CONVERT_IN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, l_.str.2@PAGE
Lloh4:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh5:
	adrp	x11, l_.str.1@PAGE
Lloh6:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x4, x11, x10, eq
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"task %u: ctx %p: %s@[%d,%d]: phys %08x\n"

	.comm	_IMAGE_CONVERT_IN,8,3           ; @IMAGE_CONVERT_IN
l_.str.1:                               ; @.str.1
	.asciz	"Input"

l_.str.2:                               ; @.str.2
	.asciz	"Output"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_calc_tile_offsets_packed
.subsections_via_symbols
