	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgmac_set_wol
_xgmac_set_wol:                         ## @xgmac_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	%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, %r15
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_WAKE_UCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%r12), %edi
	callq	_device_can_wakeup
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	orl	%r13d, %ebx
	movl	(%r15), %eax
	notl	%ebx
	testl	%ebx, %eax
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, (%r12)
	movl	4(%r12), %edi
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	$1, %esi
	callq	_device_set_wakeup_enable
	movl	(%r14), %edi
	callq	_enable_irq_wake
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_device_set_wakeup_enable
	movl	(%r14), %edi
	callq	_disable_irq_wake
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_WAKE_UCAST,4,2                 ## @WAKE_UCAST
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_xgmac_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgmac_set_wol
_xgmac_set_wol:                         ; @xgmac_set_wol
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _WAKE_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WAKE_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _WAKE_UCAST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WAKE_UCAST@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	ldr	w0, [x0, #4]
	bl	_device_can_wakeup
	cbz	w0, LBB0_3
; %bb.1:
	orr	w9, w23, w22
	ldr	w8, [x21]
	bics	wzr, w8, w9
	b.eq	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_5:
	str	w8, [x20]
	ldr	w0, [x20, #4]
	cbz	w8, LBB0_7
; %bb.6:
	mov	w1, #1
	bl	_device_set_wakeup_enable
	ldr	w0, [x19]
	bl	_enable_irq_wake
	b	LBB0_8
LBB0_7:
	mov	w1, #0
	bl	_device_set_wakeup_enable
	ldr	w0, [x19]
	bl	_disable_irq_wake
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_WAKE_UCAST,4,2                 ; @WAKE_UCAST
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_xgmac_set_wol
.subsections_via_symbols
