	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_get_qam_sig_quality
_ctrl_get_qam_sig_quality:              ## @ctrl_get_qam_sig_quality
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movq	(%r14), %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movq	$0, -96(%rbp)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r12d
	movq	$0, -56(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	48(%r15), %rcx
	movq	%rax, (%rcx)
	leaq	-128(%rbp), %rsi
	movq	%r14, %rdi
	callq	_get_qamrs_err_count
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	movq	_QAM_SL_ERR_POWER__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_read_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.2:
	movq	_FEC_OC_SNC_FAIL_PERIOD__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_read_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_19:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
	movq	(%r13), %rax
	movq	40(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	32(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	16(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%r15), %rcx
	movq	%rax, (%rcx)
	movq	(%r13), %rax
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
LBB0_20:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	addl	$-128, %r12d
	cmpl	$5, %r12d
	jae	LBB0_4
## %bb.5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %ecx
	movl	40(%rax), %edx
	imull	8(%rax), %ecx
	imull	24(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	imull	32(%rax), %edx
	imull	48(%rax), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	cmpq	$0, -56(%rbp)
	je	LBB0_6
## %bb.7:
	movslq	%r12d, %rax
	leaq	l_switch.table.ctrl_get_qam_sig_quality(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	callq	_log1_times100
	movl	%eax, %ebx
	movl	-56(%rbp), %edi
	callq	_log1_times100
	subl	%eax, %ebx
	movslq	%ebx, %rax
	imulq	$100, %rax, %r12
	jmp	LBB0_8
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_6:
	xorl	%r12d, %r12d
LBB0_8:
	movq	_QAM_VD_NR_QSYM_ERRORS__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_read_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.9:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r12
	movq	_QAM_VD_NR_QSYM_ERRORS_EXP__M@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	%r12, %rax
	movq	_QAM_VD_NR_QSYM_ERRORS_EXP__B@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %rax
	movq	_QAM_VD_NR_SYMBOL_ERRORS_FIXED_MANT__M@GOTPCREL(%rip), %rcx
	andq	(%rcx), %r12
	movq	_QAM_VD_NR_SYMBOL_ERRORS_FIXED_MANT__B@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %r12
	movl	%r12d, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	cmpl	$4398024, %edx                  ## imm = 0x431BC8
	jl	LBB0_11
## %bb.10:
	cmpl	$3, %eax
	movl	$1, %eax
	movl	$8, %ecx
	cmovgel	%eax, %ecx
	imull	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	imull	$500000, %ecx, %r12d            ## imm = 0x7A120
	sarl	$3, %r12d
	jmp	LBB0_12
LBB0_11:
	leal	-3(%rax), %ecx
	cmpl	$3, %eax
	movzbl	%cl, %ecx
	cmovll	%eax, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
LBB0_12:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	-120(%rbp), %eax
	movq	_FEC_RS_NR_BIT_ERRORS_EXP__M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%eax, %esi
	movq	_FEC_RS_NR_BIT_ERRORS_EXP__B@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %esi
	movq	_FEC_RS_NR_BIT_ERRORS_FIXED_MANT__M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_FEC_RS_NR_BIT_ERRORS_FIXED_MANT__B@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, %r13d
	movl	%esi, %ecx
	shll	%cl, %r13d
	leal	1(%rsi), %ecx
	movl	%ebx, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edx
	movl	-128(%rbp), %r8d
	movl	%ebx, %edi
	movl	%esi, %ecx
	sarl	%cl, %edi
	imull	$500000, %ebx, %ebx             ## imm = 0x7A120
	sarl	%cl, %ebx
	testl	%edi, %edi
	cmovel	%ebx, %r13d
	cmpl	%edx, %eax
	cmovgl	%ebx, %r13d
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	imull	$742686, %r8d, %esi             ## imm = 0xB551E
	imull	$100, %eax, %ecx
	movl	%esi, %eax
	cltd
	idivl	%ecx
	jmp	LBB0_15
LBB0_13:
	movl	$-1, %eax
LBB0_15:
	movq	_FE_SCALE_COUNTER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	40(%r15), %r14
	movq	%rcx, 8(%r14)
	movq	32(%r15), %r9
	movq	%rcx, 8(%r9)
	movq	24(%r15), %rdx
	movq	%rcx, 8(%rdx)
	movq	16(%r15), %r11
	movq	%rcx, 8(%r11)
	movq	8(%r15), %r10
	movq	%rcx, (%r10)
	movq	_FE_SCALE_DECIBEL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r15), %rdi
	movq	%rcx, (%rdi)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rdi)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	56(%rcx), %rcx
	movq	_DRX_STANDARD_ITU_B@GOTPCREL(%rip), %rbx
	movl	(%rdx), %edi
	cmpq	(%rbx), %rcx
	jne	LBB0_17
## %bb.16:
	addl	%r12d, %edi
	movl	%edi, (%rdx)
	cmpl	$3, %esi
	movl	$1, %ecx
	movl	$8, %edx
	cmovgel	%ecx, %edx
	imull	-48(%rbp), %edx                 ## 4-byte Folded Reload
	leal	7(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$3, %ecx
	addl	%ecx, (%r14)
	movl	%esi, %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	sarl	%cl, %esi
	jmp	LBB0_18
LBB0_17:
	addl	%r13d, %edi
	movl	%esi, %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	sarl	%cl, %esi
	movl	%edi, (%rdx)
	addl	%esi, (%r14)
LBB0_18:
	addl	%eax, (%r11)
	addl	%esi, (%r9)
	addl	%r8d, 8(%r10)
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ## @FE_SCALE_NOT_AVAILABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d\n"

	.comm	_QAM_SL_ERR_POWER__A,4,2        ## @QAM_SL_ERR_POWER__A
	.comm	_FEC_OC_SNC_FAIL_PERIOD__A,4,2  ## @FEC_OC_SNC_FAIL_PERIOD__A
	.comm	_DRXJ_QAM_SL_SIG_POWER_QAM16,4,2 ## @DRXJ_QAM_SL_SIG_POWER_QAM16
	.comm	_DRXJ_QAM_SL_SIG_POWER_QAM32,4,2 ## @DRXJ_QAM_SL_SIG_POWER_QAM32
	.comm	_DRXJ_QAM_SL_SIG_POWER_QAM64,4,2 ## @DRXJ_QAM_SL_SIG_POWER_QAM64
	.comm	_DRXJ_QAM_SL_SIG_POWER_QAM128,4,2 ## @DRXJ_QAM_SL_SIG_POWER_QAM128
	.comm	_DRXJ_QAM_SL_SIG_POWER_QAM256,4,2 ## @DRXJ_QAM_SL_SIG_POWER_QAM256
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QAM_VD_NR_QSYM_ERRORS__A,4,2   ## @QAM_VD_NR_QSYM_ERRORS__A
	.comm	_QAM_VD_NR_QSYM_ERRORS_EXP__M,8,3 ## @QAM_VD_NR_QSYM_ERRORS_EXP__M
	.comm	_QAM_VD_NR_QSYM_ERRORS_EXP__B,8,3 ## @QAM_VD_NR_QSYM_ERRORS_EXP__B
	.comm	_QAM_VD_NR_SYMBOL_ERRORS_FIXED_MANT__M,8,3 ## @QAM_VD_NR_SYMBOL_ERRORS_FIXED_MANT__M
	.comm	_QAM_VD_NR_SYMBOL_ERRORS_FIXED_MANT__B,8,3 ## @QAM_VD_NR_SYMBOL_ERRORS_FIXED_MANT__B
	.comm	_FEC_RS_NR_BIT_ERRORS_EXP__M,4,2 ## @FEC_RS_NR_BIT_ERRORS_EXP__M
	.comm	_FEC_RS_NR_BIT_ERRORS_EXP__B,4,2 ## @FEC_RS_NR_BIT_ERRORS_EXP__B
	.comm	_FEC_RS_NR_BIT_ERRORS_FIXED_MANT__M,4,2 ## @FEC_RS_NR_BIT_ERRORS_FIXED_MANT__M
	.comm	_FEC_RS_NR_BIT_ERRORS_FIXED_MANT__B,4,2 ## @FEC_RS_NR_BIT_ERRORS_FIXED_MANT__B
	.comm	_FE_SCALE_COUNTER,8,3           ## @FE_SCALE_COUNTER
	.comm	_FE_SCALE_DECIBEL,8,3           ## @FE_SCALE_DECIBEL
	.comm	_DRX_STANDARD_ITU_B,8,3         ## @DRX_STANDARD_ITU_B
	.comm	_sig_quality,8,3                ## @sig_quality
	.no_dead_strip	_ctrl_get_qam_sig_quality
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ctrl_get_qam_sig_quality
l_switch.table.ctrl_get_qam_sig_quality:
	.quad	_DRXJ_QAM_SL_SIG_POWER_QAM64
	.quad	_DRXJ_QAM_SL_SIG_POWER_QAM32
	.quad	_DRXJ_QAM_SL_SIG_POWER_QAM256
	.quad	_DRXJ_QAM_SL_SIG_POWER_QAM16
	.quad	_DRXJ_QAM_SL_SIG_POWER_QAM128

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_get_qam_sig_quality
_ctrl_get_qam_sig_quality:              ; @ctrl_get_qam_sig_quality
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldp	x22, x19, [x0]
	ldr	x21, [x19]
	str	xzr, [sp, #80]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	ldr	w23, [x22]
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #24]
Lloh0:
	adrp	x24, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x9, [x21, #48]
	str	x8, [x9]
	add	x1, sp, #48
	mov	x0, x19
	bl	_get_qamrs_err_count
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _QAM_SL_ERR_POWER__A@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QAM_SL_ERR_POWER__A@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #40
	mov	x0, x19
	mov	w3, #0
	bl	_drxj_dap_read_reg16
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _FEC_OC_SNC_FAIL_PERIOD__A@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FEC_OC_SNC_FAIL_PERIOD__A@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #0
	bl	_drxj_dap_read_reg16
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
	ldr	x8, [x24]
	ldr	x9, [x21, #40]
	str	x8, [x9, #8]
	ldr	x9, [x21, #32]
	str	x8, [x9, #8]
	ldr	x9, [x21, #24]
	str	x8, [x9, #8]
	ldr	x9, [x21, #16]
	str	x8, [x9, #8]
	ldr	x9, [x21, #8]
	str	x8, [x9]
	ldr	x8, [x24]
	ldr	x9, [x21]
	str	x8, [x9]
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_5:
	sub	w8, w23, #128
	cmp	w8, #5
	b.hs	LBB0_8
; %bb.6:
	ldr	w9, [x22, #8]
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	ldr	w27, [x22, #16]
	ldr	w26, [x22, #24]
	ldr	w28, [x22, #32]
	ldr	w25, [x22, #40]
	ldr	w23, [x22, #48]
	ldr	x9, [sp, #40]
	cbz	x9, LBB0_9
; %bb.7:
Lloh10:
	adrp	x9, l_switch.table.ctrl_get_qam_sig_quality@PAGE
Lloh11:
	add	x9, x9, l_switch.table.ctrl_get_qam_sig_quality@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	lsl	w0, w8, #2
	bl	_log1_times100
	mov	x20, x0
	ldr	w0, [sp, #40]
	bl	_log1_times100
	sub	w8, w20, w0
	mov	w9, #100
	smull	x8, w8, w9
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_10
LBB0_8:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_9:
	str	xzr, [sp, #8]                   ; 8-byte Folded Spill
LBB0_10:
Lloh15:
	adrp	x8, _QAM_VD_NR_QSYM_ERRORS__A@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QAM_VD_NR_QSYM_ERRORS__A@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #32
	mov	x0, x19
	mov	w3, #0
	bl	_drxj_dap_read_reg16
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.11:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	mul	w8, w27, w8
	mul	w9, w25, w28
	mul	w8, w8, w26
	mul	w9, w9, w23
	mov	w13, #41248
	movk	w13, #7, lsl #16
Lloh18:
	adrp	x10, _QAM_VD_NR_QSYM_ERRORS_EXP__M@GOTPAGE
Lloh19:
	ldr	x10, [x10, _QAM_VD_NR_QSYM_ERRORS_EXP__M@GOTPAGEOFF]
	ldr	x11, [sp, #32]
Lloh20:
	ldr	x10, [x10]
	and	x10, x10, x11
Lloh21:
	adrp	x12, _QAM_VD_NR_QSYM_ERRORS_EXP__B@GOTPAGE
Lloh22:
	ldr	x12, [x12, _QAM_VD_NR_QSYM_ERRORS_EXP__B@GOTPAGEOFF]
Lloh23:
	ldr	x12, [x12]
	asr	x10, x10, x12
Lloh24:
	adrp	x12, _QAM_VD_NR_SYMBOL_ERRORS_FIXED_MANT__M@GOTPAGE
Lloh25:
	ldr	x12, [x12, _QAM_VD_NR_SYMBOL_ERRORS_FIXED_MANT__M@GOTPAGEOFF]
Lloh26:
	ldr	x12, [x12]
Lloh27:
	adrp	x14, _QAM_VD_NR_SYMBOL_ERRORS_FIXED_MANT__B@GOTPAGE
Lloh28:
	ldr	x14, [x14, _QAM_VD_NR_SYMBOL_ERRORS_FIXED_MANT__B@GOTPAGEOFF]
	and	x11, x12, x11
Lloh29:
	ldr	x12, [x14]
	asr	x11, x11, x12
	lsl	w12, w11, w10
	mov	w14, #7112
	movk	w14, #67, lsl #16
	cmp	w12, w14
	b.lt	LBB0_13
; %bb.12:
	mul	w11, w9, w13
	cmp	w10, #2
	mov	w10, #8
	csinc	w10, w10, wzr, le
	mul	w10, w11, w10
	add	w11, w10, #7
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w11, w10, #3
	b	LBB0_14
LBB0_13:
	sub	w12, w10, #3
	cmp	w10, #2
	csel	w10, w12, w10, gt
	lsl	w11, w11, w10
LBB0_14:
	ldr	x4, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w14, [sp, #56]
	ldr	w10, [sp, #48]
Lloh30:
	adrp	x12, _FEC_RS_NR_BIT_ERRORS_EXP__M@GOTPAGE
Lloh31:
	ldr	x12, [x12, _FEC_RS_NR_BIT_ERRORS_EXP__M@GOTPAGEOFF]
Lloh32:
	ldr	w12, [x12]
	and	w12, w12, w14
Lloh33:
	adrp	x15, _FEC_RS_NR_BIT_ERRORS_EXP__B@GOTPAGE
Lloh34:
	ldr	x15, [x15, _FEC_RS_NR_BIT_ERRORS_EXP__B@GOTPAGEOFF]
Lloh35:
	ldr	w15, [x15]
	asr	w12, w12, w15
Lloh36:
	adrp	x15, _FEC_RS_NR_BIT_ERRORS_FIXED_MANT__M@GOTPAGE
Lloh37:
	ldr	x15, [x15, _FEC_RS_NR_BIT_ERRORS_FIXED_MANT__M@GOTPAGEOFF]
Lloh38:
	ldr	w15, [x15]
	and	w14, w15, w14
Lloh39:
	adrp	x15, _FEC_RS_NR_BIT_ERRORS_FIXED_MANT__B@GOTPAGE
Lloh40:
	ldr	x15, [x15, _FEC_RS_NR_BIT_ERRORS_FIXED_MANT__B@GOTPAGEOFF]
Lloh41:
	ldr	w15, [x15]
	asr	w14, w14, w15
	lsl	w15, w14, w12
	add	w16, w12, #1
	asr	w16, w8, w16
	asr	w17, w8, w12
	cmp	w17, #0
	ccmp	w14, w16, #0, ne
	mul	w13, w8, w13
	asr	w13, w13, w12
	csel	w15, w13, w15, gt
	ldr	x13, [sp, #24]
	cbz	x13, LBB0_16
; %bb.15:
	mov	w12, #21790
	movk	w12, #11, lsl #16
	mul	w12, w10, w12
	mov	w14, #100
	mul	w13, w13, w14
	sdiv	w13, w12, w13
	b	LBB0_17
LBB0_16:
	mov	w13, #-1
LBB0_17:
Lloh42:
	adrp	x14, _FE_SCALE_COUNTER@GOTPAGE
Lloh43:
	ldr	x14, [x14, _FE_SCALE_COUNTER@GOTPAGEOFF]
Lloh44:
	ldr	x2, [x14]
	ldr	x0, [x21, #40]
	str	x2, [x0, #8]
	ldr	x14, [x21, #32]
	str	x2, [x14, #8]
	ldr	x1, [x21, #24]
	str	x2, [x1, #8]
	ldr	x17, [x21, #16]
	str	x2, [x17, #8]
	ldr	x16, [x21, #8]
	str	x2, [x16]
Lloh45:
	adrp	x2, _FE_SCALE_DECIBEL@GOTPAGE
Lloh46:
	ldr	x2, [x2, _FE_SCALE_DECIBEL@GOTPAGEOFF]
Lloh47:
	ldr	x2, [x2]
	ldr	x3, [x21]
	stp	x2, x4, [x3]
	ldr	x3, [x22, #56]
Lloh48:
	adrp	x2, _DRX_STANDARD_ITU_B@GOTPAGE
Lloh49:
	ldr	x2, [x2, _DRX_STANDARD_ITU_B@GOTPAGEOFF]
Lloh50:
	ldr	x4, [x2]
	ldr	w2, [x1]
	cmp	x3, x4
	b.ne	LBB0_19
; %bb.18:
	add	w11, w2, w11
	str	w11, [x1]
	cmp	w12, #2
	mov	w11, #8
	csinc	w11, w11, wzr, le
	mul	w9, w11, w9
	add	w11, w9, #7
	cmp	w9, #0
	csel	w9, w11, w9, lt
	ldr	w11, [x0]
	add	w9, w11, w9, asr #3
	str	w9, [x0]
	asr	w8, w8, w12
	b	LBB0_20
LBB0_19:
	add	w9, w2, w15
	str	w9, [x1]
	asr	w8, w8, w12
	ldr	w9, [x0]
	add	w9, w9, w8
	str	w9, [x0]
LBB0_20:
	mov	w20, #0
	ldr	w9, [x17]
	add	w9, w9, w13
	str	w9, [x17]
	ldr	w9, [x14]
	add	w8, w9, w8
	str	w8, [x14]
	ldr	w8, [x16, #8]
	add	w8, w8, w10
	str	w8, [x16, #8]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ; @FE_SCALE_NOT_AVAILABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d\n"

	.comm	_QAM_SL_ERR_POWER__A,4,2        ; @QAM_SL_ERR_POWER__A
	.comm	_FEC_OC_SNC_FAIL_PERIOD__A,4,2  ; @FEC_OC_SNC_FAIL_PERIOD__A
	.comm	_DRXJ_QAM_SL_SIG_POWER_QAM16,4,2 ; @DRXJ_QAM_SL_SIG_POWER_QAM16
	.comm	_DRXJ_QAM_SL_SIG_POWER_QAM32,4,2 ; @DRXJ_QAM_SL_SIG_POWER_QAM32
	.comm	_DRXJ_QAM_SL_SIG_POWER_QAM64,4,2 ; @DRXJ_QAM_SL_SIG_POWER_QAM64
	.comm	_DRXJ_QAM_SL_SIG_POWER_QAM128,4,2 ; @DRXJ_QAM_SL_SIG_POWER_QAM128
	.comm	_DRXJ_QAM_SL_SIG_POWER_QAM256,4,2 ; @DRXJ_QAM_SL_SIG_POWER_QAM256
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QAM_VD_NR_QSYM_ERRORS__A,4,2   ; @QAM_VD_NR_QSYM_ERRORS__A
	.comm	_QAM_VD_NR_QSYM_ERRORS_EXP__M,8,3 ; @QAM_VD_NR_QSYM_ERRORS_EXP__M
	.comm	_QAM_VD_NR_QSYM_ERRORS_EXP__B,8,3 ; @QAM_VD_NR_QSYM_ERRORS_EXP__B
	.comm	_QAM_VD_NR_SYMBOL_ERRORS_FIXED_MANT__M,8,3 ; @QAM_VD_NR_SYMBOL_ERRORS_FIXED_MANT__M
	.comm	_QAM_VD_NR_SYMBOL_ERRORS_FIXED_MANT__B,8,3 ; @QAM_VD_NR_SYMBOL_ERRORS_FIXED_MANT__B
	.comm	_FEC_RS_NR_BIT_ERRORS_EXP__M,4,2 ; @FEC_RS_NR_BIT_ERRORS_EXP__M
	.comm	_FEC_RS_NR_BIT_ERRORS_EXP__B,4,2 ; @FEC_RS_NR_BIT_ERRORS_EXP__B
	.comm	_FEC_RS_NR_BIT_ERRORS_FIXED_MANT__M,4,2 ; @FEC_RS_NR_BIT_ERRORS_FIXED_MANT__M
	.comm	_FEC_RS_NR_BIT_ERRORS_FIXED_MANT__B,4,2 ; @FEC_RS_NR_BIT_ERRORS_FIXED_MANT__B
	.comm	_FE_SCALE_COUNTER,8,3           ; @FE_SCALE_COUNTER
	.comm	_FE_SCALE_DECIBEL,8,3           ; @FE_SCALE_DECIBEL
	.comm	_DRX_STANDARD_ITU_B,8,3         ; @DRX_STANDARD_ITU_B
	.comm	_sig_quality,8,3                ; @sig_quality
	.no_dead_strip	_ctrl_get_qam_sig_quality
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ctrl_get_qam_sig_quality
l_switch.table.ctrl_get_qam_sig_quality:
	.quad	_DRXJ_QAM_SL_SIG_POWER_QAM64
	.quad	_DRXJ_QAM_SL_SIG_POWER_QAM32
	.quad	_DRXJ_QAM_SL_SIG_POWER_QAM256
	.quad	_DRXJ_QAM_SL_SIG_POWER_QAM16
	.quad	_DRXJ_QAM_SL_SIG_POWER_QAM128

.subsections_via_symbols
