	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_slowmode_lines
_do_slowmode_lines:                     ## @do_slowmode_lines
	.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
	movq	_Pico@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	4(%rdx), %ecx
	andl	$8, %ecx
	movl	%ecx, %eax
	xorl	$8, %eax
	cmpl	%edi, %eax
	jge	LBB0_3
## %bb.1:
	movl	%edi, %r15d
	movl	48(%rdx), %r14d
	andl	$1, %r14d
	orl	$4, %r14d
	shll	$6, %r14d
	movq	_VRAM_CACHED_STUFF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	testl	%ecx, %ecx
	sete	%sil
	movq	%rsi, %rcx
	shlq	$12, %rcx
	leaq	(%rcx,%rdx), %r12
	addq	$16, %r12
	movq	_VRAM_STUFF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$13, %rsi
	leaq	(%rsi,%rcx), %rbx
	addq	$122880, %rbx                   ## imm = 0x1E000
	subl	%eax, %r15d
	movq	_localPal@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %ecx
	callq	_amips_clut_f
	addq	$1024, %rbx                     ## imm = 0x400
	addq	$512, %r12                      ## imm = 0x200
	decl	%r15d
	jne	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico,8,3                       ## @Pico
	.comm	_VRAM_STUFF,8,3                 ## @VRAM_STUFF
	.comm	_VRAM_CACHED_STUFF,8,3          ## @VRAM_CACHED_STUFF
	.comm	_localPal,4,2                   ## @localPal
	.no_dead_strip	_do_slowmode_lines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_slowmode_lines
_do_slowmode_lines:                     ; @do_slowmode_lines
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _Pico@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Pico@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrb	w9, [x8, #48]
	tst	w9, #0x1
	mov	w9, #320
	mov	w10, #256
	csel	w19, w10, w9, eq
	ldr	w8, [x8, #4]
	and	w9, w8, #0x8
	eor	w8, w9, #0x8
	cmp	w8, w0
	b.ge	LBB0_3
; %bb.1:
Lloh3:
	adrp	x10, _VRAM_CACHED_STUFF@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VRAM_CACHED_STUFF@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	w9, #0
	mov	w9, #16
	mov	w11, #4112
	csel	x9, x11, x9, eq
	add	x20, x10, x9
Lloh6:
	adrp	x9, _VRAM_STUFF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VRAM_STUFF@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	mov	w10, #122880
	mov	w11, #131072
	csel	x10, x11, x10, eq
	add	x21, x9, x10
	sub	w22, w0, w8
Lloh9:
	adrp	x23, _localPal@GOTPAGE
Lloh10:
	ldr	x23, [x23, _localPal@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_amips_clut_f
	add	x21, x21, #1024
	add	x20, x20, #512
	subs	w22, w22, #1
	b.ne	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico,8,3                       ; @Pico
	.comm	_VRAM_STUFF,8,3                 ; @VRAM_STUFF
	.comm	_VRAM_CACHED_STUFF,8,3          ; @VRAM_CACHED_STUFF
	.comm	_localPal,4,2                   ; @localPal
	.no_dead_strip	_do_slowmode_lines
.subsections_via_symbols
