	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88rs2000_set_symbolrate
_m88rs2000_set_symbolrate:              ## @m88rs2000_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, %r15d
	leal	-45000001(%r15), %eax
	cmpl	$-44000002, %eax                ## imm = 0xFD609CFE
	jbe	LBB0_1
## %bb.2:
	movq	(%rdi), %r14
	callq	_m88rs2000_get_mclk
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%r15d, %ecx
	imulq	$274877907, %rcx, %rdi          ## imm = 0x10624DD3
	shrq	$32, %rdi
	andl	$-64, %edi
	shll	$18, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%eax, %esi
	callq	_do_div
	movq	%r14, %rdi
	movl	$147, %esi
	xorl	%edx, %edx
	callq	_m88rs2000_writereg
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$148, %esi
	xorl	%edx, %edx
	callq	_m88rs2000_writereg
	movl	%eax, %r12d
	orl	%ebx, %r12d
	movq	%r14, %rdi
	movl	$149, %esi
	xorl	%edx, %edx
	callq	_m88rs2000_writereg
	movl	%eax, %ebx
	xorl	%edx, %edx
	cmpl	$10000001, %r15d                ## imm = 0x989681
	setb	%dl
	shll	$6, %edx
	orl	$32, %edx
	movq	%r14, %rdi
	movl	$160, %esi
	callq	_m88rs2000_writereg
	movl	%eax, %r13d
	orl	%ebx, %r13d
	orl	%r12d, %r13d
	movq	%r14, %rdi
	movl	$161, %esi
	movl	$224, %edx
	callq	_m88rs2000_writereg
	movl	%eax, %r12d
	xorl	%eax, %eax
	cmpl	$2800001, %r15d                 ## imm = 0x2AB981
	setae	%al
	cmpl	$12000001, %r15d                ## imm = 0xB71B01
	leal	144(,%rax,8), %eax
	movl	$32, %edx
	cmovbl	%eax, %edx
	movq	%r14, %rdi
	movl	$163, %esi
	callq	_m88rs2000_writereg
	movl	%eax, %ebx
	orl	%r12d, %ebx
	orl	%r13d, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_deb_info
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m88rs2000: m88rs2000_set_symbolrate\n"

	.no_dead_strip	_m88rs2000_set_symbolrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88rs2000_set_symbolrate
_m88rs2000_set_symbolrate:              ; @m88rs2000_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	w8, #23231
	movk	w8, #64849, lsl #16
	mov	w9, #40190
	movk	w9, #64864, lsl #16
	add	w8, w1, w8
	cmp	w8, w9
	b.ls	LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	x20, [x0]
	bl	_m88rs2000_get_mclk
	cbz	w0, LBB0_3
; %bb.2:
	mov	x1, x0
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w19, w8
	lsr	x8, x8, #32
	lsl	w8, w8, #18
	and	w0, w8, #0xff000000
	bl	_do_div
	mov	x0, x20
	mov	w1, #147
	mov	w2, #0
	bl	_m88rs2000_writereg
	mov	x21, x0
	mov	x0, x20
	mov	w1, #148
	mov	w2, #0
	bl	_m88rs2000_writereg
	orr	w21, w0, w21
	mov	x0, x20
	mov	w1, #149
	mov	w2, #0
	bl	_m88rs2000_writereg
	orr	w21, w21, w0
	mov	w8, #38528
	movk	w8, #152, lsl #16
	mov	w9, #96
	mov	w22, #32
	cmp	w19, w8
	csel	w2, w22, w9, hi
	mov	x0, x20
	mov	w1, #160
	bl	_m88rs2000_writereg
	orr	w21, w21, w0
	mov	x0, x20
	mov	w1, #161
	mov	w2, #224
	bl	_m88rs2000_writereg
	orr	w21, w21, w0
	mov	w8, #47488
	movk	w8, #42, lsl #16
	mov	w9, #144
	mov	w10, #152
	cmp	w19, w8
	csel	w8, w10, w9, hi
	mov	w9, #6912
	movk	w9, #183, lsl #16
	cmp	w19, w9
	csel	w2, w22, w8, hi
	mov	x0, x20
	mov	w1, #163
	bl	_m88rs2000_writereg
	orr	w19, w21, w0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_4:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m88rs2000: m88rs2000_set_symbolrate\n"

	.no_dead_strip	_m88rs2000_set_symbolrate
.subsections_via_symbols
