	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asix_get_wol                   ## -- Begin function asix_get_wol
	.p2align	4, 0x90
_asix_get_wol:                          ## @asix_get_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	_AX_CMD_READ_MONITOR_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	$0, (%rsp)
	xorl	%ebx, %ebx
	leaq	-20(%rbp), %r9
	movq	%rax, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_asix_read_cmd
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_WAKE_PHY@GOTPCREL(%rip), %rcx
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rcx), %edx
	movl	%edx, (%r14)
	movl	$0, 4(%r14)
	movl	-20(%rbp), %edx
	movq	_AX_MONITOR_LINK@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_4
## %bb.3:
	movl	(%rcx), %ebx
	movl	%ebx, 4(%r14)
LBB0_4:
	movq	_AX_MONITOR_MAGIC@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_6
## %bb.5:
	orl	(%rax), %ebx
	movl	%ebx, 4(%r14)
	jmp	LBB0_6
LBB0_1:
	movq	$0, (%r14)
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AX_CMD_READ_MONITOR_MODE,4,2   ## @AX_CMD_READ_MONITOR_MODE
	.comm	_WAKE_PHY,4,2                   ## @WAKE_PHY
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_AX_MONITOR_LINK,4,2            ## @AX_MONITOR_LINK
	.comm	_AX_MONITOR_MAGIC,4,2           ## @AX_MONITOR_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asix_get_wol                   ; -- Begin function asix_get_wol
	.p2align	2
_asix_get_wol:                          ; @asix_get_wol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _AX_CMD_READ_MONITOR_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AX_CMD_READ_MONITOR_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x5, sp, #12
	mov	w2, #0
	mov	w3, #0
	mov	w4, #1
	mov	w6, #0
	bl	_asix_read_cmd
	tbnz	x0, #63, LBB0_3
; %bb.1:
Lloh3:
	adrp	x10, _WAKE_PHY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WAKE_PHY@GOTPAGEOFF]
	ldr	w9, [x10]
Lloh5:
	adrp	x8, _WAKE_MAGIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WAKE_MAGIC@GOTPAGEOFF]
	ldr	w11, [x8]
	orr	w9, w11, w9
	stp	w9, wzr, [x19]
	ldr	w9, [sp, #12]
Lloh7:
	adrp	x11, _AX_MONITOR_LINK@GOTPAGE
Lloh8:
	ldr	x11, [x11, _AX_MONITOR_LINK@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_4
; %bb.2:
	ldr	w10, [x10]
	str	w10, [x19, #4]
	b	LBB0_5
LBB0_3:
	str	xzr, [x19]
	b	LBB0_7
LBB0_4:
	mov	w10, #0
LBB0_5:
Lloh10:
	adrp	x11, _AX_MONITOR_MAGIC@GOTPAGE
Lloh11:
	ldr	x11, [x11, _AX_MONITOR_MAGIC@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x8]
	orr	w8, w10, w8
	str	w8, [x19, #4]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AX_CMD_READ_MONITOR_MODE,4,2   ; @AX_CMD_READ_MONITOR_MODE
	.comm	_WAKE_PHY,4,2                   ; @WAKE_PHY
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_AX_MONITOR_LINK,4,2            ; @AX_MONITOR_LINK
	.comm	_AX_MONITOR_MAGIC,4,2           ; @AX_MONITOR_MAGIC
.subsections_via_symbols
