	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92c_query_rxphystatus
__rtl92c_query_rxphystatus:             ## @_rtl92c_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	callq	_RX_HAL_IS_CCK_RATE
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, (%rbx)
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rbx)
	movl	16(%rbp), %ecx
	movl	%ecx, 8(%rbx)
	movq	%rbx, %r15
	movl	%eax, 12(%rbx)
	movq	16(%rbx), %rcx
	movq	$-1, (%rcx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$0, 16(%r14)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %eax
	je	LBB0_19
## %bb.2:
	movq	(%r13), %rcx
	movl	(%rcx), %ecx
	shrl	$5, %ecx
	andl	$3, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	addl	%eax, %eax
	jmp	LBB0_20
LBB0_4:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%rax)
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r15
	movq	_RF90_PATH_MAX@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	movl	$0, %r12d
	cmpl	(%rcx), %r15d
	jge	LBB0_10
## %bb.5:
	incq	%r15
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, -4(%rax,%r15,4)
	sbbl	$-1, %r12d
	movq	8(%rbx), %rax
	movl	-4(%rax,%r15,4), %eax
	andl	$63, %eax
	leaq	(%rax,%rax), %rdi
	addq	$-110, %rdi
	callq	__rtl92c_query_rxpwrpercentage
	movq	16(%rbx), %rcx
	movl	-4(%rcx,%r15,4), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rcx
	movq	(%r14), %rdx
	movq	%rcx, -8(%rdx,%r15,8)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	32(%rcx), %rcx
	movl	%eax, -4(%rcx,%r15,4)
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	addl	%eax, %r13d
	movq	_RF90_PATH_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r14), %rax
	incq	%r15
	jmp	LBB0_6
LBB0_10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %eax
	shrl	%eax
	andl	$127, %eax
	addl	$-110, %eax
	movslq	%eax, %r14
	movq	%r14, %rdi
	callq	__rtl92c_query_rxpwrpercentage
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 24(%rcx)
	movq	%r14, 56(%rcx)
	movq	%r14, 48(%rcx)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_get_rx_desc_rx_mcs
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	callq	_get_rx_desc_rx_mcs
	movq	_DESC_RATEMCS8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_get_rx_desc_rx_mcs
	movq	_DESC_RATEMCS15@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_28
LBB0_13:
	movl	$1, %r14d
	movb	$1, %r15b
LBB0_14:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movl	(%rax), %edi
	callq	_rtl_evm_db_to_percentage
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.15:
	movzbl	%al, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 28(%rcx)
	movq	16(%rcx), %rcx
	movl	%eax, (%rcx)
LBB0_16:
	testb	%r15b, %r15b
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_21
LBB0_17:
	testl	%r12d, %r12d
	je	LBB0_39
## %bb.18:
	movl	%r13d, %eax
	cltd
	idivl	%r12d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_38
LBB0_19:
	movl	%eax, %edx
	shrl	$6, %edx
	andl	$3, %edx
	movl	$-46, %ecx
	leaq	LJTI0_1(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_20:
	movl	$16, %ecx
	jmp	LBB0_31
LBB0_21:
	movl	$1, %ebx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_17
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_rtl_evm_db_to_percentage
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movzbl	%al, %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	jmp	LBB0_22
LBB0_25:
	addl	%eax, %eax
LBB0_30:
	movl	$-26, %ecx
	jmp	LBB0_31
LBB0_26:
	addl	%eax, %eax
	movl	$-46, %ecx
	jmp	LBB0_31
LBB0_27:
	addl	%eax, %eax
	movl	$-12, %ecx
	jmp	LBB0_31
LBB0_28:
	movl	$2, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_29:
	movl	$-12, %ecx
LBB0_31:
	andl	$62, %eax
	subl	%eax, %ecx
	movslq	%ecx, %rbx
	movq	%rbx, %rdi
	callq	__rtl92c_query_rxpwrpercentage
	movl	%eax, 24(%r15)
	movq	%rbx, 48(%r15)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_37
## %bb.32:
	movl	$100, %ecx
	cmpl	$40, %eax
	movq	%r12, %rdi
	jg	LBB0_36
## %bb.33:
	movl	4(%r13), %edx
	xorl	%ecx, %ecx
	cmpl	$64, %edx
	jg	LBB0_36
## %bb.34:
	movl	$100, %ecx
	cmpl	$20, %edx
	jl	LBB0_36
## %bb.35:
	movl	$64, %ecx
	subl	%edx, %ecx
	imull	$100, %ecx, %ecx
	movzwl	%cx, %ecx
	imull	$47663, %ecx, %ecx              ## imm = 0xBA2F
	shrl	$21, %ecx
LBB0_36:
	movl	%ecx, 28(%r15)
	movq	16(%r15), %rdx
	movl	%ecx, (%rdx)
	movl	$-1, 4(%rdx)
	jmp	LBB0_38
LBB0_37:
	movq	%r12, %rdi
LBB0_38:
	movl	%eax, %esi
	callq	__rtl92c_signal_scale_mapping
	movl	%eax, 40(%r15)
LBB0_39:
	addq	$40, %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_3, LBB0_3-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_27
	.long	L0_0_set_25
	.long	L0_0_set_26
.set L0_1_set_20, LBB0_20-LJTI0_1
.set L0_1_set_29, LBB0_29-LJTI0_1
.set L0_1_set_30, LBB0_30-LJTI0_1
.set L0_1_set_31, LBB0_31-LJTI0_1
LJTI0_1:
	.long	L0_1_set_20
	.long	L0_1_set_29
	.long	L0_1_set_30
	.long	L0_1_set_31
	.end_data_region
                                        ## -- End function
	.comm	_RF90_PATH_A,4,2                ## @RF90_PATH_A
	.comm	_RF90_PATH_MAX,4,2              ## @RF90_PATH_MAX
	.comm	_DESC_RATEMCS8,8,3              ## @DESC_RATEMCS8
	.comm	_DESC_RATEMCS15,8,3             ## @DESC_RATEMCS15
	.no_dead_strip	__rtl92c_query_rxphystatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92c_query_rxphystatus
__rtl92c_query_rxphystatus:             ; @_rtl92c_query_rxphystatus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x4
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	bl	_rtl_priv
	mov	x24, x0
	ldr	w0, [x23]
	bl	_RX_HAL_IS_CCK_RATE
	stp	w22, w26, [x19]
	stp	w25, w0, [x19, #8]
	ldr	x8, [x19, #16]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x8]
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w9, [x24, #16]
	ldr	w8, [x21]
	cbz	w9, LBB0_10
; %bb.2:
	ldr	x9, [x21]
	ldr	w9, [x9]
	ubfx	w9, w9, #5, #2
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	lsl	w8, w8, #1
	b	LBB0_11
LBB0_4:
	ldr	x8, [x24, #8]
	movi.2s	v0, #1
Lloh2:
	adrp	x9, _RF90_PATH_A@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RF90_PATH_A@GOTPAGEOFF]
	str	d0, [x8]
Lloh4:
	ldrsw	x27, [x9]
Lloh5:
	adrp	x28, _RF90_PATH_MAX@GOTPAGE
Lloh6:
	ldr	x28, [x28, _RF90_PATH_MAX@GOTPAGEOFF]
	ldr	w9, [x28]
	cmp	w27, w9
	b.ge	LBB0_12
; %bb.5:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	w25, #0
	mov	w26, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x20, x27, #2
	ldr	w8, [x8, x20]
	cmp	w8, #0
	cinc	w25, w25, ne
	ldr	x8, [x21, #8]
	ldr	w8, [x8, x20]
	lsl	w8, w8, #1
	and	x8, x8, #0x7e
	sub	x0, x8, #110
	bl	__rtl92c_query_rxpwrpercentage
	ldr	x8, [x21, #16]
	ldr	w8, [x8, x20]
	cmp	w8, #0
	cinc	w8, w8, lt
	sbfx	x8, x8, #1, #31
	ldr	x9, [x24]
	str	x8, [x9, x27, lsl #3]
	cbz	w22, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #32]
	str	w0, [x8, x27, lsl #2]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w26, w0, w26
	add	x27, x27, #1
	ldrsw	x8, [x28]
	cmp	x27, x8
	b.ge	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24, #8]
	b	LBB0_6
LBB0_10:
	ubfx	w10, w8, #6, #2
	mov	w9, #-46
Lloh7:
	adrp	x11, lJTI0_1@PAGE
Lloh8:
	add	x11, x11, lJTI0_1@PAGEOFF
	adr	x12, LBB0_11
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_11:
	mov	w9, #16
	b	LBB0_32
LBB0_12:
	mov	w26, #0
	mov	w25, #0
	b	LBB0_14
LBB0_13:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
LBB0_14:
	ldr	w8, [x21, #24]
	ubfx	w8, w8, #1, #7
	sub	w8, w8, #110
	sxtw	x24, w8
	mov	x0, x24
	bl	__rtl92c_query_rxpwrpercentage
	str	w0, [x19, #24]
	stp	x24, x24, [x19, #48]
	mov	x0, x23
	bl	_get_rx_desc_rx_mcs
	cbz	x0, LBB0_17
; %bb.15:
	mov	x0, x23
	bl	_get_rx_desc_rx_mcs
Lloh9:
	adrp	x8, _DESC_RATEMCS8@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DESC_RATEMCS8@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_17
; %bb.16:
	mov	x0, x23
	bl	_get_rx_desc_rx_mcs
Lloh12:
	adrp	x8, _DESC_RATEMCS15@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DESC_RATEMCS15@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_39
LBB0_17:
	mov	w24, #1
	mov	w23, #1
LBB0_18:
	ldr	x8, [x21, #32]
	ldr	w0, [x8]
	bl	_rtl_evm_db_to_percentage
	cbz	w22, LBB0_20
; %bb.19:
	and	w8, w0, #0xff
	str	w8, [x19, #28]
	ldr	x9, [x19, #16]
	str	w8, [x9]
LBB0_20:
	tbz	w24, #0, LBB0_23
LBB0_21:
	cbz	w25, LBB0_38
; %bb.22:
	sdiv	w1, w26, w25
	b	LBB0_37
LBB0_23:
	mov	w24, #1
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x24, x24, #1
	cmp	x23, x24
	b.eq	LBB0_21
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #32]
	ldr	w0, [x8, x24, lsl #2]
	bl	_rtl_evm_db_to_percentage
	cbz	w22, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	and	w8, w0, #0xff
	ldr	x9, [x19, #16]
	str	w8, [x9, x24, lsl #2]
	b	LBB0_24
LBB0_27:
	lsl	w8, w8, #1
	mov	w9, #-12
	b	LBB0_32
LBB0_28:
	lsl	w8, w8, #1
LBB0_29:
	mov	w9, #-26
	b	LBB0_32
LBB0_30:
	lsl	w8, w8, #1
	mov	w9, #-46
	b	LBB0_32
LBB0_31:
	mov	w9, #-12
LBB0_32:
	and	w8, w8, #0x3e
	sub	w8, w9, w8
	sxtw	x23, w8
	mov	x0, x23
	bl	__rtl92c_query_rxpwrpercentage
	mov	x1, x0
	str	w0, [x19, #24]
	str	x23, [x19, #48]
	cbz	w22, LBB0_37
; %bb.33:
	cmp	w1, #40
	b.le	LBB0_35
; %bb.34:
	mov	w8, #100
	b	LBB0_36
LBB0_35:
	ldr	w8, [x21, #4]
	mov	w9, #100
	mov	w10, #64
	sub	w10, w10, w8
	mul	w10, w10, w9
	and	w10, w10, #0xfffc
	mov	w11, #47663
	mul	w10, w10, w11
	lsr	w10, w10, #21
	cmp	w8, #20
	csel	w9, w9, w10, lt
	cmp	w8, #64
	csel	w8, wzr, w9, gt
LBB0_36:
	str	w8, [x19, #28]
	ldr	x9, [x19, #16]
	mov	w10, #-1
	stp	w8, w10, [x9]
LBB0_37:
	mov	x0, x20
	bl	__rtl92c_signal_scale_mapping
	str	w0, [x19, #40]
LBB0_38:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_39:
	mov	w24, #0
	mov	w23, #2
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_27-LBB0_3)>>2
	.byte	(LBB0_28-LBB0_3)>>2
	.byte	(LBB0_30-LBB0_3)>>2
lJTI0_1:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_31-LBB0_11)>>2
	.byte	(LBB0_29-LBB0_11)>>2
	.byte	(LBB0_32-LBB0_11)>>2
                                        ; -- End function
	.comm	_RF90_PATH_A,4,2                ; @RF90_PATH_A
	.comm	_RF90_PATH_MAX,4,2              ; @RF90_PATH_MAX
	.comm	_DESC_RATEMCS8,8,3              ; @DESC_RATEMCS8
	.comm	_DESC_RATEMCS15,8,3             ; @DESC_RATEMCS15
	.no_dead_strip	__rtl92c_query_rxphystatus
.subsections_via_symbols
