	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PsndGetSamples                 ## -- Begin function PsndGetSamples
	.p2align	4, 0x90
_PsndGetSamples:                        ## @PsndGetSamples
	.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	_emustatus@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	cmpl	$224, %edi
	jne	LBB0_5
## %bb.1:
	testb	$2, %al
	jne	LBB0_2
## %bb.3:
	movq	_PsndLen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_PsndRender
	jmp	LBB0_4
LBB0_5:
	testb	$3, %al
	je	LBB0_7
## %bb.6:
	andl	$-4, %eax
	orl	$2, %eax
	movl	%eax, (%rbx)
	movq	_PsndLen@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	xorl	%edi, %edi
	callq	_PsndRender
	movl	%eax, _PsndGetSamples.curr_pos(%rip)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	_PsndGetSamples.curr_pos(%rip), %edi
	movq	_PsndLen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	subl	%eax, %esi
	callq	_PsndRender
	addl	_PsndGetSamples.curr_pos(%rip), %eax
LBB0_4:
	movl	(%rbx), %ecx
	movl	%ecx, %edx
	andl	$-3, %edx
	andl	$1, %ecx
	movq	_PicoOpt@GOTPCREL(%rip), %r8
	movq	_POPT_EN_STEREO@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	xorl	%esi, %esi
	andl	(%r8), %edi
	leal	(%rdx,%rcx,2), %ecx
	movl	%eax, _PsndGetSamples.curr_pos(%rip)
	movl	%ecx, (%rbx)
	setne	%sil
	leal	(%rsi,%rsi), %edi
	addl	$2, %edi
	imull	%eax, %edi
	callq	_PicoWriteSound
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_PsndClear                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_PsndGetSamples.curr_pos,4,2 ## @PsndGetSamples.curr_pos
	.comm	_emustatus,4,2                  ## @emustatus
	.comm	_PsndLen,4,2                    ## @PsndLen
	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_POPT_EN_STEREO,4,2             ## @POPT_EN_STEREO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PsndGetSamples                 ; -- Begin function PsndGetSamples
	.p2align	2
_PsndGetSamples:                        ; @PsndGetSamples
	.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	x19, _emustatus@GOTPAGE
Lloh1:
	ldr	x19, [x19, _emustatus@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w0, #224
	b.ne	LBB0_3
; %bb.1:
	tbnz	w8, #1, LBB0_6
; %bb.2:
Lloh2:
	adrp	x8, _PsndLen@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PsndLen@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_PsndRender
	b	LBB0_7
LBB0_3:
	tst	w8, #0x3
	b.eq	LBB0_5
; %bb.4:
	and	w8, w8, #0xfffffffc
	orr	w8, w8, #0x2
	str	w8, [x19]
Lloh5:
	adrp	x8, _PsndLen@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PsndLen@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	mov	w0, #0
	bl	_PsndRender
	adrp	x8, _PsndGetSamples.curr_pos@PAGE
	str	w0, [x8, _PsndGetSamples.curr_pos@PAGEOFF]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	adrp	x20, _PsndGetSamples.curr_pos@PAGE
	ldr	w0, [x20, _PsndGetSamples.curr_pos@PAGEOFF]
Lloh8:
	adrp	x8, _PsndLen@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PsndLen@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w9, w8, lt
	sub	w1, w8, w9, asr #1
	bl	_PsndRender
	ldr	w8, [x20, _PsndGetSamples.curr_pos@PAGEOFF]
	add	w0, w8, w0
LBB0_7:
	adrp	x8, _PsndGetSamples.curr_pos@PAGE
	str	w0, [x8, _PsndGetSamples.curr_pos@PAGEOFF]
	ldr	w8, [x19]
	bfi	w8, w8, #1, #1
	str	w8, [x19]
Lloh11:
	adrp	x8, _PicoOpt@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PicoOpt@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _POPT_EN_STEREO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _POPT_EN_STEREO@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #4
	mov	w9, #2
	csel	w8, w9, w8, eq
	mul	w0, w8, w0
	bl	_PicoWriteSound
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PsndClear
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_PsndGetSamples.curr_pos,4,2 ; @PsndGetSamples.curr_pos
	.comm	_emustatus,4,2                  ; @emustatus
	.comm	_PsndLen,4,2                    ; @PsndLen
	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_POPT_EN_STEREO,4,2             ; @POPT_EN_STEREO
.subsections_via_symbols
