	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88e1318_get_wol
_m88e1318_get_wol:                      ## @m88e1318_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, 4(%rsi)
	movl	$0, (%rsi)
	movq	_MII_MARVELL_WOL_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phy_select_page
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_MII_88E1318S_PHY_WOL_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	___phy_read
	movl	%eax, %edx
	movq	_MII_88E1318S_PHY_WOL_CTRL_MAGIC_PACKET_MATCH_ENABLE@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%r12), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_4
LBB0_1:
	xorl	%edx, %edx
LBB0_4:
	movq	%r14, %rdi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_restore_page               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_MII_MARVELL_WOL_PAGE,4,2       ## @MII_MARVELL_WOL_PAGE
	.comm	_MII_88E1318S_PHY_WOL_CTRL,4,2  ## @MII_88E1318S_PHY_WOL_CTRL
	.comm	_MII_88E1318S_PHY_WOL_CTRL_MAGIC_PACKET_MATCH_ENABLE,4,2 ## @MII_88E1318S_PHY_WOL_CTRL_MAGIC_PACKET_MATCH_ENABLE
	.no_dead_strip	_m88e1318_get_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88e1318_get_wol
_m88e1318_get_wol:                      ; @m88e1318_get_wol
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _WAKE_MAGIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WAKE_MAGIC@GOTPAGEOFF]
	ldr	w8, [x22]
	stp	wzr, w8, [x1]
Lloh2:
	adrp	x8, _MII_MARVELL_WOL_PAGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_MARVELL_WOL_PAGE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_phy_select_page
	mov	x21, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _MII_88E1318S_PHY_WOL_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MII_88E1318S_PHY_WOL_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___phy_read
	mov	x2, x0
Lloh8:
	adrp	x8, _MII_88E1318S_PHY_WOL_CTRL_MAGIC_PACKET_MATCH_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MII_88E1318S_PHY_WOL_CTRL_MAGIC_PACKET_MATCH_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_4
LBB0_3:
	mov	w2, #0
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_phy_restore_page
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_MII_MARVELL_WOL_PAGE,4,2       ; @MII_MARVELL_WOL_PAGE
	.comm	_MII_88E1318S_PHY_WOL_CTRL,4,2  ; @MII_88E1318S_PHY_WOL_CTRL
	.comm	_MII_88E1318S_PHY_WOL_CTRL_MAGIC_PACKET_MATCH_ENABLE,4,2 ; @MII_88E1318S_PHY_WOL_CTRL_MAGIC_PACKET_MATCH_ENABLE
	.no_dead_strip	_m88e1318_get_wol
.subsections_via_symbols
