	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p32x_start_blank
_p32x_start_blank:                      ## @p32x_start_blank
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_Pico32xDrawMode@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_PDM32X_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.1:
	movq	_PicoSkipFrame@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_12
## %bb.2:
	movq	_draw@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_pprof_start
	movq	_Pico@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testb	$8, 4(%rax)
	jne	LBB0_4
## %bb.3:
	movl	$8, %edi
	movl	$224, %esi
	jmp	LBB0_5
LBB0_4:
	movq	_PicoOpt@GOTPCREL(%rip), %rcx
	movq	_POPT_ALT_RENDERER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	testl	%edx, (%rcx)
	setne	%dil
	sete	%sil
	orl	$14, %esi
	shll	$4, %esi
	shll	$3, %edi
LBB0_5:
	movq	_Pico32x@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_P32XV_Mx@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_9
## %bb.6:
	testb	$1, 48(%rax)
	je	LBB0_9
## %bb.7:
	movq	_PicoDrawMask@GOTPCREL(%rip), %rcx
	movq	_PDRAW_32X_ON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	28(%rax), %edx
	andl	$63, %edx
	callq	_PicoDraw32xLayer
	jmp	LBB0_11
LBB0_9:
	movq	(%rbx), %rax
	movq	_PDM32X_32X_ONLY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	callq	_PicoDraw32xLayerMdOnly
LBB0_11:
	movl	(%r14), %edi
	callq	_pprof_end
LBB0_12:
	movq	_P32XV_VBLK@GOTPCREL(%rip), %rcx
	movq	_P32XV_PEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_Pico32x@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	orl	20(%rcx), %eax
	movl	%eax, 20(%rcx)
	movl	8(%rdx), %edi
	movl	%edi, %esi
	xorl	%eax, %esi
	movq	_P32XV_FS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, %esi
	je	LBB0_14
## %bb.13:
	notl	%edx
	andl	%edx, %eax
	orl	%edi, %eax
	movl	%eax, 20(%rcx)
	xorl	$1, %edi
	callq	_Pico32xSwapDRAM
LBB0_14:
	xorl	%eax, %eax
	callq	_SekCyclesDone
	movq	_P32XI_VINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_p32x_trigger_irq
	movq	_SH2_STATE_VPOLL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_msh2@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	callq	_p32x_sh2_poll_event
	movl	(%rbx), %esi
	movq	_ssh2@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_p32x_sh2_poll_event            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico32xDrawMode,8,3            ## @Pico32xDrawMode
	.comm	_PDM32X_OFF,8,3                 ## @PDM32X_OFF
	.comm	_PicoSkipFrame,4,2              ## @PicoSkipFrame
	.comm	_draw,4,2                       ## @draw
	.comm	_Pico,8,3                       ## @Pico
	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_POPT_ALT_RENDERER,4,2          ## @POPT_ALT_RENDERER
	.comm	_Pico32x,16,3                   ## @Pico32x
	.comm	_P32XV_Mx,4,2                   ## @P32XV_Mx
	.comm	_PicoDrawMask,4,2               ## @PicoDrawMask
	.comm	_PDRAW_32X_ON,4,2               ## @PDRAW_32X_ON
	.comm	_PDM32X_32X_ONLY,8,3            ## @PDM32X_32X_ONLY
	.comm	_P32XV_VBLK,4,2                 ## @P32XV_VBLK
	.comm	_P32XV_PEN,4,2                  ## @P32XV_PEN
	.comm	_P32XV_FS,4,2                   ## @P32XV_FS
	.comm	_P32XI_VINT,4,2                 ## @P32XI_VINT
	.comm	_msh2,4,2                       ## @msh2
	.comm	_SH2_STATE_VPOLL,4,2            ## @SH2_STATE_VPOLL
	.comm	_ssh2,4,2                       ## @ssh2
	.no_dead_strip	_p32x_start_blank
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p32x_start_blank
_p32x_start_blank:                      ; @p32x_start_blank
	.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
Lloh0:
	adrp	x21, _Pico32xDrawMode@GOTPAGE
Lloh1:
	ldr	x21, [x21, _Pico32xDrawMode@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _PDM32X_OFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PDM32X_OFF@GOTPAGEOFF]
Lloh4:
	adrp	x10, _PicoSkipFrame@GOTPAGE
Lloh5:
	ldr	x10, [x10, _PicoSkipFrame@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	ldr	w10, [x10]
	cmp	x8, x9
	ccmp	w10, #0, #0, ne
Lloh8:
	adrp	x19, _Pico32x@GOTPAGE
Lloh9:
	ldr	x19, [x19, _Pico32x@GOTPAGEOFF]
	b.ne	LBB0_11
; %bb.1:
Lloh10:
	adrp	x20, _draw@GOTPAGE
Lloh11:
	ldr	x20, [x20, _draw@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_pprof_start
Lloh12:
	adrp	x8, _Pico@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Pico@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	mov	w1, #224
	ldrb	w9, [x8, #4]
	tbnz	w9, #3, LBB0_3
; %bb.2:
	mov	w0, #8
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x9, _PicoOpt@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PicoOpt@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _POPT_ALT_RENDERER@GOTPAGE
Lloh19:
	ldr	x10, [x10, _POPT_ALT_RENDERER@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w9, ne
	mov	w10, #240
	csel	w1, w10, w1, eq
	lsl	w0, w9, #3
LBB0_4:
	ldr	x9, [x19]
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _P32XV_Mx@GOTPAGE
Lloh22:
	ldr	x10, [x10, _P32XV_Mx@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.5:
	ldrb	w9, [x8, #48]
	tbz	w9, #0, LBB0_8
; %bb.6:
Lloh24:
	adrp	x9, _PicoDrawMask@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PicoDrawMask@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _PDRAW_32X_ON@GOTPAGE
Lloh28:
	ldr	x10, [x10, _PDRAW_32X_ON@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x8, #28]
	and	w2, w8, #0x3f
	bl	_PicoDraw32xLayer
	b	LBB0_10
LBB0_8:
	ldr	x8, [x21]
Lloh30:
	adrp	x9, _PDM32X_32X_ONLY@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PDM32X_32X_ONLY@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
	bl	_PicoDraw32xLayerMdOnly
LBB0_10:
	ldr	w0, [x20]
	bl	_pprof_end
LBB0_11:
Lloh33:
	adrp	x8, _P32XV_VBLK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _P32XV_VBLK@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _P32XV_PEN@GOTPAGE
Lloh37:
	ldr	x9, [x9, _P32XV_PEN@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w9, w9, w8
	ldr	x8, [x19]
	ldr	w10, [x8, #20]
	orr	w10, w9, w10
	str	w10, [x8, #20]
	ldr	w9, [x19, #8]
	eor	w12, w9, w10
Lloh39:
	adrp	x11, _P32XV_FS@GOTPAGE
Lloh40:
	ldr	x11, [x11, _P32XV_FS@GOTPAGEOFF]
Lloh41:
	ldr	w11, [x11]
	tst	w12, w11
	b.eq	LBB0_13
; %bb.12:
	bic	w10, w10, w11
	orr	w10, w10, w9
	str	w10, [x8, #20]
	eor	w0, w9, #0x1
	bl	_Pico32xSwapDRAM
LBB0_13:
	bl	_SekCyclesDone
	mov	x1, x0
Lloh42:
	adrp	x8, _P32XI_VINT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _P32XI_VINT@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, #0
	bl	_p32x_trigger_irq
Lloh45:
	adrp	x19, _SH2_STATE_VPOLL@GOTPAGE
Lloh46:
	ldr	x19, [x19, _SH2_STATE_VPOLL@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh47:
	adrp	x0, _msh2@GOTPAGE
Lloh48:
	ldr	x0, [x0, _msh2@GOTPAGEOFF]
	mov	w2, #0
	bl	_p32x_sh2_poll_event
	ldr	w1, [x19]
Lloh49:
	adrp	x0, _ssh2@GOTPAGE
Lloh50:
	ldr	x0, [x0, _ssh2@GOTPAGEOFF]
	mov	w2, #0
	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	_p32x_sh2_poll_event
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico32xDrawMode,8,3            ; @Pico32xDrawMode
	.comm	_PDM32X_OFF,8,3                 ; @PDM32X_OFF
	.comm	_PicoSkipFrame,4,2              ; @PicoSkipFrame
	.comm	_draw,4,2                       ; @draw
	.comm	_Pico,8,3                       ; @Pico
	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_POPT_ALT_RENDERER,4,2          ; @POPT_ALT_RENDERER
	.comm	_Pico32x,16,3                   ; @Pico32x
	.comm	_P32XV_Mx,4,2                   ; @P32XV_Mx
	.comm	_PicoDrawMask,4,2               ; @PicoDrawMask
	.comm	_PDRAW_32X_ON,4,2               ; @PDRAW_32X_ON
	.comm	_PDM32X_32X_ONLY,8,3            ; @PDM32X_32X_ONLY
	.comm	_P32XV_VBLK,4,2                 ; @P32XV_VBLK
	.comm	_P32XV_PEN,4,2                  ; @P32XV_PEN
	.comm	_P32XV_FS,4,2                   ; @P32XV_FS
	.comm	_P32XI_VINT,4,2                 ; @P32XI_VINT
	.comm	_msh2,4,2                       ; @msh2
	.comm	_SH2_STATE_VPOLL,4,2            ; @SH2_STATE_VPOLL
	.comm	_ssh2,4,2                       ; @ssh2
	.no_dead_strip	_p32x_start_blank
.subsections_via_symbols
