	.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	%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
	movq	_Config3@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_cpr8
	movq	_LinkUp@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MagicPacket@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %ebx
	orl	%ecx, %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_WAKE_PHY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%eax, %esi
	cmovel	%esi, %ecx
	orl	%ebx, %ecx
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rsi
	andl	(%rsi), %eax
	cmovel	%eax, %edx
	orl	%ecx, %edx
	movl	%edx, %ebx
LBB0_2:
	movq	_Cfg9346@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_Cfg9346_Unlock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cpw8
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_cpw8
	movl	(%r13), %edi
	movq	_Cfg9346_Lock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cpw8
	movq	_Config5@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_cpr8
	movq	_UWF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MWF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	orl	%ecx, %esi
	movq	_BWF@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	%edi, %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_WAKE_UCAST@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	andl	%eax, %ebx
	cmovel	%ebx, %ecx
	orl	%esi, %ecx
	movq	_WAKE_BCAST@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%eax, %esi
	cmovel	%esi, %edi
	movq	_WAKE_MCAST@GOTPCREL(%rip), %rsi
	andl	(%rsi), %eax
	cmovel	%eax, %edx
	orl	%edi, %edx
	orl	%ecx, %edx
	movl	%edx, %esi
LBB0_4:
	movl	(%r12), %edi
	callq	_cpw8
	xorl	%eax, %eax
	cmpl	$0, (%r15)
	setne	%al
	movl	%eax, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Config3,4,2                    ## @Config3
	.comm	_LinkUp,4,2                     ## @LinkUp
	.comm	_MagicPacket,4,2                ## @MagicPacket
	.comm	_WAKE_PHY,4,2                   ## @WAKE_PHY
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_Cfg9346,4,2                    ## @Cfg9346
	.comm	_Cfg9346_Unlock,4,2             ## @Cfg9346_Unlock
	.comm	_Cfg9346_Lock,4,2               ## @Cfg9346_Lock
	.comm	_Config5,4,2                    ## @Config5
	.comm	_UWF,4,2                        ## @UWF
	.comm	_MWF,4,2                        ## @MWF
	.comm	_BWF,4,2                        ## @BWF
	.comm	_WAKE_UCAST,4,2                 ## @WAKE_UCAST
	.comm	_WAKE_BCAST,4,2                 ## @WAKE_BCAST
	.comm	_WAKE_MCAST,4,2                 ## @WAKE_MCAST
	.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	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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _Config3@GOTPAGE
Lloh1:
	ldr	x22, [x22, _Config3@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_cpr8
Lloh2:
	adrp	x8, _LinkUp@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LinkUp@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
Lloh5:
	adrp	x8, _MagicPacket@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MagicPacket@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w10, w8, w9
	bic	w21, w0, w10
	ldr	w10, [x20]
	cbz	w10, LBB0_2
; %bb.1:
Lloh8:
	adrp	x11, _WAKE_PHY@GOTPAGE
Lloh9:
	ldr	x11, [x11, _WAKE_PHY@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	tst	w11, w10
	csel	w9, wzr, w9, eq
	orr	w9, w9, w21
Lloh11:
	adrp	x11, _WAKE_MAGIC@GOTPAGE
Lloh12:
	ldr	x11, [x11, _WAKE_MAGIC@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	tst	w11, w10
	csel	w8, wzr, w8, eq
	orr	w21, w9, w8
LBB0_2:
Lloh14:
	adrp	x23, _Cfg9346@GOTPAGE
Lloh15:
	ldr	x23, [x23, _Cfg9346@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh16:
	adrp	x8, _Cfg9346_Unlock@GOTPAGE
Lloh17:
	ldr	x8, [x8, _Cfg9346_Unlock@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_cpw8
	ldr	w0, [x22]
	mov	x1, x21
	bl	_cpw8
	ldr	w0, [x23]
Lloh19:
	adrp	x8, _Cfg9346_Lock@GOTPAGE
Lloh20:
	ldr	x8, [x8, _Cfg9346_Lock@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_cpw8
Lloh22:
	adrp	x21, _Config5@GOTPAGE
Lloh23:
	ldr	x21, [x21, _Config5@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_cpr8
Lloh24:
	adrp	x8, _UWF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _UWF@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x8]
Lloh27:
	adrp	x8, _MWF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MWF@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	orr	w9, w8, w10
Lloh30:
	adrp	x11, _BWF@GOTPAGE
Lloh31:
	ldr	x11, [x11, _BWF@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
	orr	w9, w9, w11
	bic	w1, w0, w9
	ldr	w9, [x20]
	cbz	w9, LBB0_4
; %bb.3:
Lloh33:
	adrp	x12, _WAKE_UCAST@GOTPAGE
Lloh34:
	ldr	x12, [x12, _WAKE_UCAST@GOTPAGEOFF]
Lloh35:
	ldr	w12, [x12]
	tst	w12, w9
	csel	w10, wzr, w10, eq
	orr	w10, w10, w1
Lloh36:
	adrp	x12, _WAKE_BCAST@GOTPAGE
Lloh37:
	ldr	x12, [x12, _WAKE_BCAST@GOTPAGEOFF]
Lloh38:
	ldr	w12, [x12]
	tst	w12, w9
	csel	w11, wzr, w11, eq
	orr	w10, w10, w11
Lloh39:
	adrp	x11, _WAKE_MCAST@GOTPAGE
Lloh40:
	ldr	x11, [x11, _WAKE_MCAST@GOTPAGEOFF]
Lloh41:
	ldr	w11, [x11]
	tst	w11, w9
	csel	w8, wzr, w8, eq
	orr	w1, w10, w8
LBB0_4:
	ldr	w0, [x21]
	bl	_cpw8
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x19]
	mov	w0, #0
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_Config3,4,2                    ; @Config3
	.comm	_LinkUp,4,2                     ; @LinkUp
	.comm	_MagicPacket,4,2                ; @MagicPacket
	.comm	_WAKE_PHY,4,2                   ; @WAKE_PHY
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_Cfg9346,4,2                    ; @Cfg9346
	.comm	_Cfg9346_Unlock,4,2             ; @Cfg9346_Unlock
	.comm	_Cfg9346_Lock,4,2               ; @Cfg9346_Lock
	.comm	_Config5,4,2                    ; @Config5
	.comm	_UWF,4,2                        ; @UWF
	.comm	_MWF,4,2                        ; @MWF
	.comm	_BWF,4,2                        ; @BWF
	.comm	_WAKE_UCAST,4,2                 ; @WAKE_UCAST
	.comm	_WAKE_BCAST,4,2                 ; @WAKE_BCAST
	.comm	_WAKE_MCAST,4,2                 ; @WAKE_MCAST
	.no_dead_strip	_netdev_set_wol
.subsections_via_symbols
