	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_set_wol
_e1000_set_wol:                         ## @e1000_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_WAKE_PHY@GOTPCREL(%rip), %rax
	movq	_WAKE_ARP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_WAKE_MAGICSECURE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_2
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_e1000_wol_exclusion
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	cmovel	%ecx, %eax
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	8(%r14), %rdi
	callq	_device_can_wakeup
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$128, 16(%r14)
	movl	(%rbx), %eax
	jne	LBB0_8
## %bb.6:
	movq	_WAKE_UCAST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_e_err
	jmp	LBB0_1
LBB0_8:
	movl	$0, (%r14)
	movq	_WAKE_UCAST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.10:
	movq	_E1000_WUFC_EX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, (%r14)
	jmp	LBB0_11
LBB0_9:
	xorl	%esi, %esi
LBB0_11:
	movq	_WAKE_MCAST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_E1000_WUFC_MC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	%esi, (%r14)
LBB0_13:
	movq	_WAKE_BCAST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:
	movq	_E1000_WUFC_BC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	%esi, (%r14)
LBB0_15:
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	_E1000_WUFC_MAG@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%esi, (%r14)
LBB0_17:
	movq	8(%r14), %rdi
	callq	_device_set_wakeup_enable
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_PHY,4,2                   ## @WAKE_PHY
	.comm	_WAKE_ARP,4,2                   ## @WAKE_ARP
	.comm	_WAKE_MAGICSECURE,4,2           ## @WAKE_MAGICSECURE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WAKE_UCAST,4,2                 ## @WAKE_UCAST
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interface does not support directed (unicast) frame wake-up packets\n"

	.comm	_E1000_WUFC_EX,4,2              ## @E1000_WUFC_EX
	.comm	_WAKE_MCAST,4,2                 ## @WAKE_MCAST
	.comm	_E1000_WUFC_MC,4,2              ## @E1000_WUFC_MC
	.comm	_WAKE_BCAST,4,2                 ## @WAKE_BCAST
	.comm	_E1000_WUFC_BC,4,2              ## @E1000_WUFC_BC
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_E1000_WUFC_MAG,4,2             ## @E1000_WUFC_MAG
	.no_dead_strip	_e1000_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_set_wol
_e1000_set_wol:                         ; @e1000_set_wol
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_netdev_priv
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _WAKE_PHY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WAKE_PHY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _WAKE_ARP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WAKE_ARP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _WAKE_MAGICSECURE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WAKE_MAGICSECURE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	x19, x0
	mov	x1, x20
	bl	_e1000_wol_exclusion
	cbz	x0, LBB0_5
LBB0_3:
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _EOPNOTSUPP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EOPNOTSUPP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, #0
	csneg	w0, wzr, w9, eq
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_device_can_wakeup
	cbz	w0, LBB0_3
; %bb.6:
	ldr	w10, [x19, #16]
	ldr	w8, [x20]
Lloh15:
	adrp	x9, _WAKE_UCAST@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WAKE_UCAST@GOTPAGEOFF]
	cmp	w10, #128
	b.ne	LBB0_9
; %bb.7:
	ldr	w10, [x9]
	tst	w10, w8
	b.eq	LBB0_9
; %bb.8:
Lloh17:
	adrp	x8, _drv@GOTPAGE
Lloh18:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_e_err
	b	LBB0_1
LBB0_9:
	str	wzr, [x19]
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh22:
	adrp	x9, _E1000_WUFC_EX@GOTPAGE
Lloh23:
	ldr	x9, [x9, _E1000_WUFC_EX@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x9]
	str	w1, [x19]
	b	LBB0_12
LBB0_11:
	mov	w1, #0
LBB0_12:
Lloh25:
	adrp	x9, _WAKE_MCAST@GOTPAGE
Lloh26:
	ldr	x9, [x9, _WAKE_MCAST@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
Lloh28:
	adrp	x9, _E1000_WUFC_MC@GOTPAGE
Lloh29:
	ldr	x9, [x9, _E1000_WUFC_MC@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w1, w1, w9
	str	w1, [x19]
LBB0_14:
Lloh31:
	adrp	x9, _WAKE_BCAST@GOTPAGE
Lloh32:
	ldr	x9, [x9, _WAKE_BCAST@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
Lloh34:
	adrp	x9, _E1000_WUFC_BC@GOTPAGE
Lloh35:
	ldr	x9, [x9, _E1000_WUFC_BC@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w1, w1, w9
	str	w1, [x19]
LBB0_16:
Lloh37:
	adrp	x9, _WAKE_MAGIC@GOTPAGE
Lloh38:
	ldr	x9, [x9, _WAKE_MAGIC@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
Lloh40:
	adrp	x8, _E1000_WUFC_MAG@GOTPAGE
Lloh41:
	ldr	x8, [x8, _E1000_WUFC_MAG@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	orr	w1, w1, w8
	str	w1, [x19]
LBB0_18:
	ldr	x0, [x19, #8]
	bl	_device_set_wakeup_enable
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_PHY,4,2                   ; @WAKE_PHY
	.comm	_WAKE_ARP,4,2                   ; @WAKE_ARP
	.comm	_WAKE_MAGICSECURE,4,2           ; @WAKE_MAGICSECURE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WAKE_UCAST,4,2                 ; @WAKE_UCAST
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interface does not support directed (unicast) frame wake-up packets\n"

	.comm	_E1000_WUFC_EX,4,2              ; @E1000_WUFC_EX
	.comm	_WAKE_MCAST,4,2                 ; @WAKE_MCAST
	.comm	_E1000_WUFC_MC,4,2              ; @E1000_WUFC_MC
	.comm	_WAKE_BCAST,4,2                 ; @WAKE_BCAST
	.comm	_E1000_WUFC_BC,4,2              ; @E1000_WUFC_BC
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_E1000_WUFC_MAG,4,2             ; @E1000_WUFC_MAG
	.no_dead_strip	_e1000_set_wol
.subsections_via_symbols
