	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoFrameStart                 ## -- Begin function PicoFrameStart
	.p2align	4, 0x90
_PicoFrameStart:                        ## @PicoFrameStart
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_rendstatus@GOTPCREL(%rip), %r15
	movl	$0, (%r15)
	movq	_Pico@GOTPCREL(%rip), %r14
	movq	8(%r14), %rcx
	movl	48(%rcx), %edx
	movl	%edx, %esi
	notl	%esi
	xorl	%eax, %eax
	testb	$6, %sil
	jne	LBB0_2
## %bb.1:
	movq	_PDRAW_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_2:
	testb	$1, %dl
	jne	LBB0_4
## %bb.3:
	movq	_PDRAW_32_COLS@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%r15)
LBB0_4:
	movl	4(%rcx), %ebx
	andl	$8, %ebx
	leal	(%rbx,%rbx), %esi
	addl	$224, %esi
	xorq	$8, %rbx
	movq	_rendstatus_old@GOTPCREL(%rip), %r12
	movq	_rendlines@GOTPCREL(%rip), %rcx
	cmpl	(%r12), %eax
	jne	LBB0_6
## %bb.5:
	cmpl	(%rcx), %esi
	je	LBB0_7
LBB0_6:
	andl	$1, %edx
	movl	%esi, (%rcx)
	xorl	$1, %edx
	movl	%ebx, %edi
	callq	_emu_video_mode_change
	movl	(%r15), %eax
	movl	%eax, (%r12)
LBB0_7:
	movq	_HighColBase@GOTPCREL(%rip), %rax
	movq	_HighColIncrement@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	%rbx, %rcx
	addq	(%rax), %rcx
	movq	_DrawLineDestIncrement@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	%ebx, %edx
	imulq	%rax, %rdx
	movq	_DrawLineDestBase@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	movq	_HighCol@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	movq	_DrawLineDest@GOTPCREL(%rip), %rax
	movq	%rdx, (%rax)
	movq	_DrawScanline@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_skip_next_line@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	movq	_POPT_ALT_RENDERER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpl	$0, (%r14)
	je	LBB0_10
## %bb.9:
	movl	$2, (%r14)
LBB0_10:
	movl	$1, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PrepareSprites                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rendstatus,4,2                 ## @rendstatus
	.comm	_Pico,16,3                      ## @Pico
	.comm	_PDRAW_INTERLACE,4,2            ## @PDRAW_INTERLACE
	.comm	_PDRAW_32_COLS,4,2              ## @PDRAW_32_COLS
	.comm	_rendstatus_old,4,2             ## @rendstatus_old
	.comm	_rendlines,4,2                  ## @rendlines
	.comm	_HighColBase,8,3                ## @HighColBase
	.comm	_HighColIncrement,4,2           ## @HighColIncrement
	.comm	_HighCol,8,3                    ## @HighCol
	.comm	_DrawLineDestBase,8,3           ## @DrawLineDestBase
	.comm	_DrawLineDestIncrement,4,2      ## @DrawLineDestIncrement
	.comm	_DrawLineDest,8,3               ## @DrawLineDest
	.comm	_DrawScanline,8,3               ## @DrawScanline
	.comm	_skip_next_line,8,3             ## @skip_next_line
	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_POPT_ALT_RENDERER,4,2          ## @POPT_ALT_RENDERER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoFrameStart                 ; -- Begin function PicoFrameStart
	.p2align	2
_PicoFrameStart:                        ; @PicoFrameStart
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	w9, #0
Lloh0:
	adrp	x21, _rendstatus@GOTPAGE
Lloh1:
	ldr	x21, [x21, _rendstatus@GOTPAGEOFF]
	str	wzr, [x21]
Lloh2:
	adrp	x20, _Pico@GOTPAGE
Lloh3:
	ldr	x20, [x20, _Pico@GOTPAGEOFF]
	ldr	x10, [x20, #8]
	ldr	w8, [x10, #48]
	mvn	w11, w8
	tst	w11, #0x6
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x9, _PDRAW_INTERLACE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PDRAW_INTERLACE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	str	w9, [x21]
LBB0_2:
	tbnz	w8, #0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x11, _PDRAW_32_COLS@GOTPAGE
Lloh8:
	ldr	x11, [x11, _PDRAW_32_COLS@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	orr	w9, w9, w11
	str	w9, [x21]
LBB0_4:
	ldr	w10, [x10, #4]
	and	x10, x10, #0x8
	eor	x19, x10, #0x8
	mov	w11, #240
	mov	w12, #224
	cmp	w10, #0
	csel	w1, w12, w11, eq
Lloh10:
	adrp	x22, _rendstatus_old@GOTPAGE
Lloh11:
	ldr	x22, [x22, _rendstatus_old@GOTPAGEOFF]
	ldr	w11, [x22]
Lloh12:
	adrp	x10, _rendlines@GOTPAGE
Lloh13:
	ldr	x10, [x10, _rendlines@GOTPAGEOFF]
	ldr	w12, [x10]
	cmp	w9, w11
	ccmp	w1, w12, #0, eq
	b.eq	LBB0_6
; %bb.5:
	and	w8, w8, #0x1
	str	w1, [x10]
	eor	w2, w8, #0x1
	mov	x0, x19
	bl	_emu_video_mode_change
	ldr	w8, [x21]
	str	w8, [x22]
LBB0_6:
Lloh14:
	adrp	x8, _HighColBase@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HighColBase@GOTPAGEOFF]
Lloh16:
	adrp	x9, _HighColIncrement@GOTPAGE
Lloh17:
	ldr	x9, [x9, _HighColIncrement@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	ldrsw	x9, [x9]
	madd	x8, x9, x19, x8
Lloh20:
	adrp	x9, _HighCol@GOTPAGE
Lloh21:
	ldr	x9, [x9, _HighCol@GOTPAGEOFF]
Lloh22:
	str	x8, [x9]
Lloh23:
	adrp	x8, _DrawLineDestBase@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DrawLineDestBase@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x9, _DrawLineDestIncrement@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DrawLineDestIncrement@GOTPAGEOFF]
Lloh28:
	ldrsw	x9, [x9]
	mov	w10, w19
	madd	x8, x9, x10, x8
Lloh29:
	adrp	x9, _DrawLineDest@GOTPAGE
Lloh30:
	ldr	x9, [x9, _DrawLineDest@GOTPAGEOFF]
Lloh31:
	adrp	x10, _DrawScanline@GOTPAGE
Lloh32:
	ldr	x10, [x10, _DrawScanline@GOTPAGEOFF]
Lloh33:
	str	x8, [x9]
Lloh34:
	str	xzr, [x10]
Lloh35:
	adrp	x8, _skip_next_line@GOTPAGE
Lloh36:
	ldr	x8, [x8, _skip_next_line@GOTPAGEOFF]
Lloh37:
	adrp	x9, _PicoOpt@GOTPAGE
Lloh38:
	ldr	x9, [x9, _PicoOpt@GOTPAGEOFF]
Lloh39:
	str	xzr, [x8]
Lloh40:
	ldr	w8, [x9]
Lloh41:
	adrp	x9, _POPT_ALT_RENDERER@GOTPAGE
Lloh42:
	ldr	x9, [x9, _POPT_ALT_RENDERER@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.9:
	mov	w8, #2
	str	w8, [x20]
LBB0_10:
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PrepareSprites
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh40
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh39
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh33
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_rendstatus,4,2                 ; @rendstatus
	.comm	_Pico,16,3                      ; @Pico
	.comm	_PDRAW_INTERLACE,4,2            ; @PDRAW_INTERLACE
	.comm	_PDRAW_32_COLS,4,2              ; @PDRAW_32_COLS
	.comm	_rendstatus_old,4,2             ; @rendstatus_old
	.comm	_rendlines,4,2                  ; @rendlines
	.comm	_HighColBase,8,3                ; @HighColBase
	.comm	_HighColIncrement,4,2           ; @HighColIncrement
	.comm	_HighCol,8,3                    ; @HighCol
	.comm	_DrawLineDestBase,8,3           ; @DrawLineDestBase
	.comm	_DrawLineDestIncrement,4,2      ; @DrawLineDestIncrement
	.comm	_DrawLineDest,8,3               ; @DrawLineDest
	.comm	_DrawScanline,8,3               ; @DrawScanline
	.comm	_skip_next_line,8,3             ; @skip_next_line
	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_POPT_ALT_RENDERER,4,2          ; @POPT_ALT_RENDERER
.subsections_via_symbols
