	.file	"extr_e100.c___e100_shutdown.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__e100_shutdown, @function
__e100_shutdown:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	pci_get_drvdata@PLT
	mov	rbp, rax
	mov	rdi, rax
	call	netdev_priv@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	netif_running@PLT
	test	rax, rax
	jne	.L11
.L2:
	mov	rdi, rbp
	call	netif_device_detach@PLT
	mov	rdi, r12
	call	pci_save_state@PLT
	mov	rdi, rbx
	mov	r14d, DWORD PTR [rbx]
	and	r14d, DWORD PTR wol_magic[rip]
	call	e100_asf@PLT
	or	r14d, eax
	je	.L3
	mov	rax, QWORD PTR phy_82552_v[rip]
	cmp	QWORD PTR 8[rbx], rax
	je	.L12
.L4:
	mov	DWORD PTR 0[r13], 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	pci_clear_master@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	DWORD PTR 0[r13], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	pci_clear_master@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rbx
	call	e100_down@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR 16[rbx]
	mov	edx, DWORD PTR E100_82552_SMARTSPEED[rip]
	mov	rdi, rbp
	call	mdio_read@PLT
	mov	ecx, DWORD PTR E100_82552_REV_ANEG[rip]
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rbp
	or	ecx, DWORD PTR E100_82552_ANEG_NOW[rip]
	mov	edx, DWORD PTR E100_82552_SMARTSPEED[rip]
	or	ecx, eax
	call	mdio_write@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	__e100_shutdown, .-__e100_shutdown
	.comm	wol_magic,4,4
	.comm	phy_82552_v,8,8
	.comm	E100_82552_SMARTSPEED,4,4
	.comm	E100_82552_REV_ANEG,4,4
	.comm	E100_82552_ANEG_NOW,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_e100.c___e100_shutdown.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__e100_shutdown, %function
__e100_shutdown:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r1
	mov	r7, r0
	bl	pci_get_drvdata
	mov	r6, r0
	bl	netdev_priv
	mov	r5, r0
	mov	r0, r6
	bl	netif_running
	cmp	r0, #0
	bne	.L11
.L2:
	mov	r0, r6
	bl	netif_device_detach
	mov	r0, r7
	bl	pci_save_state
	ldr	r3, .L13
	ldr	r4, [r5]
	ldr	r3, [r3]
	mov	r0, r5
	and	r4, r4, r3
	bl	e100_asf
	orrs	r4, r4, r0
	streq	r4, [r8]
	beq	.L5
	ldr	r3, .L13+4
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L12
.L4:
	mov	r3, #1
	str	r3, [r8]
.L5:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	pci_clear_master
.L11:
	mov	r0, r5
	bl	e100_down
	b	.L2
.L12:
	ldr	r4, .L13+8
	ldr	r1, [r5, #8]
	ldr	r2, [r4]
	mov	r0, r6
	bl	mdio_read
	mov	ip, r0
	ldr	r2, .L13+12
	ldr	r3, .L13+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r6
	orr	r3, r1, r3
	ldr	r2, [r4]
	ldr	r1, [r5, #8]
	orr	r3, r3, ip
	bl	mdio_write
	b	.L4
.L14:
	.align	2
.L13:
	.word	wol_magic
	.word	phy_82552_v
	.word	E100_82552_SMARTSPEED
	.word	E100_82552_REV_ANEG
	.word	E100_82552_ANEG_NOW
	.size	__e100_shutdown, .-__e100_shutdown
	.comm	wol_magic,4,4
	.comm	phy_82552_v,4,4
	.comm	E100_82552_SMARTSPEED,4,4
	.comm	E100_82552_REV_ANEG,4,4
	.comm	E100_82552_ANEG_NOW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
