	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asix_set_wol                   ## -- Begin function asix_set_wol
	.p2align	4, 0x90
_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), %esi
	movq	_WAKE_PHY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %edi
	orl	%ecx, %edi
	notl	%edi
	testl	%edi, %esi
	je	LBB0_1
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_1:
	andl	%esi, %ecx
	je	LBB0_3
## %bb.2:
	movq	_AX_MONITOR_LINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_3:
	andl	%esi, %edx
	je	LBB0_5
## %bb.4:
	movq	_AX_MONITOR_MAGIC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_5:
	orl	%ecx, %edx
	movq	_AX_CMD_WRITE_MONITOR_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	$0, (%rsp)
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_asix_write_cmd
	testq	%rax, %rax
	js	LBB0_6
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_PHY,4,2                   ## @WAKE_PHY
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AX_MONITOR_LINK,4,2            ## @AX_MONITOR_LINK
	.comm	_AX_MONITOR_MAGIC,4,2           ## @AX_MONITOR_MAGIC
	.comm	_AX_CMD_WRITE_MONITOR_MODE,4,2  ## @AX_CMD_WRITE_MONITOR_MODE
.subsections_via_symbols

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