	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DmaSlowCell                    ## -- Begin function DmaSlowCell
	.p2align	4, 0x90
_DmaSlowCell:                           ## @DmaSlowCell
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_Pico_mcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	movl	12(%rax), %eax
	andl	$1, %eax
	movq	(%rdx,%rax,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_Pico@GOTPCREL(%rip), %r13
	movl	24(%r13), %eax
	cmpl	$5, %eax
	je	LBB0_11
## %bb.1:
	cmpl	$3, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_17
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.4:
	movq	(%r13), %r12
	movzbl	%cl, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	shrl	$2, %edi
	callq	_cell_map
                                        ## kill: def $eax killed $eax def $rax
	movl	%ebx, %ecx
	andl	$2, %ecx
	leal	(%rcx,%rax,4), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax), %rax
	movl	%r14d, %ecx
	shrl	%ecx
	movq	%rax, (%r12,%rcx,8)
	addl	$2, %ebx
	addl	%r13d, %r14d
	decl	%r15d
	jne	LBB0_5
LBB0_6:
	movq	_PDRAW_SPRITES_MOVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_rendstatus@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	movq	_Pico@GOTPCREL(%rip), %r13
	jmp	LBB0_17
LBB0_11:
	movl	%r14d, %eax
	andl	$127, %eax
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.12:
	movq	16(%r13), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movzbl	%cl, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r12d
	movl	%ebx, %edi
	shrl	$2, %edi
	callq	_cell_map
                                        ## kill: def $eax killed $eax def $rax
	movl	%ebx, %ecx
	andl	$2, %ecx
	leal	(%rcx,%rax,4), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax), %rax
	movl	%r12d, %ecx
	shrl	%ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, %eax
	cmpl	$127, %eax
	ja	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	addl	$2, %ebx
	decl	%r15d
	jne	LBB0_13
	jmp	LBB0_15
LBB0_7:
	movl	$1, 40(%r13)
	movl	%r14d, %eax
	andl	$127, %eax
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.8:
	movq	8(%r13), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movzbl	%cl, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r12d
	movl	%ebx, %edi
	shrl	$2, %edi
	callq	_cell_map
                                        ## kill: def $eax killed $eax def $rax
	movl	%ebx, %ecx
	andl	$2, %ecx
	leal	(%rcx,%rax,4), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax), %rax
	movl	%r12d, %ecx
	shrl	%ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, %eax
	cmpl	$127, %eax
	ja	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	$2, %ebx
	decl	%r15d
	jne	LBB0_9
LBB0_15:
	addl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %eax
LBB0_16:
	andl	$65280, %r14d                   ## imm = 0xFF00
	orl	%eax, %r14d
LBB0_17:
	movl	%r14d, %eax
	movq	%rax, 32(%r13)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.comm	_Pico,48,3                      ## @Pico
	.comm	_PDRAW_SPRITES_MOVED,4,2        ## @PDRAW_SPRITES_MOVED
	.comm	_rendstatus,4,2                 ## @rendstatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DmaSlowCell                    ; -- Begin function DmaSlowCell
	.p2align	2
_DmaSlowCell:                           ; @DmaSlowCell
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _Pico_mcd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Pico_mcd@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x9, x8, [x8]
	ldr	w8, [x8, #12]
	and	x8, x8, #0x1
	ldr	x24, [x9, x8, lsl #3]
Lloh3:
	adrp	x23, _Pico@GOTPAGE
Lloh4:
	ldr	x23, [x23, _Pico@GOTPAGEOFF]
	ldr	w8, [x23, #24]
	cmp	w8, #5
	b.eq	LBB0_7
; %bb.1:
	cmp	w8, #3
	b.eq	LBB0_11
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.3:
	cbz	w21, LBB0_6
; %bb.4:
	ldr	x25, [x23]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w0, w22, #2
	bl	_cell_map
	and	w8, w22, #0x2
	bfi	w8, w0, #2, #30
	ldr	x8, [x24, w8, uxtw]
	lsr	w9, w19, #1
	str	x8, [x25, w9, uxtw #3]
	add	w22, w22, #2
	add	w19, w19, w20
	subs	w21, w21, #1
	b.ne	LBB0_5
LBB0_6:
Lloh5:
	adrp	x8, _PDRAW_SPRITES_MOVED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PDRAW_SPRITES_MOVED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _rendstatus@GOTPAGE
Lloh9:
	ldr	x9, [x9, _rendstatus@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	b	LBB0_17
LBB0_7:
	and	w8, w19, #0x7f
	cbz	w21, LBB0_16
; %bb.8:
	ldr	x25, [x23, #16]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x8
	lsr	w0, w22, #2
	bl	_cell_map
	and	w8, w22, #0x2
	bfi	w8, w0, #2, #30
	ldr	x8, [x24, w8, uxtw]
	lsr	w9, w26, #1
	str	x8, [x25, w9, uxtw #3]
	add	w8, w26, w20
	cmp	w8, #127
	b.hi	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w22, w22, #2
	subs	w21, w21, #1
	b.ne	LBB0_9
	b	LBB0_15
LBB0_11:
	mov	w8, #1
	str	w8, [x23, #40]
	and	w8, w19, #0x7f
	cbz	w21, LBB0_16
; %bb.12:
	ldr	x25, [x23, #8]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x26, x8
	lsr	w0, w22, #2
	bl	_cell_map
	and	w8, w22, #0x2
	bfi	w8, w0, #2, #30
	ldr	x8, [x24, w8, uxtw]
	lsr	w9, w26, #1
	str	x8, [x25, w9, uxtw #3]
	add	w8, w26, w20
	cmp	w8, #127
	b.hi	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w22, w22, #2
	subs	w21, w21, #1
	b.ne	LBB0_13
LBB0_15:
	add	w8, w20, w26
LBB0_16:
	and	w9, w19, #0xff00
	orr	w19, w8, w9
LBB0_17:
	mov	w8, w19
	str	x8, [x23, #32]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.comm	_Pico,48,3                      ; @Pico
	.comm	_PDRAW_SPRITES_MOVED,4,2        ; @PDRAW_SPRITES_MOVED
	.comm	_rendstatus,4,2                 ; @rendstatus
.subsections_via_symbols
