	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_nic_set_wol
_netxen_nic_set_wol:                    ## @netxen_nic_set_wol
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_NX_IS_REVISION_P2
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	notl	%eax
	testl	%eax, (%r14)
	je	LBB0_3
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_NETXEN_WOL_CONFIG_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	movl	(%rbx), %ecx
	btl	%ecx, %eax
	jae	LBB0_1
## %bb.4:
	movq	_NETXEN_WOL_CONFIG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	movb	(%rbx), %cl
	movl	$1, %edx
	shlq	%cl, %rdx
	movl	(%r15), %ecx
	andl	(%r14), %ecx
	movl	%eax, %esi
	orl	%edx, %esi
	notl	%edx
	andl	%eax, %edx
	testl	%ecx, %ecx
	cmovnel	%esi, %edx
	movl	(%r12), %esi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_NXWR32
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_NETXEN_WOL_CONFIG_NV,4,2       ## @NETXEN_WOL_CONFIG_NV
	.comm	_NETXEN_WOL_CONFIG,4,2          ## @NETXEN_WOL_CONFIG
	.no_dead_strip	_netxen_nic_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_nic_set_wol
_netxen_nic_set_wol:                    ; @netxen_nic_set_wol
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_NX_IS_REVISION_P2
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x21, _WAKE_MAGIC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WAKE_MAGIC@GOTPAGEOFF]
	ldr	w9, [x21]
	bics	wzr, w8, w9
	b.eq	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x8, _NETXEN_WOL_CONFIG_NV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETXEN_WOL_CONFIG_NV@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NXRD32
	ldr	w8, [x19]
	lsr	w8, w0, w8
	tbz	w8, #0, LBB0_2
; %bb.5:
Lloh8:
	adrp	x22, _NETXEN_WOL_CONFIG@GOTPAGE
Lloh9:
	ldr	x22, [x22, _NETXEN_WOL_CONFIG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_NXRD32
	ldr	w8, [x20]
	ldr	w9, [x21]
	ldr	w10, [x19]
	mov	w11, #1
	lsl	x10, x11, x10
	orr	w11, w0, w10
	bic	w10, w0, w10
	tst	w9, w8
	csel	w2, w10, w11, eq
	ldr	w1, [x22]
	mov	x0, x19
	bl	_NXWR32
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_NETXEN_WOL_CONFIG_NV,4,2       ; @NETXEN_WOL_CONFIG_NV
	.comm	_NETXEN_WOL_CONFIG,4,2          ; @NETXEN_WOL_CONFIG
	.no_dead_strip	_netxen_nic_set_wol
.subsections_via_symbols
