	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_set_wol
_i40e_set_wol:                          ## @i40e_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %r15
	cmpl	$1, 32(%r15)
	jne	LBB0_1
## %bb.2:
	movq	(%r15), %rcx
	movq	24(%r15), %rdx
	cmpq	(%rdx,%rcx,8), %rax
	jne	LBB0_3
## %bb.4:
	leaq	32(%r15), %rdi
	movq	_I40E_SR_NVM_WAKE_ON_LAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_i40e_read_nvm_word
	movl	36(%r15), %edi
	callq	_BIT
	testl	%eax, -28(%rbp)
	jne	LBB0_3
## %bb.5:
	movl	(%r14), %eax
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, %eax
	jne	LBB0_3
## %bb.6:
	xorl	%esi, %esi
	testl	%eax, %eax
	setne	%sil
	xorl	%ebx, %ebx
	cmpl	%esi, 8(%r15)
	je	LBB0_8
## %bb.7:
	movl	%esi, 8(%r15)
	movq	16(%r15), %rdi
	callq	_device_set_wakeup_enable
	jmp	LBB0_8
LBB0_1:
	movq	%r15, %rdi
	callq	_i40e_partition_setting_complaint
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_I40E_SR_NVM_WAKE_ON_LAN,4,2    ## @I40E_SR_NVM_WAKE_ON_LAN
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.no_dead_strip	_i40e_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_set_wol
_i40e_set_wol:                          ; @i40e_set_wol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x19, [x8]
	mov	x0, x19
	ldr	w9, [x0, #32]!
	cmp	w9, #1
	b.ne	LBB0_7
; %bb.1:
	ldr	x9, [x19, #24]
	ldr	x10, [x19]
	ldr	x9, [x9, x10, lsl #3]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _I40E_SR_NVM_WAKE_ON_LAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_SR_NVM_WAKE_ON_LAN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_i40e_read_nvm_word
	ldr	w0, [x19, #36]
	bl	_BIT
	ldr	w8, [sp, #12]
	tst	w8, w0
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _WAKE_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WAKE_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.ne	LBB0_8
; %bb.4:
	ldr	w9, [x19, #8]
	cmp	w8, #0
	cset	w1, ne
	cmp	w9, w1
	b.eq	LBB0_6
; %bb.5:
	str	w1, [x19, #8]
	ldr	x0, [x19, #16]
	bl	_device_set_wakeup_enable
LBB0_6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_i40e_partition_setting_complaint
LBB0_8:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_I40E_SR_NVM_WAKE_ON_LAN,4,2    ; @I40E_SR_NVM_WAKE_ON_LAN
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.no_dead_strip	_i40e_set_wol
.subsections_via_symbols
