	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda10023_set_symbolrate
_tda10023_set_symbolrate:               ## @tda10023_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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %esi
	leal	(%rsi,%rsi), %eax
	leal	(%rax,%rax,4), %eax
	cltq
	imulq	$558694933, %rax, %rax          ## imm = 0x214D0215
	movq	%rax, %rcx
	shrq	$63, %rcx
	movq	%rax, %rdx
	sarq	$39, %rdx
	addl	%ecx, %edx
	movl	$3, %r13d
	cmpl	%r14d, %edx
	jg	LBB0_1
## %bb.2:
	leal	63(%rsi), %edx
	testl	%esi, %esi
	cmovnsl	%esi, %edx
	sarl	$6, %edx
	xorl	%edi, %edi
	cmpl	%r14d, %edx
	jg	LBB0_10
## %bb.3:
	movq	%rax, %rdx
	sarq	$38, %rdx
	addl	%ecx, %edx
	movl	$2, %r13d
	cmpl	%r14d, %edx
	jg	LBB0_1
## %bb.5:
	leal	31(%rsi), %edx
	testl	%esi, %esi
	cmovnsl	%esi, %edx
	sarl	$5, %edx
	cmpl	%r14d, %edx
	jg	LBB0_10
## %bb.6:
	movq	%rax, %rdx
	sarq	$37, %rdx
	addl	%ecx, %edx
	movl	$1, %r13d
	cmpl	%r14d, %edx
	jle	LBB0_8
LBB0_1:
	movl	$128, %edi
LBB0_10:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %edx
	shll	$4, %edx
	movl	%r13d, %ecx
	sarl	%cl, %edx
	movl	%r14d, %eax
	shrl	$31, %eax
	addl	%r14d, %eax
	sarl	%eax
	addl	%edx, %eax
	cltd
	idivl	%r14d
	cmpl	$255, %eax
	movl	$255, %ebx
	cmovll	%eax, %ebx
	leal	24(%r13), %ecx
	movl	%r14d, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	movl	%r12d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_do_div
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	callq	_dprintk
	shll	$6, %r13d
	movq	%r15, %rdi
	movl	$3, %esi
	movl	$192, %edx
	movl	%r13d, %ecx
	callq	_tda10023_writebit
	movq	%r15, %rdi
	movl	$10, %esi
	xorl	%edx, %edx
	callq	_tda10023_writereg
	movq	%r15, %rdi
	movl	$11, %esi
	xorl	%edx, %edx
	callq	_tda10023_writereg
	movq	%r15, %rdi
	movl	$12, %esi
	xorl	%edx, %edx
	callq	_tda10023_writereg
	movq	%r15, %rdi
	movl	$13, %esi
	movl	%ebx, %edx
	callq	_tda10023_writereg
	movq	%r15, %rdi
	movl	$61, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_tda10023_writereg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leal	15(%rsi), %edx
	testl	%esi, %esi
	cmovnsl	%esi, %edx
	sarl	$4, %edx
	cmpl	%r14d, %edx
	jg	LBB0_10
## %bb.9:
	sarq	$36, %rax
	addl	%ecx, %eax
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	setg	%dil
	shll	$7, %edi
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Symbolrate %i, BDR %i BDRI %i, NDEC %i\n"

	.no_dead_strip	_tda10023_set_symbolrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda10023_set_symbolrate
_tda10023_set_symbolrate:               ; @tda10023_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	x20, x1
	mov	x19, x0
	ldr	w1, [x0]
	add	w8, w1, w1, lsl #2
	lsl	w8, w8, #1
	mov	w9, #533
	movk	w9, #8525, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #39
	add	w9, w9, w10
	cmp	w9, w20
	b.le	LBB0_2
; %bb.1:
	mov	w21, #128
	mov	w22, #3
	b	LBB0_11
LBB0_2:
	add	w9, w1, #63
	cmp	w1, #0
	csel	w9, w9, w1, lt
	cmp	w20, w9, asr #6
	b.ge	LBB0_4
; %bb.3:
	mov	w21, #0
	mov	w22, #3
	b	LBB0_11
LBB0_4:
	mov	w9, #533
	movk	w9, #8525, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	cmp	w9, w20
	b.le	LBB0_6
; %bb.5:
	mov	w21, #128
	mov	w22, #2
	b	LBB0_11
LBB0_6:
	add	w9, w1, #31
	cmp	w1, #0
	csel	w9, w9, w1, lt
	cmp	w20, w9, asr #5
	b.ge	LBB0_8
; %bb.7:
	mov	w21, #0
	mov	w22, #2
	b	LBB0_11
LBB0_8:
	mov	w9, #533
	movk	w9, #8525, lsl #16
	smull	x9, w8, w9
	lsr	x8, x9, #63
	asr	x10, x9, #37
	add	w10, w10, w8
	cmp	w10, w20
	b.le	LBB0_10
; %bb.9:
	mov	w21, #128
	mov	w22, #1
	b	LBB0_11
LBB0_10:
	add	w10, w1, #15
	cmp	w1, #0
	csel	w10, w10, w1, lt
	mov	w11, #1
	asr	x9, x9, #36
	add	w8, w9, w8
	cmp	w8, w20
	cset	w8, gt
	lsl	w8, w8, #7
	cmp	w20, w10, asr #4
	csel	w22, w11, wzr, lt
	csel	w21, wzr, w8, lt
LBB0_11:
	lsl	w8, w1, #4
	asr	w8, w8, w22
	cmp	w20, #0
	cinc	w9, w20, lt
	add	w8, w8, w9, asr #1
	sdiv	w8, w8, w20
	mov	w9, #255
	cmp	w8, #255
	csel	w23, w8, w9, lt
	orr	w8, w22, #0x18
	lsl	w24, w20, w8
	mov	x0, x24
	bl	_do_div
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	bl	_dprintk
	lsl	w3, w22, #6
	mov	x0, x19
	mov	w1, #3
	mov	w2, #192
	bl	_tda10023_writebit
	mov	x0, x19
	mov	w1, #10
	mov	w2, #0
	bl	_tda10023_writereg
	mov	x0, x19
	mov	w1, #11
	mov	w2, #0
	bl	_tda10023_writereg
	mov	x0, x19
	mov	w1, #12
	mov	w2, #0
	bl	_tda10023_writereg
	mov	x0, x19
	mov	w1, #13
	mov	x2, x23
	bl	_tda10023_writereg
	mov	x0, x19
	mov	w1, #61
	mov	x2, x21
	bl	_tda10023_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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Symbolrate %i, BDR %i BDRI %i, NDEC %i\n"

	.no_dead_strip	_tda10023_set_symbolrate
.subsections_via_symbols
