	.file	"extr_bnx2x_cmn.c_bnx2x_set_features.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bnx2x_set_features
	.type	bnx2x_set_features, @function
bnx2x_set_features:
.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
	mov	r12d, esi
	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
	call	netdev_priv@PLT
	mov	r13d, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR 16[rax]
	mov	rbx, rax
	xor	r13d, r12d
	call	pci_num_vf@PLT
	test	eax, eax
	jne	.L13
	mov	rax, QWORD PTR 8[rbx]
	test	DWORD PTR NETIF_F_LOOPBACK[rip], r12d
	je	.L5
	mov	rdx, QWORD PTR LOOPBACK_BMAC[rip]
	cmp	rdx, rax
	je	.L13
.L15:
	mov	QWORD PTR 8[rbx], rdx
	mov	rax, QWORD PTR BNX2X_RECOVERY_DONE[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L18
.L7:
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L5:
	.cfi_restore_state
	mov	rdx, QWORD PTR LOOPBACK_NONE[rip]
	cmp	rdx, rax
	jne	.L15
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR NETIF_F_GRO[rip]
	not	eax
	test	eax, r13d
	je	.L7
	mov	rax, QWORD PTR BNX2X_RECOVERY_DONE[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L7
.L18:
	mov	DWORD PTR 0[rbp], r12d
	mov	rdi, rbp
	call	bnx2x_reload_if_running@PLT
	mov	edx, 1
	test	eax, eax
	cmove	eax, edx
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	bnx2x_set_features, .-bnx2x_set_features
	.comm	NETIF_F_LOOPBACK,4,4
	.comm	NETIF_F_GRO,4,4
	.comm	LOOPBACK_NONE,8,8
	.comm	LOOPBACK_BMAC,8,8
	.comm	BNX2X_RECOVERY_DONE,8,8
	.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_bnx2x_cmn.c_bnx2x_set_features.c"
	.text
	.align	2
	.global	bnx2x_set_features
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2x_set_features, %function
bnx2x_set_features:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r5, r1
	bl	netdev_priv
	ldr	r3, [r6]
	mov	r4, r0
	ldr	r0, [r0, #8]
	eor	r7, r5, r3
	bl	pci_num_vf
	cmp	r0, #0
	bne	.L13
	ldr	r2, .L18
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	tst	r5, r2
	beq	.L5
	ldr	r2, .L18+4
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L13
.L15:
	str	r2, [r4, #4]
.L3:
	ldr	r3, .L18+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L17
.L7:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r2, .L18+12
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L15
.L13:
	ldr	r3, .L18+16
	ldr	r3, [r3]
	bics	r3, r7, r3
	bne	.L3
	b	.L7
.L17:
	mov	r0, r6
	str	r5, [r6]
	bl	bnx2x_reload_if_running
	cmp	r0, #0
	moveq	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	.align	2
.L18:
	.word	NETIF_F_LOOPBACK
	.word	LOOPBACK_BMAC
	.word	BNX2X_RECOVERY_DONE
	.word	LOOPBACK_NONE
	.word	NETIF_F_GRO
	.size	bnx2x_set_features, .-bnx2x_set_features
	.comm	NETIF_F_LOOPBACK,4,4
	.comm	NETIF_F_GRO,4,4
	.comm	LOOPBACK_NONE,4,4
	.comm	LOOPBACK_BMAC,4,4
	.comm	BNX2X_RECOVERY_DONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
