	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcd_pcm_read                   ## -- Begin function pcd_pcm_read
	.p2align	4, 0x90
_pcd_pcm_read:                          ## @pcd_pcm_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_SekCyclesDoneS68k
	movq	_Pico_mcd@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%eax, %edx
	subl	(%rcx), %edx
	cmpl	$384, %edx                      ## imm = 0x180
	jl	LBB0_2
## %bb.1:
	movl	%eax, %edi
	callq	_pcd_pcm_sync
	movq	(%r14), %rcx
LBB0_2:
	movq	8(%rcx), %rax
	movl	%ebx, %ecx
	shrl	%ecx
	andl	$7, %ecx
	movl	(%rax,%rcx,4), %eax
	movq	_PCM_STEP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	movl	%eax, %ecx
	shrl	$8, %ecx
	testb	$1, %bl
	cmovel	%eax, %ecx
	movzbl	%cl, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.comm	_PCM_STEP_SHIFT,4,2             ## @PCM_STEP_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcd_pcm_read                   ; -- Begin function pcd_pcm_read
	.p2align	2
_pcd_pcm_read:                          ; @pcd_pcm_read
	.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
	mov	x19, x0
	bl	_SekCyclesDoneS68k
Lloh0:
	adrp	x20, _Pico_mcd@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Pico_mcd@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w9, [x8]
	sub	w9, w0, w9
	cmp	w9, #384
	b.lt	LBB0_2
; %bb.1:
	bl	_pcd_pcm_sync
	ldr	x8, [x20]
LBB0_2:
	ldr	x8, [x8, #8]
	ubfx	w9, w19, #1, #3
	ldr	w8, [x8, w9, uxtw #2]
Lloh2:
	adrp	x9, _PCM_STEP_SHIFT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PCM_STEP_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	lsr	w9, w8, #8
	tst	w19, #0x1
	csel	w8, w8, w9, eq
	and	w0, w8, #0xff
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.comm	_PCM_STEP_SHIFT,4,2             ; @PCM_STEP_SHIFT
.subsections_via_symbols
