	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdsp_external_sample_rate
_hdsp_external_sample_rate:             ## @hdsp_external_sample_rate
	.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
	movq	%rdi, %r14
	movq	_HDSP_status2Register@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hdsp_read
	movl	%eax, %ebx
	movq	_HDSP_systemFrequencyMask@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	(%r14), %rax
	movq	_H9632@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_hdsp_autosync_ref
	movq	_HDSP_AUTOSYNC_FROM_SPDIF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hdsp_spdif_sample_rate         ## TAILCALL
LBB0_2:
	addl	$-128, %ebx
	xorl	%eax, %eax
	cmpl	$5, %ebx
	ja	LBB0_4
## %bb.3:
	movslq	%ebx, %rax
	leaq	l_switch.table.hdsp_external_sample_rate(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDSP_status2Register,4,2       ## @HDSP_status2Register
	.comm	_HDSP_systemFrequencyMask,4,2   ## @HDSP_systemFrequencyMask
	.comm	_H9632,8,3                      ## @H9632
	.comm	_HDSP_AUTOSYNC_FROM_SPDIF,8,3   ## @HDSP_AUTOSYNC_FROM_SPDIF
	.no_dead_strip	_hdsp_external_sample_rate
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.hdsp_external_sample_rate
l_switch.table.hdsp_external_sample_rate:
	.long	96000                           ## 0x17700
	.long	88200                           ## 0x15888
	.long	64000                           ## 0xfa00
	.long	48000                           ## 0xbb80
	.long	44100                           ## 0xac44
	.long	32000                           ## 0x7d00

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdsp_external_sample_rate
_hdsp_external_sample_rate:             ; @hdsp_external_sample_rate
	.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	x19, x0
Lloh0:
	adrp	x8, _HDSP_status2Register@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDSP_status2Register@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_hdsp_read
	mov	x20, x0
Lloh3:
	adrp	x8, _HDSP_systemFrequencyMask@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDSP_systemFrequencyMask@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _H9632@GOTPAGE
Lloh7:
	ldr	x9, [x9, _H9632@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_hdsp_autosync_ref
Lloh9:
	adrp	x8, _HDSP_AUTOSYNC_FROM_SPDIF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDSP_AUTOSYNC_FROM_SPDIF@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	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
	b	_hdsp_spdif_sample_rate
LBB0_3:
	and	w8, w21, w20
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.4:
Lloh12:
	adrp	x9, l_switch.table.hdsp_external_sample_rate@PAGE
Lloh13:
	add	x9, x9, l_switch.table.hdsp_external_sample_rate@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HDSP_status2Register,4,2       ; @HDSP_status2Register
	.comm	_HDSP_systemFrequencyMask,4,2   ; @HDSP_systemFrequencyMask
	.comm	_H9632,8,3                      ; @H9632
	.comm	_HDSP_AUTOSYNC_FROM_SPDIF,8,3   ; @HDSP_AUTOSYNC_FROM_SPDIF
	.no_dead_strip	_hdsp_external_sample_rate
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.hdsp_external_sample_rate
l_switch.table.hdsp_external_sample_rate:
	.long	96000                           ; 0x17700
	.long	88200                           ; 0x15888
	.long	64000                           ; 0xfa00
	.long	48000                           ; 0xbb80
	.long	44100                           ; 0xac44
	.long	32000                           ; 0x7d00

.subsections_via_symbols
