	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_nic_get_wol
_netxen_nic_get_wol:                    ## @netxen_nic_get_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	$0, (%r14)
	movl	8(%rax), %edi
	callq	_NX_IS_REVISION_P2
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	_NETXEN_WOL_CONFIG_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	movl	(%rbx), %ecx
	btq	%rcx, %rax
	jae	LBB0_3
## %bb.2:
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
LBB0_3:
	movq	_NETXEN_WOL_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	movl	(%rbx), %ecx
	btq	%rcx, %rax
	jae	LBB0_5
## %bb.4:
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETXEN_WOL_CONFIG_NV,4,2       ## @NETXEN_WOL_CONFIG_NV
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_NETXEN_WOL_CONFIG,4,2          ## @NETXEN_WOL_CONFIG
	.no_dead_strip	_netxen_nic_get_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_get_wol
_netxen_nic_get_wol:                    ; @netxen_nic_get_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	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	str	xzr, [x19]
	ldr	w0, [x0, #8]
	bl	_NX_IS_REVISION_P2
	cbnz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _NETXEN_WOL_CONFIG_NV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETXEN_WOL_CONFIG_NV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_NXRD32
	ldr	x8, [x20]
	lsr	x8, x0, x8
Lloh3:
	adrp	x21, _WAKE_MAGIC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _WAKE_MAGIC@GOTPAGEOFF]
	tbz	w8, #0, LBB0_3
; %bb.2:
	ldr	w8, [x21]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_3:
Lloh5:
	adrp	x8, _NETXEN_WOL_CONFIG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETXEN_WOL_CONFIG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_NXRD32
	ldr	x8, [x20]
	lsr	x8, x0, x8
	tbz	w8, #0, LBB0_5
; %bb.4:
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NETXEN_WOL_CONFIG_NV,4,2       ; @NETXEN_WOL_CONFIG_NV
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_NETXEN_WOL_CONFIG,4,2          ; @NETXEN_WOL_CONFIG
	.no_dead_strip	_netxen_nic_get_wol
.subsections_via_symbols
