	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_a4
_wlc_phy_a4:                            ## @wlc_phy_a4
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$1, (%rdi)
	je	LBB0_69
## %bb.1:
	movq	%rdi, %r14
	movl	104(%rdi), %ebx
	movq	_maccontrol@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcma_read32
	movq	_MCTL_EN_MAC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, -136(%rbp)                ## 4-byte Spill
	je	LBB0_3
## %bb.2:
	movq	48(%r14), %rax
	movl	(%rax), %edi
	callq	_wlapi_suspend_mac_and_wait
LBB0_3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_wlc_phy_stay_in_carriersearch_nphy
	movl	$0, 4(%r14)
	cmpq	$0, 64(%r14)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wlc_phy_txpwr_idx_cur_get_nphy
	movq	96(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	64(%r14), %rbx
	jb	LBB0_5
LBB0_6:
	movq	8(%r14), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	48(%r14), %rax
	movl	4(%rax), %eax
	movl	%eax, 88(%r14)
	incl	84(%r14)
	movq	_PHY_TPC_HW_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_wlc_phy_txpwrctrl_enable_nphy
	movq	_NPHY_TBL_ID_SCALARTBL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_nphy_papd_scaltbl@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r9
	movq	%r14, %rdi
	movl	$64, %edx
	xorl	%ecx, %ecx
	movl	$32, %r8d
	callq	_wlc_phy_table_write_nphy
	movq	_NPHY_TBL_ID_SCALARTBL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %r9
	movq	%r14, %rdi
	movl	$64, %edx
	xorl	%ecx, %ecx
	movl	$32, %r8d
	callq	_wlc_phy_table_write_nphy
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_read_phy_reg
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	cmpq	$0, 64(%r14)
	je	LBB0_13
## %bb.7:
	xorl	%r12d, %r12d
	movq	_PHY_CORE_0@GOTPCREL(%rip), %r13
	movq	_NPHY_TBL_ID_EPSILONTBL1@GOTPCREL(%rip), %r14
	leaq	-96(%rbp), %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	incq	%r12
	movq	-112(%rbp), %rax                ## 8-byte Reload
	cmpq	64(%rax), %r12
	jae	LBB0_13
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	$0, -96(%rbp)
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=2
	movl	(%rax), %esi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	$1, %edx
	movl	%ebx, %ecx
	movl	$32, %r8d
	movq	%r15, %r9
	callq	_wlc_phy_table_write_nphy
	incl	%ebx
	cmpl	$64, %ebx
	je	LBB0_8
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rax
	cmpq	(%r13), %r12
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	_NPHY_TBL_ID_EPSILONTBL0@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_13:
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	_wlc_phy_ipa_restore_tx_digi_filts_nphy
	movq	%r14, %rdi
	callq	_wlc_phy_ipa_get_bbmult_nphy
	movl	%eax, -120(%rbp)
	cmpq	$0, 64(%r14)
	je	LBB0_34
## %bb.14:
	leaq	16(%r14), %rbx
	leaq	-96(%rbp), %r13
	xorl	%r12d, %r12d
	leaq	-120(%rbp), %r15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r12
	addq	$24, %r13
	cmpq	64(%r14), %r12
	jae	LBB0_34
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_wlc_phy_papd_cal_setup_nphy
	movl	76(%r14), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	80(%r14), %edi
	callq	_CHSPEC_IS2G
	testq	%rax, %rax
	je	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	72(%r14), %eax
	cmpl	$8, %eax
	ja	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$88, %ecx
	btl	%eax, %ecx
	jb	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$384, %ecx                      ## imm = 0x180
	btl	%eax, %ecx
	jb	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$5, %eax
	jne	LBB0_26
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	16(%r14), %rax
	movl	$0, (%rax,%r12,4)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_wlc_phy_a3_nphy
	movq	16(%r14), %rcx
	movl	%eax, (%rcx,%r12,4)
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	movabsq	$68719476737, %rax              ## imm = 0x1000000001
	movq	%rax, (%r13)
	movq	%r14, %rdi
	movl	$16, %esi
	movq	%r12, %rdx
	callq	_wlc_phy_a3_nphy
	movq	%rax, %rcx
	movl	%ecx, 4(%r13)
	sarl	$3, %ecx
	movl	$15, %eax
	subl	%ecx, %eax
	movq	%rbx, %rcx
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	16(%r14), %rax
	movl	$0, (%rax,%r12,4)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_wlc_phy_a3_nphy
	movq	16(%r14), %rcx
	movl	%eax, (%rcx,%r12,4)
	leaq	16(%r13), %rcx
	jmp	LBB0_28
LBB0_25:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rbx), %rax
	movl	$23, (%rax,%r12,4)
	movl	$23, %eax
	jmp	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rbx), %rax
	movl	(%rax,%r12,4), %eax
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	(%r12,%r12,2), %rcx
	leaq	-88(,%rcx,8), %rcx
	addq	%rbp, %rcx
LBB0_28:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%r12,4)
	movl	24(%r14), %eax
	movq	_CAL_FULL@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$1, %eax
	jne	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_CAL_SOFT@GOTPCREL(%rip), %rcx
LBB0_31:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rcx
	callq	_wlc_phy_a2_nphy
LBB0_32:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	76(%r14), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_15
## %bb.33:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wlc_phy_papd_cal_cleanup_nphy
	jmp	LBB0_15
LBB0_34:
	movl	76(%r14), %edi
	movl	$7, %esi
	callq	_NREV_LT
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	leaq	-120(%rbp), %rsi
	movq	%r14, %rdi
	callq	_wlc_phy_papd_cal_cleanup_nphy
LBB0_36:
	cmpq	$0, 64(%r14)
	je	LBB0_65
## %bb.37:
	leaq	-80(%rbp), %rbx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_47:                                ##   in Loop: Header=BB0_42 Depth=1
	movb	%r13b, %r12b
	movb	%al, %cl
	leaq	(%rcx,%rcx,8), %rax
	leaq	(%rax,%r12,2), %rax
	movslq	%ebx, %rcx
	movq	(%rdx), %rdx
	movl	(%rdx,%rcx,4), %ecx
	notl	%ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	leaq	(%rdx,%rax), %r13
	addq	$-40, %r13
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
LBB0_41:                                ##   in Loop: Header=BB0_42 Depth=1
	xorl	%eax, %eax
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	setne	%al
	leal	664(,%rax,4), %esi
	movl	%r13d, %ecx
	shll	$7, %ecx
	movq	%r14, %rdi
	movl	$65408, %edx                    ## imm = 0xFF80
	callq	_mod_phy_reg
	movq	32(%r14), %rax
	movq	%r13, (%rax,%r15,8)
	incq	%r15
	addq	$24, %rbx
	cmpq	64(%r14), %r15
	movq	-144(%rbp), %r12                ## 8-byte Reload
	jae	LBB0_65
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movl	76(%r14), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	je	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=1
	movl	80(%r14), %edi
	callq	_CHSPEC_IS2G
	testq	%rax, %rax
	je	LBB0_48
## %bb.44:                              ##   in Loop: Header=BB0_42 Depth=1
	movl	72(%r14), %eax
	xorl	%ecx, %ecx
	cmpl	$5, %eax
	sete	%cl
	leaq	-34(,%rcx,4), %rbx
	cmpl	$3, %eax
	movq	$-35, %rax
	cmoveq	%rax, %rbx
	jmp	LBB0_49
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	%r12, -144(%rbp)                ## 8-byte Spill
	movl	76(%r14), %edi
	movl	$5, %esi
	callq	_NREV_LT
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r13b
	movl	-12(%rbx), %eax
	sarl	$3, %eax
	movl	$15, %ebx
	subl	%eax, %ebx
	movl	80(%r14), %edi
	callq	_CHSPEC_IS2G
	xorl	%ecx, %ecx
	movq	_nphy_papd_pga_gain_delta_ipa_2g@GOTPCREL(%rip), %rdx
	testq	%rax, %rax
	setne	%al
	jne	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	_nphy_papd_pga_gain_delta_ipa_5g@GOTPCREL(%rip), %rdx
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	$-31, %rbx
LBB0_49:                                ##   in Loop: Header=BB0_42 Depth=1
	movl	80(%r14), %edi
	callq	_CHSPEC_IS2G
	testq	%rax, %rax
	movq	%rbx, -160(%rbp)                ## 8-byte Spill
	je	LBB0_54
## %bb.50:                              ##   in Loop: Header=BB0_42 Depth=1
	movl	72(%r14), %ecx
	cmpl	$8, %ecx
	ja	LBB0_63
## %bb.51:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-8(%rax), %rax
	movslq	(%rax,%r15,4), %rax
	movl	$88, %edx
	btl	%ecx, %edx
	jb	LBB0_38
## %bb.52:                              ##   in Loop: Header=BB0_42 Depth=1
	movl	$384, %edx                      ## imm = 0x180
	btl	%ecx, %edx
	jae	LBB0_60
## %bb.53:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	_nphy_papd_padgain_dlt_2g_2057rev7@GOTPCREL(%rip), %rcx
	jmp	LBB0_62
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_42 Depth=1
	movl	72(%r14), %ecx
	movq	$-9, %r13
	cmpl	$8, %ecx
	ja	LBB0_39
## %bb.55:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rax
	movslq	(%rax,%r15,4), %rax
	movl	$88, %edx
	btl	%ecx, %edx
	jae	LBB0_57
## %bb.56:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	_nphy_papd_pgagain_dlt_5g_2057@GOTPCREL(%rip), %rcx
	jmp	LBB0_59
LBB0_38:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	_nphy_papd_padgain_dlt_2g_2057rev3n4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	notl	%eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %r12
	movq	$-1, %r13
	jmp	LBB0_39
LBB0_57:                                ##   in Loop: Header=BB0_42 Depth=1
	movl	$384, %edx                      ## imm = 0x180
	btl	%ecx, %edx
	jae	LBB0_40
## %bb.58:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	_nphy_papd_pgagain_dlt_5g_2057rev7@GOTPCREL(%rip), %rcx
LBB0_59:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	notl	%eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_40
LBB0_60:                                ##   in Loop: Header=BB0_42 Depth=1
	cmpl	$5, %ecx
	jne	LBB0_63
## %bb.61:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	_nphy_papd_padgain_dlt_2g_2057rev5@GOTPCREL(%rip), %rcx
LBB0_62:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	notl	%eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %r12
LBB0_63:                                ##   in Loop: Header=BB0_42 Depth=1
	xorl	%r13d, %r13d
LBB0_39:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	-104(%rbp), %rbx                ## 8-byte Reload
LBB0_40:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	80(%r14), %edi
	callq	_CHSPEC_IS2G
	testq	%rax, %rax
	movq	%r12, -144(%rbp)                ## 8-byte Spill
	cmoveq	-128(%rbp), %r12                ## 8-byte Folded Reload
	addq	-160(%rbp), %r13                ## 8-byte Folded Reload
	addq	%r12, %r13
	jmp	LBB0_41
LBB0_65:
	movq	_PHY_CORE_0@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
	cmpq	$0, (%r13)
	setne	%al
	leal	663(,%rax,4), %esi
	movq	_NPHY_PAPD_COMP_ON@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_mod_phy_reg
	xorl	%eax, %eax
	cmpq	$1, (%r13)
	setne	%al
	leal	663(,%rax,4), %esi
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_mod_phy_reg
	movl	76(%r14), %edi
	movl	$6, %esi
	callq	_NREV_GE
	cmpq	$1, (%r13)
	movl	$676, %r15d                     ## imm = 0x2A4
	movl	$676, %esi                      ## imm = 0x2A4
	sbbl	$0, %esi
	testq	%rax, %rax
	movl	$2048, %eax                     ## imm = 0x800
	movl	$8192, %ebx                     ## imm = 0x2000
	cmovel	%eax, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	xorl	%eax, %eax
	cmpq	$1, (%r13)
	sete	%al
	subl	%eax, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movl	(%r12), %eax
	movl	%eax, 40(%r14)
	movq	%r14, %rdi
	movl	$1, %esi
	movl	-132(%rbp), %edx                ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r14, %rdi
	callq	_wlc_phy_ipa_set_tx_digi_filts_nphy
	movq	%r14, %rdi
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_wlc_phy_txpwrctrl_enable_nphy
	movq	_PHY_TPC_HW_OFF@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_67
## %bb.66:
	movq	56(%r14), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_wlc_phy_txpwr_index_nphy
	movq	56(%r14), %rax
	movl	8(%rax), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	xorl	%ecx, %ecx
	callq	_wlc_phy_txpwr_index_nphy
LBB0_67:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_wlc_phy_stay_in_carriersearch_nphy
	cmpl	$0, -136(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_69
## %bb.68:
	movq	48(%r14), %rax
	movl	(%rax), %edi
	callq	_wlapi_enable_mac
LBB0_69:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_71
## %bb.70:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_71:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_maccontrol,4,2                 ## @maccontrol
	.comm	_MCTL_EN_MAC,4,2                ## @MCTL_EN_MAC
	.comm	_PHY_TPC_HW_OFF,8,3             ## @PHY_TPC_HW_OFF
	.comm	_NPHY_TBL_ID_SCALARTBL0,4,2     ## @NPHY_TBL_ID_SCALARTBL0
	.comm	_nphy_papd_scaltbl,8,3          ## @nphy_papd_scaltbl
	.comm	_NPHY_TBL_ID_SCALARTBL1,4,2     ## @NPHY_TBL_ID_SCALARTBL1
	.comm	_PHY_CORE_0,8,3                 ## @PHY_CORE_0
	.comm	_NPHY_TBL_ID_EPSILONTBL0,4,2    ## @NPHY_TBL_ID_EPSILONTBL0
	.comm	_NPHY_TBL_ID_EPSILONTBL1,4,2    ## @NPHY_TBL_ID_EPSILONTBL1
	.comm	_CAL_FULL,4,2                   ## @CAL_FULL
	.comm	_CAL_SOFT,4,2                   ## @CAL_SOFT
	.comm	_nphy_papd_padgain_dlt_2g_2057rev3n4,8,3 ## @nphy_papd_padgain_dlt_2g_2057rev3n4
	.comm	_nphy_papd_padgain_dlt_2g_2057rev5,8,3 ## @nphy_papd_padgain_dlt_2g_2057rev5
	.comm	_nphy_papd_padgain_dlt_2g_2057rev7,8,3 ## @nphy_papd_padgain_dlt_2g_2057rev7
	.comm	_nphy_papd_pgagain_dlt_5g_2057,8,3 ## @nphy_papd_pgagain_dlt_5g_2057
	.comm	_nphy_papd_pgagain_dlt_5g_2057rev7,8,3 ## @nphy_papd_pgagain_dlt_5g_2057rev7
	.comm	_nphy_papd_pga_gain_delta_ipa_2g,8,3 ## @nphy_papd_pga_gain_delta_ipa_2g
	.comm	_nphy_papd_pga_gain_delta_ipa_5g,8,3 ## @nphy_papd_pga_gain_delta_ipa_5g
	.comm	_NPHY_PAPD_COMP_ON,4,2          ## @NPHY_PAPD_COMP_ON
	.no_dead_strip	_wlc_phy_a4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function wlc_phy_a4
lCPI0_0:
	.long	1                               ; 0x1
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_wlc_phy_a4:                            ; @wlc_phy_a4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	d9, d8, [sp, #96]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	ldr	w8, [x0]
	cmp	w8, #1
	b.eq	LBB0_64
; %bb.1:
	mov	x19, x0
	ldr	w20, [x0, #104]
Lloh3:
	adrp	x8, _maccontrol@GOTPAGE
Lloh4:
	ldr	x8, [x8, _maccontrol@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_bcma_read32
Lloh6:
	adrp	x8, _MCTL_EN_MAC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCTL_EN_MAC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ands	w8, w8, w0
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
	bl	_wlapi_suspend_mac_and_wait
LBB0_3:
	mov	x0, x19
	mov	w1, #1
	bl	_wlc_phy_stay_in_carriersearch_nphy
	str	wzr, [x19, #4]
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_wlc_phy_txpwr_idx_cur_get_nphy
	ldr	x8, [x19, #96]
	str	w0, [x8, x20, lsl #2]
	add	x20, x20, #1
	ldr	x8, [x19, #64]
	cmp	x20, x8
	b.lo	LBB0_5
LBB0_6:
	ldr	x8, [x19, #48]
	ldr	w8, [x8, #4]
	ldr	w9, [x19, #84]
	add	w9, w9, #1
	stp	w9, w8, [x19, #84]
	ldr	x8, [x19, #8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
Lloh9:
	adrp	x8, _PHY_TPC_HW_OFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_TPC_HW_OFF@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_wlc_phy_txpwrctrl_enable_nphy
Lloh12:
	adrp	x8, _NPHY_TBL_ID_SCALARTBL0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NPHY_TBL_ID_SCALARTBL0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x20, _nphy_papd_scaltbl@GOTPAGE
Lloh16:
	ldr	x20, [x20, _nphy_papd_scaltbl@GOTPAGEOFF]
	ldr	x5, [x20]
	mov	x0, x19
	mov	w2, #64
	mov	w3, #0
	mov	w4, #32
	bl	_wlc_phy_table_write_nphy
Lloh17:
	adrp	x8, _NPHY_TBL_ID_SCALARTBL1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NPHY_TBL_ID_SCALARTBL1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	x5, [x20]
	mov	x0, x19
	mov	w2, #64
	mov	w3, #0
	mov	w4, #32
	bl	_wlc_phy_table_write_nphy
	mov	x0, x19
	mov	w1, #1
	bl	_read_phy_reg
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #1
	mov	w2, #32768
	mov	w3, #0
	bl	_mod_phy_reg
	ldr	x8, [x19, #64]
Lloh20:
	adrp	x26, _PHY_CORE_0@GOTPAGE
Lloh21:
	ldr	x26, [x26, _PHY_CORE_0@GOTPAGEOFF]
	cbz	x8, LBB0_11
; %bb.7:
	mov	x20, #0
Lloh22:
	adrp	x21, _NPHY_TBL_ID_EPSILONTBL0@GOTPAGE
Lloh23:
	ldr	x21, [x21, _NPHY_TBL_ID_EPSILONTBL0@GOTPAGEOFF]
Lloh24:
	adrp	x23, _NPHY_TBL_ID_EPSILONTBL1@GOTPAGE
Lloh25:
	ldr	x23, [x23, _NPHY_TBL_ID_EPSILONTBL1@GOTPAGEOFF]
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	w22, #0
	str	wzr, [sp, #40]
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26]
	cmp	x20, x8
	csel	x8, x21, x23, eq
	ldr	w1, [x8]
	add	x5, sp, #40
	mov	x0, x19
	mov	w2, #1
	mov	x3, x22
	mov	w4, #32
	bl	_wlc_phy_table_write_nphy
	add	w22, w22, #1
	cmp	w22, #64
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19, #64]
	cmp	x20, x8
	b.lo	LBB0_8
LBB0_11:
	mov	x0, x19
	bl	_wlc_phy_ipa_restore_tx_digi_filts_nphy
	mov	x0, x19
	bl	_wlc_phy_ipa_get_bbmult_nphy
	str	w0, [sp, #32]
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_34
; %bb.12:
	mov	x22, #0
	add	x20, x19, #16
	add	x21, sp, #40
Lloh26:
	adrp	x8, lCPI0_0@PAGE
Lloh27:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	mov	w24, #15
	mov	w28, #24
	mov	w27, #88
	add	x23, sp, #40
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x22, x22, #1
	ldr	x8, [x19, #64]
	add	x23, x23, #24
	cmp	x22, x8
	b.hs	LBB0_34
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #32
	mov	x0, x19
	mov	x2, x22
	bl	_wlc_phy_papd_cal_setup_nphy
	ldr	w0, [x19, #76]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x19, #80]
	bl	_CHSPEC_IS2G
	cbz	x0, LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x19, #72]
	cmp	w8, #8
	b.hi	LBB0_25
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w9, #1
	lsl	w9, w9, w8
	tst	w9, w27
	b.ne	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	tst	w9, #0x180
	b.eq	LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #16]
	lsl	x25, x22, #2
	str	wzr, [x8, x25]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	bl	_wlc_phy_a3_nphy
	ldr	x8, [x19, #16]
	str	w0, [x8, x25]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	b	LBB0_26
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	str	d8, [x23]
	mov	x0, x19
	mov	w1, #16
	mov	x2, x22
	bl	_wlc_phy_a3_nphy
	str	w0, [x23, #4]
	sub	w0, w24, w0, asr #3
	mov	x8, x20
	b	LBB0_27
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #16]
	lsl	x25, x22, #2
	str	wzr, [x8, x25]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	bl	_wlc_phy_a3_nphy
	ldr	x8, [x19, #16]
	str	w0, [x8, x25]
	add	x8, x23, #16
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	b	LBB0_27
LBB0_22:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x20]
	mov	w0, #23
	str	w0, [x8, x22, lsl #2]
	b	LBB0_26
LBB0_23:                                ;   in Loop: Header=BB0_14 Depth=1
	cmp	w8, #5
	b.ne	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #16]
	lsl	x25, x22, #2
	str	wzr, [x8, x25]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	bl	_wlc_phy_a3_nphy
	ldr	x8, [x19, #16]
	str	w0, [x8, x25]
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8, x22, lsl #2]
LBB0_26:                                ;   in Loop: Header=BB0_14 Depth=1
	madd	x8, x22, x28, x21
	add	x8, x8, #8
LBB0_27:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x8]
	str	w0, [x8, x22, lsl #2]
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w8, #1
	b.ne	LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh28:
	adrp	x8, _CAL_SOFT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CAL_SOFT@GOTPAGEOFF]
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_14 Depth=1
Lloh30:
	adrp	x8, _CAL_FULL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CAL_FULL@GOTPAGEOFF]
LBB0_31:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x22
	bl	_wlc_phy_a2_nphy
LBB0_32:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x19, #76]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_13
; %bb.33:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x1, sp, #32
	mov	x0, x19
	bl	_wlc_phy_papd_cal_cleanup_nphy
	b	LBB0_13
LBB0_34:
	ldr	w0, [x19, #76]
	mov	w1, #7
	bl	_NREV_LT
	cbz	x0, LBB0_36
; %bb.35:
	add	x1, sp, #32
	mov	x0, x19
	bl	_wlc_phy_papd_cal_cleanup_nphy
LBB0_36:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_60
; %bb.37:
	mov	x20, #0
	mov	x21, #0
	mov	x22, #0
	add	x8, sp, #40
	add	x23, x8, #8
	mov	w27, #668
	mov	w28, #664
	b	LBB0_41
LBB0_38:                                ;   in Loop: Header=BB0_41 Depth=1
Lloh32:
	adrp	x9, _nphy_papd_padgain_dlt_2g_2057rev3n4@GOTPAGE
Lloh33:
	ldr	x9, [x9, _nphy_papd_padgain_dlt_2g_2057rev3n4@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	mvn	w9, w8
	neg	w10, w8
	cmp	w9, #0
	csinv	w8, w10, w8, lt
	sbfx	x20, x8, #1, #31
	mov	x24, #-1
LBB0_39:                                ;   in Loop: Header=BB0_41 Depth=1
	ldr	w0, [x19, #80]
	bl	_CHSPEC_IS2G
	cmp	x0, #0
	csel	x8, x21, x20, eq
	add	x9, x24, x25
	add	x24, x9, x8
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=1
	ldr	x8, [x26]
	cmp	x22, x8
	csel	w1, w28, w27, eq
	lsl	w3, w24, #7
	mov	x0, x19
	mov	w2, #65408
	bl	_mod_phy_reg
	ldr	x8, [x19, #32]
	str	x24, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldr	x8, [x19, #64]
	add	x23, x23, #24
	cmp	x22, x8
	b.hs	LBB0_60
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #76]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_44
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=1
	ldr	w0, [x19, #80]
	bl	_CHSPEC_IS2G
	cbz	x0, LBB0_45
; %bb.43:                               ;   in Loop: Header=BB0_41 Depth=1
	ldr	w8, [x19, #72]
	cmp	w8, #5
	mov	x9, #-34
	mov	x10, #-30
	csel	x9, x10, x9, eq
	cmp	w8, #3
	mov	x8, #-35
	csel	x25, x8, x9, eq
	b	LBB0_46
LBB0_44:                                ;   in Loop: Header=BB0_41 Depth=1
	ldr	w0, [x19, #76]
	mov	w1, #5
	bl	_NREV_LT
	cmp	x0, #0
	mov	x8, #-29
	mov	x9, #-31
	csel	x24, x9, x8, eq
	ldur	w8, [x23, #-4]
	mov	w9, #15
	sub	w21, w9, w8, asr #3
	ldr	w0, [x19, #80]
	bl	_CHSPEC_IS2G
	cmp	x0, #0
	mov	x8, #-9
	csel	x8, x8, xzr, eq
Lloh35:
	adrp	x9, _nphy_papd_pga_gain_delta_ipa_5g@GOTPAGE
Lloh36:
	ldr	x9, [x9, _nphy_papd_pga_gain_delta_ipa_5g@GOTPAGEOFF]
Lloh37:
	adrp	x10, _nphy_papd_pga_gain_delta_ipa_2g@GOTPAGE
Lloh38:
	ldr	x10, [x10, _nphy_papd_pga_gain_delta_ipa_2g@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	ldr	w9, [x9, w21, sxtw #2]
	mvn	w10, w9
	neg	w11, w9
	cmp	w10, #0
	csinv	w9, w11, w9, lt
	sbfx	x21, x9, #1, #31
	add	x8, x8, x24
	add	x24, x8, x21
	b	LBB0_40
LBB0_45:                                ;   in Loop: Header=BB0_41 Depth=1
	mov	x25, #-31
LBB0_46:                                ;   in Loop: Header=BB0_41 Depth=1
	ldr	w0, [x19, #80]
	bl	_CHSPEC_IS2G
	cbz	x0, LBB0_51
; %bb.47:                               ;   in Loop: Header=BB0_41 Depth=1
	mov	x24, #0
	ldr	w9, [x19, #72]
	cmp	w9, #8
	b.hi	LBB0_39
; %bb.48:                               ;   in Loop: Header=BB0_41 Depth=1
	ldr	x8, [x23]
	ldrsw	x8, [x8, x22, lsl #2]
	mov	w10, #1
	lsl	w10, w10, w9
	mov	w11, #88
	tst	w10, w11
	b.ne	LBB0_38
; %bb.49:                               ;   in Loop: Header=BB0_41 Depth=1
	tst	w10, #0x180
	b.eq	LBB0_57
; %bb.50:                               ;   in Loop: Header=BB0_41 Depth=1
	mov	x24, #0
Lloh39:
	adrp	x9, _nphy_papd_padgain_dlt_2g_2057rev7@GOTPAGE
Lloh40:
	ldr	x9, [x9, _nphy_papd_padgain_dlt_2g_2057rev7@GOTPAGEOFF]
	b	LBB0_59
LBB0_51:                                ;   in Loop: Header=BB0_41 Depth=1
	ldr	w9, [x19, #72]
	mov	x24, #-9
	cmp	w9, #8
	b.hi	LBB0_39
; %bb.52:                               ;   in Loop: Header=BB0_41 Depth=1
	ldr	x8, [x23, #8]
	ldrsw	x8, [x8, x22, lsl #2]
	mov	w10, #1
	lsl	w9, w10, w9
	mov	w10, #88
	tst	w9, w10
	b.eq	LBB0_54
; %bb.53:                               ;   in Loop: Header=BB0_41 Depth=1
Lloh41:
	adrp	x9, _nphy_papd_pgagain_dlt_5g_2057@GOTPAGE
Lloh42:
	ldr	x9, [x9, _nphy_papd_pgagain_dlt_5g_2057@GOTPAGEOFF]
	b	LBB0_56
LBB0_54:                                ;   in Loop: Header=BB0_41 Depth=1
	tst	w9, #0x180
	b.eq	LBB0_39
; %bb.55:                               ;   in Loop: Header=BB0_41 Depth=1
Lloh43:
	adrp	x9, _nphy_papd_pgagain_dlt_5g_2057rev7@GOTPAGE
Lloh44:
	ldr	x9, [x9, _nphy_papd_pgagain_dlt_5g_2057rev7@GOTPAGEOFF]
LBB0_56:                                ;   in Loop: Header=BB0_41 Depth=1
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	mvn	w9, w8
	neg	w10, w8
	cmp	w9, #0
	csinv	w8, w10, w8, lt
	sbfx	x21, x8, #1, #31
	mov	x24, #-9
	b	LBB0_39
LBB0_57:                                ;   in Loop: Header=BB0_41 Depth=1
	cmp	w9, #5
	b.ne	LBB0_39
; %bb.58:                               ;   in Loop: Header=BB0_41 Depth=1
	mov	x24, #0
Lloh45:
	adrp	x9, _nphy_papd_padgain_dlt_2g_2057rev5@GOTPAGE
Lloh46:
	ldr	x9, [x9, _nphy_papd_padgain_dlt_2g_2057rev5@GOTPAGEOFF]
LBB0_59:                                ;   in Loop: Header=BB0_41 Depth=1
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	mvn	w9, w8
	neg	w10, w8
	cmp	w9, #0
	csinv	w8, w10, w8, lt
	sbfx	x20, x8, #1, #31
	b	LBB0_39
LBB0_60:
	ldr	x8, [x26]
	cmp	x8, #0
	mov	w20, #667
	mov	w21, #663
	csel	w1, w21, w20, eq
Lloh47:
	adrp	x23, _NPHY_PAPD_COMP_ON@GOTPAGE
Lloh48:
	ldr	x23, [x23, _NPHY_PAPD_COMP_ON@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x19
	mov	w2, #1
	bl	_mod_phy_reg
	ldr	x8, [x26]
	cmp	x8, #1
	csel	w1, w21, w20, eq
	ldr	w3, [x23]
	mov	x0, x19
	mov	w2, #1
	bl	_mod_phy_reg
	ldr	w0, [x19, #76]
	mov	w1, #6
	bl	_NREV_GE
	ldr	x8, [x26]
	cmp	x8, #0
	mov	w20, #675
	cinc	w1, w20, ne
	cmp	x0, #0
	mov	w8, #8192
	mov	w9, #2048
	csel	w22, w9, w8, eq
	mov	x0, x19
	mov	x2, x22
	mov	w3, #0
	bl	_mod_phy_reg
	ldr	x8, [x26]
	cmp	x8, #1
	cinc	w1, w20, ne
	mov	x0, x19
	mov	x2, x22
	mov	w3, #0
	bl	_mod_phy_reg
	ldr	w8, [x23]
	str	w8, [x19, #40]
	mov	x0, x19
	mov	w1, #1
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x19
	bl	_wlc_phy_ipa_set_tx_digi_filts_nphy
	mov	x0, x19
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	mov	x1, x20
	bl	_wlc_phy_txpwrctrl_enable_nphy
Lloh49:
	adrp	x8, _PHY_TPC_HW_OFF@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PHY_TPC_HW_OFF@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_62
; %bb.61:
	ldr	x8, [x19, #56]
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	w3, #0
	bl	_wlc_phy_txpwr_index_nphy
	ldr	x8, [x19, #56]
	ldr	w2, [x8, #8]
	mov	x0, x19
	mov	w1, #2
	mov	w3, #0
	bl	_wlc_phy_txpwr_index_nphy
LBB0_62:
	mov	x0, x19
	mov	w1, #0
	bl	_wlc_phy_stay_in_carriersearch_nphy
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_64
; %bb.63:
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
	bl	_wlapi_enable_mac
LBB0_64:
	ldr	x8, [sp, #88]
Lloh52:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh53:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_66
; %bb.65:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #96]               ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_66:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdr	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_maccontrol,4,2                 ; @maccontrol
	.comm	_MCTL_EN_MAC,4,2                ; @MCTL_EN_MAC
	.comm	_PHY_TPC_HW_OFF,8,3             ; @PHY_TPC_HW_OFF
	.comm	_NPHY_TBL_ID_SCALARTBL0,4,2     ; @NPHY_TBL_ID_SCALARTBL0
	.comm	_nphy_papd_scaltbl,8,3          ; @nphy_papd_scaltbl
	.comm	_NPHY_TBL_ID_SCALARTBL1,4,2     ; @NPHY_TBL_ID_SCALARTBL1
	.comm	_PHY_CORE_0,8,3                 ; @PHY_CORE_0
	.comm	_NPHY_TBL_ID_EPSILONTBL0,4,2    ; @NPHY_TBL_ID_EPSILONTBL0
	.comm	_NPHY_TBL_ID_EPSILONTBL1,4,2    ; @NPHY_TBL_ID_EPSILONTBL1
	.comm	_CAL_FULL,4,2                   ; @CAL_FULL
	.comm	_CAL_SOFT,4,2                   ; @CAL_SOFT
	.comm	_nphy_papd_padgain_dlt_2g_2057rev3n4,8,3 ; @nphy_papd_padgain_dlt_2g_2057rev3n4
	.comm	_nphy_papd_padgain_dlt_2g_2057rev5,8,3 ; @nphy_papd_padgain_dlt_2g_2057rev5
	.comm	_nphy_papd_padgain_dlt_2g_2057rev7,8,3 ; @nphy_papd_padgain_dlt_2g_2057rev7
	.comm	_nphy_papd_pgagain_dlt_5g_2057,8,3 ; @nphy_papd_pgagain_dlt_5g_2057
	.comm	_nphy_papd_pgagain_dlt_5g_2057rev7,8,3 ; @nphy_papd_pgagain_dlt_5g_2057rev7
	.comm	_nphy_papd_pga_gain_delta_ipa_2g,8,3 ; @nphy_papd_pga_gain_delta_ipa_2g
	.comm	_nphy_papd_pga_gain_delta_ipa_5g,8,3 ; @nphy_papd_pga_gain_delta_ipa_5g
	.comm	_NPHY_PAPD_COMP_ON,4,2          ; @NPHY_PAPD_COMP_ON
	.no_dead_strip	_wlc_phy_a4
.subsections_via_symbols
