	.file	"extr_e1000_main.c_e1000_power_down_phy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	e1000_power_down_phy, @function
e1000_power_down_phy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 8[rdi]
	mov	rbp, rdi
	cmp	eax, 136
	jg	.L7
.L2:
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rcx, QWORD PTR e1000_media_type_copper[rip]
	cmp	QWORD PTR 16[rdi], rcx
	jne	.L1
	mov	DWORD PTR 4[rsp], 0
	cmp	eax, 137
	jne	.L1
	mov	edi, DWORD PTR MANC[rip]
	call	er32@PLT
	test	DWORD PTR E1000_MANC_SMBUS_EN[rip], eax
	jne	.L1
	add	rbp, 8
	mov	esi, DWORD PTR PHY_CTRL[rip]
	lea	rdx, 4[rsp]
	mov	rdi, rbp
	call	e1000_read_phy_reg@PLT
	mov	esi, DWORD PTR PHY_CTRL[rip]
	mov	edx, DWORD PTR 4[rsp]
	mov	rdi, rbp
	or	edx, DWORD PTR MII_CR_POWER_DOWN[rip]
	mov	DWORD PTR 4[rsp], edx
	call	e1000_write_phy_reg@PLT
	mov	edi, 1
	call	msleep@PLT
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	e1000_power_down_phy, .-e1000_power_down_phy
	.comm	e1000_media_type_copper,8,8
	.comm	PHY_CTRL,4,4
	.comm	MII_CR_POWER_DOWN,4,4
	.comm	MANC,4,4
	.comm	E1000_MANC_SMBUS_EN,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_e1000_main.c_e1000_power_down_phy.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_power_down_phy, %function
e1000_power_down_phy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, [r0]
	ldr	r2, .L9
	sub	sp, sp, #12
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	bne	.L1
	ldr	r2, [r0, #4]
	mov	r4, r0
	cmp	r2, #136
	bgt	.L7
.L2:
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	ldr	r1, .L9+4
	ldr	r0, [r0, #8]
	ldr	r1, [r1]
	cmp	r0, r1
	bne	.L1
	cmp	r2, #137
	str	r3, [sp]
	bne	.L1
	ldr	r3, .L9+8
	ldr	r0, [r3]
	bl	er32
	ldr	r3, .L9+12
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L1
	ldr	r5, .L9+16
	add	r4, r4, #4
	mov	r2, sp
	ldr	r1, [r5]
	mov	r0, r4
	bl	e1000_read_phy_reg
	ldr	r3, .L9+20
	ldr	r2, [sp]
	ldr	r3, [r3]
	mov	r0, r4
	orr	r2, r2, r3
	ldr	r1, [r5]
	str	r2, [sp]
	bl	e1000_write_phy_reg
	mov	r0, #1
	bl	msleep
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	e1000_media_type_copper
	.word	MANC
	.word	E1000_MANC_SMBUS_EN
	.word	PHY_CTRL
	.word	MII_CR_POWER_DOWN
	.size	e1000_power_down_phy, .-e1000_power_down_phy
	.comm	e1000_media_type_copper,4,4
	.comm	PHY_CTRL,4,4
	.comm	MII_CR_POWER_DOWN,4,4
	.comm	MANC,4,4
	.comm	E1000_MANC_SMBUS_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
