	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_phy_status_page1
_query_phy_status_page1:                ## @query_phy_status_page1
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	(%rdx), %rax
	movq	_DESC_RATE11M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
## %bb.1:
	movq	_DESC_RATEMCS0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_GET_PHY_STAT_P1_L_RXSC
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_GET_PHY_STAT_P1_HT_RXSC
LBB0_4:
                                        ## kill: def $eax killed $eax def $rax
	leal	-9(%rax), %ecx
	cmpl	$13, %eax
	jl	LBB0_5
## %bb.6:
	movq	_RTW_CHANNEL_WIDTH_80@GOTPCREL(%rip), %rax
	cmpl	$4, %ecx
	jb	LBB0_8
	jmp	LBB0_9
LBB0_5:
	movq	_RTW_CHANNEL_WIDTH_20@GOTPCREL(%rip), %rax
	cmpl	$4, %ecx
	jae	LBB0_9
LBB0_8:
	movq	_RTW_CHANNEL_WIDTH_40@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_GET_PHY_STAT_P1_PWDB_A
	addq	$-110, %rax
	movq	16(%rbx), %rcx
	movq	_RF_PATH_A@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	%r14, %rdi
	callq	_GET_PHY_STAT_P1_PWDB_B
	addq	$-110, %rax
	movq	16(%rbx), %rdi
	movq	_RF_PATH_B@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	%rax, (%rdi,%rcx,8)
	movl	$2, %esi
	callq	_rtw_phy_rf_power_2_rssi
	movl	%eax, 28(%rbx)
	movl	%r15d, 8(%rbx)
	movq	16(%rbx), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rsi
	movl	$-120, %edx
	callq	_max3
	movl	%eax, 24(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DESC_RATE11M,8,3               ## @DESC_RATE11M
	.comm	_DESC_RATEMCS0,8,3              ## @DESC_RATEMCS0
	.comm	_RTW_CHANNEL_WIDTH_40,4,2       ## @RTW_CHANNEL_WIDTH_40
	.comm	_RTW_CHANNEL_WIDTH_80,4,2       ## @RTW_CHANNEL_WIDTH_80
	.comm	_RTW_CHANNEL_WIDTH_20,4,2       ## @RTW_CHANNEL_WIDTH_20
	.comm	_RF_PATH_A,8,3                  ## @RF_PATH_A
	.comm	_RF_PATH_B,8,3                  ## @RF_PATH_B
	.no_dead_strip	_query_phy_status_page1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_phy_status_page1
_query_phy_status_page1:                ; @query_phy_status_page1
	.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, x2
	mov	x20, x1
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _DESC_RATE11M@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DESC_RATE11M@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DESC_RATEMCS0@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DESC_RATEMCS0@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	mov	x0, x1
	ccmp	x8, x10, #0, gt
	b.lt	LBB0_2
; %bb.1:
	bl	_GET_PHY_STAT_P1_HT_RXSC
	b	LBB0_3
LBB0_2:
	bl	_GET_PHY_STAT_P1_L_RXSC
LBB0_3:
Lloh6:
	adrp	x8, _RTW_CHANNEL_WIDTH_40@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTW_CHANNEL_WIDTH_40@GOTPAGEOFF]
Lloh8:
	adrp	x9, _RTW_CHANNEL_WIDTH_80@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RTW_CHANNEL_WIDTH_80@GOTPAGEOFF]
Lloh10:
	adrp	x10, _RTW_CHANNEL_WIDTH_20@GOTPAGE
Lloh11:
	ldr	x10, [x10, _RTW_CHANNEL_WIDTH_20@GOTPAGEOFF]
	sub	w11, w0, #9
	cmp	w0, #12
	csel	x9, x9, x10, gt
	cmp	w11, #4
	csel	x8, x8, x9, lo
	ldr	w21, [x8]
	mov	x0, x20
	bl	_GET_PHY_STAT_P1_PWDB_A
	sub	x8, x0, #110
	ldr	x9, [x19, #16]
Lloh12:
	adrp	x22, _RF_PATH_A@GOTPAGE
Lloh13:
	ldr	x22, [x22, _RF_PATH_A@GOTPAGEOFF]
	ldr	x10, [x22]
	str	x8, [x9, x10, lsl #3]
	mov	x0, x20
	bl	_GET_PHY_STAT_P1_PWDB_B
	sub	x8, x0, #110
	ldr	x0, [x19, #16]
Lloh14:
	adrp	x20, _RF_PATH_B@GOTPAGE
Lloh15:
	ldr	x20, [x20, _RF_PATH_B@GOTPAGEOFF]
	ldr	x9, [x20]
	str	x8, [x0, x9, lsl #3]
	mov	w1, #2
	bl	_rtw_phy_rf_power_2_rssi
	str	w0, [x19, #28]
	str	w21, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	ldr	x9, [x20]
	ldr	x1, [x8, x9, lsl #3]
	mov	w2, #-120
	bl	_max3
	str	w0, [x19, #24]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DESC_RATE11M,8,3               ; @DESC_RATE11M
	.comm	_DESC_RATEMCS0,8,3              ; @DESC_RATEMCS0
	.comm	_RTW_CHANNEL_WIDTH_40,4,2       ; @RTW_CHANNEL_WIDTH_40
	.comm	_RTW_CHANNEL_WIDTH_80,4,2       ; @RTW_CHANNEL_WIDTH_80
	.comm	_RTW_CHANNEL_WIDTH_20,4,2       ; @RTW_CHANNEL_WIDTH_20
	.comm	_RF_PATH_A,8,3                  ; @RF_PATH_A
	.comm	_RF_PATH_B,8,3                  ; @RF_PATH_B
	.no_dead_strip	_query_phy_status_page1
.subsections_via_symbols
