	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es1371_adc_rate
_snd_es1371_adc_rate:                   ## @snd_es1371_adc_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	%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
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_mutex_lock
	movl	%r15d, %eax
	imulq	$91625969, %rax, %r12           ## imm = 0x57619F1
	shrq	$38, %r12
	movl	$43520, %eax                    ## imm = 0xAA00
	btl	%r12d, %eax
	sbbl	$0, %r12d
	leal	(%r12,%r12,4), %eax
	leal	(%r12,%rax,4), %ecx
	decl	%ecx
	orl	$1, %ecx
	movq	_ES_SMPREG_ADC@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_ES_SMPREG_TRUNC_N@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	xorl	%edx, %edx
	cmpl	$24000, %r15d                   ## imm = 0x5DC0
	jb	LBB0_2
## %bb.1:
	movl	$239, %edi
	subl	%ecx, %edi
	cmovbl	%edx, %edi
	shll	$8, %edi
	movl	%r12d, %edx
	shll	$4, %edx
	orl	%edi, %edx
	jmp	LBB0_3
LBB0_2:
	movl	$119, %edi
	subl	%ecx, %edi
	cmovbl	%edx, %edi
	shll	$8, %edi
	movl	%r12d, %edx
	shll	$4, %edx
	orl	%edi, %edx
	orl	$32768, %edx                    ## imm = 0x8000
LBB0_3:
	addq	%rax, %rsi
	movq	%r14, %rdi
	callq	_snd_es1371_src_write
	movl	$1572864000, %eax               ## imm = 0x5DC00000
	xorl	%edx, %edx
	divl	%r15d
	movl	%eax, %ebx
	imull	%r12d, %ebx
	movq	_ES_SMPREG_INT_REGS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	(%r13), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_snd_es1371_src_read
	movzbl	%al, %eax
	movl	%ebx, %edx
	shrl	$5, %edx
	andl	$64512, %edx                    ## imm = 0xFC00
	orl	%eax, %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_snd_es1371_src_write
	movq	_ES_SMPREG_VFREQ_FRAC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	andl	$32767, %ebx                    ## imm = 0x7FFF
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_snd_es1371_src_write
	movq	_ES_SMPREG_VOL_ADC@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	shll	$8, %r12d
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_snd_es1371_src_write
	movq	(%rbx), %rsi
	incq	%rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_snd_es1371_src_write
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ES_SMPREG_ADC,8,3              ## @ES_SMPREG_ADC
	.comm	_ES_SMPREG_TRUNC_N,8,3          ## @ES_SMPREG_TRUNC_N
	.comm	_ES_SMPREG_INT_REGS,8,3         ## @ES_SMPREG_INT_REGS
	.comm	_ES_SMPREG_VFREQ_FRAC,8,3       ## @ES_SMPREG_VFREQ_FRAC
	.comm	_ES_SMPREG_VOL_ADC,8,3          ## @ES_SMPREG_VOL_ADC
	.no_dead_strip	_snd_es1371_adc_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_es1371_adc_rate
_snd_es1371_adc_rate:                   ; @snd_es1371_adc_rate
	.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
	bl	_mutex_lock
	mov	w8, #6641
	movk	w8, #1398, lsl #16
	umull	x8, w20, w8
	lsr	x8, x8, #38
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #43520
	tst	w9, w10
	cset	w9, ne
	sub	w21, w8, w9
	mov	w8, #21
	mul	w8, w21, w8
	sub	w8, w8, #1
	orr	w8, w8, #0x1
Lloh0:
	adrp	x22, _ES_SMPREG_ADC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ES_SMPREG_ADC@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x10, _ES_SMPREG_TRUNC_N@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ES_SMPREG_TRUNC_N@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	lsr	w11, w20, #6
	mov	w12, #119
	subs	w12, w12, w8
	csel	w12, wzr, w12, lo
	lsl	w13, w21, #4
	orr	w12, w13, w12, lsl #8
	orr	w12, w12, #0x8000
	mov	w13, #239
	subs	w8, w13, w8
	csel	w8, wzr, w8, lo
	lsl	w8, w8, #8
	orr	w8, w8, w21, lsl #4
	cmp	w11, #375
	csel	w2, w12, w8, lo
	add	x1, x10, x9
	mov	x0, x19
	bl	_snd_es1371_src_write
	mov	w8, #1572864000
	udiv	w8, w8, w20
	mul	w23, w8, w21
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _ES_SMPREG_INT_REGS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ES_SMPREG_INT_REGS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x20, x9, x8
	mov	x0, x19
	mov	x1, x20
	bl	_snd_es1371_src_read
	lsr	w8, w23, #5
	and	w2, w8, #0xfc00
	bfxil	w2, w0, #0, #8
	mov	x0, x19
	mov	x1, x20
	bl	_snd_es1371_src_write
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _ES_SMPREG_VFREQ_FRAC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ES_SMPREG_VFREQ_FRAC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	and	w2, w23, #0x7fff
	mov	x0, x19
	bl	_snd_es1371_src_write
Lloh11:
	adrp	x22, _ES_SMPREG_VOL_ADC@GOTPAGE
Lloh12:
	ldr	x22, [x22, _ES_SMPREG_VOL_ADC@GOTPAGEOFF]
	ldr	x1, [x22]
	lsl	w20, w21, #8
	mov	x0, x19
	mov	x2, x20
	bl	_snd_es1371_src_write
	ldr	x8, [x22]
	add	x1, x8, #1
	mov	x0, x19
	mov	x2, x20
	bl	_snd_es1371_src_write
	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	_mutex_unlock
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ES_SMPREG_ADC,8,3              ; @ES_SMPREG_ADC
	.comm	_ES_SMPREG_TRUNC_N,8,3          ; @ES_SMPREG_TRUNC_N
	.comm	_ES_SMPREG_INT_REGS,8,3         ; @ES_SMPREG_INT_REGS
	.comm	_ES_SMPREG_VFREQ_FRAC,8,3       ; @ES_SMPREG_VFREQ_FRAC
	.comm	_ES_SMPREG_VOL_ADC,8,3          ; @ES_SMPREG_VOL_ADC
	.no_dead_strip	_snd_es1371_adc_rate
.subsections_via_symbols
