	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_rxphystatus
_query_rxphystatus:                     ## @query_rxphystatus
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_dm
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, 4(%r13)
	movl	%r12d, 8(%r13)
	movq	%r15, %rbx
	movl	16(%rbp), %ecx
	movl	%ecx, 12(%r13)
	movq	%r13, %r14
	movq	16(%r13), %rcx
	cmpl	$0, (%r13)
	movq	$-1, (%rcx)
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	je	LBB0_37
## %bb.1:
	movq	(%rbx), %rcx
	movl	(%rcx), %r12d
	movl	%r12d, %esi
	shrl	$5, %esi
	andl	$7, %esi
	andl	$31, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	32(%rdi), %rcx
	movq	_HARDWARE_TYPE_RTL8812AE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_20
## %bb.2:
	movl	40(%rdi), %ebx
	movl	%esi, %edx
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_13:
	addl	%r12d, %r12d
	movl	$14, %r15d
	jmp	LBB0_14
LBB0_37:
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movq	_RF6052_MAX_PATH@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	$0, %ecx
	cmpl	(%r12), %r13d
	jge	LBB0_40
## %bb.38:
	xorl	%ecx, %ecx
	xorl	%r15d, %r15d
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	cmpq	$1, (%rax,%r13,8)
	sbbl	$-1, %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	16(%rbx), %rax
	movl	(%rax,%r13,4), %edi
	andl	$127, %edi
	addl	$-110, %edi
	callq	_rtl_query_rxpwrpercentage
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	%eax, %r15d
	movq	24(%rbx), %rax
	movl	(%rax,%r13,4), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movq	40(%r14), %rcx
	movl	%edx, (%rcx,%r13,4)
	movl	(%rax,%r13,4), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	%ecx, (%rax,%r13,4)
	movq	(%rbx), %rax
	movl	(%rax,%r13,4), %edi
	callq	_odm_cfo
	movq	112(%r14), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	32(%rbx), %rax
	movl	(%rax,%r13,4), %edi
	callq	_odm_cfo
	movq	104(%r14), %rcx
	movq	%rax, (%rcx,%r13,8)
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movq	48(%r14), %rax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, (%rax,%r13,4)
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jl	LBB0_39
LBB0_40:
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %ebx
	shrl	%ebx
	andl	$127, %ebx
	addl	$-110, %ebx
	movl	%ebx, %edi
	callq	_rtl_query_rxpwrpercentage
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 24(%rdx)
	movl	%ebx, 56(%rdx)
	movl	%ebx, 28(%rdx)
	cmpq	$0, 96(%rdx)
	je	LBB0_44
## %bb.41:
	movq	64(%rdx), %rax
	movq	_DESC_RATEMCS8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_44
## %bb.42:
	movq	_DESC_RATEMCS15@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_43
LBB0_44:
	cmpq	$0, 88(%rdx)
	je	LBB0_47
## %bb.45:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	64(%rax), %rax
	movq	_DESC_RATEVHT2SS_MCS0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_47
## %bb.46:
	movq	_DESC_RATEVHT2SS_MCS9@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_47
LBB0_43:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$2, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_48
LBB0_20:
	xorl	%r15d, %r15d
	cmpl	$5, %esi
	ja	LBB0_28
## %bb.21:
	movl	%esi, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_26:
	addl	%r12d, %r12d
	movl	$15, %r15d
	jmp	LBB0_27
LBB0_47:
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_48:
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movl	%r15d, %r12d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	48(%r13), %rax
	movl	(%rax), %edi
	callq	_rtl_evm_db_to_percentage
	movl	%eax, %ebx
	movq	48(%r13), %rax
	movl	(%rax), %edi
	callq	__rtl8821ae_evm_dbm_jaguar
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_50
## %bb.49:
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, 32(%rdx)
	movq	16(%rdx), %rcx
	movl	%ebx, (%rcx)
	movq	72(%rdx), %rcx
	movl	%eax, (%rcx)
LBB0_50:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_51
LBB0_55:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_60
## %bb.56:
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_RF90_PATH_B@GOTPCREL(%rip), %r12
	cmpl	(%r12), %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jg	LBB0_59
## %bb.57:
	decq	%rbx
	.p2align	4, 0x90
LBB0_58:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movl	4(%rax,%rbx,4), %r13d
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	(%rax), %rax
	movl	%r13d, 4(%rax,%rbx,4)
	movslq	(%r12), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_58
LBB0_59:
	movq	%r14, %rdi
	callq	_rtl_priv
	incl	8(%rax)
	movl	-56(%rbp), %r12d                ## 4-byte Reload
LBB0_60:
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_63
## %bb.61:
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %esi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_62
LBB0_51:
	movl	$1, %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_52 Depth=1
	incq	%rbx
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_55
LBB0_52:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_rtl_evm_db_to_percentage
	movl	%eax, %r13d
	movq	48(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	__rtl8821ae_evm_dbm_jaguar
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_52 Depth=1
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rcx
	movl	%r13d, (%rcx,%rbx,4)
	movq	72(%rdx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	jmp	LBB0_54
LBB0_25:
	addl	%r12d, %r12d
	notl	%r12d
	movl	%r12d, %r15d
	jmp	LBB0_28
LBB0_24:
	addl	%r12d, %r12d
	movl	$-17, %r15d
	jmp	LBB0_27
LBB0_23:
	addl	%r12d, %r12d
	movl	$-30, %r15d
	jmp	LBB0_27
LBB0_22:
	addl	%r12d, %r12d
	movl	$-38, %r15d
LBB0_27:
	subl	%r12d, %r15d
LBB0_28:
	movl	%r15d, %edi
	callq	_rtl_query_rxpwrpercentage
	movl	%eax, %esi
	jmp	LBB0_29
LBB0_12:
	addl	%r12d, %r12d
	movl	$8, %r15d
	jmp	LBB0_14
LBB0_9:
	addl	%r12d, %r12d
	negl	%r12d
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	addl	$4, %r12d
	movl	%r12d, %edi
	callq	_rtl_query_rxpwrpercentage
	movl	%eax, %esi
	movl	%r12d, %r15d
	jmp	LBB0_29
LBB0_8:
	addl	%r12d, %r12d
	movl	$-10, %r15d
	jmp	LBB0_14
LBB0_7:
	addl	%r12d, %r12d
	movl	$-22, %r15d
	jmp	LBB0_14
LBB0_6:
	addl	%r12d, %r12d
	movl	$-28, %r15d
	jmp	LBB0_14
LBB0_5:
	addl	%r12d, %r12d
	movl	$-44, %r15d
	jmp	LBB0_14
LBB0_3:
	movl	$-100, %r15d
	cmpl	$27, %r12d
	ja	LBB0_15
## %bb.4:
	addl	%r12d, %r12d
	movl	$-46, %r15d
LBB0_14:
	subl	%r12d, %r15d
LBB0_15:
	addl	$6, %r15d
	movl	%r15d, %edi
	callq	_rtl_query_rxpwrpercentage
	movl	%eax, %esi
	testl	%ebx, %ebx
	jne	LBB0_29
## %bb.16:
	cmpl	$80, %esi
	jl	LBB0_18
LBB0_17:
	leal	-80(%rsi), %eax
	shrl	%eax
	leal	(%rax,%rsi,2), %eax
	addl	$-80, %eax
	jmp	LBB0_19
LBB0_11:
	addl	$10, %r12d
	movl	%r12d, %edi
	callq	_rtl_query_rxpwrpercentage
	movl	%eax, %esi
	movl	%r12d, %r15d
	cmpl	$80, %esi
	jge	LBB0_17
LBB0_18:
	leal	3(%rsi), %eax
	cmpl	$20, %esi
	cmovll	%esi, %eax
	cmpl	$79, %esi
	cmovel	%esi, %eax
LBB0_19:
	cmpl	$100, %eax
	movl	$100, %esi
	cmovll	%eax, %esi
LBB0_29:
	movl	%esi, 24(%r14)
	movl	%r15d, 28(%r14)
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_30
## %bb.31:
	movl	$100, %eax
	cmpl	$40, %esi
	jle	LBB0_33
## %bb.32:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_36
LBB0_30:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_62
LBB0_33:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %ecx
	xorl	%eax, %eax
	cmpl	$64, %ecx
	jg	LBB0_36
## %bb.34:
	movl	$100, %eax
	cmpl	$20, %ecx
	jl	LBB0_36
## %bb.35:
	movl	$64, %eax
	subl	%ecx, %eax
	imull	$100, %eax, %eax
	movzwl	%ax, %eax
	imull	$47663, %eax, %eax              ## imm = 0xBA2F
	shrl	$21, %eax
LBB0_36:
	movl	%eax, 32(%r14)
	movq	16(%r14), %rcx
	movl	%eax, (%rcx)
	movl	$-1, 4(%rcx)
LBB0_62:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_rtl_signal_scale_mapping
	movl	%eax, 80(%r14)
LBB0_63:
	movl	44(%rbx), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movl	40(%rbx), %eax
	movl	%eax, (%rcx)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_26
	.long	L0_0_set_25
	.long	L0_0_set_24
	.long	L0_0_set_28
	.long	L0_0_set_23
	.long	L0_0_set_22
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_7, LBB0_7-LJTI0_1
.set L0_1_set_6, LBB0_6-LJTI0_1
.set L0_1_set_5, LBB0_5-LJTI0_1
.set L0_1_set_3, LBB0_3-LJTI0_1
LJTI0_1:
	.long	L0_1_set_13
	.long	L0_1_set_12
	.long	L0_1_set_9
	.long	L0_1_set_8
	.long	L0_1_set_7
	.long	L0_1_set_6
	.long	L0_1_set_5
	.long	L0_1_set_3
	.end_data_region
                                        ## -- End function
	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ## @HARDWARE_TYPE_RTL8812AE
	.comm	_RF90_PATH_A,4,2                ## @RF90_PATH_A
	.comm	_RF6052_MAX_PATH,4,2            ## @RF6052_MAX_PATH
	.comm	_DESC_RATEMCS8,8,3              ## @DESC_RATEMCS8
	.comm	_DESC_RATEMCS15,8,3             ## @DESC_RATEMCS15
	.comm	_DESC_RATEVHT2SS_MCS0,8,3       ## @DESC_RATEVHT2SS_MCS0
	.comm	_DESC_RATEVHT2SS_MCS9,8,3       ## @DESC_RATEVHT2SS_MCS9
	.comm	_RF90_PATH_B,4,2                ## @RF90_PATH_B
	.no_dead_strip	_query_rxphystatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_rxphystatus
_query_rxphystatus:                     ; @query_rxphystatus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x6
	mov	x26, x5
	mov	x23, x4
	mov	x19, x3
	mov	x20, x1
	mov	x28, x0
	bl	_rtl_priv
	mov	x24, x0
	mov	x0, x28
	bl	_rtl_priv
	bl	_rtl_dm
	mov	x21, x0
	ldr	w8, [x20]
	stp	w23, w26, [x20, #4]
	str	w25, [x20, #12]
	ldr	x9, [x20, #16]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x9]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	ldr	w8, [x8]
	ubfx	w9, w8, #5, #3
	and	w8, w8, #0x1f
	ldr	x10, [x24, #32]
Lloh0:
	adrp	x11, _HARDWARE_TYPE_RTL8812AE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _HARDWARE_TYPE_RTL8812AE@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_7
; %bb.2:
	ldr	w22, [x24, #40]
Lloh3:
	adrp	x10, lJTI0_1@PAGE
Lloh4:
	add	x10, x10, lJTI0_1@PAGEOFF
	adr	x11, LBB0_3
	ldrh	w12, [x10, x9, lsl #1]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	mov	w9, #14
	b	LBB0_45
LBB0_4:
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	stp	x21, x28, [sp, #16]             ; 16-byte Folded Spill
Lloh5:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
Lloh7:
	ldrsw	x28, [x8]
Lloh8:
	adrp	x22, _RF6052_MAX_PATH@GOTPAGE
Lloh9:
	ldr	x22, [x22, _RF6052_MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w28, w8
	b.ge	LBB0_10
; %bb.5:
	mov	w27, #0
	mov	w26, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #16]
	lsl	x21, x28, #3
	ldr	x8, [x8, x21]
	cmp	x8, #0
	cinc	w27, w27, ne
	ldr	x8, [x19, #16]
	lsl	x23, x28, #2
	ldr	w8, [x8, x23]
	and	w8, w8, #0x7f
	sub	w0, w8, #110
	bl	_rtl_query_rxpwrpercentage
	mov	x25, x0
	ldr	x8, [x19, #24]
	ldr	w9, [x8, x23]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	ldr	x10, [x20, #40]
	str	w9, [x10, x23]
	add	w26, w0, w26
	ldr	w8, [x8, x23]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	ldr	x9, [x24, #24]
	str	w8, [x9, x23]
	ldr	x8, [x19]
	ldr	w0, [x8, x23]
	bl	_odm_cfo
	ldr	x8, [x20, #112]
	str	x0, [x8, x21]
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x23]
	bl	_odm_cfo
	ldr	x8, [x20, #104]
	str	x0, [x8, x21]
	ldr	x8, [x20, #48]
	str	w25, [x8, x23]
	add	x28, x28, #1
	ldrsw	x8, [x22]
	cmp	x28, x8
	b.lt	LBB0_6
	b	LBB0_11
LBB0_7:
	mov	w24, #0
	cmp	w9, #5
	b.hi	LBB0_37
; %bb.8:
Lloh10:
	adrp	x10, lJTI0_0@PAGE
Lloh11:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_9
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_9:
	mov	w9, #15
	b	LBB0_36
LBB0_10:
	mov	w26, #0
	mov	w27, #0
LBB0_11:
	ldr	w8, [x19]
	ubfx	w8, w8, #1, #7
	sub	w24, w8, #110
	mov	x0, x24
	bl	_rtl_query_rxpwrpercentage
	str	w24, [x20, #56]
	stp	w0, w24, [x20, #24]
	ldr	x8, [x20, #96]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	x8, [x20, #64]
Lloh12:
	adrp	x9, _DESC_RATEMCS8@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DESC_RATEMCS8@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_14
; %bb.13:
Lloh15:
	adrp	x9, _DESC_RATEMCS15@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DESC_RATEMCS15@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_17
LBB0_14:
	ldr	x8, [x20, #88]
	cbz	x8, LBB0_18
; %bb.15:
	ldr	x8, [x20, #64]
Lloh18:
	adrp	x9, _DESC_RATEVHT2SS_MCS0@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DESC_RATEVHT2SS_MCS0@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_18
; %bb.16:
Lloh21:
	adrp	x9, _DESC_RATEVHT2SS_MCS9@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DESC_RATEVHT2SS_MCS9@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_18
LBB0_17:
	mov	w22, #0
	mov	w25, #2
	b	LBB0_19
LBB0_18:
	mov	w22, #1
	mov	w25, #1
LBB0_19:
	ldr	w21, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
	bl	_rtl_evm_db_to_percentage
	mov	x24, x0
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
	bl	__rtl8821ae_evm_dbm_jaguar
	cbz	w21, LBB0_21
; %bb.20:
	str	w24, [x20, #32]
	ldr	x8, [x20, #16]
	str	w24, [x8]
	ldr	x8, [x20, #72]
	str	w0, [x8]
LBB0_21:
	tbz	w22, #0, LBB0_28
LBB0_22:
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
	cbz	w21, LBB0_26
; %bb.23:
Lloh24:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
Lloh26:
	ldrsw	x22, [x8]
Lloh27:
	adrp	x23, _RF90_PATH_B@GOTPAGE
Lloh28:
	ldr	x23, [x23, _RF90_PATH_B@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w22, w8
	b.gt	LBB0_25
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	lsl	x21, x22, #2
	ldr	w24, [x8, x21]
	mov	x0, x28
	bl	_rtl_priv
	ldr	x8, [x0]
	str	w24, [x8, x21]
	add	x8, x22, #1
	ldrsw	x9, [x23]
	cmp	x22, x9
	mov	x22, x8
	b.lt	LBB0_24
LBB0_25:
	mov	x0, x28
	bl	_rtl_priv
	ldr	w8, [x0, #8]
	add	w8, w8, #1
	str	w8, [x0, #8]
LBB0_26:
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	cbz	w27, LBB0_57
; %bb.27:
	sdiv	w1, w26, w27
	b	LBB0_56
LBB0_28:
	mov	w22, #1
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	add	x22, x22, #1
	cmp	x25, x22
	b.eq	LBB0_22
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	lsl	x28, x22, #2
	ldr	w0, [x8, x28]
	bl	_rtl_evm_db_to_percentage
	mov	x24, x0
	ldr	x8, [x19, #48]
	ldr	w0, [x8, x28]
	bl	__rtl8821ae_evm_dbm_jaguar
	cbz	w21, LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	x8, [x20, #16]
	str	w24, [x8, x28]
	ldr	x8, [x20, #72]
	str	w0, [x8, x28]
	b	LBB0_29
LBB0_32:
	mov	w9, #-1
	eor	w24, w9, w8, lsl #1
	b	LBB0_37
LBB0_33:
	mov	w9, #-17
	b	LBB0_36
LBB0_34:
	mov	w9, #-30
	b	LBB0_36
LBB0_35:
	mov	w9, #-38
LBB0_36:
	sub	w24, w9, w8, lsl #1
LBB0_37:
	mov	x0, x24
	bl	_rtl_query_rxpwrpercentage
	mov	x1, x0
	b	LBB0_48
LBB0_38:
	mov	w9, #8
	b	LBB0_45
LBB0_39:
	neg	w8, w8, lsl #1
	cbz	w22, LBB0_59
; %bb.40:
	add	w24, w8, #4
	b	LBB0_37
LBB0_41:
	mov	w9, #-10
	b	LBB0_45
LBB0_42:
	mov	w9, #-22
	b	LBB0_45
LBB0_43:
	mov	w9, #-28
	b	LBB0_45
LBB0_44:
	mov	w9, #-44
LBB0_45:
	sub	w8, w9, w8, lsl #1
LBB0_46:
	add	w24, w8, #6
	mov	x0, x24
	bl	_rtl_query_rxpwrpercentage
	mov	x1, x0
	cbnz	w22, LBB0_48
LBB0_47:
	cmp	w1, #19
	mov	w8, #79
	ccmp	w1, w8, #4, gt
	add	w8, w1, #3
	csel	w8, w8, w1, ne
	subs	w9, w1, #80
	lsr	w10, w9, #1
	add	w9, w10, w9, lsl #1
	add	w9, w9, #80
	csel	w8, w8, w9, lt
	mov	w9, #100
	cmp	w8, #100
	csel	w1, w8, w9, lt
LBB0_48:
	stp	w1, w24, [x20, #24]
	cbz	w23, LBB0_56
; %bb.49:
	cmp	w1, #40
	b.le	LBB0_51
; %bb.50:
	mov	w8, #100
	b	LBB0_55
LBB0_51:
	ldr	w9, [x19, #8]
	cmp	w9, #64
	b.le	LBB0_53
; %bb.52:
	mov	w8, #0
	b	LBB0_55
LBB0_53:
	mov	w8, #100
	cmp	w9, #20
	b.lt	LBB0_55
; %bb.54:
	mov	w10, #64
	sub	w9, w10, w9
	mul	w8, w9, w8
	and	w8, w8, #0xfffc
	mov	w9, #47663
	mul	w8, w8, w9
	lsr	w8, w8, #21
LBB0_55:
	str	w8, [x20, #32]
	ldr	x9, [x20, #16]
	mov	w10, #-1
	stp	w8, w10, [x9]
LBB0_56:
	mov	x0, x28
	bl	_rtl_signal_scale_mapping
	str	w0, [x20, #80]
LBB0_57:
	ldr	d0, [x19, #40]
	str	d0, [x21]
	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
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_58:
	mov	w9, #-100
	mov	w10, #-46
	sub	w10, w10, w8, lsl #1
	cmp	w8, #27
	csel	w8, w9, w10, hi
	b	LBB0_46
LBB0_59:
	add	w24, w8, #10
	mov	x0, x24
	bl	_rtl_query_rxpwrpercentage
	mov	x1, x0
	b	LBB0_47
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_32-LBB0_9)>>2
	.byte	(LBB0_33-LBB0_9)>>2
	.byte	(LBB0_37-LBB0_9)>>2
	.byte	(LBB0_34-LBB0_9)>>2
	.byte	(LBB0_35-LBB0_9)>>2
	.p2align	1
lJTI0_1:
	.short	(LBB0_3-LBB0_3)>>2
	.short	(LBB0_38-LBB0_3)>>2
	.short	(LBB0_39-LBB0_3)>>2
	.short	(LBB0_41-LBB0_3)>>2
	.short	(LBB0_42-LBB0_3)>>2
	.short	(LBB0_43-LBB0_3)>>2
	.short	(LBB0_44-LBB0_3)>>2
	.short	(LBB0_58-LBB0_3)>>2
                                        ; -- End function
	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ; @HARDWARE_TYPE_RTL8812AE
	.comm	_RF90_PATH_A,4,2                ; @RF90_PATH_A
	.comm	_RF6052_MAX_PATH,4,2            ; @RF6052_MAX_PATH
	.comm	_DESC_RATEMCS8,8,3              ; @DESC_RATEMCS8
	.comm	_DESC_RATEMCS15,8,3             ; @DESC_RATEMCS15
	.comm	_DESC_RATEVHT2SS_MCS0,8,3       ; @DESC_RATEVHT2SS_MCS0
	.comm	_DESC_RATEVHT2SS_MCS9,8,3       ; @DESC_RATEVHT2SS_MCS9
	.comm	_RF90_PATH_B,4,2                ; @RF90_PATH_B
	.no_dead_strip	_query_rxphystatus
.subsections_via_symbols
