	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dp83822_set_wol
_dp83822_set_wol:                       ## @dp83822_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
	movq	%rdi, %r15
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %r12
	movq	_WAKE_MAGICSECURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r12), %eax
	testl	%eax, (%rsi)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	(%r15), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_DP83822_DEVADDR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MII_DP83822_WOL_DA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rbx), %ecx
	shll	$8, %ecx
	orl	(%rbx), %ecx
	movq	%r15, %rdi
	callq	_phy_write_mmd
	movl	(%r13), %esi
	movq	_MII_DP83822_WOL_DA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%rbx), %ecx
	shll	$8, %ecx
	orl	8(%rbx), %ecx
	movq	%r15, %rdi
	callq	_phy_write_mmd
	movl	(%r13), %esi
	movq	_MII_DP83822_WOL_DA3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	20(%rbx), %ecx
	shll	$8, %ecx
	orl	16(%rbx), %ecx
	movq	%r15, %rdi
	callq	_phy_write_mmd
	movl	(%r13), %esi
	movq	_MII_DP83822_WOL_CFG@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rdi
	callq	_phy_read_mmd
	movl	(%r14), %ecx
	movq	_DP83822_WOL_MAGIC_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movl	%ebx, %edx
	orl	%eax, %edx
	notl	%ebx
	andl	%eax, %ebx
	testl	%ecx, (%r12)
	cmovnel	%edx, %ebx
	movq	_WAKE_MAGICSECURE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_DP83822_DEVADDR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MII_DP83822_RXSOP1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r14), %rax
	movl	4(%rax), %ecx
	shll	$8, %ecx
	orl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_phy_write_mmd
	movl	(%r12), %esi
	movq	_MII_DP83822_RXSOP2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r14), %rax
	movl	12(%rax), %ecx
	shll	$8, %ecx
	orl	8(%rax), %ecx
	movq	%r15, %rdi
	callq	_phy_write_mmd
	movl	(%r12), %esi
	movq	_MII_DP83822_RXSOP3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r14), %rax
	movl	20(%rax), %ecx
	shll	$8, %ecx
	orl	16(%rax), %ecx
	movq	%r15, %rdi
	callq	_phy_write_mmd
	movq	_DP83822_WOL_SECURE_ON@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r12, %rsi
	jmp	LBB0_6
LBB0_7:
	movq	_DP83822_DEVADDR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MII_DP83822_WOL_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_phy_read_mmd
	movq	_DP83822_WOL_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%r14), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_5:
	movq	_DP83822_WOL_SECURE_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_DP83822_DEVADDR@GOTPCREL(%rip), %rsi
LBB0_6:
	movq	_DP83822_WOL_EN@GOTPCREL(%rip), %rax
	movq	_DP83822_WOL_INDICATION_SEL@GOTPCREL(%rip), %rcx
	movq	_DP83822_WOL_CLR_INDICATION@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	movl	(%rsi), %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%ebx, %ecx
LBB0_8:
	callq	_phy_write_mmd
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_WAKE_MAGICSECURE,4,2           ## @WAKE_MAGICSECURE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DP83822_DEVADDR,4,2            ## @DP83822_DEVADDR
	.comm	_MII_DP83822_WOL_DA1,4,2        ## @MII_DP83822_WOL_DA1
	.comm	_MII_DP83822_WOL_DA2,4,2        ## @MII_DP83822_WOL_DA2
	.comm	_MII_DP83822_WOL_DA3,4,2        ## @MII_DP83822_WOL_DA3
	.comm	_MII_DP83822_WOL_CFG,4,2        ## @MII_DP83822_WOL_CFG
	.comm	_DP83822_WOL_MAGIC_EN,4,2       ## @DP83822_WOL_MAGIC_EN
	.comm	_MII_DP83822_RXSOP1,4,2         ## @MII_DP83822_RXSOP1
	.comm	_MII_DP83822_RXSOP2,4,2         ## @MII_DP83822_RXSOP2
	.comm	_MII_DP83822_RXSOP3,4,2         ## @MII_DP83822_RXSOP3
	.comm	_DP83822_WOL_SECURE_ON,4,2      ## @DP83822_WOL_SECURE_ON
	.comm	_DP83822_WOL_EN,4,2             ## @DP83822_WOL_EN
	.comm	_DP83822_WOL_INDICATION_SEL,4,2 ## @DP83822_WOL_INDICATION_SEL
	.comm	_DP83822_WOL_CLR_INDICATION,4,2 ## @DP83822_WOL_CLR_INDICATION
	.no_dead_strip	_dp83822_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dp83822_set_wol
_dp83822_set_wol:                       ; @dp83822_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	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x24, _WAKE_MAGIC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WAKE_MAGIC@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh2:
	adrp	x23, _WAKE_MAGICSECURE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _WAKE_MAGICSECURE@GOTPAGEOFF]
	ldr	w10, [x23]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	x8, [x19]
	ldr	x21, [x8]
	mov	x0, x21
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x22, _DP83822_DEVADDR@GOTPAGE
Lloh5:
	ldr	x22, [x22, _DP83822_DEVADDR@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh6:
	adrp	x8, _MII_DP83822_WOL_DA1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_DP83822_WOL_DA1@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldp	w9, w8, [x21]
	orr	w3, w9, w8, lsl #8
	mov	x0, x19
	bl	_phy_write_mmd
	ldr	w1, [x22]
Lloh9:
	adrp	x8, _MII_DP83822_WOL_DA2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_DP83822_WOL_DA2@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldp	w9, w8, [x21, #8]
	orr	w3, w9, w8, lsl #8
	mov	x0, x19
	bl	_phy_write_mmd
	ldr	w1, [x22]
Lloh12:
	adrp	x8, _MII_DP83822_WOL_DA3@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MII_DP83822_WOL_DA3@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldp	w9, w8, [x21, #16]
	orr	w3, w9, w8, lsl #8
	mov	x0, x19
	bl	_phy_write_mmd
	ldr	w1, [x22]
Lloh15:
	adrp	x21, _MII_DP83822_WOL_CFG@GOTPAGE
Lloh16:
	ldr	x21, [x21, _MII_DP83822_WOL_CFG@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_phy_read_mmd
	ldr	w8, [x20]
	ldr	w9, [x24]
Lloh17:
	adrp	x10, _DP83822_WOL_MAGIC_EN@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DP83822_WOL_MAGIC_EN@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w11, w10, w0
	bic	w10, w0, w10
	tst	w9, w8
	csel	w24, w10, w11, eq
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh20:
	adrp	x8, _MII_DP83822_RXSOP1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MII_DP83822_RXSOP1@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh22:
	ldr	w2, [x8]
	ldr	x8, [x20, #8]
	ldp	w8, w9, [x8]
	orr	w3, w8, w9, lsl #8
	mov	x0, x19
	bl	_phy_write_mmd
Lloh23:
	adrp	x8, _MII_DP83822_RXSOP2@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MII_DP83822_RXSOP2@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh25:
	ldr	w2, [x8]
	ldr	x8, [x20, #8]
	ldp	w8, w9, [x8, #8]
	orr	w3, w8, w9, lsl #8
	mov	x0, x19
	bl	_phy_write_mmd
Lloh26:
	adrp	x8, _MII_DP83822_RXSOP3@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MII_DP83822_RXSOP3@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh28:
	ldr	w2, [x8]
	ldr	x8, [x20, #8]
	ldp	w8, w9, [x8, #16]
	orr	w3, w8, w9, lsl #8
	mov	x0, x19
	bl	_phy_write_mmd
Lloh29:
	adrp	x8, _DP83822_WOL_SECURE_ON@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DP83822_WOL_SECURE_ON@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w8, w8, w24
	b	LBB0_7
LBB0_4:
Lloh32:
	adrp	x20, _DP83822_DEVADDR@GOTPAGE
Lloh33:
	ldr	x20, [x20, _DP83822_DEVADDR@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh34:
	adrp	x21, _MII_DP83822_WOL_CFG@GOTPAGE
Lloh35:
	ldr	x21, [x21, _MII_DP83822_WOL_CFG@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_phy_read_mmd
Lloh36:
	adrp	x8, _DP83822_WOL_EN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _DP83822_WOL_EN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	bic	w3, w0, w8
	ldr	w1, [x20]
	b	LBB0_8
LBB0_5:
Lloh39:
	adrp	x8, _EINVAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
Lloh42:
	adrp	x8, _DP83822_WOL_SECURE_ON@GOTPAGE
Lloh43:
	ldr	x8, [x8, _DP83822_WOL_SECURE_ON@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	bic	w8, w24, w8
LBB0_7:
Lloh45:
	adrp	x9, _DP83822_WOL_EN@GOTPAGE
Lloh46:
	ldr	x9, [x9, _DP83822_WOL_EN@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
Lloh48:
	adrp	x10, _DP83822_WOL_INDICATION_SEL@GOTPAGE
Lloh49:
	ldr	x10, [x10, _DP83822_WOL_INDICATION_SEL@GOTPAGEOFF]
Lloh50:
	ldr	w10, [x10]
Lloh51:
	adrp	x11, _DP83822_WOL_CLR_INDICATION@GOTPAGE
Lloh52:
	ldr	x11, [x11, _DP83822_WOL_CLR_INDICATION@GOTPAGEOFF]
Lloh53:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w3, w8, w11
	ldr	w1, [x22]
LBB0_8:
	ldr	w2, [x21]
	mov	x0, x19
	bl	_phy_write_mmd
	mov	w0, #0
LBB0_9:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_WAKE_MAGICSECURE,4,2           ; @WAKE_MAGICSECURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DP83822_DEVADDR,4,2            ; @DP83822_DEVADDR
	.comm	_MII_DP83822_WOL_DA1,4,2        ; @MII_DP83822_WOL_DA1
	.comm	_MII_DP83822_WOL_DA2,4,2        ; @MII_DP83822_WOL_DA2
	.comm	_MII_DP83822_WOL_DA3,4,2        ; @MII_DP83822_WOL_DA3
	.comm	_MII_DP83822_WOL_CFG,4,2        ; @MII_DP83822_WOL_CFG
	.comm	_DP83822_WOL_MAGIC_EN,4,2       ; @DP83822_WOL_MAGIC_EN
	.comm	_MII_DP83822_RXSOP1,4,2         ; @MII_DP83822_RXSOP1
	.comm	_MII_DP83822_RXSOP2,4,2         ; @MII_DP83822_RXSOP2
	.comm	_MII_DP83822_RXSOP3,4,2         ; @MII_DP83822_RXSOP3
	.comm	_DP83822_WOL_SECURE_ON,4,2      ; @DP83822_WOL_SECURE_ON
	.comm	_DP83822_WOL_EN,4,2             ; @DP83822_WOL_EN
	.comm	_DP83822_WOL_INDICATION_SEL,4,2 ; @DP83822_WOL_INDICATION_SEL
	.comm	_DP83822_WOL_CLR_INDICATION,4,2 ; @DP83822_WOL_CLR_INDICATION
	.no_dead_strip	_dp83822_set_wol
.subsections_via_symbols
