	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoFrame32x                   ## -- Begin function PicoFrame32x
	.p2align	4, 0x90
_PicoFrame32x:                          ## @PicoFrame32x
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_Pico@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_P32XV_VBLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	_Pico32x@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	andl	20(%rcx), %eax
	movl	%eax, 20(%rcx)
	movq	_P32XV_Mx@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_P32XV_PEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, 20(%rcx)
LBB0_2:
	movq	8(%r15), %rax
	testb	$-128, (%rax)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_SekCyclesDone
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_p32x_schedule_hint
LBB0_4:
	movq	_SH2_STATE_VPOLL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_msh2@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_p32x_sh2_poll_event
	movl	(%rbx), %esi
	movq	_ssh2@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_p32x_sh2_poll_event
	movq	_PicoAHW@GOTPCREL(%rip), %rax
	movq	_PAHW_MCD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_pcd_prepare_frame
LBB0_6:
	xorl	%eax, %eax
	callq	_PicoFrameStart
	xorl	%eax, %eax
	callq	_PicoFrameHints
	xorl	%eax, %eax
	callq	_sh2_drc_frame
	movq	_EL_32X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %edx
	andl	$3, %edx
	movl	(%r14), %ecx
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elprintf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico,8,3                       ## @Pico
	.comm	_P32XV_VBLK,4,2                 ## @P32XV_VBLK
	.comm	_Pico32x,24,3                   ## @Pico32x
	.comm	_P32XV_Mx,4,2                   ## @P32XV_Mx
	.comm	_P32XV_PEN,4,2                  ## @P32XV_PEN
	.comm	_msh2,4,2                       ## @msh2
	.comm	_SH2_STATE_VPOLL,4,2            ## @SH2_STATE_VPOLL
	.comm	_ssh2,4,2                       ## @ssh2
	.comm	_PicoAHW,4,2                    ## @PicoAHW
	.comm	_PAHW_MCD,4,2                   ## @PAHW_MCD
	.comm	_EL_32X,4,2                     ## @EL_32X
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"poll: %02x %02x %02x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoFrame32x                   ; -- Begin function PicoFrame32x
	.p2align	2
_PicoFrame32x:                          ; @PicoFrame32x
	.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	x8, _Pico@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Pico@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x8, _P32XV_VBLK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _P32XV_VBLK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x21, _Pico32x@GOTPAGE
Lloh7:
	ldr	x21, [x21, _Pico32x@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w10, [x8, #20]
	bic	w9, w10, w9
	str	w9, [x8, #20]
	ldr	w10, [x8]
Lloh8:
	adrp	x11, _P32XV_Mx@GOTPAGE
Lloh9:
	ldr	x11, [x11, _P32XV_Mx@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_2
; %bb.1:
Lloh11:
	adrp	x10, _P32XV_PEN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _P32XV_PEN@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	bic	w9, w9, w10
	str	w9, [x8, #20]
LBB0_2:
	ldr	x8, [x21, #8]
	ldrb	w8, [x8]
	tbnz	w8, #7, LBB0_4
; %bb.3:
	bl	_SekCyclesDone
	mov	x1, x0
	mov	x0, #0
	bl	_p32x_schedule_hint
LBB0_4:
Lloh14:
	adrp	x20, _SH2_STATE_VPOLL@GOTPAGE
Lloh15:
	ldr	x20, [x20, _SH2_STATE_VPOLL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh16:
	adrp	x19, _msh2@GOTPAGE
Lloh17:
	ldr	x19, [x19, _msh2@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #0
	bl	_p32x_sh2_poll_event
	ldr	w1, [x20]
Lloh18:
	adrp	x20, _ssh2@GOTPAGE
Lloh19:
	ldr	x20, [x20, _ssh2@GOTPAGEOFF]
	mov	x0, x20
	mov	w2, #0
	bl	_p32x_sh2_poll_event
Lloh20:
	adrp	x8, _PicoAHW@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PicoAHW@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _PAHW_MCD@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PAHW_MCD@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	bl	_pcd_prepare_frame
LBB0_6:
	bl	_PicoFrameStart
	bl	_PicoFrameHints
	bl	_sh2_drc_frame
Lloh26:
	adrp	x8, _EL_32X@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EL_32X@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	w8, [x21, #16]
	and	w2, w8, #0x3
	ldr	w3, [x19]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	ldr	w4, [x20]
	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	_elprintf
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico,8,3                       ; @Pico
	.comm	_P32XV_VBLK,4,2                 ; @P32XV_VBLK
	.comm	_Pico32x,24,3                   ; @Pico32x
	.comm	_P32XV_Mx,4,2                   ; @P32XV_Mx
	.comm	_P32XV_PEN,4,2                  ; @P32XV_PEN
	.comm	_msh2,4,2                       ; @msh2
	.comm	_SH2_STATE_VPOLL,4,2            ; @SH2_STATE_VPOLL
	.comm	_ssh2,4,2                       ; @ssh2
	.comm	_PicoAHW,4,2                    ; @PicoAHW
	.comm	_PAHW_MCD,4,2                   ; @PAHW_MCD
	.comm	_EL_32X,4,2                     ; @EL_32X
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"poll: %02x %02x %02x"

.subsections_via_symbols
