	.file	"extr_phy_lp.c_lpphy_set_tx_power_control.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lpphy_set_tx_power_control, @function
lpphy_set_tx_power_control:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 8[rdi]
	mov	ebx, esi
	call	lpphy_read_tx_pctl_mode_from_hardware@PLT
	mov	eax, DWORD PTR [r12]
	cmp	eax, ebx
	je	.L1
	mov	edx, DWORD PTR B43_LPPHY_TXPCTL_HW[rip]
	mov	DWORD PTR [r12], ebx
	cmp	edx, ebx
	jne	.L3
	cmp	eax, edx
	jne	.L14
.L3:
	cmp	DWORD PTR 0[rbp], 1
	jle	.L4
.L16:
	cmp	DWORD PTR B43_LPPHY_TXPCTL_HW[rip], ebx
	mov	edi, 208
	je	.L15
	call	B43_PHY_OFDM@PLT
	mov	edx, 65533
	mov	rdi, rbp
	mov	esi, eax
	call	b43_phy_mask@PLT
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	lpphy_write_tx_pctl_mode_to_hardware@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	ecx, DWORD PTR 4[r12]
	mov	esi, DWORD PTR B43_LPPHY_TX_PWR_CTL_CMD[rip]
	mov	edx, 65408
	mov	rdi, rbp
	call	b43_phy_maskset@PLT
	mov	ecx, DWORD PTR 16[r12]
	mov	edx, 36863
	mov	rdi, rbp
	mov	esi, DWORD PTR B43_LPPHY_TX_PWR_CTL_NNUM[rip]
	sal	ecx, 16
	call	b43_phy_maskset@PLT
	mov	rdi, rbp
	call	lpphy_disable_tx_gain_override@PLT
	cmp	DWORD PTR 0[rbp], 1
	mov	DWORD PTR 8[r12], -1
	jg	.L16
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	call	B43_PHY_OFDM@PLT
	mov	rdi, rbp
	mov	edx, 2
	mov	esi, eax
	call	b43_phy_set@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	lpphy_write_tx_pctl_mode_to_hardware@PLT
	.cfi_endproc
.LFE0:
	.size	lpphy_set_tx_power_control, .-lpphy_set_tx_power_control
	.comm	B43_LPPHY_TX_PWR_CTL_NNUM,4,4
	.comm	B43_LPPHY_TX_PWR_CTL_CMD,4,4
	.comm	B43_LPPHY_TXPCTL_HW,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_lp.c_lpphy_set_tx_power_control.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpphy_set_tx_power_control, %function
lpphy_set_tx_power_control:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r6, [r0, #4]
	mov	r4, r0
	bl	lpphy_read_tx_pctl_mode_from_hardware
	ldr	r3, [r6]
	cmp	r3, r5
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r7, .L13
	str	r5, [r6]
	ldr	r2, [r7]
	sub	r1, r2, r5
	clz	r1, r1
	cmp	r3, r2
	lsr	r1, r1, #5
	moveq	r1, #0
	cmp	r1, #0
	bne	.L11
.L3:
	ldr	r3, [r4]
	cmp	r3, #1
	ble	.L4
	ldr	r3, [r7]
	mov	r0, #208
	cmp	r3, r5
	beq	.L12
	bl	B43_PHY_OFDM
	ldr	r2, .L13+4
	mov	r1, r0
	mov	r0, r4
	bl	b43_phy_mask
.L4:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	lpphy_write_tx_pctl_mode_to_hardware
.L12:
	bl	B43_PHY_OFDM
	mov	r2, #2
	mov	r1, r0
	mov	r0, r4
	bl	b43_phy_set
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	lpphy_write_tx_pctl_mode_to_hardware
.L11:
	ldr	r2, .L13+8
	ldr	r3, [r6, #4]
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r2, .L13+12
	bl	b43_phy_maskset
	ldr	r3, [r6, #12]
	ldr	r2, .L13+16
	lsl	r3, r3, #16
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r2, .L13+20
	bl	b43_phy_maskset
	mov	r0, r4
	bl	lpphy_disable_tx_gain_override
	mvn	r3, #0
	str	r3, [r6, #8]
	b	.L3
.L14:
	.align	2
.L13:
	.word	B43_LPPHY_TXPCTL_HW
	.word	65533
	.word	B43_LPPHY_TX_PWR_CTL_CMD
	.word	65408
	.word	B43_LPPHY_TX_PWR_CTL_NNUM
	.word	36863
	.size	lpphy_set_tx_power_control, .-lpphy_set_tx_power_control
	.comm	B43_LPPHY_TX_PWR_CTL_NNUM,4,4
	.comm	B43_LPPHY_TX_PWR_CTL_CMD,4,4
	.comm	B43_LPPHY_TXPCTL_HW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
