	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asix_set_wol
_asix_set_wol:                          ## @asix_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
	movl	(%rbx), %ecx
	movq	_WAKE_PHY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	je	LBB0_2
## %bb.1:
	movq	_AX_MONITOR_LINK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_2:
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ecx
	je	LBB0_4
## %bb.3:
	movq	_AX_MONITOR_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	%edx, %ecx
	movq	_AX_MONITOR_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	testl	%ecx, %ecx
	cmovel	%ecx, %edx
	movq	_AX_CMD_WRITE_MONITOR_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_asix_write_cmd
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %ebx
	sarq	$63, %rax
	andl	%ebx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_PHY,4,2                   ## @WAKE_PHY
	.comm	_AX_MONITOR_LINK,4,2            ## @AX_MONITOR_LINK
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_AX_MONITOR_MAGIC,4,2           ## @AX_MONITOR_MAGIC
	.comm	_AX_MONITOR_MODE,4,2            ## @AX_MONITOR_MODE
	.comm	_AX_CMD_WRITE_MONITOR_MODE,4,2  ## @AX_CMD_WRITE_MONITOR_MODE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_asix_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asix_set_wol
_asix_set_wol:                          ; @asix_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:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _AX_MONITOR_LINK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AX_MONITOR_LINK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh6:
	adrp	x10, _WAKE_MAGIC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WAKE_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _AX_MONITOR_MAGIC@GOTPAGE
Lloh10:
	ldr	x11, [x11, _AX_MONITOR_MAGIC@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _AX_MONITOR_MODE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AX_MONITOR_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w9, w8, w9
	cmp	w8, #0
	csel	w2, wzr, w9, eq
Lloh15:
	adrp	x8, _AX_CMD_WRITE_MONITOR_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AX_CMD_WRITE_MONITOR_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_asix_write_cmd
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	asr	x9, x0, #63
	neg	w8, w8
	and	w0, w9, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_PHY,4,2                   ; @WAKE_PHY
	.comm	_AX_MONITOR_LINK,4,2            ; @AX_MONITOR_LINK
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_AX_MONITOR_MAGIC,4,2           ; @AX_MONITOR_MAGIC
	.comm	_AX_MONITOR_MODE,4,2            ; @AX_MONITOR_MODE
	.comm	_AX_CMD_WRITE_MONITOR_MODE,4,2  ; @AX_CMD_WRITE_MONITOR_MODE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_asix_set_wol
.subsections_via_symbols
