	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_get_wol
_e1000_get_wol:                         ## @e1000_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	$0, (%r14)
	movq	_FLAG_HAS_WOL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_15
## %bb.1:
	movq	8(%rbx), %rdi
	callq	_device_can_wakeup
	testl	%eax, %eax
	je	LBB0_15
## %bb.2:
	movq	_WAKE_UCAST@GOTPCREL(%rip), %r12
	movq	_WAKE_MCAST@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	orl	(%r12), %eax
	movq	_WAKE_BCAST@GOTPCREL(%rip), %r13
	orl	(%r13), %eax
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movq	_WAKE_PHY@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%r14)
	movq	_FLAG_NO_WAKE_UCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_5
## %bb.3:
	movl	(%r12), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r14)
	movq	_E1000_WUFC_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_e_err
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rsi
	movq	_WAKE_PHY@GOTPCREL(%rip), %rdx
LBB0_5:
	movl	4(%rbx), %eax
	movq	_E1000_WUFC_EX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	(%r12), %ecx
	orl	%ecx, 4(%r14)
LBB0_7:
	movq	_E1000_WUFC_MC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	(%r15), %ecx
	orl	%ecx, 4(%r14)
LBB0_9:
	movq	_E1000_WUFC_BC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movl	(%r13), %ecx
	orl	%ecx, 4(%r14)
LBB0_11:
	movq	_E1000_WUFC_MAG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movl	(%rsi), %ecx
	orl	%ecx, 4(%r14)
LBB0_13:
	movq	_E1000_WUFC_LNKC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:
	movl	(%rdx), %eax
	orl	%eax, 4(%r14)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_HAS_WOL,4,2               ## @FLAG_HAS_WOL
	.comm	_WAKE_UCAST,4,2                 ## @WAKE_UCAST
	.comm	_WAKE_MCAST,4,2                 ## @WAKE_MCAST
	.comm	_WAKE_BCAST,4,2                 ## @WAKE_BCAST
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_WAKE_PHY,4,2                   ## @WAKE_PHY
	.comm	_FLAG_NO_WAKE_UCAST,4,2         ## @FLAG_NO_WAKE_UCAST
	.comm	_E1000_WUFC_EX,4,2              ## @E1000_WUFC_EX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interface does not support directed (unicast) frame wake-up packets\n"

	.comm	_E1000_WUFC_MC,4,2              ## @E1000_WUFC_MC
	.comm	_E1000_WUFC_BC,4,2              ## @E1000_WUFC_BC
	.comm	_E1000_WUFC_MAG,4,2             ## @E1000_WUFC_MAG
	.comm	_E1000_WUFC_LNKC,4,2            ## @E1000_WUFC_LNKC
	.no_dead_strip	_e1000_get_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_get_wol
_e1000_get_wol:                         ; @e1000_get_wol
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	bl	_netdev_priv
	str	xzr, [x19]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FLAG_HAS_WOL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLAG_HAS_WOL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.1:
	mov	x20, x0
	ldr	x0, [x0, #8]
	bl	_device_can_wakeup
	cbz	w0, LBB0_15
; %bb.2:
Lloh3:
	adrp	x25, _WAKE_UCAST@GOTPAGE
Lloh4:
	ldr	x25, [x25, _WAKE_UCAST@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh5:
	adrp	x24, _WAKE_MCAST@GOTPAGE
Lloh6:
	ldr	x24, [x24, _WAKE_MCAST@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh7:
	adrp	x23, _WAKE_BCAST@GOTPAGE
Lloh8:
	ldr	x23, [x23, _WAKE_BCAST@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w8, w9
Lloh9:
	adrp	x22, _WAKE_MAGIC@GOTPAGE
Lloh10:
	ldr	x22, [x22, _WAKE_MAGIC@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w8, w9
Lloh11:
	adrp	x21, _WAKE_PHY@GOTPAGE
Lloh12:
	ldr	x21, [x21, _WAKE_PHY@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	w9, [x20]
Lloh13:
	adrp	x10, _FLAG_NO_WAKE_UCAST@GOTPAGE
Lloh14:
	ldr	x10, [x10, _FLAG_NO_WAKE_UCAST@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
Lloh16:
	adrp	x26, _E1000_WUFC_EX@GOTPAGE
Lloh17:
	ldr	x26, [x26, _E1000_WUFC_EX@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.3:
	ldr	w9, [x25]
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	w8, [x20, #4]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_err
LBB0_5:
	ldr	w8, [x20, #4]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w9, [x25]
	ldr	w10, [x19, #4]
	orr	w9, w10, w9
	str	w9, [x19, #4]
LBB0_7:
Lloh20:
	adrp	x9, _E1000_WUFC_MC@GOTPAGE
Lloh21:
	ldr	x9, [x9, _E1000_WUFC_MC@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w9, [x24]
	ldr	w10, [x19, #4]
	orr	w9, w10, w9
	str	w9, [x19, #4]
LBB0_9:
Lloh23:
	adrp	x9, _E1000_WUFC_BC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _E1000_WUFC_BC@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	w9, [x23]
	ldr	w10, [x19, #4]
	orr	w9, w10, w9
	str	w9, [x19, #4]
LBB0_11:
Lloh26:
	adrp	x9, _E1000_WUFC_MAG@GOTPAGE
Lloh27:
	ldr	x9, [x9, _E1000_WUFC_MAG@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	w9, [x22]
	ldr	w10, [x19, #4]
	orr	w9, w10, w9
	str	w9, [x19, #4]
LBB0_13:
Lloh29:
	adrp	x9, _E1000_WUFC_LNKC@GOTPAGE
Lloh30:
	ldr	x9, [x9, _E1000_WUFC_LNKC@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	ldr	w8, [x21]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_HAS_WOL,4,2               ; @FLAG_HAS_WOL
	.comm	_WAKE_UCAST,4,2                 ; @WAKE_UCAST
	.comm	_WAKE_MCAST,4,2                 ; @WAKE_MCAST
	.comm	_WAKE_BCAST,4,2                 ; @WAKE_BCAST
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_WAKE_PHY,4,2                   ; @WAKE_PHY
	.comm	_FLAG_NO_WAKE_UCAST,4,2         ; @FLAG_NO_WAKE_UCAST
	.comm	_E1000_WUFC_EX,4,2              ; @E1000_WUFC_EX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interface does not support directed (unicast) frame wake-up packets\n"

	.comm	_E1000_WUFC_MC,4,2              ; @E1000_WUFC_MC
	.comm	_E1000_WUFC_BC,4,2              ; @E1000_WUFC_BC
	.comm	_E1000_WUFC_MAG,4,2             ; @E1000_WUFC_MAG
	.comm	_E1000_WUFC_LNKC,4,2            ; @E1000_WUFC_LNKC
	.no_dead_strip	_e1000_get_wol
.subsections_via_symbols
