	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0288_set_symbolrate
_stv0288_set_symbolrate:                ## @stv0288_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
	ja	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movq	(%rdi), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movl	$34, %esi
	xorl	%edx, %edx
	callq	_stv0288_writeregI
	movq	%r12, %rdi
	movl	$35, %esi
	xorl	%edx, %edx
	callq	_stv0288_writeregI
	movq	%r12, %rdi
	movl	$43, %esi
	movl	$255, %edx
	callq	_stv0288_writeregI
	movq	%r12, %rdi
	movl	$44, %esi
	movl	$247, %edx
	callq	_stv0288_writeregI
	movl	%r15d, %eax
	imulq	$274877907, %rax, %rbx          ## imm = 0x10624DD3
	shrq	$32, %rbx
	andl	$-64, %ebx
	shll	$9, %ebx
	imulq	$1334532239, %rbx, %rax         ## imm = 0x4F8B588F
	shrq	$32, %rax
	subl	%eax, %ebx
	shrl	%ebx
	addl	%eax, %ebx
	movl	%ebx, %r15d
	shrl	$11, %r15d
	movl	%ebx, %r13d
	shrl	$23, %r13d
	shrl	$15, %ebx
	shlb	$4, %r15b
	movq	%r12, %rdi
	movl	$40, %esi
	movl	$128, %edx
	callq	_stv0288_writeregI
	movq	%r12, %rdi
	movl	$41, %esi
	xorl	%edx, %edx
	callq	_stv0288_writeregI
	movq	%r12, %rdi
	movl	$42, %esi
	xorl	%edx, %edx
	callq	_stv0288_writeregI
	movzbl	%r13b, %edx
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_stv0288_writeregI
	movzbl	%bl, %edx
	movq	%r12, %rdi
	movl	$41, %esi
	callq	_stv0288_writeregI
	movzbl	%r15b, %edx
	movq	%r12, %rdi
	movl	$42, %esi
	callq	_stv0288_writeregI
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
LBB0_3:
	movl	%r14d, %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	"stv0288: stv0288_set_symbolrate\n"

	.no_dead_strip	_stv0288_set_symbolrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0288_set_symbolrate
_stv0288_set_symbolrate:                ; @stv0288_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.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x20, x1
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #34
	mov	w2, #0
	bl	_stv0288_writeregI
	mov	x0, x19
	mov	w1, #35
	mov	w2, #0
	bl	_stv0288_writeregI
	mov	x0, x19
	mov	w1, #43
	mov	w2, #255
	bl	_stv0288_writeregI
	mov	x0, x19
	mov	w1, #44
	mov	w2, #247
	bl	_stv0288_writeregI
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w20, w8
	lsr	x8, x8, #32
	lsl	w8, w8, #9
	and	w8, w8, #0xffff8000
	mov	w9, #22671
	movk	w9, #20363, lsl #16
	umull	x9, w8, w9
	lsr	x9, x9, #32
	sub	w8, w8, w9
	add	w20, w9, w8, lsr #1
	lsr	w21, w20, #7
	mov	x0, x19
	mov	w1, #40
	mov	w2, #128
	bl	_stv0288_writeregI
	mov	x0, x19
	mov	w1, #41
	mov	w2, #0
	bl	_stv0288_writeregI
	mov	x0, x19
	mov	w1, #42
	mov	w2, #0
	bl	_stv0288_writeregI
	ubfx	w2, w20, #23, #8
	mov	x0, x19
	mov	w1, #40
	bl	_stv0288_writeregI
	ubfx	w2, w20, #15, #8
	mov	x0, x19
	mov	w1, #41
	bl	_stv0288_writeregI
	and	w2, w21, #0xf0
	mov	x0, x19
	mov	w1, #42
	bl	_stv0288_writeregI
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	w0, #0
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stv0288: stv0288_set_symbolrate\n"

	.no_dead_strip	_stv0288_set_symbolrate
.subsections_via_symbols
