	.file	"extr_bnxt.c_bnxt_shutdown.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnxt_shutdown, @function
bnxt_shutdown:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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	pci_get_drvdata@PLT
	test	rax, rax
	je	.L1
	mov	rbp, rax
	xor	eax, eax
	call	rtnl_lock@PLT
	mov	rdi, rbp
	call	netdev_priv@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L4
	mov	rdi, rbp
	call	netif_running@PLT
	test	rax, rax
	jne	.L12
.L5:
	mov	rdi, rbx
	call	bnxt_ulp_shutdown@PLT
	mov	rax, QWORD PTR SYSTEM_POWER_OFF[rip]
	cmp	QWORD PTR system_state[rip], rax
	je	.L13
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	rtnl_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	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
.L13:
	.cfi_restore_state
	mov	rdi, rbx
	call	bnxt_clear_int_mode@PLT
	mov	rdi, r12
	call	pci_disable_device@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r12
	call	pci_wake_from_d3@PLT
	mov	esi, DWORD PTR PCI_D3hot[rip]
	mov	rdi, r12
	call	pci_set_power_state@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, rbp
	call	dev_close@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	bnxt_shutdown, .-bnxt_shutdown
	.comm	system_state,8,8
	.comm	SYSTEM_POWER_OFF,8,8
	.comm	PCI_D3hot,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_bnxt.c_bnxt_shutdown.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnxt_shutdown, %function
bnxt_shutdown:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	bl	pci_get_drvdata
	subs	r4, r0, #0
	popeq	{r4, r5, r6, pc}
	bl	rtnl_lock
	mov	r0, r4
	bl	netdev_priv
	subs	r5, r0, #0
	beq	.L4
	mov	r0, r4
	bl	netif_running
	cmp	r0, #0
	bne	.L12
.L5:
	mov	r0, r5
	bl	bnxt_ulp_shutdown
	ldr	r2, .L14
	ldr	r3, .L14+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L13
.L4:
	pop	{r4, r5, r6, lr}
	b	rtnl_unlock
.L13:
	mov	r0, r5
	bl	bnxt_clear_int_mode
	mov	r0, r6
	bl	pci_disable_device
	ldr	r1, [r5]
	mov	r0, r6
	bl	pci_wake_from_d3
	ldr	r3, .L14+8
	mov	r0, r6
	ldr	r1, [r3]
	bl	pci_set_power_state
	b	.L4
.L12:
	mov	r0, r4
	bl	dev_close
	b	.L5
.L15:
	.align	2
.L14:
	.word	system_state
	.word	SYSTEM_POWER_OFF
	.word	PCI_D3hot
	.size	bnxt_shutdown, .-bnxt_shutdown
	.comm	system_state,4,4
	.comm	SYSTEM_POWER_OFF,4,4
	.comm	PCI_D3hot,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
