	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdev_set_wol
_netdev_set_wol:                        ## @netdev_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	(%rax), %rdi
	movl	(%rbx), %eax
	movl	(%rdi), %ecx
	notl	%ecx
	testl	%ecx, %eax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movl	%eax, 4(%rdi)
	xorl	%ebx, %ebx
	movl	$0, %esi
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_WAKE_PHY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%rdi)
	movl	%eax, %esi
LBB0_4:
	addq	$8, %rdi
	leaq	_netdev_set_wol.net_addr(%rip), %rdx
	callq	_hw_enable_wol
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @netdev_set_wol.net_addr
_netdev_set_wol.net_addr:
	.long	192                             ## 0xc0
	.long	168                             ## 0xa8
	.long	1                               ## 0x1
	.long	1                               ## 0x1

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WAKE_PHY,4,2                   ## @WAKE_PHY
	.no_dead_strip	_netdev_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdev_set_wol
_netdev_set_wol:                        ; @netdev_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	x19, x1
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	w9, [x19]
	ldr	w10, [x8]
	bics	wzr, w9, w10
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	str	w9, [x8, #4]
	cbz	w9, LBB0_4
; %bb.3:
Lloh3:
	adrp	x10, _WAKE_PHY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WAKE_PHY@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w1, w10, w9
	str	w1, [x8, #4]
	b	LBB0_5
LBB0_4:
	mov	w1, #0
LBB0_5:
	add	x0, x8, #8
Lloh6:
	adrp	x2, _netdev_set_wol.net_addr@PAGE
Lloh7:
	add	x2, x2, _netdev_set_wol.net_addr@PAGEOFF
	bl	_hw_enable_wol
	mov	w0, #0
LBB0_6:
	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 AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @netdev_set_wol.net_addr
_netdev_set_wol.net_addr:
	.long	192                             ; 0xc0
	.long	168                             ; 0xa8
	.long	1                               ; 0x1
	.long	1                               ; 0x1

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WAKE_PHY,4,2                   ; @WAKE_PHY
	.no_dead_strip	_netdev_set_wol
.subsections_via_symbols
