	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda8083_set_symbolrate
_tda8083_set_symbolrate:                ## @tda8083_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	$32000000, %esi                 ## imm = 0x1E84800
	movl	$32000000, %eax                 ## imm = 0x1E84800
	cmovll	%esi, %eax
	cmpl	$500001, %eax                   ## imm = 0x7A121
	movl	$500000, %edi                   ## imm = 0x7A120
	cmovgel	%eax, %edi
	xorl	%r15d, %r15d
	cmpl	$24000000, %edi                 ## imm = 0x16E3600
	setb	%r15b
	addl	%r15d, %r15d
	cmpl	$16000000, %edi                 ## imm = 0xF42400
	movl	$3, %eax
	cmovbl	%eax, %r15d
	movl	$2048000000, %eax               ## imm = 0x7A120000
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %ecx
	movl	%edx, %eax
	shll	$8, %eax
	cltd
	idivl	%edi
	movl	%eax, %esi
	movl	%edx, %eax
	shll	$8, %ecx
	addl	%ecx, %esi
	shll	$8, %eax
	shll	$8, %esi
	cltd
	idivl	%edi
	movl	%eax, %ebx
	addl	%esi, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_dprintk
	movq	%r14, %rdi
	movl	$5, %esi
	movl	%r15d, %edx
	callq	_tda8083_writereg
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_tda8083_writereg
	movzbl	%bh, %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_tda8083_writereg
	movzbl	%bl, %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_tda8083_writereg
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$60, %edx
	callq	_tda8083_writereg
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_tda8083_writereg
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tda8083: ratio == %08x\n"

	.no_dead_strip	_tda8083_set_symbolrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda8083_set_symbolrate
_tda8083_set_symbolrate:                ; @tda8083_set_symbolrate
	.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
	mov	w8, #18432
	movk	w8, #488, lsl #16
	cmp	w1, w8
	csel	w8, w1, w8, lt
	mov	w9, #41248
	movk	w9, #7, lsl #16
	cmp	w8, w9
	csel	w8, w8, w9, gt
	mov	w9, #13824
	movk	w9, #366, lsl #16
	cmp	w8, w9
	cset	w9, lo
	lsl	w9, w9, #1
	mov	w10, #9216
	movk	w10, #244, lsl #16
	mov	w11, #3
	cmp	w8, w10
	csel	w20, w11, w9, lo
	mov	w9, #2048000000
	udiv	w10, w9, w8
	msub	w9, w10, w8, w9
	lsl	w9, w9, #8
	sdiv	w11, w9, w8
	add	w10, w11, w10, lsl #8
	msub	w9, w11, w8, w9
	lsl	w9, w9, #8
	sdiv	w8, w9, w8
	add	w21, w8, w10, lsl #8
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_dprintk
	mov	x0, x19
	mov	w1, #5
	mov	x2, x20
	bl	_tda8083_writereg
	ubfx	w2, w21, #16, #8
	mov	x0, x19
	mov	w1, #2
	bl	_tda8083_writereg
	ubfx	w2, w21, #8, #8
	mov	x0, x19
	mov	w1, #3
	bl	_tda8083_writereg
	and	w2, w21, #0xff
	mov	x0, x19
	mov	w1, #4
	bl	_tda8083_writereg
	mov	x0, x19
	mov	w1, #0
	mov	w2, #60
	bl	_tda8083_writereg
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_tda8083_writereg
	mov	w0, #1
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tda8083: ratio == %08x\n"

	.no_dead_strip	_tda8083_set_symbolrate
.subsections_via_symbols
