	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_rxcal_gainctrl_nphy_rev5
_wlc_phy_rxcal_gainctrl_nphy_rev5:      ## @wlc_phy_rxcal_gainctrl_nphy_rev5
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -128(%rbp)                ## 4-byte Spill
	movq	%rdx, -152(%rbp)                ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PHY_CORE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -176(%rbp)                ## 8-byte Spill
	movl	12(%r12), %edi
	movl	$7, %esi
	callq	_NREV_GE
	movl	$1, %r13d
	subl	%r14d, %r13d
	testq	%rax, %rax
	cmovnel	%r14d, %r13d
	leaq	-224(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_wlc_phy_rx_iq_coeffs_nphy
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -208(%rbp)
	leaq	-208(%rbp), %rdx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_wlc_phy_rx_iq_coeffs_nphy
	movl	16(%r12), %edi
	callq	_CHSPEC_IS5G
	movq	%rax, %r15
	movl	12(%r12), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%r15, %r15
	je	LBB0_6
## %bb.1:
	movl	$3, %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	12(%r12), %edi
	movl	$4, %esi
	callq	_NREV_GE
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leal	(%rcx,%rcx), %ebx
	addl	$4, %ebx
LBB0_3:
	movl	12(%r12), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_nphy_ipa_rxcal_gaintbl_5GHz@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	movq	_nphy_ipa_rxcal_gaintbl_2GHz@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_nphy_ipa_rxcal_gaintbl_5GHz_rev7@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_nphy_ipa_rxcal_gaintbl_2GHz_rev7@GOTPCREL(%rip), %rax
LBB0_9:
	movl	$3, %ebx
LBB0_10:
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	shll	$4, %ebx
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movslq	%r13d, %rcx
	movq	%rcx, %rax
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	leal	1(%rcx), %eax
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	movslq	%r14d, %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movl	$129, -60(%rbp)                 ## 4-byte Folded Spill
	movl	$3, %r13d
	xorl	%r15d, %r15d
	movl	$0, -80(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	movl	12(%r12), %edi
	movl	$7, %esi
	callq	_NREV_GE
	movq	%r12, %r13
	movl	$0, %r12d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	shlq	$5, %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx,%rax), %r12d
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	shlq	$5, %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	4(%rcx,%rax), %r15d
	movl	8(%rcx,%rax), %ebx
	movl	12(%rcx,%rax), %r14d
	movl	16(%rcx,%rax), %edx
	movl	%edx, -100(%rbp)                ## 4-byte Spill
	movq	24(%rcx,%rax), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movl	12(%r13), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_NPHY_REV7_RfctrlOverride_cmd_rxgain@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$12, %r15d
	shll	$8, %ebx
	shll	$2, %r14d
	orl	%ebx, %r14d
	addl	-64(%rbp), %r15d                ## 4-byte Folded Reload
	orl	%r14d, %r15d
	orl	-100(%rbp), %r15d               ## 4-byte Folded Reload
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_1tomany_nphy
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	shll	$12, %r12d
	shll	$10, %r15d
	shll	$8, %ebx
	shll	$2, %r14d
	orl	%ebx, %r14d
	addl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	orl	%r15d, %r12d
	orl	%r14d, %r12d
	orl	-100(%rbp), %r12d               ## 4-byte Folded Reload
	movq	%r13, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movl	%r12d, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %r12
	movq	(%r13), %rax
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	movq	-184(%rbp), %rdx                ## 8-byte Reload
	movq	%rdx, (%rax,%rcx,8)
	cmpq	$-1, %rdx
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	movl	-124(%rbp), %esi                ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_wlc_phy_txpwr_index_nphy
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	8(%r12), %eax
	movl	$36848, %ecx                    ## imm = 0x8FF0
	orl	%ecx, %eax
	movl	%eax, -56(%rbp)
	movl	%eax, -52(%rbp)
	movq	_NPHY_TBL_ID_RFSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$2, %edx
	movl	$272, %ecx                      ## imm = 0x110
	movl	$16, %r8d
	leaq	-56(%rbp), %r9
	callq	_wlc_phy_table_write_nphy
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	16(%r12), %edi
	callq	_CHSPEC_IS40
	movq	_NPHY_RXCAL_TONEFREQ_40MHz@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_NPHY_RXCAL_TONEFREQ_20MHz@GOTPCREL(%rip), %rcx
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rcx), %esi
	movq	_NPHY_RXCAL_TONEAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	movl	-128(%rbp), %r8d                ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_wlc_phy_tx_tone_nphy
	movq	%r12, %rdi
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	movl	$32, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rx_iq_est_nphy
	movq	-160(%rbp), %r15                ## 8-byte Reload
	movl	4(%rbx,%r15,8), %edi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %r14d
	movl	(%rbx,%r15,8), %edi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_DIV_ROUND_CLOSEST
	addl	%r14d, %eax
	movb	$1, %r14b
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$128, %ecx
	je	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$130, %ecx
	movq	-144(%rbp), %r15                ## 8-byte Reload
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	je	LBB0_30
## %bb.23:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$129, %ecx
	jne	LBB0_33
## %bb.24:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	cmpl	$10001, %eax                    ## imm = 0x2711
	jl	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_11 Depth=1
	decq	%r13
	movl	$130, -60(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	$128, -60(%rbp)                 ## 4-byte Folded Spill
	cmpl	$10000, %eax                    ## imm = 0x2710
	movq	-144(%rbp), %r15                ## 8-byte Reload
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	jle	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r14d, %r14d
	movl	%r15d, %edx
	movq	%rdi, %rsi
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	$130, -60(%rbp)                 ## 4-byte Folded Spill
	cmpl	$10001, %eax                    ## imm = 0x2711
	jl	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	decq	%r13
	jmp	LBB0_33
LBB0_26:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r13
	movl	$128, -60(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_33
LBB0_29:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	incq	%r13
	jmp	LBB0_33
LBB0_31:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r14d, %r14d
	movl	%eax, %edx
	movq	%r13, %rsi
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_NPHY_IPA_RXCAL_MAXGAININDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	cmpq	%rbx, %r13
	cmovbel	%eax, %r15d
	cmoval	%eax, %edx
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	cmovaq	%rdi, %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_wlc_phy_stopplayback_nphy
	testb	%r14b, %r14b
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%rbx, %r13
	jbe	LBB0_11
LBB0_35:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	shlq	$5, %rcx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%rcx), %ebx
	movq	%r12, %r13
	movl	4(%rax,%rcx), %r12d
	movl	8(%rax,%rcx), %r15d
	movl	12(%rax,%rcx), %edx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	16(%rax,%rcx), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	callq	_wlc_phy_nbits
	movl	$13, %r14d
	subl	%eax, %r14d
	movl	12(%r13), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	movq	%r13, -136(%rbp)                ## 8-byte Spill
	je	LBB0_40
## %bb.36:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	addl	%r12d, %r14d
	leal	(%r14,%r15), %eax
	cmpl	$11, %eax
	jl	LBB0_38
## %bb.37:
	movl	$10, %r12d
	subl	%r15d, %r12d
	jmp	LBB0_39
LBB0_40:
	addl	%ebx, %r14d
	movl	%r14d, %edi
	movl	$10, %esi
	callq	_min
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_max
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
                                        ## kill: def $eax killed $eax killed $rax
	shll	$12, %eax
	movl	%r12d, %edx
	shll	$10, %edx
	movl	%r15d, %ecx
	shll	$8, %ecx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	leal	(,%rbx,4), %esi
	orl	%ecx, %esi
	addl	-64(%rbp), %edx                 ## 4-byte Folded Reload
	orl	%esi, %edx
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	orl	%r14d, %edx
	orl	%eax, %edx
	movq	%r13, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r13d
	jmp	LBB0_41
LBB0_38:
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_max
	movq	%rax, %r12
LBB0_39:
	movl	-84(%rbp), %r14d                ## 4-byte Reload
	movl	%ebx, %r13d
	movq	_NPHY_REV7_RfctrlOverride_cmd_rxgain@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %eax
	shll	$12, %eax
	movl	%r15d, %edx
	shll	$8, %edx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	leal	(,%rbx,4), %ecx
	addl	-64(%rbp), %edx                 ## 4-byte Folded Reload
	orl	%ecx, %edx
	orl	%r13d, %edx
	orl	%eax, %edx
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_1tomany_nphy
	movl	%r14d, %ecx
LBB0_41:
	movq	-152(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_43
## %bb.42:
	movl	%r13d, (%rax)
	movl	%ebx, 4(%rax)
	movl	%ecx, 8(%rax)
	movl	%r15d, 12(%rax)
	movl	%r12d, 16(%rax)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, 20(%rax)
LBB0_43:
	leaq	-224(%rbp), %rdx
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	$1, %esi
	callq	_wlc_phy_rx_iq_coeffs_nphy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_45
## %bb.44:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_45:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_CORE_MAX,4,2               ## @PHY_CORE_MAX
	.comm	_nphy_ipa_rxcal_gaintbl_5GHz_rev7,8,3 ## @nphy_ipa_rxcal_gaintbl_5GHz_rev7
	.comm	_nphy_ipa_rxcal_gaintbl_5GHz,8,3 ## @nphy_ipa_rxcal_gaintbl_5GHz
	.comm	_nphy_ipa_rxcal_gaintbl_2GHz_rev7,8,3 ## @nphy_ipa_rxcal_gaintbl_2GHz_rev7
	.comm	_nphy_ipa_rxcal_gaintbl_2GHz,8,3 ## @nphy_ipa_rxcal_gaintbl_2GHz
	.comm	_NPHY_REV7_RfctrlOverride_cmd_rxgain,4,2 ## @NPHY_REV7_RfctrlOverride_cmd_rxgain
	.comm	_NPHY_TBL_ID_RFSEQ,4,2          ## @NPHY_TBL_ID_RFSEQ
	.comm	_NPHY_RXCAL_TONEFREQ_40MHz,4,2  ## @NPHY_RXCAL_TONEFREQ_40MHz
	.comm	_NPHY_RXCAL_TONEFREQ_20MHz,4,2  ## @NPHY_RXCAL_TONEFREQ_20MHz
	.comm	_NPHY_RXCAL_TONEAMP,4,2         ## @NPHY_RXCAL_TONEAMP
	.comm	_NPHY_IPA_RXCAL_MAXGAININDEX,8,3 ## @NPHY_IPA_RXCAL_MAXGAININDEX
	.no_dead_strip	_wlc_phy_rxcal_gainctrl_nphy_rev5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_phy_rxcal_gainctrl_nphy_rev5
_wlc_phy_rxcal_gainctrl_nphy_rev5:      ; @wlc_phy_rxcal_gainctrl_nphy_rev5
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #160
	stur	w3, [x29, #-184]                ; 4-byte Folded Spill
	stur	x2, [x29, #-232]                ; 8-byte Folded Spill
	mov	x25, x1
	mov	x28, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _PHY_CORE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_CORE_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	x8, x9, x8
	stur	x8, [x29, #-176]                ; 8-byte Folded Spill
	mov	sp, x8
	ldr	w0, [x0, #12]
	mov	w1, #7
	bl	_NREV_GE
	mov	w8, #1
	sub	w8, w8, w25
	cmp	x0, #0
	csel	w21, w8, w25, eq
	sub	x2, x29, #120
	mov	x0, x28
	mov	w1, #0
	bl	_wlc_phy_rx_iq_coeffs_nphy
	stp	xzr, xzr, [x29, #-136]
	sub	x2, x29, #136
	mov	x0, x28
	mov	w1, #1
	bl	_wlc_phy_rx_iq_coeffs_nphy
	ldr	w0, [x28, #16]
	bl	_CHSPEC_IS5G
	mov	x23, x0
	ldr	w0, [x28, #12]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x23, LBB0_3
; %bb.1:
	cbz	x0, LBB0_4
; %bb.2:
	mov	w20, #3
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _nphy_ipa_rxcal_gaintbl_2GHz_rev7@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nphy_ipa_rxcal_gaintbl_2GHz_rev7@GOTPAGEOFF]
Lloh10:
	adrp	x9, _nphy_ipa_rxcal_gaintbl_2GHz@GOTPAGE
Lloh11:
	ldr	x9, [x9, _nphy_ipa_rxcal_gaintbl_2GHz@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	mov	w20, #3
	b	LBB0_6
LBB0_4:
	ldr	w0, [x28, #12]
	mov	w20, #4
	mov	w1, #4
	bl	_NREV_GE
	cmp	x0, #0
	mov	w8, #6
	csel	w20, w8, w20, eq
LBB0_5:
	ldr	w0, [x28, #12]
	mov	w1, #7
	bl	_NREV_GE
Lloh12:
	adrp	x8, _nphy_ipa_rxcal_gaintbl_5GHz_rev7@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nphy_ipa_rxcal_gaintbl_5GHz_rev7@GOTPAGEOFF]
Lloh14:
	adrp	x9, _nphy_ipa_rxcal_gaintbl_5GHz@GOTPAGE
Lloh15:
	ldr	x9, [x9, _nphy_ipa_rxcal_gaintbl_5GHz@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
LBB0_6:
	mov	w19, #0
	stur	wzr, [x29, #-164]               ; 4-byte Folded Spill
	mov	x22, #0
	mov	x23, #0
	ldr	x27, [x8]
	stur	w20, [x29, #-236]               ; 4-byte Folded Spill
	lsl	w8, w20, #4
	stur	w8, [x29, #-180]                ; 4-byte Folded Spill
	sxtw	x9, w21
	add	w8, w21, #1
	stur	w8, [x29, #-220]                ; 4-byte Folded Spill
	ldur	x8, [x29, #-176]                ; 8-byte Folded Reload
	add	x8, x8, w25, sxtw #3
	stp	x8, x9, [x29, #-208]            ; 16-byte Folded Spill
	add	x8, x8, #4
	stur	x8, [x29, #-216]                ; 8-byte Folded Spill
	mov	w24, #129
	mov	w21, #3
	stur	x28, [x29, #-192]               ; 8-byte Folded Spill
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	stur	x22, [x29, #-160]               ; 8-byte Folded Spill
	mov	x22, x24
	ldr	w0, [x28, #12]
	mov	w1, #7
	bl	_NREV_GE
	stur	w19, [x29, #-140]               ; 4-byte Folded Spill
	stur	x23, [x29, #-152]               ; 8-byte Folded Spill
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w24, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	lsl	x8, x21, #5
	ldr	w24, [x27, x8]
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x19, x27
	mov	x23, x21
	add	x8, x27, x21, lsl #5
	ldp	w27, w21, [x8, #4]
	ldp	w26, w20, [x8, #12]
	ldr	x25, [x8, #24]
	ldur	x28, [x29, #-192]               ; 8-byte Folded Reload
	ldr	w0, [x28, #12]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh16:
	adrp	x8, _NPHY_REV7_RfctrlOverride_cmd_rxgain@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NPHY_REV7_RfctrlOverride_cmd_rxgain@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldur	w8, [x29, #-180]                ; 4-byte Folded Reload
	bfi	w8, w27, #12, #20
	orr	w8, w8, w21, lsl #8
	orr	w8, w8, w26, lsl #2
	orr	w2, w8, w20
	mov	x0, x28
	mov	w3, #3
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_1tomany_nphy
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	w8, [x29, #-180]                ; 4-byte Folded Reload
	bfi	w8, w24, #12, #20
	orr	w8, w8, w27, lsl #10
	orr	w8, w8, w21, lsl #8
	orr	w8, w8, w26, lsl #2
	orr	w2, w8, w20
	mov	x0, x28
	mov	w1, #4096
	mov	w3, #3
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x22
	ldr	x8, [x28]
	ldur	x9, [x29, #-200]                ; 8-byte Folded Reload
	str	x25, [x8, x9, lsl #3]
	cmn	x25, #1
	mov	x27, x19
	mov	x21, x23
	ldur	x22, [x29, #-160]               ; 8-byte Folded Reload
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x28
	ldur	w1, [x29, #-220]                ; 4-byte Folded Reload
	mov	x2, x25
	mov	w3, #0
	bl	_wlc_phy_txpwr_index_nphy
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x28, #8]
	mov	w9, #36848
	orr	w8, w8, w9
	stp	w8, w8, [x29, #-104]
Lloh19:
	adrp	x8, _NPHY_TBL_ID_RFSEQ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NPHY_TBL_ID_RFSEQ@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	sub	x5, x29, #104
	mov	x0, x28
	mov	w2, #2
	mov	w3, #272
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	w19, [x29, #-140]               ; 4-byte Folded Reload
	ldur	x23, [x29, #-152]               ; 8-byte Folded Reload
	ldr	w0, [x28, #16]
	bl	_CHSPEC_IS40
	cmp	x0, #0
Lloh22:
	adrp	x8, _NPHY_RXCAL_TONEFREQ_40MHz@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NPHY_RXCAL_TONEFREQ_40MHz@GOTPAGEOFF]
Lloh24:
	adrp	x9, _NPHY_RXCAL_TONEFREQ_20MHz@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NPHY_RXCAL_TONEFREQ_20MHz@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _NPHY_RXCAL_TONEAMP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NPHY_RXCAL_TONEAMP@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x28
	mov	w3, #0
	ldur	w4, [x29, #-184]                ; 4-byte Folded Reload
	mov	w5, #0
	bl	_wlc_phy_tx_tone_nphy
	mov	x0, x28
	ldur	x1, [x29, #-176]                ; 8-byte Folded Reload
	mov	w2, #1024
	mov	w3, #32
	mov	w4, #0
	bl	_wlc_phy_rx_iq_est_nphy
	ldur	x8, [x29, #-216]                ; 8-byte Folded Reload
	ldr	w0, [x8]
	mov	w1, #1024
	bl	_DIV_ROUND_CLOSEST
	mov	x25, x0
	ldur	x8, [x29, #-208]                ; 8-byte Folded Reload
	ldr	w0, [x8]
	mov	w1, #1024
	bl	_DIV_ROUND_CLOSEST
	add	w8, w0, w25
	cmp	w24, #128
	b.eq	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w24, #130
	b.eq	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w24, #129
	b.ne	LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #10001
	cmp	w8, w9
	b.ge	LBB0_23
	b	LBB0_24
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #10000
	cmp	w8, w9
	b.le	LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w25, #0
	mov	w24, #128
	mov	x9, x19
	mov	x22, x23
	b	LBB0_26
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #10001
	cmp	w8, w9
	b.lt	LBB0_28
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x21
	sub	x21, x21, #1
	mov	w24, #130
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x21
	add	x21, x21, #1
	mov	w24, #128
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w25, #1
	ldur	w9, [x29, #-164]                ; 4-byte Folded Reload
LBB0_26:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh29:
	adrp	x10, _NPHY_IPA_RXCAL_MAXGAININDEX@GOTPAGE
Lloh30:
	ldr	x10, [x10, _NPHY_IPA_RXCAL_MAXGAININDEX@GOTPAGEOFF]
Lloh31:
	ldr	x20, [x10]
	cmp	x21, x20
	csel	x22, x23, x22, hi
	csel	w19, w19, w8, hi
	csel	w9, w8, w9, hi
	stur	w9, [x29, #-164]                ; 4-byte Folded Spill
	mov	x0, x28
	bl	_wlc_phy_stopplayback_nphy
	cbz	w25, LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x21, x20
	b.ls	LBB0_7
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w25, #0
	mov	w24, #130
	mov	x9, x8
	mov	x22, x21
	b	LBB0_26
LBB0_29:
	add	x8, x27, x22, lsl #5
	ldp	w21, w22, [x8]
	ldp	w20, w24, [x8, #8]
	ldr	w25, [x8, #16]
	ldur	w0, [x29, #-164]                ; 4-byte Folded Reload
	bl	_wlc_phy_nbits
	mov	w8, #13
	sub	w23, w8, w0
	ldr	w0, [x28, #12]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_32
; %bb.30:
	add	w0, w23, w22
	add	w8, w0, w20
	cmp	w8, #11
	b.lt	LBB0_33
; %bb.31:
	mov	w8, #10
	sub	w22, w8, w20
	b	LBB0_34
LBB0_32:
	add	w0, w23, w21
	mov	w1, #10
	bl	_min
	mov	w1, #0
	bl	_max
	mov	x21, x0
	ldur	w8, [x29, #-180]                ; 4-byte Folded Reload
	bfi	w8, w22, #10, #22
	orr	w8, w8, w20, lsl #8
	orr	w8, w8, w24, lsl #2
	orr	w8, w8, w25
	orr	w2, w8, w21, lsl #12
	mov	x0, x28
	mov	w1, #4096
	mov	w3, #3
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy
	ldur	x8, [x29, #-232]                ; 8-byte Folded Reload
	cbnz	x8, LBB0_35
	b	LBB0_36
LBB0_33:
	mov	w1, #0
	bl	_max
	mov	x22, x0
LBB0_34:
Lloh32:
	adrp	x8, _NPHY_REV7_RfctrlOverride_cmd_rxgain@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NPHY_REV7_RfctrlOverride_cmd_rxgain@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldur	w8, [x29, #-180]                ; 4-byte Folded Reload
	bfi	w8, w20, #8, #24
	orr	w8, w8, w24, lsl #2
	orr	w8, w8, w25
	orr	w2, w8, w22, lsl #12
	mov	x0, x28
	mov	w3, #3
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_1tomany_nphy
	ldur	x8, [x29, #-232]                ; 8-byte Folded Reload
	cbz	x8, LBB0_36
LBB0_35:
	stp	w25, w24, [x8]
	ldur	w9, [x29, #-236]                ; 4-byte Folded Reload
	stp	w9, w20, [x8, #8]
	stp	w22, w21, [x8, #16]
LBB0_36:
	sub	x2, x29, #120
	mov	x0, x28
	mov	w1, #1
	bl	_wlc_phy_rx_iq_coeffs_nphy
	ldur	x8, [x29, #-96]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_38
; %bb.37:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_38:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_CORE_MAX,4,2               ; @PHY_CORE_MAX
	.comm	_nphy_ipa_rxcal_gaintbl_5GHz_rev7,8,3 ; @nphy_ipa_rxcal_gaintbl_5GHz_rev7
	.comm	_nphy_ipa_rxcal_gaintbl_5GHz,8,3 ; @nphy_ipa_rxcal_gaintbl_5GHz
	.comm	_nphy_ipa_rxcal_gaintbl_2GHz_rev7,8,3 ; @nphy_ipa_rxcal_gaintbl_2GHz_rev7
	.comm	_nphy_ipa_rxcal_gaintbl_2GHz,8,3 ; @nphy_ipa_rxcal_gaintbl_2GHz
	.comm	_NPHY_REV7_RfctrlOverride_cmd_rxgain,4,2 ; @NPHY_REV7_RfctrlOverride_cmd_rxgain
	.comm	_NPHY_TBL_ID_RFSEQ,4,2          ; @NPHY_TBL_ID_RFSEQ
	.comm	_NPHY_RXCAL_TONEFREQ_40MHz,4,2  ; @NPHY_RXCAL_TONEFREQ_40MHz
	.comm	_NPHY_RXCAL_TONEFREQ_20MHz,4,2  ; @NPHY_RXCAL_TONEFREQ_20MHz
	.comm	_NPHY_RXCAL_TONEAMP,4,2         ; @NPHY_RXCAL_TONEAMP
	.comm	_NPHY_IPA_RXCAL_MAXGAININDEX,8,3 ; @NPHY_IPA_RXCAL_MAXGAININDEX
	.no_dead_strip	_wlc_phy_rxcal_gainctrl_nphy_rev5
.subsections_via_symbols
