	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function tda10021_set_symbolrate
LCPI0_0:
	.quad	0x405899999999999a              ## double 98.400000000000005
	.quad	0x404899999999999a              ## double 49.200000000000003
LCPI0_1:
	.quad	0x403899999999999a              ## double 24.600000000000001
	.quad	0x402899999999999a              ## double 12.300000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_tda10021_set_symbolrate:               ## @tda10021_set_symbolrate
	.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	_XIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	63(%rbx), %r8d
	testl	%ebx, %ebx
	cmovnsl	%ebx, %r8d
	leal	31(%rbx), %ecx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %ecx
	leal	15(%rbx), %edx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %edx
	movl	%ebx, %eax
	shrl	$31, %eax
	addl	%ebx, %eax
	sarl	%eax
	cmpl	%esi, %eax
	cmovgel	%esi, %eax
	cmpl	$500001, %eax                   ## imm = 0x7A121
	movl	$500000, %r13d                  ## imm = 0x7A120
	cmovgel	%eax, %r13d
	sarl	$4, %edx
	sarl	$5, %ecx
	cvtsi2sd	%ebx, %xmm0
	sarl	$6, %r8d
	movddup	%xmm0, %xmm0                    ## xmm0 = xmm0[0,0]
	movapd	%xmm0, %xmm1
	divpd	LCPI0_0(%rip), %xmm1
	divpd	LCPI0_1(%rip), %xmm0
	cvttpd2dq	%xmm0, %xmm0
	cvttpd2dq	%xmm1, %xmm1
	unpcklpd	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movd	%r13d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pcmpgtd	%xmm0, %xmm1
	movmskps	%xmm1, %esi
	movl	%esi, %eax
	shrb	$3, %al
	movzbl	%al, %r15d
	shll	$4, %r15d
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	cmpl	%edx, %r13d
	setl	%bl
	cmovll	%eax, %r15d
	testb	$4, %sil
	movl	$16, %edx
	cmovnel	%edx, %r15d
	cmpl	%ecx, %r13d
	movl	$2, %r12d
	cmovgel	%ebx, %r12d
	cmovll	%eax, %r15d
	testb	$2, %sil
	cmovnel	%edx, %r15d
	cmpl	%r8d, %r13d
	movl	$3, %ecx
	cmovll	%ecx, %r12d
	cmovll	%eax, %r15d
	testb	$1, %sil
	cmovnel	%edx, %r15d
	movq	%rdi, %r14
	movl	%r12d, %ecx
	shll	%cl, %r13d
	movl	%r13d, %eax
	shll	$4, %eax
	movq	_FIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cltd
	idivl	%esi
	movl	%eax, %ebx
	movl	%edx, %eax
	shll	$8, %eax
	cltd
	idivl	%esi
	movl	%edx, %edi
	shll	$8, %ebx
	addl	%eax, %ebx
	shll	$8, %edi
	shll	$8, %ebx
	callq	_DIV_ROUND_CLOSEST
	addl	%eax, %ebx
	movq	_XIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$5, %eax
	cltd
	idivl	%r13d
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	incl	%ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	incl	%eax
	sarl	%eax
	cmpl	$255, %eax
	movl	$255, %r13d
	cmovll	%eax, %r13d
	movq	_tda10021_inittab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orl	56(%rax), %r15d
	shll	$6, %r12d
	orl	12(%rax), %r12d
	movq	%r14, %rdi
	movl	$3, %esi
	movl	%r12d, %edx
	callq	__tda10021_writereg
	movzbl	%bl, %edx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	__tda10021_writereg
	movzbl	%bh, %edx
	movq	%r14, %rdi
	movl	$11, %esi
	callq	__tda10021_writereg
	shrl	$16, %ebx
	andl	$63, %ebx
	movq	%r14, %rdi
	movl	$12, %esi
	movl	%ebx, %edx
	callq	__tda10021_writereg
	movq	%r14, %rdi
	movl	$13, %esi
	movl	%r13d, %edx
	callq	__tda10021_writereg
	movq	%r14, %rdi
	movl	$14, %esi
	movl	%r15d, %edx
	callq	__tda10021_writereg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XIN,4,2                        ## @XIN
	.comm	_FIN,4,2                        ## @FIN
	.comm	_tda10021_inittab,8,3           ## @tda10021_inittab
	.no_dead_strip	_tda10021_set_symbolrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda10021_set_symbolrate
_tda10021_set_symbolrate:               ; @tda10021_set_symbolrate
	.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	x19, x0
Lloh0:
	adrp	x20, _XIN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _XIN@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w9, w8, #15
	cmp	w8, #0
	csel	w9, w9, w8, lt
	cinc	w10, w8, lt
	asr	w10, w10, #1
	add	w11, w8, #31
	csel	w11, w11, w8, lt
	add	w12, w8, #63
	csel	w12, w12, w8, lt
	cmp	w10, w1
	csel	w10, w10, w1, lt
	mov	w13, #41248
	movk	w13, #7, lsl #16
	scvtf	d0, w8
	cmp	w10, w13
	csel	w8, w10, w13, gt
	mov	x10, #-7378697629483820647
	movk	x10, #39322
	movk	x10, #16424, lsl #48
	fmov	d1, x10
	fdiv	d1, d0, d1
	fcvtzs	w10, d1
	cmp	w8, w10
	cset	w10, lt
	cmp	w8, w9, asr #4
	cset	w9, lt
	lsl	w10, w10, #4
	csel	w10, wzr, w10, lt
	mov	x13, #-7378697629483820647
	movk	x13, #39322
	movk	x13, #16440, lsl #48
	fmov	d1, x13
	fdiv	d1, d0, d1
	fcvtzs	w13, d1
	mov	w14, #16
	cmp	w8, w13
	csel	w10, w14, w10, lt
	cmp	w8, w11, asr #5
	mov	w11, #2
	csel	w9, w11, w9, lt
	csel	w10, wzr, w10, lt
	mov	x11, #-7378697629483820647
	movk	x11, #39322
	movk	x11, #16456, lsl #48
	fmov	d1, x11
	fdiv	d1, d0, d1
	fcvtzs	w11, d1
	cmp	w8, w11
	csel	w10, w14, w10, lt
	cmp	w8, w12, asr #6
	mov	w11, #3
	csel	w22, w11, w9, lt
	csel	w9, wzr, w10, lt
	mov	x10, #-7378697629483820647
	movk	x10, #39322
	movk	x10, #16472, lsl #48
	fmov	d1, x10
	fdiv	d0, d0, d1
	fcvtzs	w10, d0
	cmp	w8, w10
	csel	w21, w14, w9, lt
	lsl	w23, w8, w22
	lsl	w8, w23, #4
Lloh2:
	adrp	x9, _FIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FIN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	sdiv	w9, w8, w1
	msub	w8, w9, w1, w8
	lsl	w8, w8, #8
	sdiv	w10, w8, w1
	add	w24, w10, w9, lsl #8
	msub	w8, w10, w1, w8
	lsl	w0, w8, #8
	bl	_DIV_ROUND_CLOSEST
	add	w24, w0, w24, lsl #8
	ldr	w8, [x20]
	lsl	w8, w8, #5
	sdiv	w8, w8, w23
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w8, w8, #1
	mov	w9, #255
Lloh5:
	adrp	x10, _tda10021_inittab@GOTPAGE
Lloh6:
	ldr	x10, [x10, _tda10021_inittab@GOTPAGEOFF]
	cmp	w8, #255
	csel	w20, w8, w9, lt
Lloh7:
	ldr	x8, [x10]
	ldr	w9, [x8, #56]
	orr	w21, w21, w9
	ldr	w8, [x8, #12]
	orr	w2, w8, w22, lsl #6
	mov	x0, x19
	mov	w1, #3
	bl	__tda10021_writereg
	and	w2, w24, #0xff
	mov	x0, x19
	mov	w1, #10
	bl	__tda10021_writereg
	ubfx	w2, w24, #8, #8
	mov	x0, x19
	mov	w1, #11
	bl	__tda10021_writereg
	ubfx	w2, w24, #16, #6
	mov	x0, x19
	mov	w1, #12
	bl	__tda10021_writereg
	mov	x0, x19
	mov	w1, #13
	mov	x2, x20
	bl	__tda10021_writereg
	mov	x0, x19
	mov	w1, #14
	mov	x2, x21
	bl	__tda10021_writereg
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_XIN,4,2                        ; @XIN
	.comm	_FIN,4,2                        ; @FIN
	.comm	_tda10021_inittab,8,3           ; @tda10021_inittab
	.no_dead_strip	_tda10021_set_symbolrate
.subsections_via_symbols
