	.file	"extr_phy_n.c_wlc_phy_papd_cal_cleanup_nphy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wlc_phy_papd_cal_cleanup_nphy, @function
wlc_phy_papd_cal_cleanup_nphy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	wlc_phy_stopplayback_nphy@PLT
	mov	edi, DWORD PTR 20[rbp]
	mov	esi, 7
	call	NREV_GE@PLT
	test	rax, rax
	je	.L2
	xor	ebx, ebx
	cmp	QWORD PTR 8[rbp], 0
	jne	.L3
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L43:
	mov	r8d, DWORD PTR TXRXCOUPLE_2G_PWRUP[rip]
	mov	edx, DWORD PTR TX[rip]
	mov	rcx, rbx
	mov	rdi, rbp
	mov	esi, DWORD PTR RADIO_2057[rip]
	call	WRITE_RADIO_REG3@PLT
	mov	rax, QWORD PTR 48[r12]
	mov	r8d, DWORD PTR TXRXCOUPLE_2G_ATTEN[rip]
	mov	r9d, DWORD PTR [rax+rbx*4]
.L40:
	mov	edx, DWORD PTR TX[rip]
	mov	esi, DWORD PTR RADIO_2057[rip]
	mov	rcx, rbx
	mov	rdi, rbp
	add	rbx, 1
	call	WRITE_RADIO_REG3@PLT
	cmp	QWORD PTR 8[rbp], rbx
	jbe	.L8
.L3:
	mov	edi, DWORD PTR 0[rbp]
	call	CHSPEC_IS2G@PLT
	xor	r9d, r9d
	test	rax, rax
	jne	.L43
	mov	r8d, DWORD PTR TXRXCOUPLE_5G_PWRUP[rip]
	mov	edx, DWORD PTR TX[rip]
	mov	rcx, rbx
	mov	rdi, rbp
	mov	esi, DWORD PTR RADIO_2057[rip]
	call	WRITE_RADIO_REG3@PLT
	mov	rax, QWORD PTR 48[r12]
	mov	r8d, DWORD PTR TXRXCOUPLE_5G_ATTEN[rip]
	mov	r9d, DWORD PTR [rax+rbx*4]
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 16[rbp]
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID0[rip]
	and	eax, -3
	cmp	eax, 4
	je	.L4
	mov	r8d, 1
	mov	ecx, 3
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, 4
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
.L9:
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	xor	edx, edx
	mov	ecx, 3
	xor	ebx, ebx
	mov	r8d, 1
	mov	esi, 2
	mov	rdi, rbp
	mov	r13d, 143
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	xor	edx, edx
	mov	r8d, 1
	mov	rdi, rbp
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID2[rip]
	mov	ecx, 3
	mov	esi, 1
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	xor	edx, edx
	mov	r8d, 1
	mov	rdi, rbp
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID2[rip]
	mov	ecx, 3
	mov	esi, 4
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 1
	mov	esi, 2048
	mov	rdi, rbp
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	xor	edx, edx
	mov	r8d, 1
	mov	rdi, rbp
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID0[rip]
	mov	ecx, 3
	mov	esi, 8
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	xor	edx, edx
	mov	r8d, 1
	mov	rdi, rbp
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID0[rip]
	mov	ecx, 3
	mov	esi, 2048
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	xor	edx, edx
	mov	r8d, 1
	mov	rdi, rbp
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID0[rip]
	mov	ecx, 3
	mov	esi, 4096
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rbp
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	xor	edx, edx
	mov	r8d, 1
	mov	rdi, rbp
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	ecx, 3
	mov	esi, 1
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID2[rip]
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rbp
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	xor	edx, edx
	mov	r8d, 1
	mov	rdi, rbp
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	ecx, 3
	mov	esi, 256
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 1
	mov	esi, 512
	mov	rdi, rbp
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	xor	edx, edx
	mov	r8d, 1
	mov	rdi, rbp
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	ecx, 3
	mov	esi, 1024
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rbp
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	xor	edx, edx
	mov	r8d, 1
	mov	rdi, rbp
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	ecx, 3
	mov	esi, 32
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	xor	edx, edx
	mov	r8d, 1
	mov	rdi, rbp
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	ecx, 3
	mov	esi, 16
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	cmp	QWORD PTR 8[rbp], 0
	je	.L15
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 16[r12]
	xor	esi, esi
	cmp	QWORD PTR PHY_CORE_0[rip], rbx
	mov	rdi, rbp
	setne	sil
	mov	edx, DWORD PTR [rax+rbx*4]
	add	esi, 166
	call	write_phy_reg@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	esi, 165
	mov	rdi, rbp
	cmp	QWORD PTR PHY_CORE_0[rip], rbx
	mov	edx, DWORD PTR [rax+rbx*4]
	cmove	esi, r13d
	add	rbx, 1
	call	write_phy_reg@PLT
	cmp	QWORD PTR 8[rbp], rbx
	ja	.L10
.L15:
	mov	eax, DWORD PTR [r12]
	mov	rdi, rbp
	movzx	esi, ah
	movzx	edx, al
	call	wlc_phy_ipa_set_bbmult_nphy@PLT
	mov	edi, DWORD PTR 20[rbp]
	mov	esi, 7
	call	NREV_IS@PLT
	test	rax, rax
	jne	.L11
	mov	edi, DWORD PTR 20[rbp]
	mov	esi, 8
	call	NREV_GE@PLT
	test	rax, rax
	je	.L44
.L11:
	mov	r9d, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	xor	ecx, ecx
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	r8d, 1
	pop	r12
	.cfi_def_cfa_offset 24
	xor	edx, edx
	pop	r13
	.cfi_def_cfa_offset 16
	mov	esi, 128
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	wlc_phy_rfctrl_override_nphy_rev7@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xor	r8d, r8d
	mov	ecx, 3
	mov	edx, 1
	mov	rdi, rbp
	mov	esi, 4
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	xor	edx, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	rdi, rbp
	mov	esi, 4096
	xor	ebx, ebx
	mov	r13d, 143
	call	wlc_phy_rfctrl_override_nphy@PLT
	xor	edx, edx
	mov	r8d, 1
	mov	rdi, rbp
	mov	ecx, 3
	mov	esi, 8192
	call	wlc_phy_rfctrl_override_nphy@PLT
	xor	edx, edx
	mov	r8d, 1
	mov	rdi, rbp
	mov	ecx, 3
	mov	esi, 1
	call	wlc_phy_rfctrl_override_nphy@PLT
	xor	edx, edx
	mov	r8d, 1
	mov	rdi, rbp
	mov	ecx, 3
	mov	esi, 4
	call	wlc_phy_rfctrl_override_nphy@PLT
	xor	edx, edx
	mov	r8d, 1
	mov	rdi, rbp
	mov	ecx, 3
	mov	esi, 2
	call	wlc_phy_rfctrl_override_nphy@PLT
	cmp	QWORD PTR 8[rbp], 0
	jne	.L17
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L45:
	mov	r8d, DWORD PTR TXFBMIX_G[rip]
	mov	edx, DWORD PTR RX[rip]
	mov	rcx, rbx
	mov	rdi, rbp
	mov	esi, DWORD PTR RADIO_2056[rip]
	call	WRITE_RADIO_REG2@PLT
	mov	rax, QWORD PTR 24[r12]
	mov	r8d, DWORD PTR INTPAG_MASTER[rip]
	mov	r9d, DWORD PTR [rax+rbx*4]
.L41:
	mov	edx, DWORD PTR TX[rip]
	mov	esi, DWORD PTR RADIO_2056[rip]
	mov	rcx, rbx
	mov	rdi, rbp
	call	WRITE_RADIO_REG2@PLT
	mov	rax, QWORD PTR 16[r12]
	xor	esi, esi
	mov	rdi, rbp
	cmp	QWORD PTR PHY_CORE_0[rip], rbx
	setne	sil
	mov	edx, DWORD PTR [rax+r14]
	add	esi, 166
	call	write_phy_reg@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	esi, 165
	mov	rdi, rbp
	cmp	QWORD PTR PHY_CORE_0[rip], rbx
	cmove	esi, r13d
	mov	edx, DWORD PTR [rax+r14]
	add	rbx, 1
	call	write_phy_reg@PLT
	cmp	QWORD PTR 8[rbp], rbx
	jbe	.L22
.L17:
	mov	rax, QWORD PTR 40[r12]
	mov	r8d, DWORD PTR VGA_MASTER[rip]
	mov	rcx, rbx
	mov	rdi, rbp
	mov	edx, DWORD PTR RX[rip]
	mov	esi, DWORD PTR RADIO_2056[rip]
	lea	r14, 0[0+rbx*4]
	mov	r9d, DWORD PTR [rax+rbx*4]
	call	WRITE_RADIO_REG2@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	CHSPEC_IS2G@PLT
	test	rax, rax
	mov	rax, QWORD PTR 32[r12]
	mov	r9d, DWORD PTR [rax+rbx*4]
	jne	.L45
	mov	r8d, DWORD PTR TXFBMIX_A[rip]
	mov	edx, DWORD PTR RX[rip]
	mov	rcx, rbx
	mov	rdi, rbp
	mov	esi, DWORD PTR RADIO_2056[rip]
	call	WRITE_RADIO_REG2@PLT
	mov	rax, QWORD PTR 24[r12]
	mov	r8d, DWORD PTR INTPAA_MASTER[rip]
	mov	r9d, DWORD PTR [rax+rbx*4]
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L22:
	mov	eax, DWORD PTR [r12]
	mov	rdi, rbp
	movzx	edx, al
	movzx	esi, ah
	call	wlc_phy_ipa_set_bbmult_nphy@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	mov	r8d, 1
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	ecx, 3
	pop	r12
	.cfi_def_cfa_offset 24
	xor	edx, edx
	pop	r13
	.cfi_def_cfa_offset 16
	mov	esi, 8
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	wlc_phy_rfctrl_override_nphy@PLT
	.p2align 4,,10
	.p2align 3
.L44:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	wlc_phy_papd_cal_cleanup_nphy, .-wlc_phy_papd_cal_cleanup_nphy
	.comm	VGA_MASTER,4,4
	.comm	TXRXCOUPLE_5G_PWRUP,4,4
	.comm	TXRXCOUPLE_5G_ATTEN,4,4
	.comm	TXRXCOUPLE_2G_PWRUP,4,4
	.comm	TXRXCOUPLE_2G_ATTEN,4,4
	.comm	TXFBMIX_G,4,4
	.comm	TXFBMIX_A,4,4
	.comm	TX,4,4
	.comm	RX,4,4
	.comm	RADIO_2057,4,4
	.comm	RADIO_2056,4,4
	.comm	PHY_CORE_0,8,8
	.comm	NPHY_REV7_RFCTRLOVERRIDE_ID2,4,4
	.comm	NPHY_REV7_RFCTRLOVERRIDE_ID1,4,4
	.comm	NPHY_REV7_RFCTRLOVERRIDE_ID0,4,4
	.comm	INTPAG_MASTER,4,4
	.comm	INTPAA_MASTER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_phy_n.c_wlc_phy_papd_cal_cleanup_nphy.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wlc_phy_papd_cal_cleanup_nphy, %function
wlc_phy_papd_cal_cleanup_nphy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #12
	mov	r5, r1
	bl	wlc_phy_stopplayback_nphy
	mov	r1, #7
	ldr	r0, [r4, #12]
	bl	NREV_GE
	subs	r9, r0, #0
	beq	.L2
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L8
	mov	r7, #0
	ldr	fp, .L41
	ldr	r6, .L41+4
	ldr	r10, .L41+8
	ldr	r9, .L41+12
	ldr	r8, .L41+16
	b	.L3
.L39:
	mov	r2, #0
	ldr	r3, [r8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r2, [fp]
	mov	r3, r7
	mov	r0, r4
	ldr	r1, [r6]
	bl	WRITE_RADIO_REG3
	ldr	r2, .L41+20
	ldr	r3, [r5, #24]
	ldr	r2, [r2]
.L36:
	ldr	r1, [r3, r7, lsl #2]
	str	r2, [sp]
	str	r1, [sp, #4]
	mov	r3, r7
	mov	r0, r4
	ldr	r2, [fp]
	ldr	r1, [r6]
	bl	WRITE_RADIO_REG3
	ldr	r3, [r4, #4]
	add	r7, r7, #1
	cmp	r3, r7
	bls	.L8
.L3:
	ldr	r0, [r4]
	bl	CHSPEC_IS2G
	cmp	r0, #0
	bne	.L39
	ldr	r3, [r10]
	str	r0, [sp, #4]
	str	r3, [sp]
	ldr	r2, [fp]
	mov	r3, r7
	mov	r0, r4
	ldr	r1, [r6]
	bl	WRITE_RADIO_REG3
	ldr	r3, [r5, #24]
	ldr	r2, [r9]
	b	.L36
.L8:
	ldr	r1, [r4, #8]
	ldr	r7, .L41+24
	bic	r1, r1, #2
	cmp	r1, #4
	ldr	r3, [r7]
	beq	.L4
	mov	r2, #1
	mov	r1, #4
	stm	sp, {r2, r3}
	mov	r0, r4
	mov	r3, #3
	mov	r2, #0
	bl	wlc_phy_rfctrl_override_nphy_rev7
.L9:
	mov	r6, #1
	ldr	r8, .L41+28
	ldr	r9, .L41+32
	ldr	r3, [r8]
	mov	r2, #0
	mov	r1, #2
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r9]
	mov	r1, r6
	mov	r2, #0
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r9]
	mov	r2, #0
	mov	r1, #4
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r8]
	mov	r2, r6
	mov	r1, #2048
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r7]
	mov	r2, #0
	mov	r1, #8
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r7]
	mov	r2, #0
	mov	r1, #2048
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r7]
	mov	r2, #0
	mov	r1, #4096
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r8]
	mov	r2, r6
	mov	r1, #4
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r8]
	mov	r1, r6
	mov	r2, #0
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r9]
	mov	r2, r6
	mov	r1, #2
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r8]
	mov	r2, #0
	mov	r1, #256
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r8]
	mov	r2, r6
	mov	r1, #512
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r8]
	mov	r2, #0
	mov	r1, #1024
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r8]
	mov	r2, r6
	mov	r1, #8
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r8]
	mov	r2, #0
	mov	r1, #32
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, #3
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r8]
	mov	r2, #0
	str	r6, [sp]
	str	r3, [sp, #4]
	mov	r1, #16
	mov	r3, #3
	mov	r0, r4
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, [r4, #4]
	cmp	r3, #0
	movne	r7, #0
	ldrne	r6, .L41+36
	beq	.L15
.L10:
	ldr	r1, [r6]
	ldr	r3, [r5, #8]
	cmp	r1, r7
	ldr	r2, [r3, r7, lsl #2]
	moveq	r1, #166
	movne	r1, #167
	mov	r0, r4
	bl	write_phy_reg
	ldr	r1, [r6]
	ldr	r3, [r5, #4]
	cmp	r1, r7
	ldr	r2, [r3, r7, lsl #2]
	moveq	r1, #143
	movne	r1, #165
	mov	r0, r4
	bl	write_phy_reg
	ldr	r3, [r4, #4]
	add	r7, r7, #1
	cmp	r3, r7
	bhi	.L10
.L15:
	ldr	r2, [r5]
	mov	r0, r4
	asr	r1, r2, #8
	and	r1, r1, #255
	and	r2, r2, #255
	bl	wlc_phy_ipa_set_bbmult_nphy
	mov	r1, #7
	ldr	r0, [r4, #12]
	bl	NREV_IS
	cmp	r0, #0
	bne	.L11
	mov	r1, #8
	ldr	r0, [r4, #12]
	bl	NREV_GE
	cmp	r0, #0
	beq	.L1
.L11:
	mov	r2, #1
	mov	r3, #0
	ldr	r1, [r8]
	mov	r0, r4
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r1, #128
	mov	r2, r3
	bl	wlc_phy_rfctrl_override_nphy_rev7
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	mov	r2, #0
	mov	r0, r4
	stm	sp, {r2, r3}
	mov	r3, #3
	mov	r2, #1
	bl	wlc_phy_rfctrl_override_nphy_rev7
	b	.L9
.L2:
	mov	r7, #1
	mov	r3, #3
	mov	r2, r9
	mov	r1, #4096
	mov	r0, r4
	str	r7, [sp]
	bl	wlc_phy_rfctrl_override_nphy
	mov	r3, #3
	mov	r2, r9
	mov	r1, #8192
	mov	r0, r4
	str	r7, [sp]
	bl	wlc_phy_rfctrl_override_nphy
	mov	r1, r7
	mov	r3, #3
	mov	r2, r9
	mov	r0, r4
	str	r7, [sp]
	bl	wlc_phy_rfctrl_override_nphy
	mov	r3, #3
	mov	r2, r9
	mov	r1, #4
	mov	r0, r4
	str	r7, [sp]
	bl	wlc_phy_rfctrl_override_nphy
	mov	r3, #3
	mov	r2, r9
	mov	r1, #2
	mov	r0, r4
	str	r7, [sp]
	bl	wlc_phy_rfctrl_override_nphy
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L22
	ldr	fp, .L41
	ldr	r6, .L41+36
	ldr	r7, .L41+40
	ldr	r10, .L41+44
	b	.L17
.L40:
	ldr	r1, .L41+48
	mov	r0, r4
	ldr	r2, [r1]
	ldr	r1, [r3, r9, lsl #2]
	str	r2, [sp]
	ldr	r2, .L41+52
	str	r1, [sp, #4]
	mov	r3, r9
	ldr	r2, [r2]
	ldr	r1, [r7]
	bl	WRITE_RADIO_REG2
	ldr	r3, [r5, #12]
	ldr	r2, .L41+56
.L37:
	ldr	r1, [r3, r9, lsl #2]
	ldr	r2, [r2]
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r3, r9
	ldr	r2, [fp]
	ldr	r1, [r7]
	mov	r0, r4
	bl	WRITE_RADIO_REG2
	ldr	r1, [r6]
	ldr	r3, [r5, #8]
	cmp	r1, r9
	moveq	r1, #166
	movne	r1, #167
	ldr	r2, [r3, r8]
	mov	r0, r4
	bl	write_phy_reg
	ldr	r1, [r6]
	ldr	r3, [r5, #4]
	cmp	r1, r9
	moveq	r1, #143
	movne	r1, #165
	ldr	r2, [r3, r8]
	mov	r0, r4
	bl	write_phy_reg
	ldr	r3, [r4, #4]
	add	r9, r9, #1
	cmp	r3, r9
	bls	.L22
.L17:
	ldr	r3, [r5, #20]
	ldr	r2, [r10]
	ldr	r1, [r3, r9, lsl #2]
	str	r2, [sp]
	ldr	r2, .L41+52
	str	r1, [sp, #4]
	mov	r3, r9
	ldr	r2, [r2]
	ldr	r1, [r7]
	mov	r0, r4
	bl	WRITE_RADIO_REG2
	ldr	r0, [r4]
	bl	CHSPEC_IS2G
	cmp	r0, #0
	ldr	r3, [r5, #16]
	lsl	r8, r9, #2
	bne	.L40
	ldr	r2, .L41+60
	ldr	r1, [r3, r9, lsl #2]
	ldr	r2, [r2]
	str	r1, [sp, #4]
	str	r2, [sp]
	ldr	r2, .L41+52
	mov	r3, r9
	ldr	r2, [r2]
	mov	r0, r4
	ldr	r1, [r7]
	bl	WRITE_RADIO_REG2
	ldr	r3, [r5, #12]
	ldr	r2, .L41+64
	b	.L37
.L22:
	ldr	r2, [r5]
	mov	r0, r4
	asr	r1, r2, #8
	and	r1, r1, #255
	and	r2, r2, #255
	bl	wlc_phy_ipa_set_bbmult_nphy
	mov	r3, #1
	mov	r0, r4
	str	r3, [sp]
	mov	r2, #0
	mov	r3, #3
	mov	r1, #8
	bl	wlc_phy_rfctrl_override_nphy
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L42:
	.align	2
.L41:
	.word	TX
	.word	RADIO_2057
	.word	TXRXCOUPLE_5G_PWRUP
	.word	TXRXCOUPLE_5G_ATTEN
	.word	TXRXCOUPLE_2G_PWRUP
	.word	TXRXCOUPLE_2G_ATTEN
	.word	NPHY_REV7_RFCTRLOVERRIDE_ID0
	.word	NPHY_REV7_RFCTRLOVERRIDE_ID1
	.word	NPHY_REV7_RFCTRLOVERRIDE_ID2
	.word	PHY_CORE_0
	.word	RADIO_2056
	.word	VGA_MASTER
	.word	TXFBMIX_G
	.word	RX
	.word	INTPAG_MASTER
	.word	TXFBMIX_A
	.word	INTPAA_MASTER
	.size	wlc_phy_papd_cal_cleanup_nphy, .-wlc_phy_papd_cal_cleanup_nphy
	.comm	VGA_MASTER,4,4
	.comm	TXRXCOUPLE_5G_PWRUP,4,4
	.comm	TXRXCOUPLE_5G_ATTEN,4,4
	.comm	TXRXCOUPLE_2G_PWRUP,4,4
	.comm	TXRXCOUPLE_2G_ATTEN,4,4
	.comm	TXFBMIX_G,4,4
	.comm	TXFBMIX_A,4,4
	.comm	TX,4,4
	.comm	RX,4,4
	.comm	RADIO_2057,4,4
	.comm	RADIO_2056,4,4
	.comm	PHY_CORE_0,4,4
	.comm	NPHY_REV7_RFCTRLOVERRIDE_ID2,4,4
	.comm	NPHY_REV7_RFCTRLOVERRIDE_ID1,4,4
	.comm	NPHY_REV7_RFCTRLOVERRIDE_ID0,4,4
	.comm	INTPAG_MASTER,4,4
	.comm	INTPAA_MASTER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
