	.file	"extr_igb_main.c___igb_shutdown.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__igb_shutdown, @function
__igb_shutdown:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	pci_get_drvdata@PLT
	mov	rdi, rax
	mov	r12, rax
	call	netdev_priv@PLT
	mov	r13d, DWORD PTR E1000_WUFC_LNKC[rip]
	mov	rbp, rax
	test	r15d, r15d
	jne	.L3
	mov	r13d, DWORD PTR [rax]
.L3:
	xor	eax, eax
	call	rtnl_lock@PLT
	mov	rdi, r12
	call	netif_device_detach@PLT
	mov	rdi, r12
	call	netif_running@PLT
	test	rax, rax
	jne	.L25
.L4:
	mov	rdi, rbp
	call	igb_ptp_suspend@PLT
	mov	rdi, rbp
	call	igb_clear_interrupt_scheme@PLT
	xor	eax, eax
	call	rtnl_unlock@PLT
	mov	edi, DWORD PTR E1000_STATUS[rip]
	call	rd32@PLT
	test	DWORD PTR E1000_STATUS_LU[rip], eax
	je	.L5
	mov	eax, DWORD PTR E1000_WUFC_LNKC[rip]
	not	eax
	and	r13d, eax
.L5:
	test	r13d, r13d
	je	.L6
	mov	rdi, rbp
	call	igb_setup_rctl@PLT
	mov	rdi, r12
	call	igb_set_rx_mode@PLT
	test	DWORD PTR E1000_WUFC_MC[rip], r13d
	jne	.L26
.L7:
	mov	edi, DWORD PTR E1000_CTRL[rip]
	call	rd32@PLT
	mov	edi, DWORD PTR E1000_CTRL[rip]
	or	eax, DWORD PTR E1000_CTRL_ADVD3WUC[rip]
	mov	esi, eax
	call	wr32@PLT
	lea	rdi, 16[rbp]
	call	igb_disable_pcie_master@PLT
	mov	esi, DWORD PTR E1000_WUC_PME_EN[rip]
	mov	edi, DWORD PTR E1000_WUC[rip]
	call	wr32@PLT
	mov	edi, DWORD PTR E1000_WUFC[rip]
	mov	esi, r13d
	call	wr32@PLT
.L8:
	mov	rdi, rbp
	mov	r13d, 1
	call	igb_power_up_link@PLT
.L9:
	test	rbx, rbx
	je	.L10
	mov	DWORD PTR [rbx], r13d
.L10:
	mov	rdi, rbp
	call	igb_release_hw_control@PLT
	mov	rdi, r14
	call	pci_disable_device@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR E1000_WUC[rip]
	xor	esi, esi
	call	wr32@PLT
	mov	edi, DWORD PTR E1000_WUFC[rip]
	xor	esi, esi
	call	wr32@PLT
	cmp	QWORD PTR 8[rbp], 0
	jne	.L8
	mov	rdi, rbp
	call	igb_power_down_link@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, 1
	mov	rdi, r12
	call	__igb_close@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR E1000_RCTL[rip]
	call	rd32@PLT
	mov	edi, DWORD PTR E1000_RCTL[rip]
	or	eax, DWORD PTR E1000_RCTL_MPE[rip]
	mov	esi, eax
	call	wr32@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	__igb_shutdown, .-__igb_shutdown
	.comm	E1000_WUFC_MC,4,4
	.comm	E1000_WUFC_LNKC,4,4
	.comm	E1000_WUFC,4,4
	.comm	E1000_WUC_PME_EN,4,4
	.comm	E1000_WUC,4,4
	.comm	E1000_STATUS_LU,4,4
	.comm	E1000_STATUS,4,4
	.comm	E1000_RCTL_MPE,4,4
	.comm	E1000_RCTL,4,4
	.comm	E1000_CTRL_ADVD3WUC,4,4
	.comm	E1000_CTRL,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_igb_main.c___igb_shutdown.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__igb_shutdown, %function
__igb_shutdown:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	mov	r7, r1
	mov	r8, r0
	bl	pci_get_drvdata
	mov	r5, r0
	bl	netdev_priv
	cmp	r6, #0
	ldrne	r3, .L27
	ldreq	r6, [r0]
	ldrne	r6, [r3]
	mov	r4, r0
	bl	rtnl_lock
	mov	r0, r5
	bl	netif_device_detach
	mov	r0, r5
	bl	netif_running
	cmp	r0, #0
	bne	.L25
.L4:
	mov	r0, r4
	bl	igb_ptp_suspend
	mov	r0, r4
	bl	igb_clear_interrupt_scheme
	bl	rtnl_unlock
	ldr	r3, .L27+4
	ldr	r0, [r3]
	bl	rd32
	ldr	r3, .L27+8
	ldr	r3, [r3]
	tst	r0, r3
	ldrne	r3, .L27
	ldrne	r3, [r3]
	bicne	r6, r6, r3
	cmp	r6, #0
	beq	.L6
	mov	r0, r4
	bl	igb_setup_rctl
	mov	r0, r5
	bl	igb_set_rx_mode
	ldr	r3, .L27+12
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L26
.L7:
	ldr	r5, .L27+16
	ldr	r0, [r5]
	bl	rd32
	mov	r1, r0
	ldr	r3, .L27+20
	ldr	r0, [r5]
	ldr	r3, [r3]
	orr	r1, r1, r3
	bl	wr32
	add	r0, r4, #8
	bl	igb_disable_pcie_master
	ldr	r3, .L27+24
	ldr	r2, .L27+28
	ldr	r0, [r3]
	ldr	r1, [r2]
	bl	wr32
	ldr	r3, .L27+32
	mov	r1, r6
	ldr	r0, [r3]
	bl	wr32
.L8:
	mov	r0, r4
	bl	igb_power_up_link
	mov	r5, #1
.L9:
	cmp	r7, #0
	strne	r5, [r7]
	mov	r0, r4
	bl	igb_release_hw_control
	mov	r0, r8
	bl	pci_disable_device
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, .L27+24
	mov	r1, r6
	ldr	r0, [r3]
	bl	wr32
	ldr	r3, .L27+32
	mov	r1, r6
	ldr	r0, [r3]
	bl	wr32
	ldr	r5, [r4, #4]
	cmp	r5, #0
	bne	.L8
	mov	r0, r4
	bl	igb_power_down_link
	b	.L9
.L25:
	mov	r1, #1
	mov	r0, r5
	bl	__igb_close
	b	.L4
.L26:
	ldr	r5, .L27+36
	ldr	r0, [r5]
	bl	rd32
	mov	r1, r0
	ldr	r3, .L27+40
	ldr	r0, [r5]
	ldr	r3, [r3]
	orr	r1, r1, r3
	bl	wr32
	b	.L7
.L28:
	.align	2
.L27:
	.word	E1000_WUFC_LNKC
	.word	E1000_STATUS
	.word	E1000_STATUS_LU
	.word	E1000_WUFC_MC
	.word	E1000_CTRL
	.word	E1000_CTRL_ADVD3WUC
	.word	E1000_WUC
	.word	E1000_WUC_PME_EN
	.word	E1000_WUFC
	.word	E1000_RCTL
	.word	E1000_RCTL_MPE
	.size	__igb_shutdown, .-__igb_shutdown
	.comm	E1000_WUFC_MC,4,4
	.comm	E1000_WUFC_LNKC,4,4
	.comm	E1000_WUFC,4,4
	.comm	E1000_WUC_PME_EN,4,4
	.comm	E1000_WUC,4,4
	.comm	E1000_STATUS_LU,4,4
	.comm	E1000_STATUS,4,4
	.comm	E1000_RCTL_MPE,4,4
	.comm	E1000_RCTL,4,4
	.comm	E1000_CTRL_ADVD3WUC,4,4
	.comm	E1000_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
