	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_enable_mc_magic_wake
_i40e_enable_mc_magic_wake:             ## @i40e_enable_mc_magic_wake
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	(%rcx,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rax), %esi
	jmp	LBB0_4
LBB0_3:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	40(%rbx), %esi
LBB0_4:
	leaq	-48(%rbp), %rdi
	callq	_ether_addr_copy
	leaq	24(%rbx), %r14
	movq	_I40E_AQC_WRITE_TYPE_LAA_WOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpq	$0, 32(%rbx)
	je	LBB0_7
## %bb.5:
	cmpl	$1, (%r14)
	je	LBB0_7
## %bb.6:
	movq	_I40E_AQC_WRITE_TYPE_LAA_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_7:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_i40e_aq_mac_address_write
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_9:
	movq	_I40E_AQC_MC_MAG_EN@GOTPCREL(%rip), %rax
	movq	_I40E_AQC_WOL_PRESERVE_ON_PFR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_I40E_AQC_WRITE_TYPE_UPDATE_MC_MAG@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_i40e_aq_mac_address_write
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
LBB0_11:
	movq	8(%rbx), %rdi
	callq	_dev_err
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to retrieve MAC address; using default\n"

	.comm	_I40E_AQC_WRITE_TYPE_LAA_WOL,4,2 ## @I40E_AQC_WRITE_TYPE_LAA_WOL
	.comm	_I40E_AQC_WRITE_TYPE_LAA_ONLY,4,2 ## @I40E_AQC_WRITE_TYPE_LAA_ONLY
L_.str.1:                               ## @.str.1
	.asciz	"Failed to update MAC address registers; cannot enable Multicast Magic packet wake up"

	.comm	_I40E_AQC_MC_MAG_EN,4,2         ## @I40E_AQC_MC_MAG_EN
	.comm	_I40E_AQC_WOL_PRESERVE_ON_PFR,4,2 ## @I40E_AQC_WOL_PRESERVE_ON_PFR
	.comm	_I40E_AQC_WRITE_TYPE_UPDATE_MC_MAG,4,2 ## @I40E_AQC_WRITE_TYPE_UPDATE_MC_MAG
L_.str.2:                               ## @.str.2
	.asciz	"Failed to enable Multicast Magic Packet wake up\n"

	.no_dead_strip	_i40e_enable_mc_magic_wake
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_enable_mc_magic_wake
_i40e_enable_mc_magic_wake:             ; @i40e_enable_mc_magic_wake
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0, #16]
	ldr	x9, [x0]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x8]
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w1, [x19, #40]
LBB0_4:
	mov	x0, sp
	bl	_ether_addr_copy
	add	x20, x19, #24
Lloh5:
	adrp	x8, _I40E_AQC_WRITE_TYPE_LAA_WOL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40E_AQC_WRITE_TYPE_LAA_WOL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _I40E_AQC_WRITE_TYPE_LAA_ONLY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I40E_AQC_WRITE_TYPE_LAA_ONLY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, #1
	csel	w1, w1, w9, eq
LBB0_6:
	mov	x2, sp
	mov	x0, x20
	mov	x3, #0
	bl	_i40e_aq_mac_address_write
	cbz	x0, LBB0_8
; %bb.7:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh13:
	adrp	x8, _I40E_AQC_MC_MAG_EN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I40E_AQC_MC_MAG_EN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _I40E_AQC_WOL_PRESERVE_ON_PFR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _I40E_AQC_WOL_PRESERVE_ON_PFR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _I40E_AQC_WRITE_TYPE_UPDATE_MC_MAG@GOTPAGE
Lloh20:
	ldr	x9, [x9, _I40E_AQC_WRITE_TYPE_UPDATE_MC_MAG@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x2, sp
	mov	x0, x20
	mov	x3, #0
	bl	_i40e_aq_mac_address_write
	cbz	x0, LBB0_11
; %bb.9:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	ldr	x0, [x19, #8]
	bl	_dev_err
LBB0_11:
	ldr	x8, [sp, #24]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to retrieve MAC address; using default\n"

	.comm	_I40E_AQC_WRITE_TYPE_LAA_WOL,4,2 ; @I40E_AQC_WRITE_TYPE_LAA_WOL
	.comm	_I40E_AQC_WRITE_TYPE_LAA_ONLY,4,2 ; @I40E_AQC_WRITE_TYPE_LAA_ONLY
l_.str.1:                               ; @.str.1
	.asciz	"Failed to update MAC address registers; cannot enable Multicast Magic packet wake up"

	.comm	_I40E_AQC_MC_MAG_EN,4,2         ; @I40E_AQC_MC_MAG_EN
	.comm	_I40E_AQC_WOL_PRESERVE_ON_PFR,4,2 ; @I40E_AQC_WOL_PRESERVE_ON_PFR
	.comm	_I40E_AQC_WRITE_TYPE_UPDATE_MC_MAG,4,2 ; @I40E_AQC_WRITE_TYPE_UPDATE_MC_MAG
l_.str.2:                               ; @.str.2
	.asciz	"Failed to enable Multicast Magic Packet wake up\n"

	.no_dead_strip	_i40e_enable_mc_magic_wake
.subsections_via_symbols
