	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ca0132_playback_pcm_delay
_ca0132_playback_pcm_delay:             ## @ca0132_playback_pcm_delay
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rcx
	movq	(%rcx), %rsi
	movq	_DSP_DOWNLOADED@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	cmpq	(%rdi), %rsi
	jne	LBB0_8
## %bb.1:
	movq	_DSP_PLAYBACK_INIT_LATENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	16(%rcx), %rsi
	movq	_PLAY_ENHANCEMENT@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rax
	movq	_EFFECT_START_NID@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	subq	%rdi, %rax
	cmpq	$0, (%rsi,%rax,8)
	je	LBB0_5
## %bb.2:
	movq	_SURROUND@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%rdi, %rax
	cmpq	$0, (%rsi,%rax,8)
	jne	LBB0_4
## %bb.3:
	movq	_DIALOG_PLUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%rdi, %rax
	cmpq	$0, (%rsi,%rax,8)
	je	LBB0_5
LBB0_4:
	movq	_DSP_PLAY_ENHANCEMENT_LATENCY@GOTPCREL(%rip), %rax
	addl	(%rax), %r8d
LBB0_5:
	movq	(%rdx), %rdx
	movq	8(%rcx), %rax
	movq	_SPEAKER_OUT@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	cmpq	(%rsi), %rax
	jne	LBB0_7
## %bb.6:
	movq	_DSP_SPEAKER_OUT_LATENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_7:
	addl	%r8d, %ecx
	imull	(%rdx), %ecx
	imulq	$274877907, %rcx, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSP_PLAYBACK_INIT_LATENCY,4,2  ## @DSP_PLAYBACK_INIT_LATENCY
	.comm	_DSP_DOWNLOADED,8,3             ## @DSP_DOWNLOADED
	.comm	_PLAY_ENHANCEMENT,8,3           ## @PLAY_ENHANCEMENT
	.comm	_EFFECT_START_NID,8,3           ## @EFFECT_START_NID
	.comm	_SURROUND,8,3                   ## @SURROUND
	.comm	_DIALOG_PLUS,8,3                ## @DIALOG_PLUS
	.comm	_DSP_PLAY_ENHANCEMENT_LATENCY,8,3 ## @DSP_PLAY_ENHANCEMENT_LATENCY
	.comm	_SPEAKER_OUT,8,3                ## @SPEAKER_OUT
	.comm	_DSP_SPEAKER_OUT_LATENCY,8,3    ## @DSP_SPEAKER_OUT_LATENCY
	.no_dead_strip	_ca0132_playback_pcm_delay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ca0132_playback_pcm_delay
_ca0132_playback_pcm_delay:             ; @ca0132_playback_pcm_delay
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _DSP_DOWNLOADED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DSP_DOWNLOADED@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.1:
Lloh3:
	adrp	x9, _DSP_PLAYBACK_INIT_LATENCY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DSP_PLAYBACK_INIT_LATENCY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	x10, [x2]
	ldr	x11, [x8, #16]
Lloh6:
	adrp	x12, _PLAY_ENHANCEMENT@GOTPAGE
Lloh7:
	ldr	x12, [x12, _PLAY_ENHANCEMENT@GOTPAGEOFF]
Lloh8:
	ldr	x13, [x12]
Lloh9:
	adrp	x12, _EFFECT_START_NID@GOTPAGE
Lloh10:
	ldr	x12, [x12, _EFFECT_START_NID@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
	sub	x13, x13, x12
	ldr	x13, [x11, x13, lsl #3]
	cbz	x13, LBB0_5
; %bb.2:
Lloh12:
	adrp	x13, _SURROUND@GOTPAGE
Lloh13:
	ldr	x13, [x13, _SURROUND@GOTPAGEOFF]
Lloh14:
	ldr	x13, [x13]
	sub	x13, x13, x12
	ldr	x13, [x11, x13, lsl #3]
	cbnz	x13, LBB0_4
; %bb.3:
Lloh15:
	adrp	x13, _DIALOG_PLUS@GOTPAGE
Lloh16:
	ldr	x13, [x13, _DIALOG_PLUS@GOTPAGEOFF]
Lloh17:
	ldr	x13, [x13]
	sub	x12, x13, x12
	ldr	x11, [x11, x12, lsl #3]
	cbz	x11, LBB0_5
LBB0_4:
Lloh18:
	adrp	x11, _DSP_PLAY_ENHANCEMENT_LATENCY@GOTPAGE
Lloh19:
	ldr	x11, [x11, _DSP_PLAY_ENHANCEMENT_LATENCY@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	add	w9, w9, w11
LBB0_5:
	ldr	x8, [x8, #8]
Lloh21:
	adrp	x11, _SPEAKER_OUT@GOTPAGE
Lloh22:
	ldr	x11, [x11, _SPEAKER_OUT@GOTPAGEOFF]
Lloh23:
	ldr	x11, [x11]
Lloh24:
	adrp	x12, _DSP_SPEAKER_OUT_LATENCY@GOTPAGE
Lloh25:
	ldr	x12, [x12, _DSP_SPEAKER_OUT_LATENCY@GOTPAGEOFF]
Lloh26:
	ldr	w12, [x12]
	cmp	x8, x11
	csel	w8, w12, wzr, eq
	add	w8, w8, w9
	ldr	w9, [x10]
	mul	w8, w8, w9
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x0, x8, #38
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_6:
	mov	w0, #0
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DSP_PLAYBACK_INIT_LATENCY,4,2  ; @DSP_PLAYBACK_INIT_LATENCY
	.comm	_DSP_DOWNLOADED,8,3             ; @DSP_DOWNLOADED
	.comm	_PLAY_ENHANCEMENT,8,3           ; @PLAY_ENHANCEMENT
	.comm	_EFFECT_START_NID,8,3           ; @EFFECT_START_NID
	.comm	_SURROUND,8,3                   ; @SURROUND
	.comm	_DIALOG_PLUS,8,3                ; @DIALOG_PLUS
	.comm	_DSP_PLAY_ENHANCEMENT_LATENCY,8,3 ; @DSP_PLAY_ENHANCEMENT_LATENCY
	.comm	_SPEAKER_OUT,8,3                ; @SPEAKER_OUT
	.comm	_DSP_SPEAKER_OUT_LATENCY,8,3    ; @DSP_SPEAKER_OUT_LATENCY
	.no_dead_strip	_ca0132_playback_pcm_delay
.subsections_via_symbols
