	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoFrameMS                    ## -- Begin function PicoFrameMS
	.p2align	4, 0x90
_PicoFrameMS:                           ## @PicoFrameMS
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_Pico@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	movl	$262, %eax                      ## imm = 0x106
	movl	$313, %ecx                      ## imm = 0x139
	cmovel	%eax, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	$58293, %eax                    ## imm = 0xE3B5
	movl	$58020, %ecx                    ## imm = 0xE2A4
	cmovel	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_PicoSkipFrame@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_PicoPad@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ebx
	shrl	$7, %ebx
	andl	$1, %ebx
	cmpl	$0, 8(%r14)
	jne	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_z80_nmi
LBB0_3:
	movl	%ebx, 8(%r14)
	xorl	%eax, %eax
	callq	_PicoFrameStartMode4
	movq	16(%r14), %rax
	movl	40(%rax), %r13d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	decl	%r13d
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	subl	%r15d, %edi
	sarl	$8, %edi
	callq	_z80_run
	shll	$8, %eax
	addl	%eax, %r15d
	incl	%ebx
	addl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	cmpl	%ebx, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, 4(%r14)
	leal	-6(%rbx), %eax
	cmpl	$219, %ebx
	cmovbl	%ebx, %eax
	movl	%eax, 24(%r14)
	cmpl	$191, %ebx
	ja	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	callq	_PicoLineMode4
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$192, %ebx
	ja	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%r13d, %r13d
	jg	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rax
	movl	40(%rax), %r13d
	orl	$2, 28(%r14)
	testb	$16, (%rax)
	leaq	L_.str(%rip), %rsi
	je	LBB0_14
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$193, %ebx
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	orb	$1, 28(%r14)
	movq	16(%r14), %rax
	testb	$32, 4(%rax)
	leaq	L_.str.1(%rip), %rsi
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_EL_INTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_elprintf
	xorl	%eax, %eax
	callq	_z80_int
	jmp	LBB0_14
LBB0_15:
	movq	_PsndOut@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.17:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PsndGetSamplesMS               ## TAILCALL
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico,32,3                      ## @Pico
	.comm	_PicoSkipFrame,4,2              ## @PicoSkipFrame
	.comm	_PicoPad,8,3                    ## @PicoPad
	.comm	_EL_INTS,4,2                    ## @EL_INTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hint"

L_.str.1:                               ## @.str.1
	.asciz	"vint"

	.comm	_PsndOut,8,3                    ## @PsndOut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoFrameMS                    ; -- Begin function PicoFrameMS
	.p2align	2
_PicoFrameMS:                           ; @PicoFrameMS
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x20, _Pico@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Pico@GOTPAGEOFF]
	ldr	w8, [x20]
	mov	w9, #313
	mov	w10, #262
	cmp	w8, #0
	csel	w21, w10, w9, eq
	mov	w8, #58020
	mov	w9, #58293
	csel	w25, w9, w8, eq
Lloh2:
	adrp	x8, _PicoSkipFrame@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PicoSkipFrame@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
Lloh5:
	adrp	x8, _PicoPad@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PicoPad@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w8, [x8]
	ubfx	w19, w8, #7, #1
	ldr	w8, [x20, #8]
	cmp	w8, #0
	ccmp	w19, #0, #4, eq
	b.eq	LBB0_2
; %bb.1:
	bl	_z80_nmi
LBB0_2:
	str	w19, [x20, #8]
	bl	_PicoFrameStartMode4
	mov	w19, #0
	mov	w24, #0
	ldr	x8, [x20, #16]
	ldr	w28, [x8, #40]
Lloh8:
	adrp	x26, l_.str@PAGE
Lloh9:
	add	x26, x26, l_.str@PAGEOFF
Lloh10:
	adrp	x27, _EL_INTS@GOTPAGE
Lloh11:
	ldr	x27, [x27, _EL_INTS@GOTPAGEOFF]
	mov	x22, x25
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w28, w28, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w22, w24
	asr	w0, w8, #8
	bl	_z80_run
	add	w24, w24, w0, lsl #8
	add	w19, w19, #1
	add	w22, w22, w25
	cmp	w21, w19
	b.eq	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	w19, [x20, #4]
	sub	w8, w19, #6
	cmp	w19, #218
	csel	w8, w8, w19, hi
	str	w8, [x20, #24]
	cmp	w19, #191
	b.hi	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w23, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_PicoLineMode4
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, #192
	b.hi	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w28, #0
	b.gt	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #16]
	ldr	w28, [x8, #40]
	ldr	w9, [x20, #28]
	orr	w9, w9, #0x2
	str	w9, [x20, #28]
	ldrb	w8, [x8]
	mov	x1, x26
	tbz	w8, #4, LBB0_4
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, #193
	b.ne	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #28]
	orr	w8, w8, #0x1
	str	w8, [x20, #28]
	ldr	x8, [x20, #16]
	ldrb	w8, [x8, #4]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	tbz	w8, #5, LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27]
	bl	_elprintf
	bl	_z80_int
	b	LBB0_4
LBB0_14:
Lloh14:
	adrp	x8, _PsndOut@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PsndOut@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PsndGetSamplesMS
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico,32,3                      ; @Pico
	.comm	_PicoSkipFrame,4,2              ; @PicoSkipFrame
	.comm	_PicoPad,8,3                    ; @PicoPad
	.comm	_EL_INTS,4,2                    ; @EL_INTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hint"

l_.str.1:                               ; @.str.1
	.asciz	"vint"

	.comm	_PsndOut,8,3                    ; @PsndOut
.subsections_via_symbols
