	.file	"extr_phy_n.c_b43_nphy_workarounds.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b43_nphy_workarounds, @function
b43_nphy_workarounds:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR 16[rdi]
	call	b43_current_band@PLT
	cmp	rax, QWORD PTR IEEE80211_BAND_5GHZ[rip]
	je	.L11
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rbp
	call	b43_nphy_classifier@PLT
	cmp	QWORD PTR [rbx], 0
	jne	.L12
.L4:
	mov	esi, DWORD PTR B43_NPHY_IQFLIP[rip]
	mov	edx, DWORD PTR B43_NPHY_IQFLIP_ADC1[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR B43_NPHY_IQFLIP_ADC2[rip]
	call	b43_phy_set@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	rdi, rbp
	cmp	eax, 6
	jg	.L13
	cmp	eax, 2
	jg	.L14
	call	b43_nphy_workarounds_rev1_2@PLT
.L6:
	cmp	QWORD PTR [rbx], 0
	jne	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	call	b43_nphy_workarounds_rev3plus@PLT
	cmp	QWORD PTR [rbx], 0
	je	.L1
.L15:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	b43_nphy_stay_in_carrier_search@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	xor	edx, edx
	mov	esi, 1
	mov	rdi, rbp
	call	b43_nphy_classifier@PLT
	cmp	QWORD PTR [rbx], 0
	je	.L4
.L12:
	mov	esi, 1
	mov	rdi, rbp
	call	b43_nphy_stay_in_carrier_search@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	call	b43_nphy_workarounds_rev7plus@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	b43_nphy_workarounds, .-b43_nphy_workarounds
	.comm	IEEE80211_BAND_5GHZ,8,8
	.comm	B43_NPHY_IQFLIP_ADC2,4,4
	.comm	B43_NPHY_IQFLIP_ADC1,4,4
	.comm	B43_NPHY_IQFLIP,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_n.c_b43_nphy_workarounds.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43_nphy_workarounds, %function
b43_nphy_workarounds:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #8]
	ldr	r5, [r4, #4]
	bl	b43_current_band
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r0, r3
	movne	r2, #1
	moveq	r2, #0
	moveq	r1, #1
	moveq	r0, r4
	movne	r0, r4
	movne	r1, r2
	bl	b43_nphy_classifier
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L14
.L4:
	ldr	r2, .L17+4
	ldr	r3, .L17+8
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L17+12
	orr	r2, r1, r2
	mov	r0, r4
	ldr	r1, [r3]
	bl	b43_phy_set
	ldr	r3, [r4]
	mov	r0, r4
	cmp	r3, #6
	bgt	.L15
	cmp	r3, #2
	bgt	.L16
	bl	b43_nphy_workarounds_rev1_2
.L6:
	ldr	r3, [r5]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	mov	r1, #0
	b	b43_nphy_stay_in_carrier_search
.L16:
	bl	b43_nphy_workarounds_rev3plus
	b	.L6
.L15:
	bl	b43_nphy_workarounds_rev7plus
	b	.L6
.L14:
	mov	r1, #1
	mov	r0, r4
	bl	b43_nphy_stay_in_carrier_search
	b	.L4
.L18:
	.align	2
.L17:
	.word	IEEE80211_BAND_5GHZ
	.word	B43_NPHY_IQFLIP_ADC1
	.word	B43_NPHY_IQFLIP_ADC2
	.word	B43_NPHY_IQFLIP
	.size	b43_nphy_workarounds, .-b43_nphy_workarounds
	.comm	IEEE80211_BAND_5GHZ,4,4
	.comm	B43_NPHY_IQFLIP_ADC2,4,4
	.comm	B43_NPHY_IQFLIP_ADC1,4,4
	.comm	B43_NPHY_IQFLIP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
