	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_wol
_set_wol:                               ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%r15), %eax
	movq	_WOL_SUPPORTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, %eax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rdx
	jmp	LBB0_5
LBB0_3:
	xorl	%edx, %edx
LBB0_5:
	callq	_t4_wol_magic_enable
	movq	_WAKE_BCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r14), %esi
	movl	4(%r14), %edi
	testl	%eax, (%r15)
	je	LBB0_8
## %bb.6:
	movl	$0, (%rsp)
	movl	$254, %edx
	movq	$-1, %rcx
	movq	$-1, %r8
	xorl	%r9d, %r9d
	callq	_t4_wol_pat_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movq	_BCAST_CRC@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$1, (%rsp)
	movl	$1, %edx
	movq	$-7, %rcx
	movq	$-1, %r8
	callq	_t4_wol_pat_enable
	jmp	LBB0_10
LBB0_8:
	movl	$0, (%rsp)
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_t4_wol_pat_enable
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_WOL_SUPPORTED,4,2              ## @WOL_SUPPORTED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_WAKE_BCAST,4,2                 ## @WAKE_BCAST
	.comm	_BCAST_CRC,4,2                  ## @BCAST_CRC
	.no_dead_strip	_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_wol
_set_wol:                               ; @set_wol
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_netdev_priv
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _WOL_SUPPORTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WOL_SUPPORTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	ldr	w0, [x0, #4]
	ldr	w1, [x19]
Lloh6:
	adrp	x9, _WAKE_MAGIC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WAKE_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x2, [x21]
	b	LBB0_6
LBB0_5:
	mov	x2, #0
LBB0_6:
	bl	_t4_wol_magic_enable
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _WAKE_BCAST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WAKE_BCAST@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldp	w1, w0, [x19]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	mov	w2, #254
	mov	x3, #-1
	mov	x4, #-1
	mov	w5, #0
	mov	w6, #0
	bl	_t4_wol_pat_enable
	cbnz	w0, LBB0_2
; %bb.8:
	ldp	w1, w0, [x19]
Lloh12:
	adrp	x8, _BCAST_CRC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BCAST_CRC@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	mov	w2, #1
	mov	x3, #-7
	mov	x4, #-1
	mov	w6, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_t4_wol_pat_enable
LBB0_9:
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_t4_wol_pat_enable
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_WOL_SUPPORTED,4,2              ; @WOL_SUPPORTED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_WAKE_BCAST,4,2                 ; @WAKE_BCAST
	.comm	_BCAST_CRC,4,2                  ; @BCAST_CRC
	.no_dead_strip	_set_wol
.subsections_via_symbols
