	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_strength
_get_strength:                          ## @get_strength
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, (%rsi)
	callq	_is_dvbt
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	200(%rbx), %rax
	leaq	216(%rbx), %rcx
	leaq	224(%rbx), %rsi
	leaq	160(%rbx), %rdx
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_is_qam
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	120(%rbx), %rax
	leaq	136(%rbx), %rcx
	leaq	144(%rbx), %rsi
	leaq	80(%rbx), %rdx
	jmp	LBB0_5
LBB0_4:
	leaq	40(%rbx), %rax
	leaq	56(%rbx), %rcx
	leaq	64(%rbx), %rsi
	movq	%rbx, %rdx
LBB0_5:
	movq	(%rax), %rdi
	movq	(%rcx), %r15
	movq	(%rsi), %r12
	movq	32(%rdx), %rax
	movq	%rax, -64(%rbp)
	movups	(%rdx), %xmm0
	movups	16(%rdx), %xmm1
	movaps	%xmm1, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	_DRXK_AGC_CTRL_AUTO@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	%rax, %rdi
	jne	LBB0_14
## %bb.6:
	movq	_SCU_RAM_AGC_RF_IACCU_HI__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_read16
	testl	%eax, %eax
	js	LBB0_31
## %bb.7:
	movq	_SCU_RAM_AGC_RF_IACCU_HI_CO__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_read16
	testl	%eax, %eax
	js	LBB0_31
## %bb.8:
	movq	%r12, %rcx
	subq	%r15, %rcx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.10:
	movl	-44(%rbp), %eax
	addl	-48(%rbp), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	movl	$65535, %edx                    ## imm = 0xFFFF
	cmovll	%eax, %edx
	movslq	%edx, %rax
	cmpq	%rax, %r15
	cmovgl	%r15d, %eax
	cltq
	cmpq	%rax, %r12
	cmovll	%r12d, %eax
	subl	%r15d, %eax
	cltq
	imulq	$5000, %rax, %rax               ## imm = 0x1388
	movslq	%ecx, %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_11
## %bb.12:
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %r15
	jmp	LBB0_13
LBB0_14:
	movl	$65535, %edx                    ## imm = 0xFFFF
	cmpq	%rax, -96(%rbp)
	jne	LBB0_30
## %bb.15:
	movl	$40, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r15d
LBB0_13:
	movq	-96(%rbp), %rax
	movl	$50, %ecx
	movl	$90, %r12d
	cmpq	(%r13), %rax
	jne	LBB0_26
LBB0_16:
	movq	_SCU_RAM_AGC_IF_IACCU_HI__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_read16
	testl	%eax, %eax
	js	LBB0_31
## %bb.17:
	movq	_SCU_RAM_AGC_INGAIN_TGT_MIN__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_read16
	testl	%eax, %eax
	js	LBB0_31
## %bb.18:
	movl	-88(%rbp), %edx
	movslq	%edx, %rsi
	movq	-80(%rbp), %rax
	cmpq	%rsi, %rax
	jle	LBB0_20
## %bb.19:
	movl	%eax, -88(%rbp)
	movslq	%eax, %rsi
	movl	%eax, %edx
LBB0_20:
	movq	-72(%rbp), %rdi
	movq	%rdi, %rcx
	subq	%rax, %rcx
	testl	%ecx, %ecx
	jle	LBB0_25
## %bb.21:
	cmpq	%rsi, %rdi
	cmovll	%edi, %edx
	subl	%eax, %edx
	movslq	%edx, %rax
	imulq	$4000, %rax, %rax               ## imm = 0xFA0
	movslq	%ecx, %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_22
## %bb.23:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_24
LBB0_22:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_24:
	addl	%eax, %r15d
LBB0_25:
	movl	%r12d, %ecx
LBB0_26:
	movslq	%r15d, %rdx
	movq	%rdx, %rax
	shlq	$16, %rax
	subq	%rdx, %rax
	movl	%ecx, %ecx
	movq	%rax, %rdx
	shrq	$32, %rdx
	je	LBB0_27
## %bb.28:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_29
LBB0_27:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_29:
	shrq	$2, %rax
	movabsq	$2951479051793528259, %rcx      ## imm = 0x28F5C28F5C28F5C3
	mulq	%rcx
	shrq	$2, %rdx
LBB0_30:
	movl	%edx, (%r14)
	xorl	%eax, %eax
LBB0_31:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRXK_AGC_CTRL_AUTO,8,3         ## @DRXK_AGC_CTRL_AUTO
	.comm	_SCU_RAM_AGC_RF_IACCU_HI__A,4,2 ## @SCU_RAM_AGC_RF_IACCU_HI__A
	.comm	_SCU_RAM_AGC_RF_IACCU_HI_CO__A,4,2 ## @SCU_RAM_AGC_RF_IACCU_HI_CO__A
	.comm	_SCU_RAM_AGC_IF_IACCU_HI__A,4,2 ## @SCU_RAM_AGC_IF_IACCU_HI__A
	.comm	_SCU_RAM_AGC_INGAIN_TGT_MIN__A,4,2 ## @SCU_RAM_AGC_INGAIN_TGT_MIN__A
	.no_dead_strip	_get_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_strength
_get_strength:                          ; @get_strength
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	str	wzr, [x1]
	bl	_is_dvbt
	cbz	x0, LBB0_2
; %bb.1:
	add	x11, x20, #200
	add	x10, x20, #216
	add	x9, x20, #224
	add	x8, x20, #160
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_is_qam
	add	x11, x20, #40
	add	x10, x20, #56
	add	x9, x20, #64
	add	x12, x20, #120
	add	x13, x20, #136
	add	x14, x20, #144
	add	x8, x20, #80
	cmp	x0, #0
	csel	x8, x20, x8, eq
	csel	x9, x9, x14, eq
	csel	x10, x10, x13, eq
	csel	x11, x11, x12, eq
LBB0_3:
	ldr	x11, [x11]
	ldr	x21, [x10]
	ldr	x23, [x9]
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
	ldr	x8, [x8, #32]
	str	x8, [sp, #48]
Lloh0:
	adrp	x22, _DRXK_AGC_CTRL_AUTO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DRXK_AGC_CTRL_AUTO@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x11, x8
	b.ne	LBB0_8
; %bb.4:
Lloh2:
	adrp	x8, _SCU_RAM_AGC_RF_IACCU_HI__A@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCU_RAM_AGC_RF_IACCU_HI__A@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_read16
	tbnz	w0, #31, LBB0_23
; %bb.5:
Lloh5:
	adrp	x8, _SCU_RAM_AGC_RF_IACCU_HI_CO__A@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCU_RAM_AGC_RF_IACCU_HI_CO__A@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_read16
	tbnz	w0, #31, LBB0_23
; %bb.6:
	sub	x8, x23, x21
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.7:
	ldp	w10, w9, [sp, #8]
	mov	w11, #65535
	add	w9, w10, w9
	cmp	w9, w11
	csel	w9, w9, w11, lt
	cmp	x21, w9, sxtw
	csel	w9, w21, w9, gt
	cmp	x23, w9, sxtw
	csel	w9, w23, w9, lt
	sub	w9, w9, w21
	mov	w10, #5000
	smull	x9, w9, w10
	sxtw	x8, w8
	udiv	x21, x9, x8
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_12
LBB0_8:
	ldr	x9, [sp, #16]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	w21, #0
	mov	w22, #40
	b	LBB0_14
LBB0_10:
	mov	w8, #65535
	b	LBB0_22
LBB0_11:
	mov	w21, #0
LBB0_12:
	ldr	x8, [sp, #16]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.13:
	mov	w22, #90
LBB0_14:
Lloh8:
	adrp	x8, _SCU_RAM_AGC_IF_IACCU_HI__A@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCU_RAM_AGC_IF_IACCU_HI__A@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x23, sp, #16
	orr	x2, x23, #0x8
	mov	x0, x20
	bl	_read16
	tbnz	w0, #31, LBB0_23
; %bb.15:
Lloh11:
	adrp	x8, _SCU_RAM_AGC_INGAIN_TGT_MIN__A@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCU_RAM_AGC_INGAIN_TGT_MIN__A@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, x23, #32
	mov	x0, x20
	bl	_read16
	tbnz	w0, #31, LBB0_23
; %bb.16:
	ldr	w9, [sp, #24]
	sxtw	x10, w9
	ldr	x8, [sp, #32]
	cmp	x8, x10
	b.le	LBB0_18
; %bb.17:
	str	w8, [sp, #24]
	sxtw	x10, w8
	mov	x9, x8
LBB0_18:
	ldr	x12, [sp, #40]
	sub	x11, x12, x8
	cmp	w11, #1
	b.lt	LBB0_21
; %bb.19:
	cmp	x12, x10
	csel	w9, w12, w9, lt
	sub	w8, w9, w8
	mov	w9, #4000
	smull	x8, w8, w9
	sxtw	x9, w11
	udiv	x8, x8, x9
	add	w21, w21, w8
	b	LBB0_21
LBB0_20:
	mov	w22, #50
LBB0_21:
	sxtw	x8, w21
	sbfiz	x9, x21, #16, #32
	sub	x8, x9, x8
	mov	w9, w22
	udiv	x8, x8, x9
	lsr	x8, x8, #2
	mov	x9, #62915
	movk	x9, #23592, lsl #16
	movk	x9, #49807, lsl #32
	movk	x9, #10485, lsl #48
	umulh	x8, x8, x9
	lsr	x8, x8, #2
LBB0_22:
	mov	w0, #0
	str	w8, [x19]
LBB0_23:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DRXK_AGC_CTRL_AUTO,8,3         ; @DRXK_AGC_CTRL_AUTO
	.comm	_SCU_RAM_AGC_RF_IACCU_HI__A,4,2 ; @SCU_RAM_AGC_RF_IACCU_HI__A
	.comm	_SCU_RAM_AGC_RF_IACCU_HI_CO__A,4,2 ; @SCU_RAM_AGC_RF_IACCU_HI_CO__A
	.comm	_SCU_RAM_AGC_IF_IACCU_HI__A,4,2 ; @SCU_RAM_AGC_IF_IACCU_HI__A
	.comm	_SCU_RAM_AGC_INGAIN_TGT_MIN__A,4,2 ; @SCU_RAM_AGC_INGAIN_TGT_MIN__A
	.no_dead_strip	_get_strength
.subsections_via_symbols
