	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88e1318_set_wol
_m88e1318_set_wol:                      ## @m88e1318_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_phy_save_page
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.3:
	movq	_MII_MARVELL_COPPER_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_marvell_write_page
	testl	%eax, %eax
	js	LBB0_17
## %bb.4:
	movq	%r15, %rdi
	callq	_phy_interrupt_is_valid
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_MII_M1011_IEVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	___phy_read
LBB0_6:
	movq	_MII_88E1318S_PHY_CSIER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_88E1318S_PHY_CSIER_WOL_EIE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	___phy_modify
	testl	%eax, %eax
	js	LBB0_17
## %bb.7:
	movq	_MII_MARVELL_LED_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_marvell_write_page
	testl	%eax, %eax
	js	LBB0_17
## %bb.8:
	movq	_MII_88E1318S_PHY_LED_TCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_88E1318S_PHY_LED_TCR_FORCE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MII_88E1318S_PHY_LED_TCR_INTn_ENABLE@GOTPCREL(%rip), %rax
	movq	_MII_88E1318S_PHY_LED_TCR_INT_ACTIVE_LOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r15, %rdi
	callq	___phy_modify
	testl	%eax, %eax
	js	LBB0_17
## %bb.9:
	movq	_MII_MARVELL_WOL_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_marvell_write_page
	testl	%eax, %eax
	js	LBB0_17
## %bb.10:
	movq	_MII_88E1318S_PHY_MAGIC_PACKET_WORD2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	20(%rax), %edx
	shll	$8, %edx
	orl	16(%rax), %edx
	movq	%r15, %rdi
	callq	___phy_write
	testl	%eax, %eax
	js	LBB0_17
## %bb.11:
	movq	_MII_88E1318S_PHY_MAGIC_PACKET_WORD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	12(%rax), %edx
	shll	$8, %edx
	orl	8(%rax), %edx
	movq	%r15, %rdi
	callq	___phy_write
	testl	%eax, %eax
	js	LBB0_17
## %bb.12:
	movq	_MII_88E1318S_PHY_MAGIC_PACKET_WORD0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edx
	shll	$8, %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	___phy_write
	testl	%eax, %eax
	js	LBB0_17
## %bb.13:
	movq	_MII_88E1318S_PHY_WOL_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_88E1318S_PHY_WOL_CTRL_CLEAR_WOL_STATUS@GOTPCREL(%rip), %rax
	movq	_MII_88E1318S_PHY_WOL_CTRL_MAGIC_PACKET_MATCH_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	jmp	LBB0_16
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_14:
	movq	_MII_MARVELL_WOL_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_marvell_write_page
	testl	%eax, %eax
	js	LBB0_17
## %bb.15:
	movq	_MII_88E1318S_PHY_WOL_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_88E1318S_PHY_WOL_CTRL_MAGIC_PACKET_MATCH_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MII_88E1318S_PHY_WOL_CTRL_CLEAR_WOL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
LBB0_16:
	callq	___phy_modify
LBB0_17:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	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_COPPER_PAGE,4,2    ## @MII_MARVELL_COPPER_PAGE
	.comm	_MII_M1011_IEVENT,4,2           ## @MII_M1011_IEVENT
	.comm	_MII_88E1318S_PHY_CSIER,4,2     ## @MII_88E1318S_PHY_CSIER
	.comm	_MII_88E1318S_PHY_CSIER_WOL_EIE,4,2 ## @MII_88E1318S_PHY_CSIER_WOL_EIE
	.comm	_MII_MARVELL_LED_PAGE,4,2       ## @MII_MARVELL_LED_PAGE
	.comm	_MII_88E1318S_PHY_LED_TCR,4,2   ## @MII_88E1318S_PHY_LED_TCR
	.comm	_MII_88E1318S_PHY_LED_TCR_FORCE_INT,4,2 ## @MII_88E1318S_PHY_LED_TCR_FORCE_INT
	.comm	_MII_88E1318S_PHY_LED_TCR_INTn_ENABLE,4,2 ## @MII_88E1318S_PHY_LED_TCR_INTn_ENABLE
	.comm	_MII_88E1318S_PHY_LED_TCR_INT_ACTIVE_LOW,4,2 ## @MII_88E1318S_PHY_LED_TCR_INT_ACTIVE_LOW
	.comm	_MII_MARVELL_WOL_PAGE,4,2       ## @MII_MARVELL_WOL_PAGE
	.comm	_MII_88E1318S_PHY_MAGIC_PACKET_WORD2,4,2 ## @MII_88E1318S_PHY_MAGIC_PACKET_WORD2
	.comm	_MII_88E1318S_PHY_MAGIC_PACKET_WORD1,4,2 ## @MII_88E1318S_PHY_MAGIC_PACKET_WORD1
	.comm	_MII_88E1318S_PHY_MAGIC_PACKET_WORD0,4,2 ## @MII_88E1318S_PHY_MAGIC_PACKET_WORD0
	.comm	_MII_88E1318S_PHY_WOL_CTRL,4,2  ## @MII_88E1318S_PHY_WOL_CTRL
	.comm	_MII_88E1318S_PHY_WOL_CTRL_CLEAR_WOL_STATUS,4,2 ## @MII_88E1318S_PHY_WOL_CTRL_CLEAR_WOL_STATUS
	.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_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88e1318_set_wol
_m88e1318_set_wol:                      ; @m88e1318_set_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	x21, x1
	mov	x19, x0
	bl	_phy_save_page
	mov	x20, x0
	tbnz	w0, #31, LBB0_13
; %bb.1:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _WAKE_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WAKE_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.2:
Lloh3:
	adrp	x8, _MII_MARVELL_COPPER_PAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_MARVELL_COPPER_PAGE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_marvell_write_page
	tbnz	w0, #31, LBB0_17
; %bb.3:
	mov	x0, x19
	bl	_phy_interrupt_is_valid
	cbnz	w0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _MII_M1011_IEVENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_M1011_IEVENT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___phy_read
LBB0_5:
Lloh9:
	adrp	x8, _MII_88E1318S_PHY_CSIER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_88E1318S_PHY_CSIER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _MII_88E1318S_PHY_CSIER_WOL_EIE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MII_88E1318S_PHY_CSIER_WOL_EIE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	___phy_modify
	tbnz	w0, #31, LBB0_17
; %bb.6:
Lloh15:
	adrp	x8, _MII_MARVELL_LED_PAGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MII_MARVELL_LED_PAGE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_marvell_write_page
	tbnz	w0, #31, LBB0_17
; %bb.7:
Lloh18:
	adrp	x8, _MII_88E1318S_PHY_LED_TCR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MII_88E1318S_PHY_LED_TCR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _MII_88E1318S_PHY_LED_TCR_FORCE_INT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MII_88E1318S_PHY_LED_TCR_FORCE_INT@GOTPAGEOFF]
Lloh23:
	adrp	x9, _MII_88E1318S_PHY_LED_TCR_INTn_ENABLE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MII_88E1318S_PHY_LED_TCR_INTn_ENABLE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	ldr	w8, [x9]
Lloh27:
	adrp	x9, _MII_88E1318S_PHY_LED_TCR_INT_ACTIVE_LOW@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MII_88E1318S_PHY_LED_TCR_INT_ACTIVE_LOW@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	bl	___phy_modify
	tbnz	w0, #31, LBB0_17
; %bb.8:
Lloh30:
	adrp	x8, _MII_MARVELL_WOL_PAGE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MII_MARVELL_WOL_PAGE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_marvell_write_page
	tbnz	w0, #31, LBB0_17
; %bb.9:
Lloh33:
	adrp	x8, _MII_88E1318S_PHY_MAGIC_PACKET_WORD2@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MII_88E1318S_PHY_MAGIC_PACKET_WORD2@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldp	w8, w9, [x8, #16]
	orr	w2, w8, w9, lsl #8
	mov	x0, x19
	bl	___phy_write
	tbnz	w0, #31, LBB0_17
; %bb.10:
Lloh36:
	adrp	x8, _MII_88E1318S_PHY_MAGIC_PACKET_WORD1@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MII_88E1318S_PHY_MAGIC_PACKET_WORD1@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldp	w8, w9, [x8, #8]
	orr	w2, w8, w9, lsl #8
	mov	x0, x19
	bl	___phy_write
	tbnz	w0, #31, LBB0_17
; %bb.11:
Lloh39:
	adrp	x8, _MII_88E1318S_PHY_MAGIC_PACKET_WORD0@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MII_88E1318S_PHY_MAGIC_PACKET_WORD0@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldp	w8, w9, [x8]
	orr	w2, w8, w9, lsl #8
	mov	x0, x19
	bl	___phy_write
	tbnz	w0, #31, LBB0_17
; %bb.12:
Lloh42:
	adrp	x8, _MII_88E1318S_PHY_WOL_CTRL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MII_88E1318S_PHY_WOL_CTRL@GOTPAGEOFF]
Lloh44:
	adrp	x9, _MII_88E1318S_PHY_WOL_CTRL_CLEAR_WOL_STATUS@GOTPAGE
Lloh45:
	ldr	x9, [x9, _MII_88E1318S_PHY_WOL_CTRL_CLEAR_WOL_STATUS@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	ldr	w8, [x9]
Lloh48:
	adrp	x9, _MII_88E1318S_PHY_WOL_CTRL_MAGIC_PACKET_MATCH_ENABLE@GOTPAGE
Lloh49:
	ldr	x9, [x9, _MII_88E1318S_PHY_WOL_CTRL_MAGIC_PACKET_MATCH_ENABLE@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	mov	w2, #0
	b	LBB0_16
LBB0_13:
	mov	w2, #0
	b	LBB0_18
LBB0_14:
Lloh51:
	adrp	x8, _MII_MARVELL_WOL_PAGE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MII_MARVELL_WOL_PAGE@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_marvell_write_page
	tbnz	w0, #31, LBB0_17
; %bb.15:
Lloh54:
	adrp	x8, _MII_88E1318S_PHY_WOL_CTRL@GOTPAGE
Lloh55:
	ldr	x8, [x8, _MII_88E1318S_PHY_WOL_CTRL@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x8, _MII_88E1318S_PHY_WOL_CTRL_MAGIC_PACKET_MATCH_ENABLE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MII_88E1318S_PHY_WOL_CTRL_MAGIC_PACKET_MATCH_ENABLE@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
Lloh60:
	adrp	x8, _MII_88E1318S_PHY_WOL_CTRL_CLEAR_WOL_STATUS@GOTPAGE
Lloh61:
	ldr	x8, [x8, _MII_88E1318S_PHY_WOL_CTRL_CLEAR_WOL_STATUS@GOTPAGEOFF]
Lloh62:
	ldr	w3, [x8]
	mov	x0, x19
LBB0_16:
	bl	___phy_modify
LBB0_17:
	mov	x2, x0
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh46
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_MII_MARVELL_COPPER_PAGE,4,2    ; @MII_MARVELL_COPPER_PAGE
	.comm	_MII_M1011_IEVENT,4,2           ; @MII_M1011_IEVENT
	.comm	_MII_88E1318S_PHY_CSIER,4,2     ; @MII_88E1318S_PHY_CSIER
	.comm	_MII_88E1318S_PHY_CSIER_WOL_EIE,4,2 ; @MII_88E1318S_PHY_CSIER_WOL_EIE
	.comm	_MII_MARVELL_LED_PAGE,4,2       ; @MII_MARVELL_LED_PAGE
	.comm	_MII_88E1318S_PHY_LED_TCR,4,2   ; @MII_88E1318S_PHY_LED_TCR
	.comm	_MII_88E1318S_PHY_LED_TCR_FORCE_INT,4,2 ; @MII_88E1318S_PHY_LED_TCR_FORCE_INT
	.comm	_MII_88E1318S_PHY_LED_TCR_INTn_ENABLE,4,2 ; @MII_88E1318S_PHY_LED_TCR_INTn_ENABLE
	.comm	_MII_88E1318S_PHY_LED_TCR_INT_ACTIVE_LOW,4,2 ; @MII_88E1318S_PHY_LED_TCR_INT_ACTIVE_LOW
	.comm	_MII_MARVELL_WOL_PAGE,4,2       ; @MII_MARVELL_WOL_PAGE
	.comm	_MII_88E1318S_PHY_MAGIC_PACKET_WORD2,4,2 ; @MII_88E1318S_PHY_MAGIC_PACKET_WORD2
	.comm	_MII_88E1318S_PHY_MAGIC_PACKET_WORD1,4,2 ; @MII_88E1318S_PHY_MAGIC_PACKET_WORD1
	.comm	_MII_88E1318S_PHY_MAGIC_PACKET_WORD0,4,2 ; @MII_88E1318S_PHY_MAGIC_PACKET_WORD0
	.comm	_MII_88E1318S_PHY_WOL_CTRL,4,2  ; @MII_88E1318S_PHY_WOL_CTRL
	.comm	_MII_88E1318S_PHY_WOL_CTRL_CLEAR_WOL_STATUS,4,2 ; @MII_88E1318S_PHY_WOL_CTRL_CLEAR_WOL_STATUS
	.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_set_wol
.subsections_via_symbols
