	.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	-1(%rax), %ecx
	cmpl	$7, %ecx
	ja	LBB0_6
## %bb.5:
	movq	_RTW_CHANNEL_WIDTH_20@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_11
LBB0_6:
	leal	-9(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_8
## %bb.7:
	movq	_RTW_CHANNEL_WIDTH_40@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_11
LBB0_8:
	cmpl	$13, %eax
	jl	LBB0_10
## %bb.9:
	movq	_RTW_CHANNEL_WIDTH_80@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	callq	_GET_PHY_STAT_P1_RF_MODE
	movl	%eax, %r15d
LBB0_11:
	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_20,4,2       ## @RTW_CHANNEL_WIDTH_20
	.comm	_RTW_CHANNEL_WIDTH_40,4,2       ## @RTW_CHANNEL_WIDTH_40
	.comm	_RTW_CHANNEL_WIDTH_80,4,2       ## @RTW_CHANNEL_WIDTH_80
	.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:
	sub	w8, w0, #1
	cmp	w8, #7
	b.hi	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _RTW_CHANNEL_WIDTH_20@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTW_CHANNEL_WIDTH_20@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_5:
	sub	w8, w0, #9
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _RTW_CHANNEL_WIDTH_40@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RTW_CHANNEL_WIDTH_40@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_7:
	cmp	w0, #13
	b.lt	LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _RTW_CHANNEL_WIDTH_80@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RTW_CHANNEL_WIDTH_80@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_GET_PHY_STAT_P1_RF_MODE
	mov	x21, x0
LBB0_10:
	mov	x0, x20
	bl	_GET_PHY_STAT_P1_PWDB_A
	sub	x8, x0, #110
	ldr	x9, [x19, #16]
Lloh15:
	adrp	x22, _RF_PATH_A@GOTPAGE
Lloh16:
	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]
Lloh17:
	adrp	x20, _RF_PATH_B@GOTPAGE
Lloh18:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DESC_RATE11M,8,3               ; @DESC_RATE11M
	.comm	_DESC_RATEMCS0,8,3              ; @DESC_RATEMCS0
	.comm	_RTW_CHANNEL_WIDTH_20,4,2       ; @RTW_CHANNEL_WIDTH_20
	.comm	_RTW_CHANNEL_WIDTH_40,4,2       ; @RTW_CHANNEL_WIDTH_40
	.comm	_RTW_CHANNEL_WIDTH_80,4,2       ; @RTW_CHANNEL_WIDTH_80
	.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
