	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function snd_cs46xx_set_capture_sample_rate
LCPI0_0:
	.short	30933                           ## 0x78d5
	.short	23593                           ## 0x5c29
	.short	52429                           ## 0xcccd
	.short	43691                           ## 0xaaab
	.space	2
	.space	2
	.space	2
	.space	2
LCPI0_1:
	.short	524                             ## 0x20c
	.short	2621                            ## 0xa3d
	.short	13107                           ## 0x3333
	.short	21845                           ## 0x5555
	.space	2
	.space	2
	.space	2
	.space	2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_snd_cs46xx_set_capture_sample_rate:    ## @snd_cs46xx_set_capture_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r12
	leal	(%rsi,%rsi,8), %eax
	cmpl	$48000, %esi                    ## imm = 0xBB80
	movl	$48000, %ecx                    ## imm = 0xBB80
	cmovbl	%esi, %ecx
	cmpl	$48000, %eax                    ## imm = 0xBB80
	movl	$5333, %r15d                    ## imm = 0x14D5
	cmovael	%ecx, %r15d
	movl	$-1149239296, %eax              ## imm = 0xBB800000
	xorl	%edx, %edx
	divl	%r15d
	movl	%eax, %ebx
	movl	%r15d, %eax
	imull	%ebx, %eax
	shll	$10, %eax
	negl	%eax
	xorl	%edx, %edx
	divl	%r15d
	movl	%eax, %ecx
	movl	%edx, %eax
	movq	_GOF_PER_SEC@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	divl	(%rsi)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movl	%r15d, %eax
	shll	$16, %eax
	imulq	$91625969, %rax, %rdx           ## imm = 0x57619F1
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	shrq	$42, %rdx
	imull	$33506432, %edx, %esi           ## imm = 0x1FF4480
	addl	%eax, %esi
	shll	$7, %esi
	shll	$7, %edx
	imulq	$91625969, %rsi, %r13           ## imm = 0x57619F1
	shrq	$42, %r13
	addl	%edx, %r13d
	negl	%r13d
	shll	$10, %ebx
	addl	%ecx, %ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	leal	1151999(%r15), %eax
	xorl	%edx, %edx
	divl	%r15d
	movl	%eax, %ebx
	callq	_spin_lock_irqsave
	movq	_BA1_CSRC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shll	$16, %r14d
	orl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_snd_cs46xx_poke
	movq	_BA1_CCI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_snd_cs46xx_poke
	movq	_BA1_CD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_BA1_VARIDEC_BUF_1@GOTPCREL(%rip), %rax
	shll	$2, %ebx
	addl	(%rax), %ebx
	shll	$16, %ebx
	orl	$128, %ebx
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_snd_cs46xx_poke
	movq	_BA1_CPI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_snd_cs46xx_poke
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %ecx
	andb	$1, %cl
	movl	$1, %eax
	shll	%cl, %eax
	testb	$3, %r15b
	setne	%cl
	shll	%cl, %eax
	testb	$7, %r15b
	setne	%cl
	shll	%cl, %eax
	testb	$15, %r15b
	setne	%cl
	shll	%cl, %eax
	testb	$31, %r15b
	setne	%cl
	shll	%cl, %eax
	testb	$63, %r15b
	setne	%cl
	shll	%cl, %eax
	leal	(%rax,%rax,2), %ecx
	movd	%r15d, %xmm0
	pshuflw	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0,4,5,6,7]
	pmullw	LCPI0_0(%rip), %xmm0
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <524,2621,13107,21845,u,u,u,u>
	pminuw	%xmm0, %xmm1
	pcmpeqw	%xmm0, %xmm1
	pmovsxwd	%xmm1, %xmm0
	movmskps	%xmm0, %edx
	testb	$8, %dl
	cmovnel	%eax, %ecx
	leal	(%rcx,%rcx,4), %eax
	testb	$4, %dl
	cmovnel	%ecx, %eax
	leal	(%rax,%rax,4), %ecx
	testb	$2, %dl
	cmovnel	%eax, %ecx
	leal	(%rcx,%rcx,4), %ebx
	testb	$1, %dl
	cmovnel	%ecx, %ebx
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_BA1_CFG1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_snd_cs46xx_poke
	movq	_BA1_CFG2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	orl	$8388608, %ebx                  ## imm = 0x800000
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_snd_cs46xx_poke
	movq	_BA1_CCST@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_snd_cs46xx_poke
	movq	_BA1_CSPB@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	shrq	$41, %rdx
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_snd_cs46xx_poke
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%r12, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_snd_cs46xx_poke
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GOF_PER_SEC,4,2                ## @GOF_PER_SEC
	.comm	_BA1_CSRC,8,3                   ## @BA1_CSRC
	.comm	_BA1_CCI,8,3                    ## @BA1_CCI
	.comm	_BA1_CD,8,3                     ## @BA1_CD
	.comm	_BA1_VARIDEC_BUF_1,4,2          ## @BA1_VARIDEC_BUF_1
	.comm	_BA1_CPI,8,3                    ## @BA1_CPI
	.comm	_BA1_CFG1,8,3                   ## @BA1_CFG1
	.comm	_BA1_CFG2,8,3                   ## @BA1_CFG2
	.comm	_BA1_CCST,8,3                   ## @BA1_CCST
	.comm	_BA1_CSPB,8,3                   ## @BA1_CSPB
	.no_dead_strip	_snd_cs46xx_set_capture_sample_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cs46xx_set_capture_sample_rate
_snd_cs46xx_set_capture_sample_rate:    ; @snd_cs46xx_set_capture_sample_rate
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	add	w8, w1, w1, lsl #3
	mov	w9, #48000
	cmp	w1, w9
	csel	w9, w1, w9, lo
	lsr	w8, w8, #7
	mov	w10, #5333
	cmp	w8, #375
	csel	w24, w10, w9, lo
	lsl	w8, w24, #16
	mov	w9, #6641
	movk	w9, #1398, lsl #16
	umull	x23, w8, w9
	lsr	x10, x23, #42
	mov	w11, #17536
	movk	w11, #511, lsl #16
	madd	w8, w10, w11, w8
	lsl	w8, w8, #7
	umull	x8, w8, w9
	lsr	x8, x8, #42
	add	w8, w8, w10, lsl #7
	neg	w20, w8
	mov	w8, #-1149239296
	udiv	w8, w8, w24
	mul	w9, w24, w8
	neg	w9, w9, lsl #10
	udiv	w10, w9, w24
	add	w21, w10, w8, lsl #10
	msub	w8, w10, w24, w9
Lloh0:
	adrp	x9, _GOF_PER_SEC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GOF_PER_SEC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	udiv	w22, w8, w9
	msub	w25, w22, w9, w8
	add	w8, w24, #281, lsl #12          ; =1150976
	add	w8, w8, #1023
	udiv	w26, w8, w24
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _BA1_CSRC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BA1_CSRC@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	bfi	w22, w25, #16, #16
	mov	x0, x19
	mov	x2, x22
	bl	_snd_cs46xx_poke
Lloh6:
	adrp	x8, _BA1_CCI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BA1_CCI@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_cs46xx_poke
Lloh9:
	adrp	x8, _BA1_CD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BA1_CD@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
Lloh12:
	adrp	x8, _BA1_VARIDEC_BUF_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BA1_VARIDEC_BUF_1@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w8, w8, w26, lsl #2
	mov	w2, #128
	bfi	w2, w8, #16, #16
	mov	x0, x19
	bl	_snd_cs46xx_poke
Lloh15:
	adrp	x8, _BA1_CPI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BA1_CPI@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_snd_cs46xx_poke
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	and	w8, w24, #0x1
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w24, #0x3
	cset	w9, ne
	lsl	w8, w8, w9
	tst	w24, #0x7
	cset	w9, ne
	lsl	w8, w8, w9
	tst	w24, #0xf
	cset	w9, ne
	lsl	w8, w8, w9
	tst	w24, #0x1f
	cset	w9, ne
	lsl	w8, w8, w9
	tst	w24, #0x3f
	cset	w9, ne
	lsl	w8, w8, w9
	add	w9, w8, w8, lsl #1
	mov	w10, #43691
	movk	w10, #43690, lsl #16
	mul	w10, w24, w10
	mov	w11, #21846
	movk	w11, #21845, lsl #16
	cmp	w10, w11
	csel	w8, w8, w9, lo
	add	w9, w8, w8, lsl #2
	mov	w10, #52429
	movk	w10, #52428, lsl #16
	mul	w10, w24, w10
	mov	w11, #13108
	movk	w11, #13107, lsl #16
	cmp	w10, w11
	csel	w8, w8, w9, lo
	add	w9, w8, w8, lsl #2
	mov	w10, #23593
	movk	w10, #49807, lsl #16
	mul	w10, w24, w10
	mov	w11, #28836
	movk	w11, #2621, lsl #16
	cmp	w10, w11
	csel	w8, w8, w9, lo
	add	w9, w8, w8, lsl #2
	mov	w10, #30933
	movk	w10, #9961, lsl #16
	mul	w10, w24, w10
	mov	w11, #18875
	movk	w11, #524, lsl #16
	cmp	w10, w11
	csel	w20, w8, w9, lo
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh18:
	adrp	x8, _BA1_CFG1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BA1_CFG1@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_cs46xx_poke
Lloh21:
	adrp	x8, _BA1_CFG2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BA1_CFG2@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
	orr	w2, w20, #0x800000
	mov	x0, x19
	bl	_snd_cs46xx_poke
Lloh24:
	adrp	x8, _BA1_CCST@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BA1_CCST@GOTPAGEOFF]
Lloh26:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_snd_cs46xx_poke
Lloh27:
	adrp	x20, _BA1_CSPB@GOTPAGE
Lloh28:
	ldr	x20, [x20, _BA1_CSPB@GOTPAGEOFF]
	ldr	x1, [x20]
	lsr	x2, x23, #41
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_snd_cs46xx_poke
	ldr	x8, [x20]
	add	x1, x8, #4
	mov	x0, x19
	mov	w2, #65535
	bl	_snd_cs46xx_poke
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GOF_PER_SEC,4,2                ; @GOF_PER_SEC
	.comm	_BA1_CSRC,8,3                   ; @BA1_CSRC
	.comm	_BA1_CCI,8,3                    ; @BA1_CCI
	.comm	_BA1_CD,8,3                     ; @BA1_CD
	.comm	_BA1_VARIDEC_BUF_1,4,2          ; @BA1_VARIDEC_BUF_1
	.comm	_BA1_CPI,8,3                    ; @BA1_CPI
	.comm	_BA1_CFG1,8,3                   ; @BA1_CFG1
	.comm	_BA1_CFG2,8,3                   ; @BA1_CFG2
	.comm	_BA1_CCST,8,3                   ; @BA1_CCST
	.comm	_BA1_CSPB,8,3                   ; @BA1_CSPB
	.no_dead_strip	_snd_cs46xx_set_capture_sample_rate
.subsections_via_symbols
