	.file	"extr_phy.c_e1000_disable_phy_wakeup_reg_access_bm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Could not set Port Control page\n"
	.align 8
.LC1:
	.string	"Could not restore PHY register %d.%d\n"
	.text
	.p2align 4
	.globl	e1000_disable_phy_wakeup_reg_access_bm
	.type	e1000_disable_phy_wakeup_reg_access_bm, @function
e1000_disable_phy_wakeup_reg_access_bm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	ecx, DWORD PTR IGP_PAGE_SHIFT[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	esi, DWORD PTR BM_PORT_CTRL_PAGE[rip]
	sal	esi, cl
	call	e1000_set_page_igp@PLT
	test	rax, rax
	jne	.L9
	mov	edx, DWORD PTR [rbx]
	mov	esi, DWORD PTR BM_WUC_ENABLE_REG[rip]
	mov	rdi, rbp
	call	e1000e_write_phy_reg_mdic@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L10
	mov	rax, r12
	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
.L10:
	.cfi_restore_state
	mov	edx, DWORD PTR BM_WUC_ENABLE_REG[rip]
	mov	esi, DWORD PTR BM_PORT_CTRL_PAGE[rip]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	e_dbg@PLT
	mov	rax, r12
	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
.L9:
	.cfi_restore_state
	mov	r12, rax
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	e_dbg@PLT
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	e1000_disable_phy_wakeup_reg_access_bm, .-e1000_disable_phy_wakeup_reg_access_bm
	.comm	IGP_PAGE_SHIFT,4,4
	.comm	BM_WUC_ENABLE_REG,4,4
	.comm	BM_PORT_CTRL_PAGE,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_phy.c_e1000_disable_phy_wakeup_reg_access_bm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not set Port Control page\012\000"
	.align	2
.LC1:
	.ascii	"Could not restore PHY register %d.%d\012\000"
	.text
	.align	2
	.global	e1000_disable_phy_wakeup_reg_access_bm
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_disable_phy_wakeup_reg_access_bm, %function
e1000_disable_phy_wakeup_reg_access_bm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L11
	ldr	r6, .L11+4
	ldr	r3, [r3]
	ldr	r2, [r6]
	mov	r7, r1
	lsl	r1, r2, r3
	mov	r5, r0
	bl	e1000_set_page_igp
	subs	r4, r0, #0
	bne	.L9
	ldr	r8, .L11+8
	mov	r0, r5
	ldr	r2, [r7]
	ldr	r1, [r8]
	bl	e1000e_write_phy_reg_mdic
	subs	r4, r0, #0
	bne	.L10
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r2, [r8]
	ldr	r1, [r6]
	ldr	r0, .L11+12
	bl	e_dbg
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r0, .L11+16
	bl	e_dbg
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	IGP_PAGE_SHIFT
	.word	BM_PORT_CTRL_PAGE
	.word	BM_WUC_ENABLE_REG
	.word	.LC1
	.word	.LC0
	.size	e1000_disable_phy_wakeup_reg_access_bm, .-e1000_disable_phy_wakeup_reg_access_bm
	.comm	IGP_PAGE_SHIFT,4,4
	.comm	BM_WUC_ENABLE_REG,4,4
	.comm	BM_PORT_CTRL_PAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
