	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_rx_iq_est_nphy         ## -- Begin function wlc_phy_rx_iq_est_nphy
	.p2align	4, 0x90
_wlc_phy_rx_iq_est_nphy:                ## @wlc_phy_rx_iq_est_nphy
	.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	%r8, %r12
	movq	%rcx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$299, %esi                      ## imm = 0x12B
	callq	_write_phy_reg
	movq	%r15, %rdi
	movl	$298, %esi                      ## imm = 0x12A
	movl	$255, %edx
	movl	%ebx, %ecx
	callq	_mod_phy_reg
	movq	_NPHY_IqestCmd_iqMode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	testq	%r12, %r12
	cmovnel	%edx, %ecx
	movq	%r15, %rdi
	movl	$297, %esi                      ## imm = 0x129
	callq	_mod_phy_reg
	movq	_NPHY_IqestCmd_iqstart@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movl	$297, %esi                      ## imm = 0x129
	movl	%ecx, %edx
	callq	_mod_phy_reg
	movq	%r15, %rdi
	movl	$297, %esi                      ## imm = 0x129
	callq	_read_phy_reg
	xorl	%edi, %edi
	andl	(%rbx), %eax
	setne	%dil
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_SPINWAIT
	movq	%r15, %rdi
	movl	$297, %esi                      ## imm = 0x129
	callq	_read_phy_reg
	andl	(%rbx), %eax
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_WARN
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	movl	$297, %esi                      ## imm = 0x129
	callq	_read_phy_reg
	testl	%eax, (%rbx)
	jne	LBB0_5
## %bb.2:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.3:
	addq	$8, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_NPHY_IqestipwrAccHi
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_read_phy_reg
	movl	%eax, %r12d
	shll	$16, %r12d
	movq	%rbx, %rdi
	callq	_NPHY_IqestipwrAccLo
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_read_phy_reg
	orl	%r12d, %eax
	movl	%eax, -8(%r14)
	movq	%rbx, %rdi
	callq	_NPHY_IqestqpwrAccHi
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_read_phy_reg
	movl	%eax, %r12d
	shll	$16, %r12d
	movq	%rbx, %rdi
	callq	_NPHY_IqestqpwrAccLo
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_read_phy_reg
	orl	%r12d, %eax
	movl	%eax, -4(%r14)
	movq	%rbx, %rdi
	callq	_NPHY_IqestIqAccHi
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_read_phy_reg
	movl	%eax, %r12d
	shll	$16, %r12d
	movq	%rbx, %rdi
	callq	_NPHY_IqestIqAccLo
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_read_phy_reg
	orl	%r12d, %eax
	movl	%eax, (%r14)
	incq	%rbx
	addq	$12, %r14
	cmpq	(%r15), %rbx
	jb	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPHY_IqestCmd_iqMode,4,2       ## @NPHY_IqestCmd_iqMode
	.comm	_NPHY_IqestCmd_iqstart,4,2      ## @NPHY_IqestCmd_iqstart
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HW error: rxiq est"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_rx_iq_est_nphy         ; -- Begin function wlc_phy_rx_iq_est_nphy
	.p2align	2
_wlc_phy_rx_iq_est_nphy:                ; @wlc_phy_rx_iq_est_nphy
	.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	x20, x4
	mov	x22, x3
	mov	x21, x1
	mov	x19, x0
	mov	w1, #299
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #298
	mov	w2, #255
	mov	x3, x22
	bl	_mod_phy_reg
Lloh0:
	adrp	x8, _NPHY_IqestCmd_iqMode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NPHY_IqestCmd_iqMode@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	cmp	x20, #0
	csel	w3, wzr, w2, eq
	mov	x0, x19
	mov	w1, #297
	bl	_mod_phy_reg
Lloh3:
	adrp	x20, _NPHY_IqestCmd_iqstart@GOTPAGE
Lloh4:
	ldr	x20, [x20, _NPHY_IqestCmd_iqstart@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #297
	mov	x3, x2
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #297
	bl	_read_phy_reg
	ldr	w8, [x20]
	tst	w8, w0
	cset	w0, ne
	mov	w1, #10000
	bl	_SPINWAIT
	mov	x0, x19
	mov	w1, #297
	bl	_read_phy_reg
	ldr	w8, [x20]
	and	w0, w8, w0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	cbnz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #297
	bl	_read_phy_reg
	ldr	w8, [x20]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x20, #0
	add	x22, x21, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_NPHY_IqestipwrAccHi
	mov	x1, x0
	mov	x0, x19
	bl	_read_phy_reg
	mov	x21, x0
	mov	x0, x20
	bl	_NPHY_IqestipwrAccLo
	mov	x1, x0
	mov	x0, x19
	bl	_read_phy_reg
	orr	w8, w0, w21, lsl #16
	stur	w8, [x22, #-4]
	mov	x0, x20
	bl	_NPHY_IqestqpwrAccHi
	mov	x1, x0
	mov	x0, x19
	bl	_read_phy_reg
	mov	x21, x0
	mov	x0, x20
	bl	_NPHY_IqestqpwrAccLo
	mov	x1, x0
	mov	x0, x19
	bl	_read_phy_reg
	orr	w8, w0, w21, lsl #16
	str	w8, [x22]
	mov	x0, x20
	bl	_NPHY_IqestIqAccHi
	mov	x1, x0
	mov	x0, x19
	bl	_read_phy_reg
	mov	x21, x0
	mov	x0, x20
	bl	_NPHY_IqestIqAccLo
	mov	x1, x0
	mov	x0, x19
	bl	_read_phy_reg
	orr	w8, w0, w21, lsl #16
	str	w8, [x22, #4]
	add	x20, x20, #1
	ldr	x8, [x19]
	add	x22, x22, #12
	cmp	x20, x8
	b.lo	LBB0_4
LBB0_5:
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NPHY_IqestCmd_iqMode,4,2       ; @NPHY_IqestCmd_iqMode
	.comm	_NPHY_IqestCmd_iqstart,4,2      ; @NPHY_IqestCmd_iqstart
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HW error: rxiq est"

.subsections_via_symbols
