	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_phy_status_page0
_query_phy_status_page0:                ## @query_phy_status_page0
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_RTW_RF_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r12, %rdi
	callq	_GET_PHY_STAT_P0_PWDB_A
	movq	_RF_PATH_A@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%r13,%rcx,8)
	movq	%r12, %rdi
	callq	_GET_PHY_STAT_P0_PWDB_B
	movq	_RF_PATH_B@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%r13,%rcx,8)
	movq	(%r15), %r14
	movq	8(%r15), %r15
	movq	%r12, %rdi
	callq	_GET_PHY_STAT_P0_GAIN_A
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	_RF_PATH_A@GOTPCREL(%rip), %r12
	callq	_GET_PHY_STAT_P0_GAIN_B
	movq	%r14, %rcx
	cmpq	%rbx, %r14
	jg	LBB0_2
## %bb.1:
	movq	%r15, %rcx
	cmpq	%rbx, %r15
	jge	LBB0_3
LBB0_2:
	subq	%rbx, %rcx
	addq	%rcx, %rcx
	movq	(%r12), %rdx
	addq	%rcx, (%r13,%rdx,8)
LBB0_3:
	subq	%rax, %r14
	jle	LBB0_5
## %bb.4:
	addq	%r14, %r14
	movq	_RF_PATH_B@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	addq	%r14, (%r13,%rax,8)
	jmp	LBB0_8
LBB0_5:
	subq	%rax, %r15
	movq	_RF_PATH_B@GOTPCREL(%rip), %rdx
	jge	LBB0_6
## %bb.7:
	addq	%r15, %r15
	movq	(%rdx), %rax
	addq	%r15, (%r13,%rax,8)
	jmp	LBB0_8
LBB0_6:
	movq	(%rdx), %rax
LBB0_8:
	movq	(%r12), %rcx
	addq	$-110, (%r13,%rcx,8)
	addq	$-110, (%r13,%rax,8)
	movq	(%r13,%rcx,8), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	movq	%rax, (%rdi,%rcx,8)
	movq	(%rdx), %rax
	movq	(%r13,%rax,8), %rcx
	movq	%rcx, (%rdi,%rax,8)
	movl	$1, %esi
	callq	_rtw_phy_rf_power_2_rssi
	movl	%eax, 16(%rbx)
	movq	_RTW_CHANNEL_WIDTH_20@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	$-120, %rsi
	callq	_max
	movl	%eax, 8(%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_RF_PATH_MAX,4,2            ## @RTW_RF_PATH_MAX
	.comm	_RF_PATH_A,8,3                  ## @RF_PATH_A
	.comm	_RF_PATH_B,8,3                  ## @RF_PATH_B
	.comm	_RTW_CHANNEL_WIDTH_20,4,2       ## @RTW_CHANNEL_WIDTH_20
	.no_dead_strip	_query_phy_status_page0
.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_page0
_query_phy_status_page0:                ; @query_phy_status_page0
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _RTW_RF_PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTW_RF_PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	x0, x1
	bl	_GET_PHY_STAT_P0_PWDB_A
Lloh8:
	adrp	x22, _RF_PATH_A@GOTPAGE
Lloh9:
	ldr	x22, [x22, _RF_PATH_A@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x0, [x23, x8, lsl #3]
	mov	x0, x21
	bl	_GET_PHY_STAT_P0_PWDB_B
Lloh10:
	adrp	x24, _RF_PATH_B@GOTPAGE
Lloh11:
	ldr	x24, [x24, _RF_PATH_B@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x0, [x23, x8, lsl #3]
	ldp	x26, x25, [x20]
	mov	x0, x21
	bl	_GET_PHY_STAT_P0_GAIN_A
	mov	x20, x0
	mov	x0, x21
	bl	_GET_PHY_STAT_P0_GAIN_B
	mov	x8, x26
	cmp	x26, x20
	b.gt	LBB0_2
; %bb.1:
	mov	x8, x25
	cmp	x25, x20
	b.ge	LBB0_3
LBB0_2:
	sub	x8, x8, x20
	ldr	x9, [x22]
	lsl	x9, x9, #3
	ldr	x10, [x23, x9]
	add	x8, x10, x8, lsl #1
	str	x8, [x23, x9]
LBB0_3:
	subs	x9, x26, x0
	b.gt	LBB0_5
; %bb.4:
	subs	x9, x25, x0
	b.ge	LBB0_6
LBB0_5:
	ldr	x8, [x24]
	lsl	x10, x8, #3
	ldr	x11, [x23, x10]
	add	x9, x11, x9, lsl #1
	str	x9, [x23, x10]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x24]
LBB0_7:
	ldr	x9, [x22]
	lsl	x9, x9, #3
	ldr	x10, [x23, x9]
	sub	x10, x10, #110
	str	x10, [x23, x9]
	lsl	x8, x8, #3
	ldr	x10, [x23, x8]
	sub	x10, x10, #110
	str	x10, [x23, x8]
	ldr	x8, [x23, x9]
	ldr	x0, [x19]
	str	x8, [x0, x9]
	ldr	x8, [x24]
	lsl	x8, x8, #3
	ldr	x9, [x23, x8]
	str	x9, [x0, x8]
	mov	w1, #1
	bl	_rtw_phy_rf_power_2_rssi
Lloh12:
	adrp	x8, _RTW_CHANNEL_WIDTH_20@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RTW_CHANNEL_WIDTH_20@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #12]
	ldr	x8, [x19]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	mov	x1, #-120
	bl	_max
	str	w0, [x19, #8]
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_RF_PATH_MAX,4,2            ; @RTW_RF_PATH_MAX
	.comm	_RF_PATH_A,8,3                  ; @RF_PATH_A
	.comm	_RF_PATH_B,8,3                  ; @RF_PATH_B
	.comm	_RTW_CHANNEL_WIDTH_20,4,2       ; @RTW_CHANNEL_WIDTH_20
	.no_dead_strip	_query_phy_status_page0
.subsections_via_symbols
