	.file	"extr_lo.c_lo_measure_feedthrough.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lo_measure_feedthrough, @function
lo_measure_feedthrough:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR 16[rdi], 0
	je	.L2
	mov	edi, DWORD PTR B43_PHY_RFOVERVAL_LNA[rip]
	mov	r12d, ecx
	mov	ecx, DWORD PTR B43_PHY_RFOVERVAL_LNA_SHIFT[rip]
	mov	ebx, edx
	sal	esi, cl
	not	edi
	mov	ecx, DWORD PTR B43_PHY_RFOVERVAL_PGA_SHIFT[rip]
	and	edi, esi
	mov	r13d, esi
	sal	ebx, cl
	call	B43_WARN_ON@PLT
	mov	edi, DWORD PTR B43_PHY_RFOVERVAL_PGA[rip]
	not	edi
	and	edi, ebx
	call	B43_WARN_ON@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR B43_PHY_RFOVERVAL_TRSWRX[rip]
	or	edx, DWORD PTR B43_PHY_RFOVERVAL_BW[rip]
	mov	rax, QWORD PTR [rax]
	and	edx, r12d
	or	edx, DWORD PTR B43_PHY_RFOVERVAL_UNK[rip]
	or	edx, r13d
	mov	eax, DWORD PTR [rax]
	or	ebx, edx
	test	DWORD PTR B43_BFL_EXTLNA[rip], eax
	jne	.L10
.L3:
	mov	esi, DWORD PTR B43_PHY_PGACTL[rip]
	mov	edx, 58112
	mov	rdi, rbp
	call	b43_phy_write@PLT
	mov	esi, DWORD PTR B43_PHY_RFOVERVAL[rip]
	mov	edx, ebx
	mov	rdi, rbp
	call	b43_phy_write@PLT
	mov	edi, 10
	call	udelay@PLT
	mov	esi, DWORD PTR B43_PHY_RFOVERVAL[rip]
	or	ebx, DWORD PTR B43_PHY_RFOVERVAL_BW_LBW[rip]
	mov	rdi, rbp
	mov	edx, ebx
	call	b43_phy_write@PLT
	mov	edi, 10
	call	udelay@PLT
	mov	esi, DWORD PTR B43_PHY_RFOVERVAL[rip]
	or	ebx, DWORD PTR B43_PHY_RFOVERVAL_BW_LPF[rip]
	mov	rdi, rbp
	mov	edx, ebx
	call	b43_phy_write@PLT
	mov	edi, 10
	call	udelay@PLT
	mov	esi, DWORD PTR B43_PHY_PGACTL[rip]
	mov	edx, 62208
	mov	rdi, rbp
	call	b43_phy_write@PLT
.L4:
	mov	edi, 21
	call	udelay@PLT
	mov	esi, DWORD PTR B43_PHY_LO_LEAKAGE[rip]
	mov	rdi, rbp
	call	b43_phy_read@PLT
	mov	r12d, eax
	xor	eax, eax
	call	cond_resched@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	ebx, DWORD PTR B43_PHY_PGACTL_UNKNOWN[rip]
	mov	esi, DWORD PTR B43_PHY_PGACTL[rip]
	or	ebx, edx
	mov	edx, ebx
	call	b43_phy_write@PLT
	mov	edi, 10
	call	udelay@PLT
	or	ebx, DWORD PTR B43_PHY_PGACTL_LOWBANDW[rip]
	mov	esi, DWORD PTR B43_PHY_PGACTL[rip]
	mov	rdi, rbp
	mov	edx, ebx
	call	b43_phy_write@PLT
	mov	edi, 10
	call	udelay@PLT
	or	ebx, DWORD PTR B43_PHY_PGACTL_LPF[rip]
	mov	esi, DWORD PTR B43_PHY_PGACTL[rip]
	mov	rdi, rbp
	mov	edx, ebx
	call	b43_phy_write@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	DWORD PTR 8[rbp], 6
	jle	.L3
	or	ebx, DWORD PTR B43_PHY_RFOVERVAL_EXTLNA[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	lo_measure_feedthrough, .-lo_measure_feedthrough
	.comm	B43_PHY_RFOVERVAL_UNK,4,4
	.comm	B43_PHY_RFOVERVAL_TRSWRX,4,4
	.comm	B43_PHY_RFOVERVAL_PGA_SHIFT,4,4
	.comm	B43_PHY_RFOVERVAL_PGA,4,4
	.comm	B43_PHY_RFOVERVAL_LNA_SHIFT,4,4
	.comm	B43_PHY_RFOVERVAL_LNA,4,4
	.comm	B43_PHY_RFOVERVAL_EXTLNA,4,4
	.comm	B43_PHY_RFOVERVAL_BW_LPF,4,4
	.comm	B43_PHY_RFOVERVAL_BW_LBW,4,4
	.comm	B43_PHY_RFOVERVAL_BW,4,4
	.comm	B43_PHY_RFOVERVAL,4,4
	.comm	B43_PHY_PGACTL_UNKNOWN,4,4
	.comm	B43_PHY_PGACTL_LPF,4,4
	.comm	B43_PHY_PGACTL_LOWBANDW,4,4
	.comm	B43_PHY_PGACTL,4,4
	.comm	B43_PHY_LO_LEAKAGE,4,4
	.comm	B43_BFL_EXTLNA,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_lo.c_lo_measure_feedthrough.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lo_measure_feedthrough, %function
lo_measure_feedthrough:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0, #8]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	ip, #0
	mov	r5, r0
	beq	.L2
	mov	r7, r3
	ldr	r3, .L11
	ldr	r0, .L11+4
	ldr	r6, [r3]
	ldr	r3, .L11+8
	ldr	r0, [r0]
	lsl	r6, r1, r6
	ldr	r4, [r3]
	bic	r0, r6, r0
	lsl	r4, r2, r4
	bl	B43_WARN_ON
	ldr	r3, .L11+12
	ldr	r0, [r3]
	bic	r0, r4, r0
	bl	B43_WARN_ON
	ldr	r1, .L11+16
	ldr	r3, .L11+20
	ldr	r2, [r5]
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r1, .L11+24
	ldr	ip, [r2]
	ldr	r2, .L11+28
	ldr	r1, [r1]
	orr	r0, r0, r3
	and	r3, r0, r7
	ldr	r2, [r2]
	ldr	r0, [ip]
	orr	r3, r3, r1
	orr	r1, r3, r6
	tst	r0, r2
	orr	r4, r4, r1
	bne	.L10
.L3:
	ldr	r7, .L11+32
	ldr	r6, .L11+36
	mov	r2, #58112
	ldr	r1, [r7]
	mov	r0, r5
	bl	b43_phy_write
	mov	r2, r4
	ldr	r1, [r6]
	mov	r0, r5
	bl	b43_phy_write
	mov	r0, #10
	bl	udelay
	ldr	r3, .L11+40
	ldr	r1, [r6]
	ldr	r2, [r3]
	mov	r0, r5
	orr	r4, r4, r2
	mov	r2, r4
	bl	b43_phy_write
	mov	r0, #10
	bl	udelay
	ldr	r3, .L11+44
	ldr	r1, [r6]
	ldr	r2, [r3]
	mov	r0, r5
	orr	r2, r4, r2
	bl	b43_phy_write
	mov	r0, #10
	bl	udelay
	mov	r2, #62208
	mov	r0, r5
	ldr	r1, [r7]
	bl	b43_phy_write
.L4:
	mov	r0, #21
	bl	udelay
	ldr	r3, .L11+48
	mov	r0, r5
	ldr	r1, [r3]
	bl	b43_phy_read
	mov	r4, r0
	bl	cond_resched
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L11+52
	ldr	r6, .L11+32
	ldr	r4, [r3]
	ldr	r1, [r6]
	orr	r4, r2, r4
	mov	r2, r4
	bl	b43_phy_write
	mov	r0, #10
	bl	udelay
	ldr	r3, .L11+56
	ldr	r1, [r6]
	ldr	r2, [r3]
	mov	r0, r5
	orr	r4, r4, r2
	mov	r2, r4
	bl	b43_phy_write
	mov	r0, #10
	bl	udelay
	ldr	r3, .L11+60
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r1, [r6]
	orr	r2, r4, r2
	bl	b43_phy_write
	b	.L4
.L10:
	ldr	r3, [r5, #4]
	cmp	r3, #6
	ldrgt	r3, .L11+64
	ldrgt	r3, [r3]
	orrgt	r4, r4, r3
	b	.L3
.L12:
	.align	2
.L11:
	.word	B43_PHY_RFOVERVAL_LNA_SHIFT
	.word	B43_PHY_RFOVERVAL_LNA
	.word	B43_PHY_RFOVERVAL_PGA_SHIFT
	.word	B43_PHY_RFOVERVAL_PGA
	.word	B43_PHY_RFOVERVAL_TRSWRX
	.word	B43_PHY_RFOVERVAL_BW
	.word	B43_PHY_RFOVERVAL_UNK
	.word	B43_BFL_EXTLNA
	.word	B43_PHY_PGACTL
	.word	B43_PHY_RFOVERVAL
	.word	B43_PHY_RFOVERVAL_BW_LBW
	.word	B43_PHY_RFOVERVAL_BW_LPF
	.word	B43_PHY_LO_LEAKAGE
	.word	B43_PHY_PGACTL_UNKNOWN
	.word	B43_PHY_PGACTL_LOWBANDW
	.word	B43_PHY_PGACTL_LPF
	.word	B43_PHY_RFOVERVAL_EXTLNA
	.size	lo_measure_feedthrough, .-lo_measure_feedthrough
	.comm	B43_PHY_RFOVERVAL_UNK,4,4
	.comm	B43_PHY_RFOVERVAL_TRSWRX,4,4
	.comm	B43_PHY_RFOVERVAL_PGA_SHIFT,4,4
	.comm	B43_PHY_RFOVERVAL_PGA,4,4
	.comm	B43_PHY_RFOVERVAL_LNA_SHIFT,4,4
	.comm	B43_PHY_RFOVERVAL_LNA,4,4
	.comm	B43_PHY_RFOVERVAL_EXTLNA,4,4
	.comm	B43_PHY_RFOVERVAL_BW_LPF,4,4
	.comm	B43_PHY_RFOVERVAL_BW_LBW,4,4
	.comm	B43_PHY_RFOVERVAL_BW,4,4
	.comm	B43_PHY_RFOVERVAL,4,4
	.comm	B43_PHY_PGACTL_UNKNOWN,4,4
	.comm	B43_PHY_PGACTL_LPF,4,4
	.comm	B43_PHY_PGACTL_LOWBANDW,4,4
	.comm	B43_PHY_PGACTL,4,4
	.comm	B43_PHY_LO_LEAKAGE,4,4
	.comm	B43_BFL_EXTLNA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
