	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0297_set_symbolrate
_stv0297_set_symbolrate:                ## @stv0297_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	shlq	$17, %rax
	movq	_STV0297_CLOCK_KHZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leal	3(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	cqto
	idivq	%rsi
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_3:
	movq	%r14, %rdi
	movl	$85, %esi
	xorl	%edx, %edx
	callq	_stv0297_writereg
	movl	%ebx, %eax
	shlb	$5, %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	movl	$86, %esi
	callq	_stv0297_writereg
	movl	%ebx, %eax
	shrl	$3, %eax
	movzbl	%al, %edx
	movq	%r14, %rdi
	movl	$87, %esi
	callq	_stv0297_writereg
	shrl	$11, %ebx
	movzbl	%bl, %edx
	movq	%r14, %rdi
	movl	$88, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_stv0297_writereg               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STV0297_CLOCK_KHZ,4,2          ## @STV0297_CLOCK_KHZ
	.no_dead_strip	_stv0297_set_symbolrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0297_set_symbolrate
_stv0297_set_symbolrate:                ; @stv0297_set_symbolrate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	lsl	x8, x1, #17
Lloh0:
	adrp	x9, _STV0297_CLOCK_KHZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STV0297_CLOCK_KHZ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	sbfx	x9, x9, #2, #30
	sdiv	x20, x8, x9
	mov	w1, #85
	mov	w2, #0
	bl	_stv0297_writereg
	ubfiz	w2, w20, #5, #3
	mov	x0, x19
	mov	w1, #86
	bl	_stv0297_writereg
	ubfx	w2, w20, #3, #8
	mov	x0, x19
	mov	w1, #87
	bl	_stv0297_writereg
	ubfx	w2, w20, #11, #8
	mov	x0, x19
	mov	w1, #88
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_stv0297_writereg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STV0297_CLOCK_KHZ,4,2          ; @STV0297_CLOCK_KHZ
	.no_dead_strip	_stv0297_set_symbolrate
.subsections_via_symbols
