	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoFrameStartMode4            ## -- Begin function PicoFrameStartMode4
	.p2align	4, 0x90
_PicoFrameStartMode4:                   ## @PicoFrameStartMode4
	.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	_skip_next_line@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_screen_offset@GOTPCREL(%rip), %r14
	movl	$24, (%r14)
	movq	_PDRAW_32_COLS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_rendstatus@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	_Pico@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movl	$192, %ebx
	movl	$24, %edi
	testb	$6, %dl
	jne	LBB0_3
## %bb.1:
	movl	4(%rcx), %ecx
	testb	$24, %cl
	je	LBB0_3
## %bb.2:
	andl	$8, %ecx
	movl	%ecx, %edi
	xorl	$8, %edi
	leal	(%rcx,%rcx), %ebx
	addl	$224, %ebx
	movl	%edi, (%r14)
LBB0_3:
	movq	_rendstatus_old@GOTPCREL(%rip), %r12
	movq	_rendlines@GOTPCREL(%rip), %r13
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.4:
	cmpl	(%r13), %ebx
	je	LBB0_6
LBB0_5:
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_emu_video_mode_change
	movq	(%r15), %rax
	movq	%rax, (%r12)
	movl	%ebx, (%r13)
	movl	(%r14), %edi
LBB0_6:
	movq	_DrawLineDestBase@GOTPCREL(%rip), %rax
	movq	_DrawLineDestIncrement@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%edi, %rdx
	imulq	%rcx, %rdx
	addq	(%rax), %rdx
	movq	_DrawLineDest@GOTPCREL(%rip), %rax
	movq	%rdx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_skip_next_line,8,3             ## @skip_next_line
	.comm	_screen_offset,4,2              ## @screen_offset
	.comm	_PDRAW_32_COLS,8,3              ## @PDRAW_32_COLS
	.comm	_rendstatus,8,3                 ## @rendstatus
	.comm	_Pico,8,3                       ## @Pico
	.comm	_rendstatus_old,8,3             ## @rendstatus_old
	.comm	_rendlines,4,2                  ## @rendlines
	.comm	_DrawLineDestBase,8,3           ## @DrawLineDestBase
	.comm	_DrawLineDestIncrement,4,2      ## @DrawLineDestIncrement
	.comm	_DrawLineDest,8,3               ## @DrawLineDest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoFrameStartMode4            ; -- Begin function PicoFrameStartMode4
	.p2align	2
_PicoFrameStartMode4:                   ; @PicoFrameStartMode4
	.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, _skip_next_line@GOTPAGE
Lloh1:
	ldr	x8, [x8, _skip_next_line@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x20, _screen_offset@GOTPAGE
Lloh4:
	ldr	x20, [x20, _screen_offset@GOTPAGEOFF]
	mov	w0, #24
	str	w0, [x20]
Lloh5:
	adrp	x8, _PDRAW_32_COLS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PDRAW_32_COLS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x21, _rendstatus@GOTPAGE
Lloh9:
	ldr	x21, [x21, _rendstatus@GOTPAGEOFF]
	str	x8, [x21]
Lloh10:
	adrp	x9, _Pico@GOTPAGE
Lloh11:
	ldr	x9, [x9, _Pico@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	w10, [x9]
	mvn	w10, w10
	tst	w10, #0x6
	b.ne	LBB0_3
; %bb.1:
	ldr	w9, [x9, #4]
	tst	w9, #0x18
	b.eq	LBB0_4
; %bb.2:
	ands	w9, w9, #0x8
	eor	w0, w9, #0x8
	mov	w9, #240
	mov	w10, #224
	csel	w19, w10, w9, eq
	str	w0, [x20]
	b	LBB0_5
LBB0_3:
	mov	w19, #192
	b	LBB0_5
LBB0_4:
	mov	w19, #192
	mov	w0, #24
LBB0_5:
Lloh13:
	adrp	x22, _rendstatus_old@GOTPAGE
Lloh14:
	ldr	x22, [x22, _rendstatus_old@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh15:
	adrp	x23, _rendlines@GOTPAGE
Lloh16:
	ldr	x23, [x23, _rendlines@GOTPAGEOFF]
	ldr	w10, [x23]
	cmp	x8, x9
	ccmp	w19, w10, #0, eq
	b.eq	LBB0_7
; %bb.6:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x19
	mov	w2, #1
	bl	_emu_video_mode_change
	ldr	x8, [x21]
	str	x8, [x22]
	str	w19, [x23]
	ldr	w0, [x20]
LBB0_7:
Lloh17:
	adrp	x8, _DrawLineDestBase@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DrawLineDestBase@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _DrawLineDestIncrement@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DrawLineDestIncrement@GOTPAGEOFF]
Lloh22:
	ldrsw	x9, [x9]
	sxtw	x10, w0
	madd	x8, x9, x10, x8
Lloh23:
	adrp	x9, _DrawLineDest@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DrawLineDest@GOTPAGEOFF]
Lloh25:
	str	x8, [x9]
	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	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_skip_next_line,8,3             ; @skip_next_line
	.comm	_screen_offset,4,2              ; @screen_offset
	.comm	_PDRAW_32_COLS,8,3              ; @PDRAW_32_COLS
	.comm	_rendstatus,8,3                 ; @rendstatus
	.comm	_Pico,8,3                       ; @Pico
	.comm	_rendstatus_old,8,3             ; @rendstatus_old
	.comm	_rendlines,4,2                  ; @rendlines
	.comm	_DrawLineDestBase,8,3           ; @DrawLineDestBase
	.comm	_DrawLineDestIncrement,4,2      ; @DrawLineDestIncrement
	.comm	_DrawLineDest,8,3               ; @DrawLineDest
.subsections_via_symbols
