	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_nvmupd_nvm_write
_i40e_nvmupd_nvm_write:                 ## @i40e_nvmupd_nvm_write
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	12(%rsi), %edi
	callq	_i40e_nvmupd_get_transaction
	movl	%eax, %r14d
	movl	12(%rbx), %edi
	callq	_i40e_nvmupd_get_module
	movl	%eax, %r12d
	movq	_I40E_NVM_LCB@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movl	12(%rbx), %edi
	callq	_i40e_nvmupd_get_preservation_flags
	movl	%eax, %r13d
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	4(%r15), %rax
	movq	%rax, -48(%rbp)
	movl	(%rbx), %ecx
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	%r14d, %r9d
	leaq	-48(%rbp), %rax
	pushq	%rax
	pushq	%r13
	callq	_i40e_aq_update_nvm
	addq	$16, %rsp
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_I40E_DEBUG_NVM@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	8(%rbx), %r8d
	movq	(%rbx), %r9
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_i40e_debug
	movl	(%r14), %esi
	movl	(%r15), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_i40e_debug
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_i40e_aq_rc_to_posix
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_2:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_NVM_LCB,4,2               ## @I40E_NVM_LCB
	.comm	_I40E_DEBUG_NVM,4,2             ## @I40E_DEBUG_NVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i40e_nvmupd_nvm_write mod 0x%x off 0x%x len 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"i40e_nvmupd_nvm_write status %d aq %d\n"

	.no_dead_strip	_i40e_nvmupd_nvm_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_nvmupd_nvm_write
_i40e_nvmupd_nvm_write:                 ; @i40e_nvmupd_nvm_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x1, #12]
	bl	_i40e_nvmupd_get_transaction
	mov	x24, x0
	ldr	w0, [x21, #12]
	bl	_i40e_nvmupd_get_module
	mov	x22, x0
Lloh0:
	adrp	x8, _I40E_NVM_LCB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_NVM_LCB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w24, w8, w24
	ldr	w0, [x21, #12]
	bl	_i40e_nvmupd_get_preservation_flags
	mov	x25, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x8, x20, #4
	str	x8, [sp, #8]
	ldr	w2, [x21, #8]
	ldr	w3, [x21]
	add	x7, sp, #8
	mov	x0, x20
	mov	x1, x22
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	bl	_i40e_aq_update_nvm
	mov	x23, x0
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x24, _I40E_DEBUG_NVM@GOTPAGE
Lloh4:
	ldr	x24, [x24, _I40E_DEBUG_NVM@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w4, [x21, #8]
	ldr	x8, [x21]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	str	x8, [sp]
	mov	x0, x20
	mov	x3, x22
	bl	_i40e_debug
	ldr	w1, [x24]
	ldr	w4, [x20]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x23
	bl	_i40e_debug
	ldr	w1, [x20]
	mov	x0, x23
	bl	_i40e_aq_rc_to_posix
	str	w0, [x19]
LBB0_2:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_NVM_LCB,4,2               ; @I40E_NVM_LCB
	.comm	_I40E_DEBUG_NVM,4,2             ; @I40E_DEBUG_NVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i40e_nvmupd_nvm_write mod 0x%x off 0x%x len 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"i40e_nvmupd_nvm_write status %d aq %d\n"

	.no_dead_strip	_i40e_nvmupd_nvm_write
.subsections_via_symbols
