	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __rtl_set_wol
___rtl_set_wol:                         ## @__rtl_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_PLA_CRWECR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_CRWECR_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_ocp_write_byte
	movl	(%r15), %esi
	movq	_PLA_CONFIG34@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_ocp_read_word
	movq	_LINK_ON_WAKE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	movq	_WAKE_PHY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%r14d, %esi
	orl	%eax, %ecx
	testl	%esi, %esi
	cmovel	%edx, %ecx
	movl	(%r15), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_ocp_write_word
	movl	(%r15), %esi
	movq	_PLA_CONFIG5@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_ocp_read_word
	movq	_UWF_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_BWF_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	orl	%ecx, %esi
	movq	_MWF_EN@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	%edi, %esi
	notl	%esi
	andl	%eax, %esi
	movq	_WAKE_UCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	cmovnel	%ecx, %eax
	orl	%esi, %eax
	movq	_WAKE_BCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%r14d, %esi
	cmovnel	%edx, %esi
	movq	_WAKE_MCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	cmovnel	%edi, %ecx
	orl	%esi, %ecx
	orl	%eax, %ecx
	movl	(%r15), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_ocp_write_word
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	_CRWECR_NORAML@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_ocp_write_byte
	movl	(%r15), %esi
	movq	_PLA_CFG_WOL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_ocp_read_word
	movq	_MAGIC_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%r14d, %esi
	orl	%eax, %ecx
	testl	%esi, %esi
	cmovel	%edx, %ecx
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_ocp_write_word
	movq	_WAKE_ANY@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	andl	(%rax), %r14d
	setne	%sil
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_set_wakeup_enable       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCU_TYPE_PLA,4,2               ## @MCU_TYPE_PLA
	.comm	_PLA_CRWECR,4,2                 ## @PLA_CRWECR
	.comm	_CRWECR_CONFIG,4,2              ## @CRWECR_CONFIG
	.comm	_PLA_CONFIG34,4,2               ## @PLA_CONFIG34
	.comm	_LINK_ON_WAKE_EN,4,2            ## @LINK_ON_WAKE_EN
	.comm	_WAKE_PHY,4,2                   ## @WAKE_PHY
	.comm	_PLA_CONFIG5,4,2                ## @PLA_CONFIG5
	.comm	_UWF_EN,4,2                     ## @UWF_EN
	.comm	_BWF_EN,4,2                     ## @BWF_EN
	.comm	_MWF_EN,4,2                     ## @MWF_EN
	.comm	_WAKE_UCAST,4,2                 ## @WAKE_UCAST
	.comm	_WAKE_BCAST,4,2                 ## @WAKE_BCAST
	.comm	_WAKE_MCAST,4,2                 ## @WAKE_MCAST
	.comm	_CRWECR_NORAML,4,2              ## @CRWECR_NORAML
	.comm	_PLA_CFG_WOL,4,2                ## @PLA_CFG_WOL
	.comm	_MAGIC_EN,4,2                   ## @MAGIC_EN
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_WAKE_ANY,4,2                   ## @WAKE_ANY
	.no_dead_strip	___rtl_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __rtl_set_wol
___rtl_set_wol:                         ; @__rtl_set_wol
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _MCU_TYPE_PLA@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MCU_TYPE_PLA@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _PLA_CRWECR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PLA_CRWECR@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh4:
	adrp	x8, _CRWECR_CONFIG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CRWECR_CONFIG@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	bl	_ocp_write_byte
	ldr	w1, [x21]
Lloh7:
	adrp	x23, _PLA_CONFIG34@GOTPAGE
Lloh8:
	ldr	x23, [x23, _PLA_CONFIG34@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ocp_read_word
Lloh9:
	adrp	x8, _LINK_ON_WAKE_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LINK_ON_WAKE_EN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w9, w0, w8
Lloh12:
	adrp	x10, _WAKE_PHY@GOTPAGE
Lloh13:
	ldr	x10, [x10, _WAKE_PHY@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w8, w8, w0
	tst	w10, w20
	csel	w3, w9, w8, eq
	ldr	w1, [x21]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ocp_write_word
	ldr	w1, [x21]
Lloh15:
	adrp	x23, _PLA_CONFIG5@GOTPAGE
Lloh16:
	ldr	x23, [x23, _PLA_CONFIG5@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ocp_read_word
Lloh17:
	adrp	x8, _UWF_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UWF_EN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _BWF_EN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BWF_EN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _MWF_EN@GOTPAGE
Lloh24:
	ldr	x10, [x10, _MWF_EN@GOTPAGEOFF]
	orr	w11, w9, w8
Lloh25:
	ldr	w10, [x10]
	orr	w11, w11, w10
	bic	w11, w0, w11
Lloh26:
	adrp	x12, _WAKE_UCAST@GOTPAGE
Lloh27:
	ldr	x12, [x12, _WAKE_UCAST@GOTPAGEOFF]
Lloh28:
	ldr	w12, [x12]
	tst	w12, w20
	csel	w8, wzr, w8, eq
	orr	w8, w8, w11
Lloh29:
	adrp	x11, _WAKE_BCAST@GOTPAGE
Lloh30:
	ldr	x11, [x11, _WAKE_BCAST@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	tst	w11, w20
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh32:
	adrp	x9, _WAKE_MCAST@GOTPAGE
Lloh33:
	ldr	x9, [x9, _WAKE_MCAST@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w20
	csel	w9, wzr, w10, eq
	orr	w3, w8, w9
	ldr	w1, [x21]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ocp_write_word
	ldr	w1, [x21]
	ldr	w2, [x22]
Lloh35:
	adrp	x8, _CRWECR_NORAML@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CRWECR_NORAML@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_ocp_write_byte
	ldr	w1, [x21]
Lloh38:
	adrp	x22, _PLA_CFG_WOL@GOTPAGE
Lloh39:
	ldr	x22, [x22, _PLA_CFG_WOL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_ocp_read_word
Lloh40:
	adrp	x8, _MAGIC_EN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MAGIC_EN@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	bic	w9, w0, w8
Lloh43:
	adrp	x10, _WAKE_MAGIC@GOTPAGE
Lloh44:
	ldr	x10, [x10, _WAKE_MAGIC@GOTPAGEOFF]
Lloh45:
	ldr	w10, [x10]
	orr	w8, w8, w0
	tst	w10, w20
	csel	w3, w9, w8, eq
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_ocp_write_word
Lloh46:
	adrp	x8, _WAKE_ANY@GOTPAGE
Lloh47:
	ldr	x8, [x8, _WAKE_ANY@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w1, ne
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_device_set_wakeup_enable
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MCU_TYPE_PLA,4,2               ; @MCU_TYPE_PLA
	.comm	_PLA_CRWECR,4,2                 ; @PLA_CRWECR
	.comm	_CRWECR_CONFIG,4,2              ; @CRWECR_CONFIG
	.comm	_PLA_CONFIG34,4,2               ; @PLA_CONFIG34
	.comm	_LINK_ON_WAKE_EN,4,2            ; @LINK_ON_WAKE_EN
	.comm	_WAKE_PHY,4,2                   ; @WAKE_PHY
	.comm	_PLA_CONFIG5,4,2                ; @PLA_CONFIG5
	.comm	_UWF_EN,4,2                     ; @UWF_EN
	.comm	_BWF_EN,4,2                     ; @BWF_EN
	.comm	_MWF_EN,4,2                     ; @MWF_EN
	.comm	_WAKE_UCAST,4,2                 ; @WAKE_UCAST
	.comm	_WAKE_BCAST,4,2                 ; @WAKE_BCAST
	.comm	_WAKE_MCAST,4,2                 ; @WAKE_MCAST
	.comm	_CRWECR_NORAML,4,2              ; @CRWECR_NORAML
	.comm	_PLA_CFG_WOL,4,2                ; @PLA_CFG_WOL
	.comm	_MAGIC_EN,4,2                   ; @MAGIC_EN
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_WAKE_ANY,4,2                   ; @WAKE_ANY
	.no_dead_strip	___rtl_set_wol
.subsections_via_symbols
