	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_set_wol
_stmmac_set_wol:                        ## @stmmac_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_WAKE_UCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	%eax, %ebx
	cmpq	$0, 24(%r12)
	je	LBB0_3
## %bb.1:
	cmpl	$0, 16(%r12)
	jne	LBB0_3
## %bb.2:
	notl	%eax
	andl	%eax, (%r14)
LBB0_3:
	movl	12(%r12), %edi
	callq	_device_can_wakeup
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	(%r14), %eax
	notl	%ebx
	testl	%ebx, %eax
	je	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_6:
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movl	12(%r12), %edi
	movl	$1, %esi
	callq	_device_set_wakeup_enable
	movl	8(%r12), %edi
	callq	_enable_irq_wake
	jmp	LBB0_9
LBB0_8:
	movl	12(%r12), %edi
	xorl	%esi, %esi
	callq	_device_set_wakeup_enable
	movl	8(%r12), %edi
	callq	_disable_irq_wake
LBB0_9:
	movq	%r12, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	(%r14), %eax
	movl	%eax, (%r12)
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_WAKE_UCAST,4,2                 ## @WAKE_UCAST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stmmac: wakeup enable\n"

	.no_dead_strip	_stmmac_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_set_wol
_stmmac_set_wol:                        ; @stmmac_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	x19, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _WAKE_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WAKE_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _WAKE_UCAST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WAKE_UCAST@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	w8, [x19]
	bic	w8, w8, w21
	str	w8, [x19]
LBB0_3:
	ldr	w0, [x20, #12]
	bl	_device_can_wakeup
	cbz	w0, LBB0_5
; %bb.4:
	orr	w9, w22, w21
	ldr	w8, [x19]
	bics	wzr, w8, w9
	b.eq	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_6:
	cbz	w8, LBB0_8
; %bb.7:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	ldr	w0, [x20, #12]
	mov	w1, #1
	bl	_device_set_wakeup_enable
	ldr	w0, [x20, #8]
	bl	_enable_irq_wake
	b	LBB0_9
LBB0_8:
	ldr	w0, [x20, #12]
	mov	w1, #0
	bl	_device_set_wakeup_enable
	ldr	w0, [x20, #8]
	bl	_disable_irq_wake
LBB0_9:
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x19]
	str	w8, [x20]
	mov	x0, x21
	bl	_mutex_unlock
	mov	w0, #0
LBB0_10:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_WAKE_UCAST,4,2                 ; @WAKE_UCAST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stmmac: wakeup enable\n"

	.no_dead_strip	_stmmac_set_wol
.subsections_via_symbols
