	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e100_set_wol
_e100_set_wol:                          ## @e100_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
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
LBB0_2:
	movq	(%r14), %rdi
	callq	_device_can_wakeup
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %esi
	movq	_wol_magic@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, %esi
	je	LBB0_6
## %bb.5:
	orl	%eax, 8(%r14)
	jmp	LBB0_7
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	notl	%eax
	andl	%eax, 8(%r14)
LBB0_7:
	movq	(%r14), %rdi
	callq	_device_set_wakeup_enable
	movq	_e100_configure@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_e100_exec_cb
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_wol_magic,4,2                  ## @wol_magic
	.comm	_e100_configure,4,2             ## @e100_configure
	.no_dead_strip	_e100_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e100_set_wol
_e100_set_wol:                          ; @e100_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_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WAKE_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w8, w9, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0]
	bl	_device_can_wakeup
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w1, [x20]
Lloh3:
	adrp	x8, _wol_magic@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wol_magic@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w1, LBB0_5
; %bb.3:
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
LBB0_6:
	str	w8, [x19, #8]
	ldr	x0, [x19]
	bl	_device_set_wakeup_enable
Lloh9:
	adrp	x8, _e100_configure@GOTPAGE
Lloh10:
	ldr	x8, [x8, _e100_configure@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_e100_exec_cb
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_wol_magic,4,2                  ; @wol_magic
	.comm	_e100_configure,4,2             ; @e100_configure
	.no_dead_strip	_e100_set_wol
.subsections_via_symbols
