	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpphy_rx_iq_est
_lpphy_rx_iq_est:                       ## @lpphy_rx_iq_est
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_B43_LPPHY_CRSGAIN_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$65527, %edx                    ## imm = 0xFFF7
	callq	_b43_phy_mask
	movq	_B43_LPPHY_IQ_NUM_SMPLS_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_b43_phy_write
	movq	_B43_LPPHY_IQ_ENABLE_WAIT_TIME_ADDR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	$65280, %edx                    ## imm = 0xFF00
	movl	%r15d, %ecx
	callq	_b43_phy_maskset
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	$65279, %edx                    ## imm = 0xFEFF
	callq	_b43_phy_mask
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	$512, %edx                      ## imm = 0x200
	callq	_b43_phy_set
	movl	$500, %ebx                      ## imm = 0x1F4
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_b43_phy_read
	testl	$512, %eax                      ## imm = 0x200
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_msleep
	decl	%ebx
	jne	LBB0_1
LBB0_3:
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_b43_phy_read
	xorl	%r15d, %r15d
	testl	$512, %eax                      ## imm = 0x200
	jne	LBB0_5
## %bb.4:
	movq	_B43_LPPHY_IQ_ACC_HI_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43_phy_read
	shll	$16, %eax
	movl	%eax, (%r14)
	movq	_B43_LPPHY_IQ_ACC_LO_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43_phy_read
	orl	%eax, (%r14)
	movq	_B43_LPPHY_IQ_I_PWR_ACC_HI_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43_phy_read
	shll	$16, %eax
	movl	%eax, 4(%r14)
	movq	_B43_LPPHY_IQ_I_PWR_ACC_LO_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43_phy_read
	orl	%eax, 4(%r14)
	movq	_B43_LPPHY_IQ_Q_PWR_ACC_HI_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43_phy_read
	shll	$16, %eax
	movl	%eax, 8(%r14)
	movq	_B43_LPPHY_IQ_Q_PWR_ACC_LO_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43_phy_read
	orl	%eax, 8(%r14)
	movl	$1, %r15d
LBB0_5:
	movq	_B43_LPPHY_CRSGAIN_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$8, %edx
	callq	_b43_phy_set
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_LPPHY_CRSGAIN_CTL,4,2      ## @B43_LPPHY_CRSGAIN_CTL
	.comm	_B43_LPPHY_IQ_NUM_SMPLS_ADDR,4,2 ## @B43_LPPHY_IQ_NUM_SMPLS_ADDR
	.comm	_B43_LPPHY_IQ_ENABLE_WAIT_TIME_ADDR,4,2 ## @B43_LPPHY_IQ_ENABLE_WAIT_TIME_ADDR
	.comm	_B43_LPPHY_IQ_ACC_HI_ADDR,4,2   ## @B43_LPPHY_IQ_ACC_HI_ADDR
	.comm	_B43_LPPHY_IQ_ACC_LO_ADDR,4,2   ## @B43_LPPHY_IQ_ACC_LO_ADDR
	.comm	_B43_LPPHY_IQ_I_PWR_ACC_HI_ADDR,4,2 ## @B43_LPPHY_IQ_I_PWR_ACC_HI_ADDR
	.comm	_B43_LPPHY_IQ_I_PWR_ACC_LO_ADDR,4,2 ## @B43_LPPHY_IQ_I_PWR_ACC_LO_ADDR
	.comm	_B43_LPPHY_IQ_Q_PWR_ACC_HI_ADDR,4,2 ## @B43_LPPHY_IQ_Q_PWR_ACC_HI_ADDR
	.comm	_B43_LPPHY_IQ_Q_PWR_ACC_LO_ADDR,4,2 ## @B43_LPPHY_IQ_Q_PWR_ACC_LO_ADDR
	.no_dead_strip	_lpphy_rx_iq_est
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpphy_rx_iq_est
_lpphy_rx_iq_est:                       ; @lpphy_rx_iq_est
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _B43_LPPHY_CRSGAIN_CTL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _B43_LPPHY_CRSGAIN_CTL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #65527
	bl	_b43_phy_mask
Lloh2:
	adrp	x8, _B43_LPPHY_IQ_NUM_SMPLS_ADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _B43_LPPHY_IQ_NUM_SMPLS_ADDR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_b43_phy_write
Lloh5:
	adrp	x22, _B43_LPPHY_IQ_ENABLE_WAIT_TIME_ADDR@GOTPAGE
Lloh6:
	ldr	x22, [x22, _B43_LPPHY_IQ_ENABLE_WAIT_TIME_ADDR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #65280
	mov	x3, x21
	bl	_b43_phy_maskset
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #65279
	bl	_b43_phy_mask
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #512
	bl	_b43_phy_set
	mov	w21, #500
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_b43_phy_read
	tbz	w0, #9, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_msleep
	subs	w21, w21, #1
	b.ne	LBB0_1
LBB0_3:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_b43_phy_read
	tbnz	w0, #9, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _B43_LPPHY_IQ_ACC_HI_ADDR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _B43_LPPHY_IQ_ACC_HI_ADDR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_phy_read
	lsl	w8, w0, #16
	str	w8, [x20]
Lloh10:
	adrp	x8, _B43_LPPHY_IQ_ACC_LO_ADDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _B43_LPPHY_IQ_ACC_LO_ADDR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_phy_read
	ldr	w8, [x20]
	orr	w8, w8, w0
	str	w8, [x20]
Lloh13:
	adrp	x8, _B43_LPPHY_IQ_I_PWR_ACC_HI_ADDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _B43_LPPHY_IQ_I_PWR_ACC_HI_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_phy_read
	lsl	w8, w0, #16
	str	w8, [x20, #4]
Lloh16:
	adrp	x8, _B43_LPPHY_IQ_I_PWR_ACC_LO_ADDR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _B43_LPPHY_IQ_I_PWR_ACC_LO_ADDR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_phy_read
	ldr	w8, [x20, #4]
	orr	w8, w8, w0
	str	w8, [x20, #4]
Lloh19:
	adrp	x8, _B43_LPPHY_IQ_Q_PWR_ACC_HI_ADDR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _B43_LPPHY_IQ_Q_PWR_ACC_HI_ADDR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_phy_read
	lsl	w8, w0, #16
	str	w8, [x20, #8]
Lloh22:
	adrp	x8, _B43_LPPHY_IQ_Q_PWR_ACC_LO_ADDR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _B43_LPPHY_IQ_Q_PWR_ACC_LO_ADDR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_phy_read
	ldr	w8, [x20, #8]
	orr	w8, w8, w0
	str	w8, [x20, #8]
	mov	w20, #1
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #8
	bl	_b43_phy_set
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_LPPHY_CRSGAIN_CTL,4,2      ; @B43_LPPHY_CRSGAIN_CTL
	.comm	_B43_LPPHY_IQ_NUM_SMPLS_ADDR,4,2 ; @B43_LPPHY_IQ_NUM_SMPLS_ADDR
	.comm	_B43_LPPHY_IQ_ENABLE_WAIT_TIME_ADDR,4,2 ; @B43_LPPHY_IQ_ENABLE_WAIT_TIME_ADDR
	.comm	_B43_LPPHY_IQ_ACC_HI_ADDR,4,2   ; @B43_LPPHY_IQ_ACC_HI_ADDR
	.comm	_B43_LPPHY_IQ_ACC_LO_ADDR,4,2   ; @B43_LPPHY_IQ_ACC_LO_ADDR
	.comm	_B43_LPPHY_IQ_I_PWR_ACC_HI_ADDR,4,2 ; @B43_LPPHY_IQ_I_PWR_ACC_HI_ADDR
	.comm	_B43_LPPHY_IQ_I_PWR_ACC_LO_ADDR,4,2 ; @B43_LPPHY_IQ_I_PWR_ACC_LO_ADDR
	.comm	_B43_LPPHY_IQ_Q_PWR_ACC_HI_ADDR,4,2 ; @B43_LPPHY_IQ_Q_PWR_ACC_HI_ADDR
	.comm	_B43_LPPHY_IQ_Q_PWR_ACC_LO_ADDR,4,2 ; @B43_LPPHY_IQ_Q_PWR_ACC_LO_ADDR
	.no_dead_strip	_lpphy_rx_iq_est
.subsections_via_symbols
