	.file	"extr_netxen_nic_ethtool.c_netxen_nic_set_wol.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	netxen_nic_set_wol, @function
netxen_nic_set_wol:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	netdev_priv@PLT
	mov	edi, DWORD PTR 4[rax]
	mov	rbp, rax
	call	NX_IS_REVISION_P2@PLT
	test	rax, rax
	jne	.L9
	mov	r12d, DWORD PTR WAKE_MAGIC[rip]
	not	r12d
	and	r12d, DWORD PTR [rbx]
	je	.L11
.L9:
	mov	r12d, DWORD PTR EOPNOTSUPP[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR NETXEN_WOL_CONFIG_NV[rip]
	mov	rdi, rbp
	call	NXRD32@PLT
	mov	edx, DWORD PTR 0[rbp]
	bt	eax, edx
	jnc	.L9
	mov	esi, DWORD PTR NETXEN_WOL_CONFIG[rip]
	mov	rdi, rbp
	call	NXRD32@PLT
	mov	edx, DWORD PTR [rbx]
	mov	ecx, DWORD PTR 0[rbp]
	test	DWORD PTR WAKE_MAGIC[rip], edx
	je	.L6
	mov	edx, 1
	sal	rdx, cl
	or	edx, eax
.L7:
	mov	esi, DWORD PTR NETXEN_WOL_CONFIG[rip]
	mov	rdi, rbp
	call	NXWR32@PLT
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
	mov	rdx, -2
	rol	rdx, cl
	and	edx, eax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	netxen_nic_set_wol, .-netxen_nic_set_wol
	.comm	WAKE_MAGIC,4,4
	.comm	NETXEN_WOL_CONFIG_NV,4,4
	.comm	NETXEN_WOL_CONFIG,4,4
	.comm	EOPNOTSUPP,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_netxen_nic_ethtool.c_netxen_nic_set_wol.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	netxen_nic_set_wol, %function
netxen_nic_set_wol:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	bl	netdev_priv
	mov	r6, r0
	ldr	r0, [r0, #4]
	bl	NX_IS_REVISION_P2
	cmp	r0, #0
	bne	.L9
	ldr	r5, .L12
	ldr	r4, [r7]
	ldr	r3, [r5]
	bics	r4, r4, r3
	beq	.L11
.L9:
	ldr	r3, .L12+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L12+8
	mov	r0, r6
	ldr	r1, [r3]
	bl	NXRD32
	ldr	r3, [r6]
	asr	r0, r0, r3
	tst	r0, #1
	beq	.L9
	ldr	r8, .L12+12
	mov	r0, r6
	ldr	r1, [r8]
	bl	NXRD32
	ldr	r2, [r7]
	ldr	r3, [r5]
	ldr	r1, [r8]
	tst	r2, r3
	mov	r3, #1
	ldr	r2, [r6]
	orrne	r2, r0, r3, lsl r2
	biceq	r2, r0, r3, lsl r2
	mov	r0, r6
	bl	NXWR32
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	WAKE_MAGIC
	.word	EOPNOTSUPP
	.word	NETXEN_WOL_CONFIG_NV
	.word	NETXEN_WOL_CONFIG
	.size	netxen_nic_set_wol, .-netxen_nic_set_wol
	.comm	WAKE_MAGIC,4,4
	.comm	NETXEN_WOL_CONFIG_NV,4,4
	.comm	NETXEN_WOL_CONFIG,4,4
	.comm	EOPNOTSUPP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
