	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stv0900_set_tuner_auto         ## -- Begin function stv0900_set_tuner_auto
	.p2align	4, 0x90
_stv0900_set_tuner_auto:                ## @stv0900_set_tuner_auto
	.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
	movl	%edx, %r14d
	movq	%rdi, %r15
	shll	$6, %esi
	movslq	%esi, %rax
	imulq	$274877907, %rax, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$38, %rbx
	addl	%eax, %ebx
	movq	_TUN_RFFREQ2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	sarl	$10, %edx
	callq	_stv0900_write_bits
	movq	_TUN_RFFREQ1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %eax
	shrl	$2, %eax
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_stv0900_write_bits
	movq	_TUN_RFFREQ0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$3, %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_stv0900_write_bits
	movq	_TUN_BW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	%r14d, %rax
	imulq	$1125899907, %rax, %rdx         ## imm = 0x431BDE83
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$51, %rdx
	addl	%eax, %edx
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_stv0900_write_bits
	movq	_TNRLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stv0900_write_reg              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TUN_RFFREQ2,4,2                ## @TUN_RFFREQ2
	.comm	_TUN_RFFREQ1,4,2                ## @TUN_RFFREQ1
	.comm	_TUN_RFFREQ0,4,2                ## @TUN_RFFREQ0
	.comm	_TUN_BW,4,2                     ## @TUN_BW
	.comm	_TNRLD,4,2                      ## @TNRLD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stv0900_set_tuner_auto         ; -- Begin function stv0900_set_tuner_auto
	.p2align	2
_stv0900_set_tuner_auto:                ; @stv0900_set_tuner_auto
	.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, x2
	mov	x20, x0
	lsl	w8, w1, #6
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w21, w8, w9
Lloh0:
	adrp	x8, _TUN_RFFREQ2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TUN_RFFREQ2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	asr	w2, w21, #10
	bl	_stv0900_write_bits
Lloh3:
	adrp	x8, _TUN_RFFREQ1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TUN_RFFREQ1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ubfx	w2, w21, #2, #8
	mov	x0, x20
	bl	_stv0900_write_bits
Lloh6:
	adrp	x8, _TUN_RFFREQ0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TUN_RFFREQ0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	and	w2, w21, #0x3
	mov	x0, x20
	bl	_stv0900_write_bits
Lloh9:
	adrp	x8, _TUN_BW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TUN_BW@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w8, #56963
	movk	w8, #17179, lsl #16
	smull	x8, w19, w8
	lsr	x9, x8, #63
	asr	x8, x8, #51
	add	w2, w8, w9
	mov	x0, x20
	bl	_stv0900_write_bits
Lloh12:
	adrp	x8, _TNRLD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TNRLD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #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
	b	_stv0900_write_reg
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TUN_RFFREQ2,4,2                ; @TUN_RFFREQ2
	.comm	_TUN_RFFREQ1,4,2                ; @TUN_RFFREQ1
	.comm	_TUN_RFFREQ0,4,2                ; @TUN_RFFREQ0
	.comm	_TUN_BW,4,2                     ; @TUN_BW
	.comm	_TNRLD,4,2                      ; @TNRLD
.subsections_via_symbols
