	.file	"extr_phy_lcn.c_wlc_lcnphy_tx_pwr_update_npt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	wlc_lcnphy_tx_pwr_update_npt
	.type	wlc_lcnphy_tx_pwr_update_npt, @function
wlc_lcnphy_tx_pwr_update_npt:
.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
	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
	mov	r13, QWORD PTR [rdi]
	call	wlc_lcnphy_total_tx_frames@PLT
	mov	rdi, rbp
	mov	r14d, eax
	mov	r12d, eax
	sub	r14d, DWORD PTR 0[r13]
	call	wlc_lcnphy_get_tx_pwr_npt@PLT
	mov	ebx, eax
	mov	eax, 1
	mov	ecx, ebx
	sal	eax, cl
	cmp	eax, r14d
	jl	.L5
	pop	rbx
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	DWORD PTR 0[r13], r12d
	mov	rdi, rbp
	call	wlc_lcnphy_get_current_tx_pwr_idx@PLT
	mov	DWORD PTR 4[r13], ebx
	mov	DWORD PTR 8[r13], eax
	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_lcnphy_tx_pwr_update_npt, .-wlc_lcnphy_tx_pwr_update_npt
	.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_lcn.c_wlc_lcnphy_tx_pwr_update_npt.c"
	.text
	.align	2
	.global	wlc_lcnphy_tx_pwr_update_npt
	.syntax unified
	.arm
	.fpu softvfp
	.type	wlc_lcnphy_tx_pwr_update_npt, %function
wlc_lcnphy_tx_pwr_update_npt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r8, [r0]
	bl	wlc_lcnphy_total_tx_frames
	mov	r6, r0
	mov	r0, r4
	ldr	r7, [r8]
	bl	wlc_lcnphy_get_tx_pwr_npt
	mov	r3, #1
	sub	r7, r6, r7
	cmp	r7, r3, lsl r0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r5, r0
	str	r6, [r8]
	mov	r0, r4
	bl	wlc_lcnphy_get_current_tx_pwr_idx
	str	r5, [r8, #4]
	str	r0, [r8, #8]
	pop	{r4, r5, r6, r7, r8, pc}
	.size	wlc_lcnphy_tx_pwr_update_npt, .-wlc_lcnphy_tx_pwr_update_npt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
