	.file	"838076.c"
	.intel_syntax noprefix
	.text
	.globl	INTPAA_MASTER
	.bss
	.align 4
	.type	INTPAA_MASTER, @object
	.size	INTPAA_MASTER, 4
INTPAA_MASTER:
	.zero	4
	.globl	INTPAG_MASTER
	.align 4
	.type	INTPAG_MASTER, @object
	.size	INTPAG_MASTER, 4
INTPAG_MASTER:
	.zero	4
	.globl	NPHY_REV7_RFCTRLOVERRIDE_ID0
	.align 4
	.type	NPHY_REV7_RFCTRLOVERRIDE_ID0, @object
	.size	NPHY_REV7_RFCTRLOVERRIDE_ID0, 4
NPHY_REV7_RFCTRLOVERRIDE_ID0:
	.zero	4
	.globl	NPHY_REV7_RFCTRLOVERRIDE_ID1
	.align 4
	.type	NPHY_REV7_RFCTRLOVERRIDE_ID1, @object
	.size	NPHY_REV7_RFCTRLOVERRIDE_ID1, 4
NPHY_REV7_RFCTRLOVERRIDE_ID1:
	.zero	4
	.globl	NPHY_REV7_RFCTRLOVERRIDE_ID2
	.align 4
	.type	NPHY_REV7_RFCTRLOVERRIDE_ID2, @object
	.size	NPHY_REV7_RFCTRLOVERRIDE_ID2, 4
NPHY_REV7_RFCTRLOVERRIDE_ID2:
	.zero	4
	.globl	PHY_CORE_0
	.align 8
	.type	PHY_CORE_0, @object
	.size	PHY_CORE_0, 8
PHY_CORE_0:
	.zero	8
	.globl	RADIO_2056
	.align 4
	.type	RADIO_2056, @object
	.size	RADIO_2056, 4
RADIO_2056:
	.zero	4
	.globl	RADIO_2057
	.align 4
	.type	RADIO_2057, @object
	.size	RADIO_2057, 4
RADIO_2057:
	.zero	4
	.globl	RX
	.align 4
	.type	RX, @object
	.size	RX, 4
RX:
	.zero	4
	.globl	TX
	.align 4
	.type	TX, @object
	.size	TX, 4
TX:
	.zero	4
	.globl	TXFBMIX_A
	.align 4
	.type	TXFBMIX_A, @object
	.size	TXFBMIX_A, 4
TXFBMIX_A:
	.zero	4
	.globl	TXFBMIX_G
	.align 4
	.type	TXFBMIX_G, @object
	.size	TXFBMIX_G, 4
TXFBMIX_G:
	.zero	4
	.globl	TXRXCOUPLE_2G_ATTEN
	.align 4
	.type	TXRXCOUPLE_2G_ATTEN, @object
	.size	TXRXCOUPLE_2G_ATTEN, 4
TXRXCOUPLE_2G_ATTEN:
	.zero	4
	.globl	TXRXCOUPLE_2G_PWRUP
	.align 4
	.type	TXRXCOUPLE_2G_PWRUP, @object
	.size	TXRXCOUPLE_2G_PWRUP, 4
TXRXCOUPLE_2G_PWRUP:
	.zero	4
	.globl	TXRXCOUPLE_5G_ATTEN
	.align 4
	.type	TXRXCOUPLE_5G_ATTEN, @object
	.size	TXRXCOUPLE_5G_ATTEN, 4
TXRXCOUPLE_5G_ATTEN:
	.zero	4
	.globl	TXRXCOUPLE_5G_PWRUP
	.align 4
	.type	TXRXCOUPLE_5G_PWRUP, @object
	.size	TXRXCOUPLE_5G_PWRUP, 4
TXRXCOUPLE_5G_PWRUP:
	.zero	4
	.globl	VGA_MASTER
	.align 4
	.type	VGA_MASTER, @object
	.size	VGA_MASTER, 4
VGA_MASTER:
	.zero	4
	.text
	.type	wlc_phy_papd_cal_cleanup_nphy, @function
wlc_phy_papd_cal_cleanup_nphy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	wlc_phy_stopplayback_nphy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	esi, 7
	mov	edi, eax
	call	NREV_GE@PLT
	test	rax, rax
	je	.L2
	mov	QWORD PTR -8[rbp], 0
	jmp	.L3
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	CHSPEC_IS2G@PLT
	test	rax, rax
	je	.L4
	mov	edi, DWORD PTR TXRXCOUPLE_2G_PWRUP[rip]
	mov	edx, DWORD PTR TX[rip]
	mov	esi, DWORD PTR RADIO_2057[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, 0
	mov	r8d, edi
	mov	rdi, rax
	call	WRITE_RADIO_REG3@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	r8d, DWORD PTR [rax]
	mov	edi, DWORD PTR TXRXCOUPLE_2G_ATTEN[rip]
	mov	edx, DWORD PTR TX[rip]
	mov	esi, DWORD PTR RADIO_2057[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	WRITE_RADIO_REG3@PLT
	jmp	.L5
.L4:
	mov	edi, DWORD PTR TXRXCOUPLE_5G_PWRUP[rip]
	mov	edx, DWORD PTR TX[rip]
	mov	esi, DWORD PTR RADIO_2057[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, 0
	mov	r8d, edi
	mov	rdi, rax
	call	WRITE_RADIO_REG3@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	r8d, DWORD PTR [rax]
	mov	edi, DWORD PTR TXRXCOUPLE_5G_ATTEN[rip]
	mov	edx, DWORD PTR TX[rip]
	mov	esi, DWORD PTR RADIO_2057[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	WRITE_RADIO_REG3@PLT
.L5:
	add	QWORD PTR -8[rbp], 1
.L3:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L6
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 4
	je	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 6
	jne	.L8
.L7:
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID0[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 0
	mov	ecx, 3
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	jmp	.L9
.L8:
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID0[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 4
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
.L9:
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 2
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID2[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID2[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 4
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 1
	mov	esi, 2048
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID0[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 8
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID0[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 2048
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID0[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 4096
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID2[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 256
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 1
	mov	esi, 512
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 1024
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 32
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 16
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	mov	QWORD PTR -8[rbp], 0
	jmp	.L10
.L15:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR PHY_CORE_0[rip]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L11
	mov	ecx, 166
	jmp	.L12
.L11:
	mov	ecx, 167
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	write_phy_reg@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR PHY_CORE_0[rip]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L13
	mov	ecx, 143
	jmp	.L14
.L13:
	mov	ecx, 165
.L14:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	write_phy_reg@PLT
	add	QWORD PTR -8[rbp], 1
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L15
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	sar	eax, 8
	movzx	ecx, al
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wlc_phy_ipa_set_bbmult_nphy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	esi, 7
	mov	edi, eax
	call	NREV_IS@PLT
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	esi, 8
	mov	edi, eax
	call	NREV_GE@PLT
	test	rax, rax
	je	.L26
.L16:
	mov	edx, DWORD PTR NPHY_REV7_RFCTRLOVERRIDE_ID1[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edx
	mov	r8d, 1
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 128
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy_rev7@PLT
	jmp	.L26
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 4096
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 8192
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 4
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 2
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy@PLT
	mov	QWORD PTR -8[rbp], 0
	jmp	.L18
.L25:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	r8d, DWORD PTR [rax]
	mov	edi, DWORD PTR VGA_MASTER[rip]
	mov	edx, DWORD PTR RX[rip]
	mov	esi, DWORD PTR RADIO_2056[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	WRITE_RADIO_REG2@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	CHSPEC_IS2G@PLT
	test	rax, rax
	je	.L19
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	r8d, DWORD PTR [rax]
	mov	edi, DWORD PTR TXFBMIX_G[rip]
	mov	edx, DWORD PTR RX[rip]
	mov	esi, DWORD PTR RADIO_2056[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	WRITE_RADIO_REG2@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	r8d, DWORD PTR [rax]
	mov	edi, DWORD PTR INTPAG_MASTER[rip]
	mov	edx, DWORD PTR TX[rip]
	mov	esi, DWORD PTR RADIO_2056[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	WRITE_RADIO_REG2@PLT
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	r8d, DWORD PTR [rax]
	mov	edi, DWORD PTR TXFBMIX_A[rip]
	mov	edx, DWORD PTR RX[rip]
	mov	esi, DWORD PTR RADIO_2056[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	WRITE_RADIO_REG2@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	r8d, DWORD PTR [rax]
	mov	edi, DWORD PTR INTPAA_MASTER[rip]
	mov	edx, DWORD PTR TX[rip]
	mov	esi, DWORD PTR RADIO_2056[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	WRITE_RADIO_REG2@PLT
.L20:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR PHY_CORE_0[rip]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L21
	mov	ecx, 166
	jmp	.L22
.L21:
	mov	ecx, 167
.L22:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	write_phy_reg@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR PHY_CORE_0[rip]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L23
	mov	ecx, 143
	jmp	.L24
.L23:
	mov	ecx, 165
.L24:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	write_phy_reg@PLT
	add	QWORD PTR -8[rbp], 1
.L18:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L25
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	sar	eax, 8
	movzx	ecx, al
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wlc_phy_ipa_set_bbmult_nphy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, 1
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 8
	mov	rdi, rax
	call	wlc_phy_rfctrl_override_nphy@PLT
.L26:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	wlc_phy_papd_cal_cleanup_nphy, .-wlc_phy_papd_cal_cleanup_nphy
	.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	"838076.c"
	.text
	.comm	INTPAA_MASTER,4,4
	.comm	INTPAG_MASTER,4,4
	.comm	NPHY_REV7_RFCTRLOVERRIDE_ID0,4,4
	.comm	NPHY_REV7_RFCTRLOVERRIDE_ID1,4,4
	.comm	NPHY_REV7_RFCTRLOVERRIDE_ID2,4,4
	.comm	PHY_CORE_0,4,4
	.comm	RADIO_2056,4,4
	.comm	RADIO_2057,4,4
	.comm	RX,4,4
	.comm	TX,4,4
	.comm	TXFBMIX_A,4,4
	.comm	TXFBMIX_G,4,4
	.comm	TXRXCOUPLE_2G_ATTEN,4,4
	.comm	TXRXCOUPLE_2G_PWRUP,4,4
	.comm	TXRXCOUPLE_5G_ATTEN,4,4
	.comm	TXRXCOUPLE_5G_PWRUP,4,4
	.comm	VGA_MASTER,4,4
	.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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	wlc_phy_stopplayback_nphy
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r1, #7
	mov	r0, r3
	bl	NREV_GE
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L3
.L6:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	CHSPEC_IS2G
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L27
	ldr	r1, [r3]
	ldr	r3, .L27+4
	ldr	r2, [r3]
	ldr	r3, .L27+8
	ldr	r3, [r3]
	mov	r0, #0
	str	r0, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	WRITE_RADIO_REG3
	ldr	r3, .L27
	ldr	r0, [r3]
	ldr	r3, .L27+4
	ldr	ip, [r3]
	ldr	r3, .L27+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [r2, #24]
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	mov	r2, ip
	mov	r1, r0
	ldr	r0, [fp, #-16]
	bl	WRITE_RADIO_REG3
	b	.L5
.L4:
	ldr	r3, .L27
	ldr	r1, [r3]
	ldr	r3, .L27+4
	ldr	r2, [r3]
	ldr	r3, .L27+16
	ldr	r3, [r3]
	mov	r0, #0
	str	r0, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	WRITE_RADIO_REG3
	ldr	r3, .L27
	ldr	r0, [r3]
	ldr	r3, .L27+4
	ldr	ip, [r3]
	ldr	r3, .L27+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [r2, #24]
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	mov	r2, ip
	mov	r1, r0
	ldr	r0, [fp, #-16]
	bl	WRITE_RADIO_REG3
.L5:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L6
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #4
	beq	.L7
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #6
	bne	.L8
.L7:
	ldr	r3, .L27+24
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #1
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	b	.L9
.L8:
	ldr	r3, .L27+24
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
.L9:
	ldr	r3, .L27+28
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #2
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+32
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+32
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+28
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #1
	mov	r1, #2048
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+24
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #8
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+24
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #2048
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+24
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #4096
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+28
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #1
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+28
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+32
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #1
	mov	r1, #2
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+28
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #256
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+28
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #1
	mov	r1, #512
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+28
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #1024
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+28
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #1
	mov	r1, #8
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+28
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #32
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	ldr	r3, .L27+28
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #16
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L10
.L15:
	ldr	r3, .L27+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L11
	mov	r1, #166
	b	.L12
.L11:
	mov	r1, #167
.L12:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	write_phy_reg
	ldr	r3, .L27+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L13
	mov	r1, #143
	b	.L14
.L13:
	mov	r1, #165
.L14:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	write_phy_reg
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L15
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	asr	r3, r3, #8
	and	r1, r3, #255
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	and	r3, r3, #255
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	wlc_phy_ipa_set_bbmult_nphy
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r1, #7
	mov	r0, r3
	bl	NREV_IS
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r1, #8
	mov	r0, r3
	bl	NREV_GE
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
.L16:
	ldr	r3, .L27+28
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #128
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy_rev7
	b	.L26
.L2:
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #4096
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #8192
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #2
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L18
.L25:
	ldr	r3, .L27+40
	ldr	r0, [r3]
	ldr	r3, .L27+44
	ldr	ip, [r3]
	ldr	r3, .L27+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [r2, #20]
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	mov	r2, ip
	mov	r1, r0
	ldr	r0, [fp, #-16]
	bl	WRITE_RADIO_REG2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	CHSPEC_IS2G
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L27+40
	ldr	r0, [r3]
	ldr	r3, .L27+44
	ldr	ip, [r3]
	ldr	r3, .L27+52
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [r2, #16]
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	mov	r2, ip
	mov	r1, r0
	ldr	r0, [fp, #-16]
	bl	WRITE_RADIO_REG2
	ldr	r3, .L27+40
	ldr	r0, [r3]
	ldr	r3, .L27+4
	ldr	ip, [r3]
	ldr	r3, .L27+56
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [r2, #12]
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	mov	r2, ip
	mov	r1, r0
	ldr	r0, [fp, #-16]
	bl	WRITE_RADIO_REG2
	b	.L20
.L19:
	ldr	r3, .L27+40
	ldr	r0, [r3]
	ldr	r3, .L27+44
	ldr	ip, [r3]
	ldr	r3, .L27+60
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [r2, #16]
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	mov	r2, ip
	mov	r1, r0
	ldr	r0, [fp, #-16]
	bl	WRITE_RADIO_REG2
	ldr	r3, .L27+40
	ldr	r0, [r3]
	ldr	r3, .L27+4
	ldr	ip, [r3]
	ldr	r3, .L27+64
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [r2, #12]
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	mov	r2, ip
	mov	r1, r0
	ldr	r0, [fp, #-16]
	bl	WRITE_RADIO_REG2
.L20:
	ldr	r3, .L27+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L21
	mov	r1, #166
	b	.L22
.L21:
	mov	r1, #167
.L22:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	write_phy_reg
	ldr	r3, .L27+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L23
	mov	r1, #143
	b	.L24
.L23:
	mov	r1, #165
.L24:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	write_phy_reg
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L25
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	asr	r3, r3, #8
	and	r1, r3, #255
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	and	r3, r3, #255
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	wlc_phy_ipa_set_bbmult_nphy
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #8
	ldr	r0, [fp, #-16]
	bl	wlc_phy_rfctrl_override_nphy
.L26:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	RADIO_2057
	.word	TX
	.word	TXRXCOUPLE_2G_PWRUP
	.word	TXRXCOUPLE_2G_ATTEN
	.word	TXRXCOUPLE_5G_PWRUP
	.word	TXRXCOUPLE_5G_ATTEN
	.word	NPHY_REV7_RFCTRLOVERRIDE_ID0
	.word	NPHY_REV7_RFCTRLOVERRIDE_ID1
	.word	NPHY_REV7_RFCTRLOVERRIDE_ID2
	.word	PHY_CORE_0
	.word	RADIO_2056
	.word	RX
	.word	VGA_MASTER
	.word	TXFBMIX_G
	.word	INTPAG_MASTER
	.word	TXFBMIX_A
	.word	INTPAA_MASTER
	.size	wlc_phy_papd_cal_cleanup_nphy, .-wlc_phy_papd_cal_cleanup_nphy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
