	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd8111e_set_wol
_amd8111e_set_wol:                      ## @amd8111e_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	%rsi, %rbx
	callq	_netdev_priv
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %r13
	movq	_WAKE_PHY@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	(%r13), %ecx
	notl	%ecx
	testl	%ecx, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	movq	%rax, %r14
	movq	%rax, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movl	(%rbx), %ecx
	testl	%ecx, (%r13)
	je	LBB0_4
## %bb.3:
	movq	_OPTION_WOL_ENABLE@GOTPCREL(%rip), %rax
	movq	_OPTION_WAKE_MAGIC_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r14)
	jmp	LBB0_7
LBB0_4:
	movq	_OPTION_WOL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, (%r12)
	je	LBB0_6
## %bb.5:
	movq	_OPTION_WAKE_PHY_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, (%r14)
	jmp	LBB0_7
LBB0_6:
	notl	%eax
	andl	%eax, (%r14)
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
LBB0_8:
	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_PHY,4,2                   ## @WAKE_PHY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OPTION_WOL_ENABLE,4,2          ## @OPTION_WOL_ENABLE
	.comm	_OPTION_WAKE_MAGIC_ENABLE,4,2   ## @OPTION_WAKE_MAGIC_ENABLE
	.comm	_OPTION_WAKE_PHY_ENABLE,4,2     ## @OPTION_WAKE_PHY_ENABLE
	.no_dead_strip	_amd8111e_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd8111e_set_wol
_amd8111e_set_wol:                      ; @amd8111e_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	x21, x1
	bl	_netdev_priv
	ldr	w8, [x21]
Lloh0:
	adrp	x23, _WAKE_MAGIC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WAKE_MAGIC@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh2:
	adrp	x22, _WAKE_PHY@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WAKE_PHY@GOTPAGEOFF]
	ldr	w10, [x22]
	orr	w9, w10, w9
	bics	wzr, w8, w9
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	w8, [x21]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _OPTION_WOL_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OPTION_WOL_ENABLE@GOTPAGEOFF]
Lloh9:
	adrp	x9, _OPTION_WAKE_MAGIC_ENABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OPTION_WAKE_MAGIC_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_6
LBB0_4:
	ldr	w10, [x22]
Lloh13:
	adrp	x9, _OPTION_WOL_ENABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OPTION_WOL_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w10, w8
	b.eq	LBB0_9
; %bb.5:
Lloh16:
	adrp	x8, _OPTION_WAKE_PHY_ENABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OPTION_WAKE_PHY_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w8, w8, w9
LBB0_6:
	ldr	w9, [x19]
	orr	w8, w8, w9
LBB0_7:
	str	w8, [x19]
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	w0, #0
LBB0_8:
	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
LBB0_9:
	ldr	w8, [x19]
	bic	w8, w8, w9
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_WAKE_PHY,4,2                   ; @WAKE_PHY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OPTION_WOL_ENABLE,4,2          ; @OPTION_WOL_ENABLE
	.comm	_OPTION_WAKE_MAGIC_ENABLE,4,2   ; @OPTION_WAKE_MAGIC_ENABLE
	.comm	_OPTION_WAKE_PHY_ENABLE,4,2     ; @OPTION_WAKE_PHY_ENABLE
	.no_dead_strip	_amd8111e_set_wol
.subsections_via_symbols
