	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_nvmupd_command            ## -- Begin function i40e_nvmupd_command
	.p2align	4, 0x90
_i40e_nvmupd_command:                   ## @i40e_nvmupd_command
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$0, (%rcx)
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdx
	callq	_i40e_nvmupd_validate_command
	movl	%eax, %r13d
	movq	_I40E_DEBUG_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_i40e_nvm_update_state_str@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r13d, %ecx
	movl	(%rax,%rcx,4), %ecx
	movl	12(%rbx), %r9d
	movl	(%rbx), %r8d
	movl	8(%rbx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	12(%r12), %r11d
	movl	8(%r12), %r15d
	movl	(%r12), %r14d
	movl	4(%r12), %r10d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r14
	pushq	%r15
	pushq	%r11
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_i40e_debug
	addq	$48, %rsp
	movq	_I40E_NVMUPD_INVALID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_2
## %bb.1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	subl	(%rax), %r8d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r8d, (%rax)
	movq	_I40E_DEBUG_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_i40e_debug
LBB0_2:
	movq	_I40E_NVMUPD_STATUS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_9
## %bb.3:
	cmpl	$0, 4(%r12)
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	cmpl	$4, 4(%r12)
	jl	LBB0_7
## %bb.6:
	movl	$0, 4(%rcx)
	movl	8(%rbx), %eax
	movl	%eax, 8(%rcx)
LBB0_7:
	movl	(%rbx), %eax
	movq	_I40E_NVMUPD_STATE_ERROR@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.8:
	movl	$132, (%rbx)
	jmp	LBB0_21
LBB0_9:
	movl	(%rbx), %eax
	movq	_I40E_NVMUPD_STATE_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.10:
	movq	_I40E_DEBUG_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_i40e_debug
	movl	$132, (%rbx)
LBB0_11:
	leaq	4(%rbx), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movl	(%rbx), %ecx
	leal	-128(%rcx), %eax
	cmpl	$4, %eax
	ja	LBB0_19
## %bb.12:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_16:
	cmpl	$65535, (%r12)                  ## imm = 0xFFFF
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_i40e_nvmupd_clear_wait_state
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_4:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	_I40E_ERR_BUF_TOO_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_21
LBB0_19:
	movq	_I40E_DEBUG_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_i40e_debug
	movq	_I40E_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ESRCH@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	jmp	LBB0_20
LBB0_15:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_i40e_nvmupd_state_writing
	movl	%eax, %r15d
	jmp	LBB0_20
LBB0_14:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_i40e_nvmupd_state_reading
	movl	%eax, %r15d
	jmp	LBB0_20
LBB0_13:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_i40e_nvmupd_state_init
	movl	%eax, %r15d
	jmp	LBB0_20
LBB0_18:
	movq	_I40E_ERR_NOT_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
LBB0_20:
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_21:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_I40E_DEBUG_NVM,4,2             ## @I40E_DEBUG_NVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s state %d nvm_release_on_hold %d opc 0x%04x cmd 0x%08x config 0x%08x offset 0x%08x data_size 0x%08x\n"

	.comm	_i40e_nvm_update_state_str,8,3  ## @i40e_nvm_update_state_str
	.comm	_I40E_NVMUPD_INVALID,4,2        ## @I40E_NVMUPD_INVALID
	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.1:                               ## @.str.1
	.asciz	"i40e_nvmupd_validate_command returns %d errno %d\n"

	.comm	_I40E_NVMUPD_STATUS,4,2         ## @I40E_NVMUPD_STATUS
	.comm	_I40E_ERR_BUF_TOO_SHORT,4,2     ## @I40E_ERR_BUF_TOO_SHORT
	.comm	_I40E_NVMUPD_STATE_ERROR,4,2    ## @I40E_NVMUPD_STATE_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Clearing I40E_NVMUPD_STATE_ERROR state without reading\n"

	.comm	_I40E_ERR_NOT_READY,4,2         ## @I40E_ERR_NOT_READY
	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.3:                               ## @.str.3
	.asciz	"NVMUPD: no such state %d\n"

	.comm	_I40E_NOT_SUPPORTED,4,2         ## @I40E_NOT_SUPPORTED
	.comm	_ESRCH,4,2                      ## @ESRCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_nvmupd_command            ; -- Begin function i40e_nvmupd_command
	.p2align	2
_i40e_nvmupd_command:                   ; @i40e_nvmupd_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	str	wzr, [x3]
	mov	x2, x3
	bl	_i40e_nvmupd_validate_command
	mov	x23, x0
Lloh0:
	adrp	x24, _I40E_DEBUG_NVM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _I40E_DEBUG_NVM@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x8, _i40e_nvm_update_state_str@GOTPAGE
Lloh3:
	ldr	x8, [x8, _i40e_nvm_update_state_str@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w8, [x8, w0, uxtw #2]
	ldr	w9, [x20]
	ldp	w11, w10, [x20, #8]
	ldp	w13, w12, [x22, #8]
	ldp	w14, w15, [x22]
	stp	x14, x15, [sp, #48]
	stp	x12, x13, [sp, #32]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
	mov	x0, x20
	bl	_i40e_debug
Lloh7:
	adrp	x8, _I40E_NVMUPD_INVALID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I40E_NVMUPD_INVALID@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
	ldr	w1, [x24]
	stp	x23, x8, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_i40e_debug
LBB0_2:
Lloh15:
	adrp	x8, _I40E_NVMUPD_STATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40E_NVMUPD_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_14
; %bb.4:
	ldr	w8, [x20]
	str	w8, [x21]
	ldr	w8, [x22, #4]
	cmp	w8, #4
	b.lt	LBB0_6
; %bb.5:
	str	wzr, [x21, #4]
	ldr	w8, [x20, #8]
	str	w8, [x21, #8]
LBB0_6:
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _I40E_NVMUPD_STATE_ERROR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _I40E_NVMUPD_STATE_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.7:
	mov	w21, #0
	mov	w8, #132
	str	w8, [x20]
	b	LBB0_23
LBB0_8:
	ldr	w8, [x20]
Lloh21:
	adrp	x9, _I40E_NVMUPD_STATE_ERROR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _I40E_NVMUPD_STATE_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
	ldr	w1, [x24]
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_i40e_debug
	mov	w8, #132
	str	w8, [x20]
LBB0_10:
	add	x23, x20, #4
	mov	x0, x23
	bl	_mutex_lock
	ldr	w8, [x20]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hi	LBB0_16
; %bb.11:
Lloh26:
	adrp	x8, lJTI0_0@PAGE
Lloh27:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_12
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_12:
	ldr	w8, [x22]
	mov	w9, #65535
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.13:
	mov	x0, x20
	bl	_i40e_nvmupd_clear_wait_state
	mov	w21, #0
	b	LBB0_22
LBB0_14:
Lloh28:
	adrp	x8, _EFAULT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
Lloh31:
	adrp	x8, _I40E_ERR_BUF_TOO_SHORT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _I40E_ERR_BUF_TOO_SHORT@GOTPAGEOFF]
Lloh33:
	ldr	w21, [x8]
	b	LBB0_23
LBB0_15:
	mov	w21, #0
	b	LBB0_23
LBB0_16:
	ldr	w1, [x24]
	str	x8, [sp]
Lloh34:
	adrp	x2, l_.str.3@PAGE
Lloh35:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_i40e_debug
Lloh36:
	adrp	x8, _I40E_NOT_SUPPORTED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _I40E_NOT_SUPPORTED@GOTPAGEOFF]
Lloh38:
	ldr	w21, [x8]
Lloh39:
	adrp	x8, _ESRCH@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
	b	LBB0_21
LBB0_17:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_i40e_nvmupd_state_writing
	mov	x21, x0
	b	LBB0_22
LBB0_18:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_i40e_nvmupd_state_reading
	mov	x21, x0
	b	LBB0_22
LBB0_19:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_i40e_nvmupd_state_init
	mov	x21, x0
	b	LBB0_22
LBB0_20:
Lloh41:
	adrp	x8, _I40E_ERR_NOT_READY@GOTPAGE
Lloh42:
	ldr	x8, [x8, _I40E_ERR_NOT_READY@GOTPAGEOFF]
Lloh43:
	ldr	w21, [x8]
Lloh44:
	adrp	x8, _EBUSY@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
LBB0_22:
	mov	x0, x23
	bl	_mutex_unlock
LBB0_23:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_18-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_19-LBB0_12)>>2
                                        ; -- End function
	.comm	_I40E_DEBUG_NVM,4,2             ; @I40E_DEBUG_NVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s state %d nvm_release_on_hold %d opc 0x%04x cmd 0x%08x config 0x%08x offset 0x%08x data_size 0x%08x\n"

	.comm	_i40e_nvm_update_state_str,8,3  ; @i40e_nvm_update_state_str
	.comm	_I40E_NVMUPD_INVALID,4,2        ; @I40E_NVMUPD_INVALID
	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.1:                               ; @.str.1
	.asciz	"i40e_nvmupd_validate_command returns %d errno %d\n"

	.comm	_I40E_NVMUPD_STATUS,4,2         ; @I40E_NVMUPD_STATUS
	.comm	_I40E_ERR_BUF_TOO_SHORT,4,2     ; @I40E_ERR_BUF_TOO_SHORT
	.comm	_I40E_NVMUPD_STATE_ERROR,4,2    ; @I40E_NVMUPD_STATE_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Clearing I40E_NVMUPD_STATE_ERROR state without reading\n"

	.comm	_I40E_ERR_NOT_READY,4,2         ; @I40E_ERR_NOT_READY
	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.3:                               ; @.str.3
	.asciz	"NVMUPD: no such state %d\n"

	.comm	_I40E_NOT_SUPPORTED,4,2         ; @I40E_NOT_SUPPORTED
	.comm	_ESRCH,4,2                      ; @ESRCH
.subsections_via_symbols
