	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcd_pcm_update                 ## -- Begin function pcd_pcm_update
	.p2align	4, 0x90
_pcd_pcm_update:                        ## @pcd_pcm_update
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_SekCyclesDoneS68k
	movl	%eax, %edi
	callq	_pcd_pcm_sync
	movq	_Pico_mcd@GOTPCREL(%rip), %r12
	movq	(%r12), %r8
	cmpq	$0, 16(%r8)
	je	LBB0_14
## %bb.1:
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	movq	_POPT_EN_MCD_PCM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.2:
	movl	(%r8), %eax
	shll	$16, %eax
	cltd
	idivl	%r14d
	movq	8(%r8), %rdi
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.3:
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.4:
	incl	%r14d
	xorl	%edx, %edx
	movq	%rdi, %rsi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %ecx
	addl	%ecx, (%rbx)
	movl	4(%rsi), %ecx
	addl	%ecx, 4(%rbx)
	addl	%eax, %edx
	movl	%edx, %ecx
	sarl	$15, %ecx
	andl	$-2, %ecx
	movslq	%ecx, %rcx
	leaq	(%rsi,%rcx,4), %rsi
	movzwl	%dx, %edx
	decl	%r14d
	addq	$8, %rbx
	cmpl	$1, %r14d
	ja	LBB0_5
	jmp	LBB0_13
LBB0_6:
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.7:
	cmpl	$1, %r14d
	jne	LBB0_9
## %bb.8:
	movq	%rdi, %rsi
	jmp	LBB0_11
LBB0_9:
	movl	%r14d, %r9d
	andl	$-2, %r9d
	xorl	%ecx, %ecx
	movq	%rdi, %rsi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edx
	addl	%edx, (%rbx)
	addl	%eax, %ecx
	movzwl	%cx, %edx
	sarl	$15, %ecx
	andl	$-2, %ecx
	movslq	%ecx, %rcx
	leaq	(%rsi,%rcx,4), %r10
	movl	(%rsi,%rcx,4), %ecx
	addl	%ecx, 4(%rbx)
	addq	$8, %rbx
	addl	%eax, %edx
	movzwl	%dx, %ecx
	sarl	$15, %edx
	andl	$-2, %edx
	movslq	%edx, %rdx
	leaq	(%r10,%rdx,4), %rsi
	addl	$-2, %r9d
	jne	LBB0_10
LBB0_11:
	testb	$1, %r14b
	je	LBB0_13
## %bb.12:
	movl	(%rsi), %eax
	addl	%eax, (%rbx)
LBB0_13:
	movl	(%r8), %edx
	shll	$3, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r12), %r8
LBB0_14:
	movq	$0, 16(%r8)
	movl	$0, (%r8)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_POPT_EN_MCD_PCM,4,2            ## @POPT_EN_MCD_PCM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcd_pcm_update                 ; -- Begin function pcd_pcm_update
	.p2align	2
_pcd_pcm_update:                        ; @pcd_pcm_update
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_SekCyclesDoneS68k
	bl	_pcd_pcm_sync
Lloh0:
	adrp	x22, _Pico_mcd@GOTPAGE
Lloh1:
	ldr	x22, [x22, _Pico_mcd@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_10
; %bb.1:
Lloh2:
	adrp	x9, _PicoOpt@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PicoOpt@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _POPT_EN_MCD_PCM@GOTPAGE
Lloh6:
	ldr	x10, [x10, _POPT_EN_MCD_PCM@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.2:
	ldr	w9, [x8]
	lsl	w9, w9, #16
	ldr	x0, [x8, #8]
	sdiv	w9, w9, w20
	cmp	w20, #1
	cbz	w21, LBB0_6
; %bb.3:
	b.lt	LBB0_9
; %bb.4:
	mov	w11, #0
	add	w10, w20, #1
	mov	x12, x0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	ldp	w14, w15, [x19]
	add	w13, w14, w13
	str	w13, [x19]
	ldr	w13, [x12, #4]
	add	w13, w15, w13
	str	w13, [x19, #4]
	add	w11, w11, w9
	asr	w13, w11, #15
	and	w13, w13, #0xfffffffe
	add	x12, x12, w13, sxtw #2
	and	w11, w11, #0xffff
	sub	w10, w10, #1
	add	x19, x19, #8
	cmp	w10, #1
	b.hi	LBB0_5
	b	LBB0_9
LBB0_6:
	b.lt	LBB0_9
; %bb.7:
	mov	w11, #0
	add	w10, w20, #1
	mov	x12, x0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	ldr	w14, [x19]
	add	w13, w14, w13
	str	w13, [x19], #4
	add	w11, w11, w9
	asr	w13, w11, #15
	and	w13, w13, #0xfffffffe
	add	x12, x12, w13, sxtw #2
	and	w11, w11, #0xffff
	sub	w10, w10, #1
	cmp	w10, #1
	b.hi	LBB0_8
LBB0_9:
	ldr	w8, [x8]
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_memset
	ldr	x8, [x22]
LBB0_10:
	str	xzr, [x8, #16]
	str	wzr, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_POPT_EN_MCD_PCM,4,2            ; @POPT_EN_MCD_PCM
.subsections_via_symbols
