	.file	"extr_bnx2x_main.c_bnx2x_eeh_nic_unload.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnx2x_eeh_nic_unload, @function
bnx2x_eeh_nic_unload:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR BNX2X_STATE_CLOSING_WAIT4_HALT[rip]
	mov	DWORD PTR 28[rdi], eax
	mov	eax, DWORD PTR BNX2X_RX_MODE_NONE[rip]
	mov	DWORD PTR 24[rdi], eax
	call	CNIC_LOADED@PLT
	test	rax, rax
	jne	.L12
.L2:
	mov	rdi, rbx
	call	bnx2x_tx_disable@PLT
	mov	rdi, rbx
	call	bnx2x_del_all_napi@PLT
	mov	rdi, rbx
	call	CNIC_LOADED@PLT
	test	rax, rax
	jne	.L13
.L3:
	mov	edi, DWORD PTR [rbx]
	lea	rbp, 4[rbx]
	call	netdev_reset_tc@PLT
	lea	rdi, 20[rbx]
	call	del_timer_sync@PLT
	lea	rdi, 16[rbx]
	call	cancel_delayed_work@PLT
	lea	rdi, 12[rbx]
	call	cancel_delayed_work@PLT
	mov	rdi, rbp
	call	spin_lock_bh@PLT
	mov	eax, DWORD PTR STATS_STATE_DISABLED[rip]
	mov	rdi, rbp
	mov	DWORD PTR 8[rbx], eax
	call	spin_unlock_bh@PLT
	mov	rdi, rbx
	call	bnx2x_save_statistics@PLT
	mov	edi, DWORD PTR [rbx]
	call	netif_carrier_off@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR CNIC_CTL_STOP_CMD[rip]
	mov	rdi, rbx
	call	bnx2x_cnic_notify@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbx
	call	bnx2x_del_all_napi_cnic@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	bnx2x_eeh_nic_unload, .-bnx2x_eeh_nic_unload
	.comm	STATS_STATE_DISABLED,4,4
	.comm	CNIC_CTL_STOP_CMD,4,4
	.comm	BNX2X_STATE_CLOSING_WAIT4_HALT,4,4
	.comm	BNX2X_RX_MODE_NONE,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_bnx2x_main.c_bnx2x_eeh_nic_unload.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2x_eeh_nic_unload, %function
bnx2x_eeh_nic_unload:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L14
	ldr	r3, .L14+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	str	r2, [r0, #28]
	str	r3, [r0, #24]
	mov	r4, r0
	bl	CNIC_LOADED
	cmp	r0, #0
	bne	.L12
.L2:
	mov	r0, r4
	bl	bnx2x_tx_disable
	mov	r0, r4
	bl	bnx2x_del_all_napi
	mov	r0, r4
	bl	CNIC_LOADED
	cmp	r0, #0
	bne	.L13
.L3:
	mov	r5, r4
	ldr	r0, [r5], #20
	bl	netdev_reset_tc
	mov	r0, r5
	bl	del_timer_sync
	add	r0, r4, #16
	bl	cancel_delayed_work
	add	r5, r4, #4
	add	r0, r4, #12
	bl	cancel_delayed_work
	mov	r0, r5
	bl	spin_lock_bh
	ldr	r3, .L14+8
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [r4, #8]
	bl	spin_unlock_bh
	mov	r0, r4
	bl	bnx2x_save_statistics
	ldr	r0, [r4]
	bl	netif_carrier_off
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L14+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	bnx2x_cnic_notify
	b	.L2
.L13:
	mov	r0, r4
	bl	bnx2x_del_all_napi_cnic
	b	.L3
.L15:
	.align	2
.L14:
	.word	BNX2X_STATE_CLOSING_WAIT4_HALT
	.word	BNX2X_RX_MODE_NONE
	.word	STATS_STATE_DISABLED
	.word	CNIC_CTL_STOP_CMD
	.size	bnx2x_eeh_nic_unload, .-bnx2x_eeh_nic_unload
	.comm	STATS_STATE_DISABLED,4,4
	.comm	CNIC_CTL_STOP_CMD,4,4
	.comm	BNX2X_STATE_CLOSING_WAIT4_HALT,4,4
	.comm	BNX2X_RX_MODE_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
