	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0900_get_carr_freq
_stv0900_get_carr_freq:                 ## @stv0900_get_carr_freq
	.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	%esi, %r15d
	movq	%rdi, %r14
	movq	_CAR_FREQ2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_stv0900_get_bits
	movl	%eax, %ebx
	shll	$16, %ebx
	movq	_CAR_FREQ1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	shll	$8, %eax
	addl	%eax, %ebx
	movq	_CAR_FREQ0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	addl	%eax, %ebx
	movl	%ebx, %edi
	movl	$24, %esi
	callq	_ge2comp
                                        ## kill: def $eax killed $eax def $rax
	movl	%r15d, %ecx
	sarl	$12, %ecx
	movl	%eax, %edx
	sarl	$12, %edx
	leal	4095(%r15), %esi
	testl	%r15d, %r15d
	cmovnsl	%r15d, %esi
	andl	$-4096, %esi                    ## imm = 0xF000
	subl	%esi, %r15d
	leal	4095(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	andl	$-4096, %esi                    ## imm = 0xF000
	subl	%esi, %eax
	imull	%edx, %r15d
	imull	%ecx, %edx
	imull	%ecx, %eax
	sarl	$12, %eax
	addl	%edx, %eax
	sarl	$12, %r15d
	addl	%r15d, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAR_FREQ2,4,2                  ## @CAR_FREQ2
	.comm	_CAR_FREQ1,4,2                  ## @CAR_FREQ1
	.comm	_CAR_FREQ0,4,2                  ## @CAR_FREQ0
	.no_dead_strip	_stv0900_get_carr_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0900_get_carr_freq
_stv0900_get_carr_freq:                 ; @stv0900_get_carr_freq
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CAR_FREQ2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAR_FREQ2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_stv0900_get_bits
	mov	x21, x0
Lloh3:
	adrp	x8, _CAR_FREQ1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAR_FREQ1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv0900_get_bits
	lsl	w8, w0, #8
	add	w21, w8, w21, lsl #16
Lloh6:
	adrp	x8, _CAR_FREQ0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAR_FREQ0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv0900_get_bits
	add	w0, w21, w0
	mov	w1, #24
	bl	_ge2comp
	asr	w8, w19, #12
	asr	w9, w0, #12
	negs	w10, w19
	and	w10, w10, #0xfff
	and	w11, w19, #0xfff
	csneg	w10, w11, w10, mi
	and	w11, w0, #0xfff
	negs	w12, w0
	and	w12, w12, #0xfff
	csneg	w11, w11, w12, mi
	mul	w12, w9, w8
	mul	w8, w11, w8
	add	w8, w12, w8, asr #12
	mul	w9, w9, w10
	add	w0, w8, w9, asr #12
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CAR_FREQ2,4,2                  ; @CAR_FREQ2
	.comm	_CAR_FREQ1,4,2                  ; @CAR_FREQ1
	.comm	_CAR_FREQ0,4,2                  ; @CAR_FREQ0
	.no_dead_strip	_stv0900_get_carr_freq
.subsections_via_symbols
