	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stv0900_get_freq_auto          ## -- Begin function stv0900_get_freq_auto
	.p2align	4, 0x90
_stv0900_get_freq_auto:                 ## @stv0900_get_freq_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
	movq	%rdi, %r14
	movq	_TUN_RFFREQ2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_stv0900_get_bits
	movl	%eax, %ebx
	shll	$10, %ebx
	movq	_TUN_RFFREQ1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax,4), %ebx
	movq	_TUN_RFFREQ0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	addl	%ebx, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	leal	63(%rax), %r15d
	testl	%eax, %eax
	cmovnsl	%eax, %r15d
	sarl	$6, %r15d
	movq	_TUN_RFRESTE1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	movl	%eax, %ebx
	sarl	$2, %ebx
	movq	_TUN_RFRESTE0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	addl	%ebx, %eax
	imull	$1000, %eax, %ecx               ## imm = 0x3E8
	leal	2047(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$11, %eax
	addl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_RFRESTE1,4,2               ## @TUN_RFRESTE1
	.comm	_TUN_RFRESTE0,4,2               ## @TUN_RFRESTE0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stv0900_get_freq_auto          ; -- Begin function stv0900_get_freq_auto
	.p2align	2
_stv0900_get_freq_auto:                 ; @stv0900_get_freq_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, x0
Lloh0:
	adrp	x8, _TUN_RFFREQ2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TUN_RFFREQ2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_stv0900_get_bits
	mov	x20, x0
Lloh3:
	adrp	x8, _TUN_RFFREQ1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TUN_RFFREQ1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv0900_get_bits
	lsl	w8, w0, #2
	add	w20, w8, w20, lsl #10
Lloh6:
	adrp	x8, _TUN_RFFREQ0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TUN_RFFREQ0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv0900_get_bits
	add	w8, w20, w0
	mov	w21, #1000
	mul	w8, w8, w21
	add	w9, w8, #63
	cmp	w8, #0
	csel	w22, w9, w8, lt
Lloh9:
	adrp	x8, _TUN_RFRESTE1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TUN_RFRESTE1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv0900_get_bits
	mov	x20, x0
Lloh12:
	adrp	x8, _TUN_RFRESTE0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TUN_RFRESTE0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv0900_get_bits
	add	w8, w0, w20, asr #2
	mul	w8, w8, w21
	add	w9, w8, #2047
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #11
	add	w0, w8, w22, asr #6
	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	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_RFRESTE1,4,2               ; @TUN_RFRESTE1
	.comm	_TUN_RFRESTE0,4,2               ; @TUN_RFRESTE0
.subsections_via_symbols
