	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0367cab_get_derot_freq
_stv0367cab_get_derot_freq:             ## @stv0367cab_get_derot_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_F367CAB_MIX_NCO_INC_LL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_stv0367_readbits
	movl	%eax, %r15d
	movq	_F367CAB_MIX_NCO_INC_HL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stv0367_readbits
	movl	%eax, %ebx
	shll	$8, %ebx
	addl	%r15d, %ebx
	movq	_F367CAB_MIX_NCO_INC_HH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stv0367_readbits
                                        ## kill: def $eax killed $eax def $rax
	shll	$16, %eax
	movl	%ebx, %ecx
	addl	%eax, %ecx
	leal	255(%rax,%rbx), %edx
	cmovnsl	%ecx, %edx
	sarl	$8, %edx
	movslq	%r14d, %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	imull	%edx, %eax
	leal	1(%rax), %ecx
	addl	$32768, %eax                    ## imm = 0x8000
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$15, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F367CAB_MIX_NCO_INC_LL,4,2     ## @F367CAB_MIX_NCO_INC_LL
	.comm	_F367CAB_MIX_NCO_INC_HL,4,2     ## @F367CAB_MIX_NCO_INC_HL
	.comm	_F367CAB_MIX_NCO_INC_HH,4,2     ## @F367CAB_MIX_NCO_INC_HH
	.no_dead_strip	_stv0367cab_get_derot_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0367cab_get_derot_freq
_stv0367cab_get_derot_freq:             ; @stv0367cab_get_derot_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, _F367CAB_MIX_NCO_INC_LL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F367CAB_MIX_NCO_INC_LL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_stv0367_readbits
	mov	x21, x0
Lloh3:
	adrp	x8, _F367CAB_MIX_NCO_INC_HL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _F367CAB_MIX_NCO_INC_HL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv0367_readbits
	add	w21, w21, w0, lsl #8
Lloh6:
	adrp	x8, _F367CAB_MIX_NCO_INC_HH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _F367CAB_MIX_NCO_INC_HH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv0367_readbits
	add	w8, w21, w0, lsl #16
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #8
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w19, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	mul	w8, w8, w9
	add	w9, w8, #1
	add	w10, w8, #8, lsl #12            ; =32768
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w0, w8, #15
	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	_F367CAB_MIX_NCO_INC_LL,4,2     ; @F367CAB_MIX_NCO_INC_LL
	.comm	_F367CAB_MIX_NCO_INC_HL,4,2     ; @F367CAB_MIX_NCO_INC_HL
	.comm	_F367CAB_MIX_NCO_INC_HH,4,2     ; @F367CAB_MIX_NCO_INC_HH
	.no_dead_strip	_stv0367cab_get_derot_freq
.subsections_via_symbols
