	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdda_raw_update
_cdda_raw_update:                       ## @cdda_raw_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	%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	_PsndRate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	cmpl	$22151, %eax                    ## imm = 0x5687
	setl	%cl
	incl	%ecx
	cmpl	$21950, %eax                    ## imm = 0x55BE
	movl	$4, %r13d
	cmovgel	%ecx, %r13d
	movl	%esi, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	imull	%r13d, %ebx
	shll	$2, %ebx
	movq	_cdda_out_buffer@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_Pico_mcd@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rdx
	movl	%ebx, %esi
	callq	_pm_read
	subl	%eax, %ebx
	jle	LBB0_3
## %bb.1:
	movslq	%eax, %rdi
	addq	(%r12), %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	(%r14), %rax
	movq	$0, (%rax)
	jmp	LBB0_2
LBB0_3:
	cmpl	$4, %r13d
	je	LBB0_8
## %bb.4:
	cmpl	$2, %r13d
	je	LBB0_7
## %bb.5:
	cmpl	$1, %r13d
	jne	LBB0_2
## %bb.6:
	movq	(%r12), %rsi
	addl	%r15d, %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mix_16h_to_32                  ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r12), %rsi
	addl	%r15d, %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mix_16h_to_32_s2               ## TAILCALL
LBB0_7:
	movq	(%r12), %rsi
	addl	%r15d, %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mix_16h_to_32_s1               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PsndRate,4,2                   ## @PsndRate
	.comm	_cdda_out_buffer,8,3            ## @cdda_out_buffer
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.no_dead_strip	_cdda_raw_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdda_raw_update
_cdda_raw_update:                       ; @cdda_raw_update
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PsndRate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PsndRate@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #22151
	cmp	w8, w9
	mov	w9, #1
	cinc	w9, w9, lt
	mov	w10, #21950
	mov	w11, #4
	cmp	w8, w10
	csel	w23, w11, w9, lt
	mul	w8, w1, w23
Lloh3:
	adrp	x22, _cdda_out_buffer@GOTPAGE
Lloh4:
	ldr	x22, [x22, _cdda_out_buffer@GOTPAGEOFF]
	lsl	w21, w8, #2
	ldr	x0, [x22]
Lloh5:
	adrp	x24, _Pico_mcd@GOTPAGE
Lloh6:
	ldr	x24, [x24, _Pico_mcd@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x2, [x8]
	mov	x1, x21
	bl	_pm_read
	subs	w2, w21, w0
	b.le	LBB0_2
; %bb.1:
	ldr	x8, [x22]
	add	x0, x8, w0, sxtw
	mov	w1, #0
	bl	_memset
	ldr	x8, [x24]
	str	xzr, [x8]
	b	LBB0_6
LBB0_2:
	cmp	w23, #4
	b.eq	LBB0_7
; %bb.3:
	cmp	w23, #2
	b.eq	LBB0_8
; %bb.4:
	cmp	w23, #1
	b.ne	LBB0_6
; %bb.5:
	ldr	x1, [x22]
	lsl	w2, w20, #1
	mov	x0, x19
	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	_mix_16h_to_32
LBB0_6:
	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_7:
	ldr	x1, [x22]
	lsl	w2, w20, #1
	mov	x0, x19
	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	_mix_16h_to_32_s2
LBB0_8:
	ldr	x1, [x22]
	lsl	w2, w20, #1
	mov	x0, x19
	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	_mix_16h_to_32_s1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PsndRate,4,2                   ; @PsndRate
	.comm	_cdda_out_buffer,8,3            ; @cdda_out_buffer
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.no_dead_strip	_cdda_raw_update
.subsections_via_symbols
