	.file	"extr_stmmac_ethtool.c_stmmac_set_wol.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stmmac_set_wol, @function
stmmac_set_wol:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR PMT_NOT_SUPPORTED[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L4
	mov	eax, DWORD PTR WAKE_MAGIC[rip]
	mov	edx, DWORD PTR 0[rbp]
	not	eax
	and	eax, edx
	mov	r12d, eax
	jne	.L4
	mov	edi, DWORD PTR 16[rbx]
	test	edx, edx
	je	.L9
	mov	esi, 1
	call	device_set_wakeup_enable@PLT
.L6:
	lea	r13, 12[rbx]
	mov	rdi, r13
	call	spin_lock_irq@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	rdi, r13
	mov	DWORD PTR 8[rbx], eax
	call	spin_unlock_irq@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xor	esi, esi
	call	device_set_wakeup_enable@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	stmmac_set_wol, .-stmmac_set_wol
	.comm	WAKE_MAGIC,4,4
	.comm	PMT_NOT_SUPPORTED,8,8
	.comm	EINVAL,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_stmmac_ethtool.c_stmmac_set_wol.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stmmac_set_wol, %function
stmmac_set_wol:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	bl	netdev_priv
	ldr	r3, .L9
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
	ldr	r2, .L9+4
	ldr	r3, [r6]
	ldr	r4, [r2]
	bics	r4, r3, r4
	bne	.L4
	mov	r5, r0
	cmp	r3, #0
	moveq	r1, r4
	movne	r1, #1
	add	r7, r5, #8
	ldr	r0, [r0, #12]
	bl	device_set_wakeup_enable
	mov	r0, r7
	bl	spin_lock_irq
	ldr	r3, [r6]
	mov	r0, r7
	str	r3, [r5, #4]
	bl	spin_unlock_irq
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L9+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	PMT_NOT_SUPPORTED
	.word	WAKE_MAGIC
	.word	EINVAL
	.size	stmmac_set_wol, .-stmmac_set_wol
	.comm	WAKE_MAGIC,4,4
	.comm	PMT_NOT_SUPPORTED,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
