	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0367cab_GetSymbolRate
_stv0367cab_GetSymbolRate:              ## @stv0367cab_GetSymbolRate
	.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	_R367CAB_SRC_NCO_LL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_stv0367_readreg
	movl	%eax, %r15d
	movq	_R367CAB_SRC_NCO_LH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stv0367_readreg
	movl	%eax, %ebx
	shll	$8, %ebx
	addl	%r15d, %ebx
	movq	_R367CAB_SRC_NCO_HL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stv0367_readreg
	movl	%eax, %r15d
	shll	$16, %r15d
	addl	%ebx, %r15d
	movq	_R367CAB_SRC_NCO_HH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stv0367_readreg
                                        ## kill: def $eax killed $eax def $rax
	shll	$24, %eax
	addl	%r15d, %eax
	cmpl	$134217727, %eax                ## imm = 0x7FFFFFF
	jg	LBB0_2
## %bb.1:
	leal	1023(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$10, %edx
	movl	$2048, %ecx                     ## imm = 0x800
	jmp	LBB0_8
LBB0_2:
	cmpl	$268435455, %eax                ## imm = 0xFFFFFFF
	ja	LBB0_4
## %bb.3:
	shrl	$11, %eax
	movl	$1024, %ecx                     ## imm = 0x400
	jmp	LBB0_7
LBB0_4:
	cmpl	$536870911, %eax                ## imm = 0x1FFFFFFF
	ja	LBB0_6
## %bb.5:
	shrl	$12, %eax
	movl	$512, %ecx                      ## imm = 0x200
	jmp	LBB0_7
LBB0_6:
	shrl	$13, %eax
	movl	$256, %ecx                      ## imm = 0x100
LBB0_7:
	movl	%eax, %edx
LBB0_8:
	sarl	%r14d
	movslq	%r14d, %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rsi
	shrq	$63, %rsi
	sarq	$38, %rax
	addl	%esi, %eax
	imull	%edx, %eax
	leal	127(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$7, %edx
	imull	$125, %edx, %eax
	cltd
	idivl	%ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R367CAB_SRC_NCO_LL,4,2         ## @R367CAB_SRC_NCO_LL
	.comm	_R367CAB_SRC_NCO_LH,4,2         ## @R367CAB_SRC_NCO_LH
	.comm	_R367CAB_SRC_NCO_HL,4,2         ## @R367CAB_SRC_NCO_HL
	.comm	_R367CAB_SRC_NCO_HH,4,2         ## @R367CAB_SRC_NCO_HH
	.no_dead_strip	_stv0367cab_GetSymbolRate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0367cab_GetSymbolRate
_stv0367cab_GetSymbolRate:              ; @stv0367cab_GetSymbolRate
	.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, _R367CAB_SRC_NCO_LL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R367CAB_SRC_NCO_LL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_stv0367_readreg
	mov	x21, x0
Lloh3:
	adrp	x8, _R367CAB_SRC_NCO_LH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R367CAB_SRC_NCO_LH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv0367_readreg
	add	w21, w21, w0, lsl #8
Lloh6:
	adrp	x8, _R367CAB_SRC_NCO_HL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R367CAB_SRC_NCO_HL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv0367_readreg
	add	w21, w21, w0, lsl #16
Lloh9:
	adrp	x8, _R367CAB_SRC_NCO_HH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R367CAB_SRC_NCO_HH@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv0367_readreg
	add	w8, w21, w0, lsl #24
	mov	w9, #134217727
	lsr	w10, w8, #28
	lsr	w11, w8, #29
	lsr	w12, w8, #13
	mov	w13, #256
	lsr	w14, w8, #12
	mov	w15, #512
	cmp	w11, #0
	csel	w11, w12, w14, ne
	csel	w12, w13, w15, ne
	lsr	w13, w8, #11
	mov	w14, #1024
	cmp	w10, #0
	csel	w10, w11, w13, ne
	csel	w11, w12, w14, ne
	add	w12, w8, #1023
	cmp	w8, #0
	csel	w12, w12, w8, lt
	asr	w12, w12, #10
	mov	w13, #2048
	cmp	w8, w9
	csel	w8, w10, w12, gt
	csel	w9, w11, w13, gt
	asr	w10, w19, #1
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	mul	w8, w8, w10
	add	w10, w8, #127
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w8, w8, #7
	mov	w10, #125
	mul	w8, w8, w10
	sdiv	w0, w8, w9
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_R367CAB_SRC_NCO_LL,4,2         ; @R367CAB_SRC_NCO_LL
	.comm	_R367CAB_SRC_NCO_LH,4,2         ; @R367CAB_SRC_NCO_LH
	.comm	_R367CAB_SRC_NCO_HL,4,2         ; @R367CAB_SRC_NCO_HL
	.comm	_R367CAB_SRC_NCO_HH,4,2         ; @R367CAB_SRC_NCO_HH
	.no_dead_strip	_stv0367cab_GetSymbolRate
.subsections_via_symbols
