	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PDebugZ80Frame                 ## -- Begin function PDebugZ80Frame
	.p2align	4, 0x90
_PDebugZ80Frame:                        ## @PDebugZ80Frame
	.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	_PicoAHW@GOTPCREL(%rip), %rax
	movq	_PAHW_SMS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_Pico@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	movl	$261, %eax                      ## imm = 0x105
	movl	$311, %r14d                     ## imm = 0x137
	cmovel	%eax, %r14d
	movl	$93, %eax
	movl	$68, %ebx
	cmovel	%eax, %ebx
	xorl	%eax, %eax
	callq	_z80_resetCycles
	movq	_emustatus@GOTPCREL(%rip), %rax
	andb	$-2, (%rax)
	cmpq	$0, 16(%r15)
	je	LBB0_5
## %bb.2:
	cmpl	$0, 8(%r15)
	jne	LBB0_5
## %bb.3:
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	movq	_POPT_EN_Z80@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	imull	$488, %ebx, %edi                ## imm = 0x1E8
	callq	_PicoSyncZ80
LBB0_5:
	movq	_ym2612@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_8
## %bb.6:
	movq	_PsndDacLine@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_8
## %bb.7:
	movl	%ebx, %edi
	callq	_PsndDoDAC
LBB0_8:
	movq	_PsndOut@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_10
## %bb.9:
	movl	%ebx, %edi
	callq	_PsndGetSamples
LBB0_10:
	cmpq	$0, 16(%r15)
	je	LBB0_14
## %bb.11:
	cmpl	$0, 8(%r15)
	jne	LBB0_14
## %bb.12:
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	movq	_POPT_EN_Z80@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.13:
	movl	$109312, %edi                   ## imm = 0x1AB00
	callq	_PicoSyncZ80
	xorl	%eax, %eax
	callq	_z80_int
LBB0_14:
	cmpq	$0, (%r13)
	je	LBB0_17
## %bb.15:
	movq	_PsndDacLine@GOTPCREL(%rip), %rax
	cmpl	$224, (%rax)
	jg	LBB0_17
## %bb.16:
	movl	$224, %edi
	callq	_PsndDoDAC
LBB0_17:
	cmpq	$0, (%r12)
	je	LBB0_19
## %bb.18:
	movl	$224, %edi
	callq	_PsndGetSamples
LBB0_19:
	cmpq	$0, 16(%r15)
	je	LBB0_23
## %bb.20:
	cmpl	$0, 8(%r15)
	jne	LBB0_23
## %bb.21:
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	movq	_POPT_EN_Z80@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_23
## %bb.22:
	cmpq	$0, (%r15)
	movl	$127671, %eax                   ## imm = 0x1F2B7
	movl	$151809, %edi                   ## imm = 0x25101
	cmovel	%eax, %edi
	callq	_PicoSyncZ80
LBB0_23:
	cmpq	$0, (%r12)
	je	LBB0_27
## %bb.24:
	cmpq	$0, (%r13)
	je	LBB0_27
## %bb.25:
	movq	_PsndDacLine@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jg	LBB0_27
## %bb.26:
	movl	%r14d, %edi
	callq	_PsndDoDAC
LBB0_27:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_timers_cycle                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PicoAHW,4,2                    ## @PicoAHW
	.comm	_PAHW_SMS,4,2                   ## @PAHW_SMS
	.comm	_Pico,24,3                      ## @Pico
	.comm	_emustatus,4,2                  ## @emustatus
	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_POPT_EN_Z80,4,2                ## @POPT_EN_Z80
	.comm	_ym2612,8,3                     ## @ym2612
	.comm	_PsndDacLine,4,2                ## @PsndDacLine
	.comm	_PsndOut,8,3                    ## @PsndOut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PDebugZ80Frame                 ; -- Begin function PDebugZ80Frame
	.p2align	2
_PDebugZ80Frame:                        ; @PDebugZ80Frame
	.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, _PicoAHW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PicoAHW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PAHW_SMS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAHW_SMS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	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
LBB0_2:
Lloh6:
	adrp	x21, _Pico@GOTPAGE
Lloh7:
	ldr	x21, [x21, _Pico@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #0
	mov	w8, #311
	mov	w9, #261
	csel	w19, w9, w8, eq
	mov	w8, #68
	mov	w9, #93
	csel	w20, w9, w8, eq
	bl	_z80_resetCycles
Lloh8:
	adrp	x8, _emustatus@GOTPAGE
Lloh9:
	ldr	x8, [x8, _emustatus@GOTPAGEOFF]
	ldr	w9, [x8]
	and	w9, w9, #0xfffffffe
	str	w9, [x8]
	ldr	x8, [x21, #16]
	ldr	w9, [x21, #8]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_5
; %bb.3:
Lloh10:
	adrp	x8, _PicoOpt@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PicoOpt@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _POPT_EN_Z80@GOTPAGE
Lloh14:
	ldr	x9, [x9, _POPT_EN_Z80@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	w8, #488
	mul	w0, w20, w8
	bl	_PicoSyncZ80
LBB0_5:
Lloh16:
	adrp	x23, _ym2612@GOTPAGE
Lloh17:
	ldr	x23, [x23, _ym2612@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh18:
	adrp	x22, _PsndDacLine@GOTPAGE
Lloh19:
	ldr	x22, [x22, _PsndDacLine@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	x8, #0
	ccmp	w9, w20, #0, ne
	b.gt	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_PsndDoDAC
LBB0_7:
Lloh20:
	adrp	x24, _PsndOut@GOTPAGE
Lloh21:
	ldr	x24, [x24, _PsndOut@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_PsndGetSamples
LBB0_9:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_13
; %bb.11:
Lloh22:
	adrp	x8, _PicoOpt@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PicoOpt@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _POPT_EN_Z80@GOTPAGE
Lloh26:
	ldr	x9, [x9, _POPT_EN_Z80@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	mov	w0, #43776
	movk	w0, #1, lsl #16
	bl	_PicoSyncZ80
	bl	_z80_int
LBB0_13:
	ldr	x8, [x23]
	cbz	x8, LBB0_16
; %bb.14:
	ldr	w8, [x22]
	cmp	w8, #224
	b.gt	LBB0_16
; %bb.15:
	mov	w0, #224
	bl	_PsndDoDAC
LBB0_16:
	ldr	x8, [x24]
	cbz	x8, LBB0_18
; %bb.17:
	mov	w0, #224
	bl	_PsndGetSamples
LBB0_18:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_22
; %bb.19:
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_22
; %bb.20:
Lloh28:
	adrp	x8, _PicoOpt@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PicoOpt@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _POPT_EN_Z80@GOTPAGE
Lloh32:
	ldr	x9, [x9, _POPT_EN_Z80@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
	ldr	x8, [x21]
	cmp	x8, #0
	mov	w8, #20737
	movk	w8, #2, lsl #16
	mov	w9, #62135
	movk	w9, #1, lsl #16
	csel	w0, w9, w8, eq
	bl	_PicoSyncZ80
LBB0_22:
	ldr	x8, [x24]
	cbz	x8, LBB0_26
; %bb.23:
	ldr	x8, [x23]
	cbz	x8, LBB0_26
; %bb.24:
	ldr	w8, [x22]
	cmp	w8, w19
	b.gt	LBB0_26
; %bb.25:
	mov	x0, x19
	bl	_PsndDoDAC
LBB0_26:
	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
	b	_timers_cycle
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_PicoAHW,4,2                    ; @PicoAHW
	.comm	_PAHW_SMS,4,2                   ; @PAHW_SMS
	.comm	_Pico,24,3                      ; @Pico
	.comm	_emustatus,4,2                  ; @emustatus
	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_POPT_EN_Z80,4,2                ; @POPT_EN_Z80
	.comm	_ym2612,8,3                     ; @ym2612
	.comm	_PsndDacLine,4,2                ; @PsndDacLine
	.comm	_PsndOut,8,3                    ; @PsndOut
.subsections_via_symbols
