	.file	"73574345.c"
	.intel_syntax noprefix
	.text
	.globl	CAL_FULL
	.bss
	.align 4
	.type	CAL_FULL, @object
	.size	CAL_FULL, 4
CAL_FULL:
	.zero	4
	.globl	CAL_SOFT
	.align 4
	.type	CAL_SOFT, @object
	.size	CAL_SOFT, 4
CAL_SOFT:
	.zero	4
	.globl	MCTL_EN_MAC
	.align 4
	.type	MCTL_EN_MAC, @object
	.size	MCTL_EN_MAC, 4
MCTL_EN_MAC:
	.zero	4
	.globl	NPHY_PAPD_COMP_ON
	.align 4
	.type	NPHY_PAPD_COMP_ON, @object
	.size	NPHY_PAPD_COMP_ON, 4
NPHY_PAPD_COMP_ON:
	.zero	4
	.globl	NPHY_TBL_ID_EPSILONTBL0
	.align 4
	.type	NPHY_TBL_ID_EPSILONTBL0, @object
	.size	NPHY_TBL_ID_EPSILONTBL0, 4
NPHY_TBL_ID_EPSILONTBL0:
	.zero	4
	.globl	NPHY_TBL_ID_EPSILONTBL1
	.align 4
	.type	NPHY_TBL_ID_EPSILONTBL1, @object
	.size	NPHY_TBL_ID_EPSILONTBL1, 4
NPHY_TBL_ID_EPSILONTBL1:
	.zero	4
	.globl	NPHY_TBL_ID_SCALARTBL0
	.align 4
	.type	NPHY_TBL_ID_SCALARTBL0, @object
	.size	NPHY_TBL_ID_SCALARTBL0, 4
NPHY_TBL_ID_SCALARTBL0:
	.zero	4
	.globl	NPHY_TBL_ID_SCALARTBL1
	.align 4
	.type	NPHY_TBL_ID_SCALARTBL1, @object
	.size	NPHY_TBL_ID_SCALARTBL1, 4
NPHY_TBL_ID_SCALARTBL1:
	.zero	4
	.globl	PHY_CORE_0
	.align 8
	.type	PHY_CORE_0, @object
	.size	PHY_CORE_0, 8
PHY_CORE_0:
	.zero	8
	.globl	PHY_TPC_HW_OFF
	.align 8
	.type	PHY_TPC_HW_OFF, @object
	.size	PHY_TPC_HW_OFF, 8
PHY_TPC_HW_OFF:
	.zero	8
	.globl	maccontrol
	.align 4
	.type	maccontrol, @object
	.size	maccontrol, 4
maccontrol:
	.zero	4
	.globl	nphy_papd_padgain_dlt_2g_2057rev3n4
	.align 8
	.type	nphy_papd_padgain_dlt_2g_2057rev3n4, @object
	.size	nphy_papd_padgain_dlt_2g_2057rev3n4, 8
nphy_papd_padgain_dlt_2g_2057rev3n4:
	.zero	8
	.globl	nphy_papd_padgain_dlt_2g_2057rev5
	.align 8
	.type	nphy_papd_padgain_dlt_2g_2057rev5, @object
	.size	nphy_papd_padgain_dlt_2g_2057rev5, 8
nphy_papd_padgain_dlt_2g_2057rev5:
	.zero	8
	.globl	nphy_papd_padgain_dlt_2g_2057rev7
	.align 8
	.type	nphy_papd_padgain_dlt_2g_2057rev7, @object
	.size	nphy_papd_padgain_dlt_2g_2057rev7, 8
nphy_papd_padgain_dlt_2g_2057rev7:
	.zero	8
	.globl	nphy_papd_pga_gain_delta_ipa_2g
	.align 8
	.type	nphy_papd_pga_gain_delta_ipa_2g, @object
	.size	nphy_papd_pga_gain_delta_ipa_2g, 8
nphy_papd_pga_gain_delta_ipa_2g:
	.zero	8
	.globl	nphy_papd_pga_gain_delta_ipa_5g
	.align 8
	.type	nphy_papd_pga_gain_delta_ipa_5g, @object
	.size	nphy_papd_pga_gain_delta_ipa_5g, 8
nphy_papd_pga_gain_delta_ipa_5g:
	.zero	8
	.globl	nphy_papd_pgagain_dlt_5g_2057
	.align 8
	.type	nphy_papd_pgagain_dlt_5g_2057, @object
	.size	nphy_papd_pgagain_dlt_5g_2057, 8
nphy_papd_pgagain_dlt_5g_2057:
	.zero	8
	.globl	nphy_papd_pgagain_dlt_5g_2057rev7
	.align 8
	.type	nphy_papd_pgagain_dlt_5g_2057rev7, @object
	.size	nphy_papd_pgagain_dlt_5g_2057rev7, 8
nphy_papd_pgagain_dlt_5g_2057rev7:
	.zero	8
	.globl	nphy_papd_scaltbl
	.align 8
	.type	nphy_papd_scaltbl, @object
	.size	nphy_papd_scaltbl, 8
nphy_papd_scaltbl:
	.zero	8
	.text
	.type	wlc_phy_a4, @function
wlc_phy_a4:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 184
	.cfi_offset 3, -24
	mov	QWORD PTR -184[rbp], rdi
	mov	DWORD PTR -188[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L74
	mov	eax, DWORD PTR maccontrol[rip]
	mov	edi, eax
	call	D11REGOFFS@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 104[rax]
	mov	esi, edx
	mov	edi, eax
	call	bcma_read32@PLT
	mov	edx, DWORD PTR MCTL_EN_MAC[rip]
	and	eax, edx
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	DWORD PTR -152[rbp], eax
	cmp	DWORD PTR -152[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	wlapi_suspend_mac_and_wait@PLT
.L4:
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	wlc_phy_stay_in_carriersearch_nphy@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	DWORD PTR 4[rax], 0
	mov	QWORD PTR -144[rbp], 0
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 96[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	lea	rbx, [rdx+rax]
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	wlc_phy_txpwr_idx_cur_get_nphy@PLT
	mov	DWORD PTR [rbx], eax
	add	QWORD PTR -144[rbp], 1
.L5:
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 64[rax]
	cmp	QWORD PTR -144[rbp], rax
	jb	.L6
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -184[rbp]
	mov	DWORD PTR 88[rax], edx
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 84[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -184[rbp]
	mov	DWORD PTR 84[rax], edx
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -88[rbp], rax
	mov	rdx, QWORD PTR PHY_TPC_HW_OFF[rip]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	wlc_phy_txpwrctrl_enable_nphy@PLT
	mov	rdx, QWORD PTR nphy_papd_scaltbl[rip]
	mov	esi, DWORD PTR NPHY_TBL_ID_SCALARTBL0[rip]
	mov	rax, QWORD PTR -184[rbp]
	mov	r9, rdx
	mov	r8d, 32
	mov	ecx, 0
	mov	edx, 64
	mov	rdi, rax
	call	wlc_phy_table_write_nphy@PLT
	mov	rdx, QWORD PTR nphy_papd_scaltbl[rip]
	mov	esi, DWORD PTR NPHY_TBL_ID_SCALARTBL1[rip]
	mov	rax, QWORD PTR -184[rbp]
	mov	r9, rdx
	mov	r8d, 32
	mov	ecx, 0
	mov	edx, 64
	mov	rdi, rax
	call	wlc_phy_table_write_nphy@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	read_phy_reg@PLT
	mov	DWORD PTR -148[rbp], eax
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, 0
	mov	edx, 32768
	mov	esi, 1
	mov	rdi, rax
	call	mod_phy_reg@PLT
	mov	QWORD PTR -144[rbp], 0
	jmp	.L7
.L12:
	mov	DWORD PTR -164[rbp], 0
	mov	DWORD PTR -160[rbp], 0
	jmp	.L8
.L11:
	mov	rax, QWORD PTR PHY_CORE_0[rip]
	cmp	QWORD PTR -144[rbp], rax
	jne	.L9
	mov	eax, DWORD PTR NPHY_TBL_ID_EPSILONTBL0[rip]
	jmp	.L10
.L9:
	mov	eax, DWORD PTR NPHY_TBL_ID_EPSILONTBL1[rip]
.L10:
	lea	rcx, -164[rbp]
	mov	edx, DWORD PTR -160[rbp]
	mov	rdi, QWORD PTR -184[rbp]
	mov	r9, rcx
	mov	r8d, 32
	mov	ecx, edx
	mov	edx, 1
	mov	esi, eax
	call	wlc_phy_table_write_nphy@PLT
	add	DWORD PTR -160[rbp], 1
.L8:
	cmp	DWORD PTR -160[rbp], 63
	jle	.L11
	add	QWORD PTR -144[rbp], 1
.L7:
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 64[rax]
	cmp	QWORD PTR -144[rbp], rax
	jb	.L12
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	wlc_phy_ipa_restore_tx_digi_filts_nphy@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	wlc_phy_ipa_get_bbmult_nphy@PLT
	mov	DWORD PTR -164[rbp], eax
	mov	QWORD PTR -144[rbp], 0
	jmp	.L13
.L26:
	mov	rdx, QWORD PTR -144[rbp]
	lea	rcx, -164[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	wlc_phy_papd_cal_setup_nphy@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 76[rax]
	mov	esi, 7
	mov	edi, eax
	call	NREV_GE@PLT
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 80[rax]
	mov	edi, eax
	call	CHSPEC_IS2G@PLT
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 3
	je	.L16
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 4
	je	.L16
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 6
	jne	.L17
.L16:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 23
	jmp	.L18
.L17:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 5
	jne	.L19
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wlc_phy_a3_nphy@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	edx, ecx
	mov	DWORD PTR [rax], edx
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 7
	je	.L20
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 8
	jne	.L18
.L20:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wlc_phy_a3_nphy@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	edx, ecx
	mov	DWORD PTR [rax], edx
.L18:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 56
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR [rcx]
	mov	DWORD PTR [rdx], eax
	jmp	.L21
.L15:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wlc_phy_a3_nphy@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 48
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR [rcx]
	mov	DWORD PTR [rdx], eax
	jmp	.L21
.L14:
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 64
	mov	DWORD PTR [rax], 1
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 60
	mov	DWORD PTR [rax], 16
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 60
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wlc_phy_a3_nphy@PLT
	mov	ecx, eax
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 60
	mov	DWORD PTR [rax], ecx
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 60
	mov	eax, DWORD PTR [rax]
	sar	eax, 3
	mov	ecx, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	edx, 15
	sub	edx, ecx
	mov	DWORD PTR [rax], edx
.L21:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	je	.L22
	cmp	eax, 1
	je	.L23
	jmp	.L24
.L22:
	mov	edx, DWORD PTR CAL_FULL[rip]
	lea	rsi, -80[rbp]
	mov	rcx, QWORD PTR -144[rbp]
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	add	rsi, rax
	mov	rcx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	wlc_phy_a2_nphy@PLT
	jmp	.L24
.L23:
	mov	edx, DWORD PTR CAL_SOFT[rip]
	lea	rsi, -80[rbp]
	mov	rcx, QWORD PTR -144[rbp]
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	add	rsi, rax
	mov	rcx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	wlc_phy_a2_nphy@PLT
	nop
.L24:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 76[rax]
	mov	esi, 7
	mov	edi, eax
	call	NREV_GE@PLT
	test	rax, rax
	je	.L25
	lea	rdx, -164[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	wlc_phy_papd_cal_cleanup_nphy@PLT
.L25:
	add	QWORD PTR -144[rbp], 1
.L13:
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 64[rax]
	cmp	QWORD PTR -144[rbp], rax
	jb	.L26
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 76[rax]
	mov	esi, 7
	mov	edi, eax
	call	NREV_LT@PLT
	test	rax, rax
	je	.L27
	lea	rdx, -164[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	wlc_phy_papd_cal_cleanup_nphy@PLT
.L27:
	mov	QWORD PTR -144[rbp], 0
	jmp	.L28
.L56:
	mov	DWORD PTR -156[rbp], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 76[rax]
	mov	esi, 7
	mov	edi, eax
	call	NREV_GE@PLT
	test	rax, rax
	je	.L29
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 80[rax]
	mov	edi, eax
	call	CHSPEC_IS2G@PLT
	test	rax, rax
	je	.L30
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 3
	jne	.L31
	mov	DWORD PTR -156[rbp], -2
	jmp	.L32
.L31:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 5
	jne	.L33
	mov	DWORD PTR -156[rbp], 3
	jmp	.L32
.L33:
	mov	DWORD PTR -156[rbp], -1
	jmp	.L32
.L30:
	mov	DWORD PTR -156[rbp], 2
.L32:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 80[rax]
	mov	edi, eax
	call	CHSPEC_IS2G@PLT
	test	rax, rax
	je	.L34
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 56
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -128[rbp], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 3
	je	.L35
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 4
	je	.L35
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 6
	jne	.L36
.L35:
	mov	rdx, QWORD PTR nphy_papd_padgain_dlt_2g_2057rev3n4[rip]
	mov	rax, QWORD PTR -96[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	not	eax
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -128[rbp], -1
	jmp	.L40
.L36:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 5
	jne	.L38
	mov	rdx, QWORD PTR nphy_papd_padgain_dlt_2g_2057rev5[rip]
	mov	rax, QWORD PTR -96[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	not	eax
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	mov	QWORD PTR -112[rbp], rax
	jmp	.L40
.L38:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 7
	je	.L39
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 8
	jne	.L40
.L39:
	mov	rdx, QWORD PTR nphy_papd_padgain_dlt_2g_2057rev7[rip]
	mov	rax, QWORD PTR -96[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	not	eax
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	mov	QWORD PTR -112[rbp], rax
	jmp	.L40
.L34:
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 48
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 3
	je	.L41
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 4
	je	.L41
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 6
	jne	.L42
.L41:
	mov	rdx, QWORD PTR nphy_papd_pgagain_dlt_5g_2057[rip]
	mov	rax, QWORD PTR -104[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	not	eax
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	mov	QWORD PTR -120[rbp], rax
	jmp	.L43
.L42:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 7
	je	.L44
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 8
	jne	.L43
.L44:
	mov	rdx, QWORD PTR nphy_papd_pgagain_dlt_5g_2057rev7[rip]
	mov	rax, QWORD PTR -104[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	not	eax
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	mov	QWORD PTR -120[rbp], rax
.L43:
	mov	QWORD PTR -128[rbp], -9
.L40:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 80[rax]
	mov	edi, eax
	call	CHSPEC_IS2G@PLT
	test	rax, rax
	je	.L45
	mov	eax, DWORD PTR -156[rbp]
	sub	eax, 33
	movsx	rdx, eax
	mov	rax, QWORD PTR -112[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	QWORD PTR -136[rbp], rax
	jmp	.L46
.L45:
	mov	eax, DWORD PTR -156[rbp]
	sub	eax, 33
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	QWORD PTR -136[rbp], rax
.L46:
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 7
	mov	edx, eax
	mov	rax, QWORD PTR PHY_CORE_0[rip]
	cmp	QWORD PTR -144[rbp], rax
	jne	.L47
	mov	esi, 664
	jmp	.L48
.L47:
	mov	esi, 668
.L48:
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, edx
	mov	edx, 65408
	mov	rdi, rax
	call	mod_phy_reg@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR [rdx], rax
	jmp	.L49
.L29:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 76[rax]
	mov	esi, 5
	mov	edi, eax
	call	NREV_LT@PLT
	test	rax, rax
	je	.L50
	mov	DWORD PTR -156[rbp], 4
	jmp	.L51
.L50:
	mov	DWORD PTR -156[rbp], 2
.L51:
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 60
	mov	eax, DWORD PTR [rax]
	sar	eax, 3
	mov	edx, eax
	mov	eax, 15
	sub	eax, edx
	cdqe
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 80[rax]
	mov	edi, eax
	call	CHSPEC_IS2G@PLT
	test	rax, rax
	je	.L52
	mov	rdx, QWORD PTR nphy_papd_pga_gain_delta_ipa_2g[rip]
	mov	rax, QWORD PTR -104[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	not	eax
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	mov	QWORD PTR -120[rbp], rax
	mov	QWORD PTR -128[rbp], 0
	jmp	.L53
.L52:
	mov	rdx, QWORD PTR nphy_papd_pga_gain_delta_ipa_5g[rip]
	mov	rax, QWORD PTR -104[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	not	eax
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	mov	QWORD PTR -120[rbp], rax
	mov	QWORD PTR -128[rbp], -9
.L53:
	mov	eax, DWORD PTR -156[rbp]
	sub	eax, 33
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 7
	mov	edx, eax
	mov	rax, QWORD PTR PHY_CORE_0[rip]
	cmp	QWORD PTR -144[rbp], rax
	jne	.L54
	mov	esi, 664
	jmp	.L55
.L54:
	mov	esi, 668
.L55:
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, edx
	mov	edx, 65408
	mov	rdi, rax
	call	mod_phy_reg@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR [rdx], rax
.L49:
	add	QWORD PTR -144[rbp], 1
.L28:
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 64[rax]
	cmp	QWORD PTR -144[rbp], rax
	jb	.L56
	mov	edx, DWORD PTR NPHY_PAPD_COMP_ON[rip]
	mov	rax, QWORD PTR PHY_CORE_0[rip]
	test	rax, rax
	jne	.L57
	mov	esi, 663
	jmp	.L58
.L57:
	mov	esi, 667
.L58:
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, edx
	mov	edx, 1
	mov	rdi, rax
	call	mod_phy_reg@PLT
	mov	edx, DWORD PTR NPHY_PAPD_COMP_ON[rip]
	mov	rax, QWORD PTR PHY_CORE_0[rip]
	cmp	rax, 1
	jne	.L59
	mov	esi, 663
	jmp	.L60
.L59:
	mov	esi, 667
.L60:
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, edx
	mov	edx, 1
	mov	rdi, rax
	call	mod_phy_reg@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 76[rax]
	mov	esi, 6
	mov	edi, eax
	call	NREV_GE@PLT
	test	rax, rax
	je	.L61
	mov	rax, QWORD PTR PHY_CORE_0[rip]
	test	rax, rax
	jne	.L62
	mov	esi, 675
	jmp	.L63
.L62:
	mov	esi, 676
.L63:
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, 0
	mov	edx, 8192
	mov	rdi, rax
	call	mod_phy_reg@PLT
	mov	rax, QWORD PTR PHY_CORE_0[rip]
	cmp	rax, 1
	jne	.L64
	mov	esi, 675
	jmp	.L65
.L64:
	mov	esi, 676
.L65:
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, 0
	mov	edx, 8192
	mov	rdi, rax
	call	mod_phy_reg@PLT
	jmp	.L66
.L61:
	mov	rax, QWORD PTR PHY_CORE_0[rip]
	test	rax, rax
	jne	.L67
	mov	esi, 675
	jmp	.L68
.L67:
	mov	esi, 676
.L68:
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, 0
	mov	edx, 2048
	mov	rdi, rax
	call	mod_phy_reg@PLT
	mov	rax, QWORD PTR PHY_CORE_0[rip]
	cmp	rax, 1
	jne	.L69
	mov	esi, 675
	jmp	.L70
.L69:
	mov	esi, 676
.L70:
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, 0
	mov	edx, 2048
	mov	rdi, rax
	call	mod_phy_reg@PLT
.L66:
	mov	edx, DWORD PTR NPHY_PAPD_COMP_ON[rip]
	mov	rax, QWORD PTR -184[rbp]
	mov	DWORD PTR 40[rax], edx
	mov	edx, DWORD PTR -148[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	write_phy_reg@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	wlc_phy_ipa_set_tx_digi_filts_nphy@PLT
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	wlc_phy_txpwrctrl_enable_nphy@PLT
	mov	rax, QWORD PTR PHY_TPC_HW_OFF[rip]
	cmp	QWORD PTR -88[rbp], rax
	jne	.L71
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, 0
	mov	esi, 1
	mov	rdi, rax
	call	wlc_phy_txpwr_index_nphy@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 56[rax]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, 0
	mov	esi, 2
	mov	rdi, rax
	call	wlc_phy_txpwr_index_nphy@PLT
.L71:
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	wlc_phy_stay_in_carriersearch_nphy@PLT
	cmp	DWORD PTR -152[rbp], 0
	jne	.L1
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	wlapi_enable_mac@PLT
	jmp	.L1
.L74:
	nop
.L1:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L73
	call	__stack_chk_fail@PLT
.L73:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	wlc_phy_a4, .-wlc_phy_a4
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"73574345.c"
	.text
	.comm	CAL_FULL,4,4
	.comm	CAL_SOFT,4,4
	.comm	MCTL_EN_MAC,4,4
	.comm	NPHY_PAPD_COMP_ON,4,4
	.comm	NPHY_TBL_ID_EPSILONTBL0,4,4
	.comm	NPHY_TBL_ID_EPSILONTBL1,4,4
	.comm	NPHY_TBL_ID_SCALARTBL0,4,4
	.comm	NPHY_TBL_ID_SCALARTBL1,4,4
	.comm	PHY_CORE_0,4,4
	.comm	PHY_TPC_HW_OFF,4,4
	.comm	maccontrol,4,4
	.comm	nphy_papd_padgain_dlt_2g_2057rev3n4,4,4
	.comm	nphy_papd_padgain_dlt_2g_2057rev5,4,4
	.comm	nphy_papd_padgain_dlt_2g_2057rev7,4,4
	.comm	nphy_papd_pga_gain_delta_ipa_2g,4,4
	.comm	nphy_papd_pga_gain_delta_ipa_5g,4,4
	.comm	nphy_papd_pgagain_dlt_5g_2057,4,4
	.comm	nphy_papd_pgagain_dlt_5g_2057rev7,4,4
	.comm	nphy_papd_scaltbl,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wlc_phy_a4, %function
wlc_phy_a4:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #108
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L75
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L74
	ldr	r3, [fp, #-104]
	ldr	r4, [r3, #64]
	ldr	r3, .L75+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	D11REGOFFS
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	bcma_read32
	mov	r2, r0
	ldr	r3, .L75+8
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	wlapi_suspend_mac_and_wait
.L4:
	mov	r1, #1
	ldr	r0, [fp, #-104]
	bl	wlc_phy_stay_in_carriersearch_nphy
	ldr	r3, [fp, #-104]
	mov	r2, #0
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L5
.L6:
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #60]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r4, r2, r3
	ldr	r1, [fp, #-96]
	ldr	r0, [fp, #-104]
	bl	wlc_phy_txpwr_idx_cur_get_nphy
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L5:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #36]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bcc	.L6
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #28]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-104]
	str	r2, [r3, #56]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #52]
	add	r2, r3, #1
	ldr	r3, [fp, #-104]
	str	r2, [r3, #52]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-56]
	ldr	r3, .L75+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	wlc_phy_txpwrctrl_enable_nphy
	ldr	r3, .L75+16
	ldr	r1, [r3]
	ldr	r3, .L75+20
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #32
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #64
	ldr	r0, [fp, #-104]
	bl	wlc_phy_table_write_nphy
	ldr	r3, .L75+24
	ldr	r1, [r3]
	ldr	r3, .L75+20
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #32
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #64
	ldr	r0, [fp, #-104]
	bl	wlc_phy_table_write_nphy
	mov	r1, #1
	ldr	r0, [fp, #-104]
	bl	read_phy_reg
	str	r0, [fp, #-52]
	mov	r3, #0
	mov	r2, #32768
	mov	r1, #1
	ldr	r0, [fp, #-104]
	bl	mod_phy_reg
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L7
.L12:
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L8
.L11:
	ldr	r3, .L75+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bne	.L9
	ldr	r3, .L75+32
	ldr	r1, [r3]
	b	.L10
.L9:
	ldr	r3, .L75+36
	ldr	r1, [r3]
.L10:
	sub	r3, fp, #100
	str	r3, [sp, #4]
	mov	r3, #32
	str	r3, [sp]
	ldr	r3, [fp, #-76]
	mov	r2, #1
	ldr	r0, [fp, #-104]
	bl	wlc_phy_table_write_nphy
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L8:
	ldr	r3, [fp, #-76]
	cmp	r3, #63
	ble	.L11
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L7:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #36]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bcc	.L12
	ldr	r0, [fp, #-104]
	bl	wlc_phy_ipa_restore_tx_digi_filts_nphy
	ldr	r0, [fp, #-104]
	bl	wlc_phy_ipa_get_bbmult_nphy
	mov	r3, r0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L13
.L26:
	sub	r3, fp, #100
	ldr	r2, [fp, #-96]
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	wlc_phy_papd_cal_setup_nphy
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #44]
	mov	r1, #7
	mov	r0, r3
	bl	NREV_GE
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	CHSPEC_IS2G
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #3
	beq	.L16
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #4
	beq	.L16
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #6
	bne	.L17
.L16:
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #23
	str	r2, [r3]
	b	.L18
.L17:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #5
	bne	.L19
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-96]
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	wlc_phy_a3_nphy
	mov	r1, r0
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	b	.L18
.L19:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #7
	beq	.L20
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #8
	bne	.L18
.L20:
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-96]
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	wlc_phy_a3_nphy
	mov	r1, r0
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
.L18:
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-28]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	b	.L21
.L15:
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-96]
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	wlc_phy_a3_nphy
	mov	r1, r0
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-24]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	b	.L21
.L14:
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-36]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #16
	str	r2, [r3, #-32]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-32]
	ldr	r2, [fp, #-96]
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	wlc_phy_a3_nphy
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-32]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-32]
	asr	r2, r3, #3
	ldr	r3, [fp, #-104]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r1, r3
	rsb	r2, r2, #15
	str	r2, [r3]
.L21:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L22
	cmp	r3, #1
	beq	.L23
	b	.L24
.L22:
	sub	r2, fp, #48
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	add	r1, r2, r3
	ldr	r3, .L75+40
	ldr	r2, [r3]
	ldr	r3, [fp, #-96]
	ldr	r0, [fp, #-104]
	bl	wlc_phy_a2_nphy
	b	.L24
.L23:
	sub	r2, fp, #48
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	add	r1, r2, r3
	ldr	r3, .L75+44
	ldr	r2, [r3]
	ldr	r3, [fp, #-96]
	ldr	r0, [fp, #-104]
	bl	wlc_phy_a2_nphy
	nop
.L24:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #44]
	mov	r1, #7
	mov	r0, r3
	bl	NREV_GE
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	wlc_phy_papd_cal_cleanup_nphy
.L25:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L13:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #36]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bcc	.L26
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #44]
	mov	r1, #7
	mov	r0, r3
	bl	NREV_LT
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	wlc_phy_papd_cal_cleanup_nphy
.L27:
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L28
.L56:
	mov	r3, #0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #44]
	mov	r1, #7
	mov	r0, r3
	bl	NREV_GE
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	CHSPEC_IS2G
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #3
	bne	.L31
	mvn	r3, #1
	str	r3, [fp, #-72]
	b	.L32
.L31:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #5
	bne	.L33
	mov	r3, #3
	str	r3, [fp, #-72]
	b	.L32
.L33:
	mvn	r3, #0
	str	r3, [fp, #-72]
	b	.L32
.L30:
	mov	r3, #2
	str	r3, [fp, #-72]
.L32:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	CHSPEC_IS2G
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-28]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #3
	beq	.L35
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #4
	beq	.L35
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #6
	bne	.L36
.L35:
	ldr	r3, .L75+48
	ldr	r2, [r3]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mvn	r3, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-80]
	mvn	r3, #0
	str	r3, [fp, #-88]
	b	.L40
.L36:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #5
	bne	.L38
	ldr	r3, .L75+52
	ldr	r2, [r3]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mvn	r3, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-80]
	b	.L40
.L38:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #7
	beq	.L39
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #8
	bne	.L40
.L39:
	ldr	r3, .L75+56
	ldr	r2, [r3]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mvn	r3, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-80]
	b	.L40
.L34:
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-24]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #3
	beq	.L41
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #4
	beq	.L41
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #6
	bne	.L42
.L41:
	ldr	r3, .L75+60
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mvn	r3, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-84]
	b	.L43
.L42:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #7
	beq	.L44
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #40]
	cmp	r3, #8
	bne	.L43
.L44:
	ldr	r3, .L75+64
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mvn	r3, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-84]
.L43:
	mvn	r3, #8
	str	r3, [fp, #-88]
.L40:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	CHSPEC_IS2G
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-80]
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	sub	r3, r3, #33
	str	r3, [fp, #-92]
	b	.L46
.L45:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	sub	r3, r3, #33
	str	r3, [fp, #-92]
.L46:
	ldr	r3, .L75+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bne	.L47
	mov	r1, #664
	b	.L48
.L47:
	mov	r1, #668
.L48:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #7
	ldr	r2, .L75+68
	ldr	r0, [fp, #-104]
	bl	mod_phy_reg
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-92]
	str	r2, [r3]
	b	.L49
.L29:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #44]
	mov	r1, #5
	mov	r0, r3
	bl	NREV_LT
	mov	r3, r0
	cmp	r3, #0
	beq	.L50
	mov	r3, #4
	str	r3, [fp, #-72]
	b	.L51
.L50:
	mov	r3, #2
	str	r3, [fp, #-72]
.L51:
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-32]
	asr	r3, r3, #3
	rsb	r3, r3, #15
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	CHSPEC_IS2G
	mov	r3, r0
	cmp	r3, #0
	beq	.L52
	ldr	r3, .L75+72
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mvn	r3, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L53
.L52:
	ldr	r3, .L75+76
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mvn	r3, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-84]
	mvn	r3, #8
	str	r3, [fp, #-88]
.L53:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	sub	r3, r3, #33
	str	r3, [fp, #-92]
	ldr	r3, .L75+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bne	.L54
	mov	r1, #664
	b	.L55
.L54:
	mov	r1, #668
.L55:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #7
	ldr	r2, .L75+68
	ldr	r0, [fp, #-104]
	bl	mod_phy_reg
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-92]
	str	r2, [r3]
.L49:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L28:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #36]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bcc	.L56
	ldr	r3, .L75+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L57
	ldr	r1, .L75+80
	b	.L58
.L57:
	ldr	r1, .L75+84
.L58:
	ldr	r3, .L75+88
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r0, [fp, #-104]
	bl	mod_phy_reg
	ldr	r3, .L75+28
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L59
	ldr	r1, .L75+80
	b	.L60
.L59:
	ldr	r1, .L75+84
.L60:
	ldr	r3, .L75+88
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r0, [fp, #-104]
	bl	mod_phy_reg
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #44]
	mov	r1, #6
	mov	r0, r3
	bl	NREV_GE
	mov	r3, r0
	cmp	r3, #0
	beq	.L61
	ldr	r3, .L75+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L62
	ldr	r1, .L75+92
	b	.L63
.L62:
	mov	r1, #676
.L63:
	mov	r3, #0
	mov	r2, #8192
	ldr	r0, [fp, #-104]
	bl	mod_phy_reg
	ldr	r3, .L75+28
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L64
	ldr	r1, .L75+92
	b	.L65
.L64:
	mov	r1, #676
.L65:
	mov	r3, #0
	mov	r2, #8192
	ldr	r0, [fp, #-104]
	bl	mod_phy_reg
	b	.L66
.L61:
	ldr	r3, .L75+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L67
	ldr	r1, .L75+92
	b	.L68
.L67:
	mov	r1, #676
.L68:
	mov	r3, #0
	mov	r2, #2048
	ldr	r0, [fp, #-104]
	bl	mod_phy_reg
	ldr	r3, .L75+28
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L69
	ldr	r1, .L75+92
	b	.L70
.L69:
	mov	r1, #676
.L70:
	mov	r3, #0
	mov	r2, #2048
	ldr	r0, [fp, #-104]
	bl	mod_phy_reg
.L66:
	ldr	r3, .L75+88
	ldr	r2, [r3]
	ldr	r3, [fp, #-104]
	str	r2, [r3, #24]
	ldr	r2, [fp, #-52]
	mov	r1, #1
	ldr	r0, [fp, #-104]
	bl	write_phy_reg
	ldr	r0, [fp, #-104]
	bl	wlc_phy_ipa_set_tx_digi_filts_nphy
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-104]
	bl	wlc_phy_txpwrctrl_enable_nphy
	ldr	r3, .L75+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bne	.L71
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #32]
	ldr	r2, [r3]
	mov	r3, #0
	mov	r1, #1
	ldr	r0, [fp, #-104]
	bl	wlc_phy_txpwr_index_nphy
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #32]
	add	r3, r3, #4
	ldr	r2, [r3]
	mov	r3, #0
	mov	r1, #2
	ldr	r0, [fp, #-104]
	bl	wlc_phy_txpwr_index_nphy
.L71:
	mov	r1, #0
	ldr	r0, [fp, #-104]
	bl	wlc_phy_stay_in_carriersearch_nphy
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L1
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	wlapi_enable_mac
	b	.L1
.L74:
	nop
.L1:
	ldr	r3, .L75
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L73
	bl	__stack_chk_fail
.L73:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L76:
	.align	2
.L75:
	.word	.LC0
	.word	maccontrol
	.word	MCTL_EN_MAC
	.word	PHY_TPC_HW_OFF
	.word	NPHY_TBL_ID_SCALARTBL0
	.word	nphy_papd_scaltbl
	.word	NPHY_TBL_ID_SCALARTBL1
	.word	PHY_CORE_0
	.word	NPHY_TBL_ID_EPSILONTBL0
	.word	NPHY_TBL_ID_EPSILONTBL1
	.word	CAL_FULL
	.word	CAL_SOFT
	.word	nphy_papd_padgain_dlt_2g_2057rev3n4
	.word	nphy_papd_padgain_dlt_2g_2057rev5
	.word	nphy_papd_padgain_dlt_2g_2057rev7
	.word	nphy_papd_pgagain_dlt_5g_2057
	.word	nphy_papd_pgagain_dlt_5g_2057rev7
	.word	65408
	.word	nphy_papd_pga_gain_delta_ipa_2g
	.word	nphy_papd_pga_gain_delta_ipa_5g
	.word	663
	.word	667
	.word	NPHY_PAPD_COMP_ON
	.word	675
	.size	wlc_phy_a4, .-wlc_phy_a4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
