	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function velocity_ethtool_set_wol
_velocity_ethtool_set_wol:              ## @velocity_ethtool_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, %r14
	callq	_netdev_priv
	movl	(%r14), %r8d
	movq	_WAKE_PHY@GOTPCREL(%rip), %rdx
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	movl	(%rdx), %esi
	orl	%ebx, %esi
	movq	_WAKE_UCAST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	movq	_WAKE_ARP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%ecx, %edi
	orl	%edx, %edi
	orl	%esi, %edi
	testl	%r8d, %edi
	je	LBB0_1
## %bb.2:
	movq	_VELOCITY_WOL_MAGIC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 8(%rax)
	testl	%r8d, %ebx
	je	LBB0_4
## %bb.3:
	movq	_VELOCITY_FLAGS_WOL_ENABLED@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	%edi, 4(%rax)
LBB0_4:
	testl	%r8d, %ecx
	je	LBB0_6
## %bb.5:
	movq	_VELOCITY_WOL_UCAST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	%esi, 8(%rax)
	movq	_VELOCITY_FLAGS_WOL_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%rax)
LBB0_6:
	testl	%r8d, %edx
	je	LBB0_8
## %bb.7:
	movq	_VELOCITY_WOL_ARP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	%esi, 8(%rax)
	movq	_VELOCITY_FLAGS_WOL_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%rax)
LBB0_8:
	movl	(%rax), %edi
	movl	4(%r14), %esi
	movl	$6, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_PHY,4,2                   ## @WAKE_PHY
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_WAKE_UCAST,4,2                 ## @WAKE_UCAST
	.comm	_WAKE_ARP,4,2                   ## @WAKE_ARP
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_VELOCITY_WOL_MAGIC,4,2         ## @VELOCITY_WOL_MAGIC
	.comm	_VELOCITY_FLAGS_WOL_ENABLED,4,2 ## @VELOCITY_FLAGS_WOL_ENABLED
	.comm	_VELOCITY_WOL_UCAST,4,2         ## @VELOCITY_WOL_UCAST
	.comm	_VELOCITY_WOL_ARP,4,2           ## @VELOCITY_WOL_ARP
	.no_dead_strip	_velocity_ethtool_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function velocity_ethtool_set_wol
_velocity_ethtool_set_wol:              ; @velocity_ethtool_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	w8, [x19]
Lloh0:
	adrp	x9, _WAKE_PHY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WAKE_PHY@GOTPAGEOFF]
Lloh2:
	adrp	x10, _WAKE_MAGIC@GOTPAGE
Lloh3:
	ldr	x10, [x10, _WAKE_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w13, [x10]
	orr	w9, w13, w9
Lloh6:
	adrp	x10, _WAKE_UCAST@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WAKE_UCAST@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x10]
	orr	w10, w9, w12
Lloh9:
	adrp	x9, _WAKE_ARP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WAKE_ARP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w10, w10, w9
	tst	w10, w8
	b.eq	LBB0_8
; %bb.1:
Lloh12:
	adrp	x10, _VELOCITY_WOL_MAGIC@GOTPAGE
Lloh13:
	ldr	x10, [x10, _VELOCITY_WOL_MAGIC@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	str	w10, [x0, #8]
Lloh15:
	adrp	x11, _VELOCITY_FLAGS_WOL_ENABLED@GOTPAGE
Lloh16:
	ldr	x11, [x11, _VELOCITY_FLAGS_WOL_ENABLED@GOTPAGEOFF]
	tst	w13, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w13, [x11]
	ldr	w14, [x0, #4]
	orr	w13, w14, w13
	str	w13, [x0, #4]
LBB0_3:
	tst	w12, w8
	b.eq	LBB0_5
; %bb.4:
Lloh17:
	adrp	x12, _VELOCITY_WOL_UCAST@GOTPAGE
Lloh18:
	ldr	x12, [x12, _VELOCITY_WOL_UCAST@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x12]
	orr	w10, w10, w12
	ldr	w12, [x11]
	ldr	w13, [x0, #4]
	orr	w12, w13, w12
	stp	w12, w10, [x0, #4]
LBB0_5:
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh20:
	adrp	x8, _VELOCITY_WOL_ARP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VELOCITY_WOL_ARP@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w8, w10, w8
	ldr	w9, [x11]
	ldr	w10, [x0, #4]
	orr	w9, w10, w9
	stp	w9, w8, [x0, #4]
LBB0_7:
	ldr	w0, [x0]
	ldr	w1, [x19, #4]
	mov	w2, #6
	bl	_memcpy
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh23:
	adrp	x8, _EFAULT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_PHY,4,2                   ; @WAKE_PHY
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_WAKE_UCAST,4,2                 ; @WAKE_UCAST
	.comm	_WAKE_ARP,4,2                   ; @WAKE_ARP
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_VELOCITY_WOL_MAGIC,4,2         ; @VELOCITY_WOL_MAGIC
	.comm	_VELOCITY_FLAGS_WOL_ENABLED,4,2 ; @VELOCITY_FLAGS_WOL_ENABLED
	.comm	_VELOCITY_WOL_UCAST,4,2         ; @VELOCITY_WOL_UCAST
	.comm	_VELOCITY_WOL_ARP,4,2           ; @VELOCITY_WOL_ARP
	.no_dead_strip	_velocity_ethtool_set_wol
.subsections_via_symbols
