	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoReset32x                   ## -- Begin function PicoReset32x
	.p2align	4, 0x90
_PicoReset32x:                          ## @PicoReset32x
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_PicoAHW@GOTPCREL(%rip), %rax
	movq	_PAHW_32X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_SekCyclesDone
	movq	_P32XI_VRES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_p32x_trigger_irq
	movq	_SH2_IDLE_STATES@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
	callq	_p32x_sh2_poll_event
	xorl	%eax, %eax
	callq	_p32x_pwm_ctl_changed
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_p32x_timers_recalc             ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PicoAHW,4,2                    ## @PicoAHW
	.comm	_PAHW_32X,4,2                   ## @PAHW_32X
	.comm	_P32XI_VRES,4,2                 ## @P32XI_VRES
	.comm	_msh2,4,2                       ## @msh2
	.comm	_SH2_IDLE_STATES,4,2            ## @SH2_IDLE_STATES
	.comm	_ssh2,4,2                       ## @ssh2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoReset32x                   ; -- Begin function PicoReset32x
	.p2align	2
_PicoReset32x:                          ; @PicoReset32x
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _PicoAHW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PicoAHW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PAHW_32X@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAHW_32X@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bl	_SekCyclesDone
	mov	x1, x0
Lloh6:
	adrp	x8, _P32XI_VRES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _P32XI_VRES@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, #0
	bl	_p32x_trigger_irq
Lloh9:
	adrp	x19, _SH2_IDLE_STATES@GOTPAGE
Lloh10:
	ldr	x19, [x19, _SH2_IDLE_STATES@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh11:
	adrp	x0, _msh2@GOTPAGE
Lloh12:
	ldr	x0, [x0, _msh2@GOTPAGEOFF]
	mov	w2, #0
	bl	_p32x_sh2_poll_event
	ldr	w1, [x19]
Lloh13:
	adrp	x0, _ssh2@GOTPAGE
Lloh14:
	ldr	x0, [x0, _ssh2@GOTPAGEOFF]
	mov	w2, #0
	bl	_p32x_sh2_poll_event
	bl	_p32x_pwm_ctl_changed
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_p32x_timers_recalc
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PicoAHW,4,2                    ; @PicoAHW
	.comm	_PAHW_32X,4,2                   ; @PAHW_32X
	.comm	_P32XI_VRES,4,2                 ; @P32XI_VRES
	.comm	_msh2,4,2                       ; @msh2
	.comm	_SH2_IDLE_STATES,4,2            ; @SH2_IDLE_STATES
	.comm	_ssh2,4,2                       ; @ssh2
.subsections_via_symbols
