	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dp83822_get_wol
_dp83822_get_wol:                       ## @dp83822_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	%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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %r12
	movq	_WAKE_MAGICSECURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r12), %eax
	movl	%eax, (%rsi)
	movl	$0, 4(%rsi)
	movq	_DP83822_DEVADDR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MII_DP83822_WOL_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_phy_read_mmd
	movl	%eax, %r15d
	movq	_DP83822_WOL_MAGIC_EN@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r12), %eax
	orl	%eax, 4(%rbx)
LBB0_2:
	movq	_DP83822_WOL_SECURE_ON@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%r13), %esi
	movq	_MII_DP83822_RXSOP1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_phy_read_mmd
	movzbl	%al, %ecx
	movq	8(%rbx), %rdx
	movl	%ecx, (%rdx)
	sarl	$8, %eax
	movl	%eax, 4(%rdx)
	movl	(%r13), %esi
	movq	_MII_DP83822_RXSOP2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_phy_read_mmd
	movzbl	%al, %ecx
	movq	8(%rbx), %rdx
	movl	%ecx, 8(%rdx)
	sarl	$8, %eax
	movl	%eax, 12(%rdx)
	movl	(%r13), %esi
	movq	_MII_DP83822_RXSOP3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_phy_read_mmd
	movzbl	%al, %ecx
	movq	8(%rbx), %rdx
	movl	%ecx, 16(%rdx)
	sarl	$8, %eax
	movl	%eax, 20(%rdx)
	movq	_WAKE_MAGICSECURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_4:
	movq	_DP83822_WOL_EN@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	$0, 4(%rbx)
LBB0_6:
	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	_DP83822_DEVADDR,4,2            ## @DP83822_DEVADDR
	.comm	_MII_DP83822_WOL_CFG,4,2        ## @MII_DP83822_WOL_CFG
	.comm	_DP83822_WOL_MAGIC_EN,4,2       ## @DP83822_WOL_MAGIC_EN
	.comm	_DP83822_WOL_SECURE_ON,4,2      ## @DP83822_WOL_SECURE_ON
	.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_EN,4,2             ## @DP83822_WOL_EN
	.no_dead_strip	_dp83822_get_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dp83822_get_wol
_dp83822_get_wol:                       ; @dp83822_get_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, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _WAKE_MAGIC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WAKE_MAGIC@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x22, _WAKE_MAGICSECURE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WAKE_MAGICSECURE@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	stp	w8, wzr, [x1]
Lloh4:
	adrp	x23, _DP83822_DEVADDR@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DP83822_DEVADDR@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh6:
	adrp	x8, _MII_DP83822_WOL_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_DP83822_WOL_CFG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_phy_read_mmd
	mov	x21, x0
Lloh9:
	adrp	x8, _DP83822_WOL_MAGIC_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DP83822_WOL_MAGIC_EN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x24]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_2:
Lloh12:
	adrp	x8, _DP83822_WOL_SECURE_ON@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DP83822_WOL_SECURE_ON@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x23]
Lloh15:
	adrp	x8, _MII_DP83822_RXSOP1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MII_DP83822_RXSOP1@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_phy_read_mmd
	and	w8, w0, #0xff
	ldr	x9, [x19, #8]
	asr	w10, w0, #8
	stp	w8, w10, [x9]
	ldr	w1, [x23]
Lloh18:
	adrp	x8, _MII_DP83822_RXSOP2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MII_DP83822_RXSOP2@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_phy_read_mmd
	and	w8, w0, #0xff
	ldr	x9, [x19, #8]
	asr	w10, w0, #8
	stp	w8, w10, [x9, #8]
	ldr	w1, [x23]
Lloh21:
	adrp	x8, _MII_DP83822_RXSOP3@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MII_DP83822_RXSOP3@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_phy_read_mmd
	and	w8, w0, #0xff
	ldr	x9, [x19, #8]
	asr	w10, w0, #8
	stp	w8, w10, [x9, #16]
	ldr	w8, [x22]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_4:
Lloh24:
	adrp	x8, _DP83822_WOL_EN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DP83822_WOL_EN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_6
; %bb.5:
	str	wzr, [x19, #4]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_WAKE_MAGICSECURE,4,2           ; @WAKE_MAGICSECURE
	.comm	_DP83822_DEVADDR,4,2            ; @DP83822_DEVADDR
	.comm	_MII_DP83822_WOL_CFG,4,2        ; @MII_DP83822_WOL_CFG
	.comm	_DP83822_WOL_MAGIC_EN,4,2       ; @DP83822_WOL_MAGIC_EN
	.comm	_DP83822_WOL_SECURE_ON,4,2      ; @DP83822_WOL_SECURE_ON
	.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_EN,4,2             ; @DP83822_WOL_EN
	.no_dead_strip	_dp83822_get_wol
.subsections_via_symbols
