	.file	"extr_phy_lp.c_lpphy_get_tx_gains.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lpphy_get_tx_gains, @function
lpphy_get_tx_gains:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, DWORD PTR B43_LPPHY_AFE_DAC_CTL[rip]
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	b43_phy_read@PLT
	mov	esi, DWORD PTR B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL[rip]
	mov	rdi, r12
	sar	eax, 7
	mov	ebx, eax
	and	ebx, 7
	cmp	DWORD PTR [r12], 1
	jle	.L6
	call	b43_phy_read@PLT
	mov	edi, 251
	mov	ebp, eax
	call	B43_PHY_OFDM@PLT
	mov	rdi, r12
	mov	esi, eax
	call	b43_phy_read@PLT
	movzx	esi, bpl
	movzx	edx, al
	mov	eax, ebp
	movzx	ecx, ah
.L3:
	mov	rax, rsi
	and	ebx, 7
	sal	rax, 32
	or	rbx, rax
	mov	rax, rdx
	movzx	edx, cl
	sal	rax, 32
	or	rdx, rax
	mov	rax, rbx
	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
.L6:
	.cfi_restore_state
	call	b43_phy_read@PLT
	mov	esi, eax
	and	eax, 2047
	mov	edx, eax
	sar	eax, 7
	and	esi, 7
	sar	edx, 3
	mov	ecx, edx
	mov	edx, eax
	and	ecx, 15
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	lpphy_get_tx_gains, .-lpphy_get_tx_gains
	.comm	B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL,4,4
	.comm	B43_LPPHY_AFE_DAC_CTL,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_get_tx_gains.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpphy_get_tx_gains, %function
lpphy_get_tx_gains:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L7
	mov	r6, r1
	mov	r4, r0
	mov	r0, r1
	ldr	r1, [r3]
	bl	b43_phy_read
	ldr	r3, [r6]
	asr	r7, r0, #7
	cmp	r3, #1
	ldr	r3, .L7+4
	mov	r0, r6
	ldr	r1, [r3]
	and	r7, r7, #7
	ble	.L6
	bl	b43_phy_read
	mov	r5, r0
	mov	r0, #251
	bl	B43_PHY_OFDM
	mov	r1, r0
	mov	r0, r6
	bl	b43_phy_read
	asr	r1, r5, #8
	and	r2, r0, #255
	and	r1, r1, #255
	and	r3, r5, #255
.L3:
	mov	r0, r4
	str	r7, [r4]
	str	r3, [r4, #4]
	str	r1, [r4, #8]
	str	r2, [r4, #12]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	bl	b43_phy_read
	lsl	r2, r0, #21
	lsr	r2, r2, #21
	asr	r1, r2, #3
	and	r3, r0, #7
	and	r1, r1, #15
	asr	r2, r2, #7
	b	.L3
.L8:
	.align	2
.L7:
	.word	B43_LPPHY_AFE_DAC_CTL
	.word	B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL
	.size	lpphy_get_tx_gains, .-lpphy_get_tx_gains
	.comm	B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL,4,4
	.comm	B43_LPPHY_AFE_DAC_CTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
