	.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	_FLAG_HAS_WOL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.1:
	movq	8(%r14), %rdi
	callq	_device_can_wakeup
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %eax
	movq	_WAKE_UCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_WAKE_MCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	orl	%esi, %ecx
	movq	_WAKE_BCAST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%r8d, %edi
	orl	%edx, %edi
	orl	%ecx, %edi
	movq	_WAKE_PHY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %edi
	notl	%edi
	testl	%edi, %eax
	je	LBB0_4
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	$0, 4(%r14)
	testl	%eax, %esi
	je	LBB0_5
## %bb.6:
	movq	_E1000_WUFC_EX@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 4(%r14)
	testl	%eax, %ebx
	je	LBB0_9
LBB0_8:
	movq	_E1000_WUFC_MC@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	movl	%esi, 4(%r14)
LBB0_9:
	testl	%eax, %r8d
	je	LBB0_11
## %bb.10:
	movq	_E1000_WUFC_BC@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	movl	%esi, 4(%r14)
LBB0_11:
	testl	%eax, %edx
	je	LBB0_13
## %bb.12:
	movq	_E1000_WUFC_MAG@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movl	%esi, 4(%r14)
LBB0_13:
	testl	%eax, %ecx
	je	LBB0_15
## %bb.14:
	movq	_E1000_WUFC_LNKC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%esi, 4(%r14)
LBB0_15:
	movq	8(%r14), %rdi
	callq	_device_set_wakeup_enable
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_5:
	xorl	%esi, %esi
	testl	%eax, %ebx
	jne	LBB0_8
	jmp	LBB0_9
	.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	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_E1000_WUFC_EX,4,2              ## @E1000_WUFC_EX
	.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_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, [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_3
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_device_can_wakeup
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _WAKE_UCAST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WAKE_UCAST@GOTPAGEOFF]
Lloh5:
	ldr	w13, [x9]
Lloh6:
	adrp	x9, _WAKE_MCAST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WAKE_MCAST@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x9]
Lloh9:
	adrp	x9, _WAKE_BCAST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WAKE_BCAST@GOTPAGEOFF]
	orr	w10, w12, w13
Lloh11:
	ldr	w11, [x9]
	orr	w9, w10, w11
Lloh12:
	adrp	x10, _WAKE_MAGIC@GOTPAGE
Lloh13:
	ldr	x10, [x10, _WAKE_MAGIC@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w14, w9, w10
Lloh15:
	adrp	x9, _WAKE_PHY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WAKE_PHY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w14, w14, w9
	bics	wzr, w8, w14
	b.eq	LBB0_5
LBB0_3:
Lloh18:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	str	wzr, [x19, #4]
	tst	w13, w8
	b.eq	LBB0_15
; %bb.6:
Lloh21:
	adrp	x13, _E1000_WUFC_EX@GOTPAGE
Lloh22:
	ldr	x13, [x13, _E1000_WUFC_EX@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x13]
	str	w1, [x19, #4]
	tst	w12, w8
	b.eq	LBB0_8
LBB0_7:
Lloh24:
	adrp	x12, _E1000_WUFC_MC@GOTPAGE
Lloh25:
	ldr	x12, [x12, _E1000_WUFC_MC@GOTPAGEOFF]
Lloh26:
	ldr	w12, [x12]
	orr	w1, w1, w12
	str	w1, [x19, #4]
LBB0_8:
	tst	w11, w8
	b.eq	LBB0_10
; %bb.9:
Lloh27:
	adrp	x11, _E1000_WUFC_BC@GOTPAGE
Lloh28:
	ldr	x11, [x11, _E1000_WUFC_BC@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	orr	w1, w1, w11
	str	w1, [x19, #4]
LBB0_10:
	tst	w10, w8
	b.eq	LBB0_12
; %bb.11:
Lloh30:
	adrp	x10, _E1000_WUFC_MAG@GOTPAGE
Lloh31:
	ldr	x10, [x10, _E1000_WUFC_MAG@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	orr	w1, w1, w10
	str	w1, [x19, #4]
LBB0_12:
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
Lloh33:
	adrp	x8, _E1000_WUFC_LNKC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _E1000_WUFC_LNKC@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	orr	w1, w1, w8
	str	w1, [x19, #4]
LBB0_14:
	ldr	x0, [x19, #8]
	bl	_device_set_wakeup_enable
	mov	w0, #0
	b	LBB0_4
LBB0_15:
	mov	w1, #0
	tst	w12, w8
	b.ne	LBB0_7
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.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	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_E1000_WUFC_EX,4,2              ; @E1000_WUFC_EX
	.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_set_wol
.subsections_via_symbols
