	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_cal_txgainctrl_nphy    ## -- Begin function wlc_phy_cal_txgainctrl_nphy
	.p2align	4, 0x90
_wlc_phy_cal_txgainctrl_nphy:           ## @wlc_phy_cal_txgainctrl_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	40(%rdi), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	sete	-60(%rbp)                       ## 1-byte Folded Spill
	movl	52(%r15), %edi
	callq	_CHSPEC_IS40
	testq	%rax, %rax
	movl	$2500, %eax                     ## imm = 0x9C4
	movl	$5000, %ecx                     ## imm = 0x1388
	cmovel	%eax, %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	56(%r15), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %ecx
	callq	_wlc_phy_txpwr_index_nphy
	movq	56(%r15), %rax
	movq	8(%rax), %rdx
	movq	%r15, %rdi
	movl	$2, %esi
	movl	$1, %ecx
	callq	_wlc_phy_txpwr_index_nphy
	cmpl	$0, (%r15)
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_wlc_phy_stay_in_carriersearch_nphy
	movl	(%r15), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -76(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movl	$0, (%r15)
	movq	%r15, %rdi
	movl	$145, %esi
	callq	_read_phy_reg
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movl	$146, %esi
	callq	_read_phy_reg
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movl	$231, %esi
	callq	_read_phy_reg
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movl	$236, %esi
	callq	_read_phy_reg
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	_NPHY_RfctrlIntc_override_PA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RADIO_MIMO_CORESEL_CORE1@GOTPCREL(%rip), %rbx
	movq	_RADIO_MIMO_CORESEL_CORE2@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%rbx), %ecx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_wlc_phy_rfctrlintc_override_nphy
	xorl	%r14d, %r14d
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	sete	%r14b
	movq	_NPHY_RfctrlIntc_override_TRSW@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	(%rbx), %ecx
	leal	1(%r14), %edx
	addl	$7, %r14d
	movq	%r15, %rdi
	callq	_wlc_phy_rfctrlintc_override_nphy
	movl	(%r12), %esi
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_wlc_phy_rfctrlintc_override_nphy
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_read_phy_reg
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	leaq	-88(%rbp), %r9
	movq	%r15, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$87, %ecx
	movl	$16, %r8d
	callq	_wlc_phy_table_read_nphy
	cmpq	$0, 32(%r15)
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_18
## %bb.4:
	xorl	%eax, %eax
	movb	-60(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %al
	orl	$-2, %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	shll	$2, %r13d
	leaq	48(%r15), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	leaq	24(%r15), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	%r13d, -64(%rbp)                ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	cmpq	32(%r15), %r14
	jae	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	56(%r15), %rax
	movl	(%rax,%r14,8), %r12d
	movq	%r15, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	$250, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_wlc_phy_tx_tone_nphy
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	movl	$255, %eax
	movl	$65280, %ecx                    ## imm = 0xFF00
	cmovel	%ecx, %eax
	andl	-88(%rbp), %eax
	movl	%eax, -72(%rbp)
	movq	%r15, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$87, %ecx
	movl	$16, %r8d
	leaq	-72(%rbp), %rbx
	movq	%rbx, %r9
	callq	_wlc_phy_table_write_nphy
	movq	%r15, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$95, %ecx
	movl	$16, %r8d
	movq	%rbx, %r9
	callq	_wlc_phy_table_write_nphy
	movl	$50, %edi
	callq	_udelay
	movq	_NPHY_CAL_TSSISAMPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	_wlc_phy_est_tonepwr_nphy
	movq	$0, 16(%r15)
	movq	%r15, %rdi
	callq	_wlc_phy_stopplayback_nphy
	subl	-56(%rbp,%r14,4), %r13d
	imull	-84(%rbp), %r13d                ## 4-byte Folded Reload
	addl	%r12d, %r13d
	cmpl	$127, %r13d
	movl	$127, %eax
	cmovgel	%eax, %r13d
	testl	%r13d, %r13d
	movl	$0, %r12d
	cmovgl	%r13d, %r12d
	movl	52(%r15), %edi
	callq	_CHSPEC_IS5G
	movl	40(%r15), %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$4, %esi
	callq	_NREV_IS
	movl	$30, %ecx
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$3, (%rdx)
	movl	$0, %eax
	cmovnel	%eax, %ecx
	cmpl	%r13d, %ecx
	cmovlel	%r13d, %ecx
	movl	%ecx, %r12d
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %edx
	movq	%r15, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_wlc_phy_txpwr_index_nphy
	movq	%r15, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	$250, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_wlc_phy_tx_tone_nphy
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	movl	$255, %eax
	movl	$65280, %ecx                    ## imm = 0xFF00
	cmovel	%ecx, %eax
	andl	-88(%rbp), %eax
	movl	%eax, -72(%rbp)
	movq	%r15, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$87, %ecx
	movl	$16, %r8d
	leaq	-72(%rbp), %rbx
	movq	%rbx, %r9
	callq	_wlc_phy_table_write_nphy
	movq	%r15, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$95, %ecx
	movl	$16, %r8d
	movq	%rbx, %r9
	callq	_wlc_phy_table_write_nphy
	movl	$50, %edi
	callq	_udelay
	movq	_NPHY_CAL_TSSISAMPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	_wlc_phy_est_tonepwr_nphy
	movq	$0, 16(%r15)
	movq	%r15, %rdi
	callq	_wlc_phy_stopplayback_nphy
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %ebx
	subl	-56(%rbp,%r14,4), %ebx
	imull	-84(%rbp), %ebx                 ## 4-byte Folded Reload
	addl	%r12d, %ebx
	cmpl	$127, %ebx
	movl	$127, %eax
	cmovgel	%eax, %ebx
	testl	%ebx, %ebx
	movl	$0, %r12d
	cmovgl	%ebx, %r12d
	movl	52(%r15), %edi
	callq	_CHSPEC_IS5G
	movl	40(%r15), %edi
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$4, %esi
	callq	_NREV_IS
	movl	$30, %ecx
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$3, (%rdx)
	movl	$0, %eax
	cmovnel	%eax, %ecx
	cmpl	%ebx, %ecx
	cmovlel	%ebx, %ecx
	movl	%ecx, %r12d
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %r12d
	movq	%r15, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	_wlc_phy_txpwr_index_nphy
	movq	8(%r15), %rax
	movq	%r12, (%rax,%r14,8)
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$87, %ecx
	movl	$16, %r8d
	leaq	-132(%rbp), %rbx
	movq	%rbx, %r9
	callq	_wlc_phy_table_read_nphy
	movq	%r15, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	$250, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_wlc_phy_tx_tone_nphy
	movq	%r15, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$87, %ecx
	movl	$16, %r8d
	movq	%rbx, %r9
	callq	_wlc_phy_table_write_nphy
	movq	%r15, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$95, %ecx
	movl	$16, %r8d
	movq	%rbx, %r9
	callq	_wlc_phy_table_write_nphy
	movl	$100, %edi
	callq	_udelay
	movq	_NPHY_CAL_TSSISAMPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	_wlc_phy_est_tonepwr_nphy
	leal	272(%r14), %ecx
	movq	%r15, %rdi
	movl	$7, %esi
	movl	$1, %edx
	movl	$16, %r8d
	leaq	-136(%rbp), %r9
	callq	_wlc_phy_table_read_nphy
	movl	$4000, %edi                     ## imm = 0xFA0
	callq	_mdelay
	movq	$0, 16(%r15)
	movq	%r15, %rdi
	callq	_wlc_phy_stopplayback_nphy
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$5, %esi
	callq	_NREV_GE
	movl	$50, %ecx
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$5, %esi
	callq	_NREV_GE
	movl	$50, %ecx
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_15
LBB0_18:
	movq	8(%r15), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %ecx
	callq	_wlc_phy_txpwr_index_nphy
	movq	8(%r15), %rax
	movq	8(%rax), %rdx
	movq	%r15, %rdi
	movl	$2, %esi
	movl	$1, %ecx
	callq	_wlc_phy_txpwr_index_nphy
	leaq	4(%r15), %r9
	movq	%r15, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$87, %ecx
	movl	$16, %r8d
	callq	_wlc_phy_table_read_nphy
	movq	%r15, %rdi
	movl	$1, %esi
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r15, %rdi
	movl	$145, %esi
	movl	-108(%rbp), %edx                ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r15, %rdi
	movl	$146, %esi
	movl	-104(%rbp), %edx                ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r15, %rdi
	movl	$231, %esi
	movl	-100(%rbp), %edx                ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r15, %rdi
	movl	$236, %esi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	callq	_write_phy_reg
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_wlc_phy_stay_in_carriersearch_nphy
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NPHY_RfctrlIntc_override_PA,4,2 ## @NPHY_RfctrlIntc_override_PA
	.comm	_RADIO_MIMO_CORESEL_CORE1,4,2   ## @RADIO_MIMO_CORESEL_CORE1
	.comm	_RADIO_MIMO_CORESEL_CORE2,4,2   ## @RADIO_MIMO_CORESEL_CORE2
	.comm	_NPHY_RfctrlIntc_override_TRSW,4,2 ## @NPHY_RfctrlIntc_override_TRSW
	.comm	_PHY_CORE_0,8,3                 ## @PHY_CORE_0
	.comm	_NPHY_CAL_TSSISAMPS,4,2         ## @NPHY_CAL_TSSISAMPS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_cal_txgainctrl_nphy    ; -- Begin function wlc_phy_cal_txgainctrl_nphy
	.p2align	2
_wlc_phy_cal_txgainctrl_nphy:           ; @wlc_phy_cal_txgainctrl_nphy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	str	w2, [sp, #44]                   ; 4-byte Folded Spill
	mov	x27, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	w0, [x0, #40]
	mov	w20, #7
	mov	w1, #7
	bl	_NREV_GE
	cmp	x0, #0
	mov	w8, #-2
	cinc	w23, w8, eq
	ldr	w0, [x19, #52]
	bl	_CHSPEC_IS40
	cmp	x0, #0
	mov	w8, #5000
	mov	w9, #2500
	csel	w21, w9, w8, eq
	ldr	x8, [x19, #56]
	ldr	x2, [x8]
	mov	w22, #1
	mov	x0, x19
	mov	w1, #1
	mov	w3, #1
	bl	_wlc_phy_txpwr_index_nphy
	ldr	x8, [x19, #56]
	ldr	x2, [x8, #8]
	mov	x0, x19
	mov	w1, #2
	mov	w3, #1
	bl	_wlc_phy_txpwr_index_nphy
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_wlc_phy_stay_in_carriersearch_nphy
	ldr	w8, [x19]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
LBB0_3:
	str	wzr, [x19]
	mov	x0, x19
	mov	w1, #145
	bl	_read_phy_reg
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #146
	bl	_read_phy_reg
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #231
	bl	_read_phy_reg
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #236
	bl	_read_phy_reg
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
Lloh3:
	adrp	x8, _NPHY_RfctrlIntc_override_PA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NPHY_RfctrlIntc_override_PA@GOTPAGEOFF]
Lloh5:
	adrp	x24, _RADIO_MIMO_CORESEL_CORE1@GOTPAGE
Lloh6:
	ldr	x24, [x24, _RADIO_MIMO_CORESEL_CORE1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w8, [x24]
Lloh8:
	adrp	x25, _RADIO_MIMO_CORESEL_CORE2@GOTPAGE
Lloh9:
	ldr	x25, [x25, _RADIO_MIMO_CORESEL_CORE2@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w3, w9, w8
	mov	x0, x19
	mov	w2, #1
	bl	_wlc_phy_rfctrlintc_override_nphy
Lloh10:
	adrp	x28, _NPHY_RfctrlIntc_override_TRSW@GOTPAGE
Lloh11:
	ldr	x28, [x28, _NPHY_RfctrlIntc_override_TRSW@GOTPAGEOFF]
	ldr	w1, [x28]
	ldr	w3, [x24]
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, #0
	cinc	w2, w22, eq
	cinc	w26, w20, eq
	mov	x0, x19
	bl	_wlc_phy_rfctrlintc_override_nphy
	ldr	w1, [x28]
	ldr	w3, [x25]
	mov	x0, x19
	mov	x2, x26
	bl	_wlc_phy_rfctrlintc_override_nphy
	mov	x0, x19
	mov	w1, #1
	bl	_read_phy_reg
	str	w0, [sp]                        ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #1
	mov	w2, #32768
	mov	w3, #0
	bl	_mod_phy_reg
	add	x5, sp, #60
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #87
	mov	w4, #16
	bl	_wlc_phy_table_read_nphy
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_20
; %bb.4:
	mov	x24, #0
	lsl	w25, w27, #2
	add	x9, x19, #48
	add	x8, x19, #24
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
Lloh12:
	adrp	x22, _NPHY_CAL_TSSISAMPS@GOTPAGE
Lloh13:
	ldr	x22, [x22, _NPHY_CAL_TSSISAMPS@GOTPAGEOFF]
	mov	w26, #127
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldr	x8, [x19, #32]
	cmp	x24, x8
	b.hs	LBB0_20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	ldr	x20, [x8, x24, lsl #3]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #250
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_wlc_phy_tx_tone_nphy
Lloh14:
	adrp	x8, _PHY_CORE_0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PHY_CORE_0@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w9, [sp, #60]
	cmp	x24, x8
	mov	w8, #255
	mov	w10, #65280
	csel	w8, w10, w8, eq
	and	w8, w8, w9
	str	w8, [sp, #56]
	add	x5, sp, #56
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #87
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	add	x5, sp, #56
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #95
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	mov	w0, #50
	bl	_udelay
	ldr	w2, [x22]
	add	x1, sp, #64
	mov	x0, x19
	bl	_wlc_phy_est_tonepwr_nphy
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_wlc_phy_stopplayback_nphy
	add	x8, sp, #64
	ldr	w8, [x8, x24, lsl #2]
	sub	w8, w25, w8
	madd	w8, w8, w23, w20
	cmp	w8, #127
	csel	w27, w8, w26, lt
	cmp	w27, #0
	csel	w28, w27, wzr, gt
	ldr	w0, [x19, #52]
	bl	_CHSPEC_IS5G
	mov	x8, x0
	ldr	w0, [x19, #40]
	cbz	x8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w1, #4
	bl	_NREV_IS
	cbz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #30
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w1, #5
	bl	_NREV_GE
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #50
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x9]
	cmp	w9, #3
	csel	w8, w8, wzr, eq
	cmp	w8, w27
	csel	w28, w8, w27, gt
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	lsl	w27, w8, w24
	mov	w2, w28
	mov	x0, x19
	mov	x1, x27
	mov	w3, #1
	bl	_wlc_phy_txpwr_index_nphy
	mov	x0, x19
	mov	x1, x21
	mov	w2, #250
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_wlc_phy_tx_tone_nphy
Lloh17:
	adrp	x8, _PHY_CORE_0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PHY_CORE_0@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	w9, [sp, #60]
	cmp	x24, x8
	mov	w8, #255
	mov	w10, #65280
	csel	w8, w10, w8, eq
	and	w8, w8, w9
	str	w8, [sp, #56]
	add	x5, sp, #56
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #87
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	add	x5, sp, #56
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #95
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	mov	w0, #50
	bl	_udelay
	ldr	w2, [x22]
	add	x1, sp, #64
	mov	x0, x19
	bl	_wlc_phy_est_tonepwr_nphy
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_wlc_phy_stopplayback_nphy
	add	x8, sp, #64
	ldr	w8, [x8, x24, lsl #2]
	sub	w8, w25, w8
	madd	w8, w8, w23, w28
	cmp	w8, #127
	csel	w28, w8, w26, lt
	cmp	w28, #0
	csel	w20, w28, wzr, gt
	ldr	w0, [x19, #52]
	bl	_CHSPEC_IS5G
	mov	x8, x0
	ldr	w0, [x19, #40]
	cbz	x8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w1, #4
	bl	_NREV_IS
	cbz	x0, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #30
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w1, #5
	bl	_NREV_GE
	cbz	x0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #50
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x9]
	cmp	w9, #3
	csel	w8, w8, wzr, eq
	cmp	w8, w28
	csel	w20, w8, w28, gt
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w28, w20
	mov	x0, x19
	mov	x1, x27
	mov	x2, x28
	mov	w3, #1
	bl	_wlc_phy_txpwr_index_nphy
	ldr	x8, [x19, #8]
	str	x28, [x8, x24, lsl #3]
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_5
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x5, sp, #48
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #87
	mov	w4, #16
	bl	_wlc_phy_table_read_nphy
	mov	x0, x19
	mov	x1, x21
	mov	w2, #250
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_wlc_phy_tx_tone_nphy
	add	x5, sp, #48
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #87
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	add	x5, sp, #48
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #95
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	mov	w0, #100
	bl	_udelay
	ldr	w2, [x22]
	add	x1, sp, #64
	mov	x0, x19
	bl	_wlc_phy_est_tonepwr_nphy
	add	w3, w24, #272
	add	x5, sp, #52
	mov	x0, x19
	mov	w1, #7
	mov	w2, #1
	mov	w4, #16
	bl	_wlc_phy_table_read_nphy
	mov	w0, #4000
	bl	_mdelay
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_wlc_phy_stopplayback_nphy
	b	LBB0_5
LBB0_20:
	ldr	x8, [x19, #8]
	ldr	x2, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	w3, #1
	bl	_wlc_phy_txpwr_index_nphy
	ldr	x8, [x19, #8]
	ldr	x2, [x8, #8]
	mov	x0, x19
	mov	w1, #2
	mov	w3, #1
	bl	_wlc_phy_txpwr_index_nphy
	add	x5, x19, #4
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #87
	mov	w4, #16
	bl	_wlc_phy_table_read_nphy
	mov	x0, x19
	mov	w1, #1
	ldr	w2, [sp]                        ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #145
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #146
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #231
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #236
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	bl	_write_phy_reg
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	str	w8, [x19]
	cbz	w8, LBB0_22
; %bb.21:
	mov	x0, x19
	mov	w1, #0
	bl	_wlc_phy_stay_in_carriersearch_nphy
LBB0_22:
	ldr	x8, [sp, #72]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NPHY_RfctrlIntc_override_PA,4,2 ; @NPHY_RfctrlIntc_override_PA
	.comm	_RADIO_MIMO_CORESEL_CORE1,4,2   ; @RADIO_MIMO_CORESEL_CORE1
	.comm	_RADIO_MIMO_CORESEL_CORE2,4,2   ; @RADIO_MIMO_CORESEL_CORE2
	.comm	_NPHY_RfctrlIntc_override_TRSW,4,2 ; @NPHY_RfctrlIntc_override_TRSW
	.comm	_PHY_CORE_0,8,3                 ; @PHY_CORE_0
	.comm	_NPHY_CAL_TSSISAMPS,4,2         ; @NPHY_CAL_TSSISAMPS
.subsections_via_symbols
