	.file	"extr_i40e_nvm.c_i40e_nvmupd_state_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"i40e_nvmupd_state_init"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"NVMUPD: bad cmd %s in init state\n"
	.text
	.p2align 4
	.type	i40e_nvmupd_state_init, @function
i40e_nvmupd_state_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	call	DEBUGFUNC@PLT
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbp
	call	i40e_nvmupd_validate_command@PLT
	lea	edx, -128[rax]
	cmp	edx, 8
	ja	.L2
	lea	rcx, .L4[rip]
	movsx	rax, DWORD PTR [rcx+rdx*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L12-.L4
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rcx, r12
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	i40e_nvmupd_exec_aq@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR I40E_RESOURCE_WRITE[rip]
	mov	rdi, rbp
	call	i40e_acquire_nvm@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L32
	mov	rdi, rbp
	call	i40e_update_nvm_checksum@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L24
	mov	eax, DWORD PTR EIO[rip]
	mov	esi, DWORD PTR 24[rbp]
	neg	eax
	test	esi, esi
	jne	.L34
.L26:
	mov	DWORD PTR [r12], eax
.L31:
	mov	rdi, rbp
	call	i40e_release_nvm@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR I40E_RESOURCE_WRITE[rip]
	mov	rdi, rbp
	call	i40e_acquire_nvm@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L32
	mov	rcx, r12
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	call	i40e_nvmupd_nvm_write@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L31
	mov	rax, QWORD PTR i40e_aqc_opc_nvm_update[rip]
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR I40E_NVMUPD_STATE_WRITE_WAIT[rip]
	mov	QWORD PTR 0[rbp], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR I40E_RESOURCE_READ[rip]
	mov	rdi, rbp
	call	i40e_acquire_nvm@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L32
	mov	rcx, r12
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	call	i40e_nvmupd_nvm_read@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L31
	mov	rax, QWORD PTR I40E_NVMUPD_STATE_READING[rip]
	mov	QWORD PTR 0[rbp], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR I40E_RESOURCE_WRITE[rip]
	mov	rdi, rbp
	call	i40e_acquire_nvm@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L32
	mov	rcx, r12
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	call	i40e_nvmupd_nvm_write@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L31
.L24:
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR 16[rbp], rax
	mov	rax, QWORD PTR i40e_aqc_opc_nvm_update[rip]
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR I40E_NVMUPD_STATE_INIT_WAIT[rip]
	mov	QWORD PTR 0[rbp], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR I40E_RESOURCE_WRITE[rip]
	mov	rdi, rbp
	call	i40e_acquire_nvm@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L32
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbp
	call	i40e_nvmupd_nvm_erase@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L31
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR 16[rbp], rax
	mov	rax, QWORD PTR i40e_aqc_opc_nvm_erase[rip]
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR I40E_NVMUPD_STATE_INIT_WAIT[rip]
	mov	QWORD PTR 0[rbp], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rcx, r12
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	i40e_nvmupd_get_aq_result@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rcx, r12
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	i40e_nvmupd_get_aq_event@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR I40E_RESOURCE_READ[rip]
	mov	rdi, rbp
	call	i40e_acquire_nvm@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L32
	mov	rdi, rbp
	mov	rcx, r12
	mov	rdx, r14
	mov	rsi, r13
	call	i40e_nvmupd_nvm_read@PLT
	mov	rdi, rbp
	mov	r15d, eax
	call	i40e_release_nvm@PLT
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r15d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	esi, DWORD PTR 24[rbp]
	mov	edi, r15d
	call	i40e_aq_rc_to_posix@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	DWORD PTR [r12], eax
	pop	r12
	.cfi_def_cfa_offset 32
	mov	eax, r15d
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	mov	rdx, QWORD PTR i40e_nvm_update_state_str[rip]
	mov	eax, eax
	mov	esi, DWORD PTR I40E_DEBUG_NVM[rip]
	mov	rdi, rbp
	mov	ecx, DWORD PTR [rdx+rax*4]
	lea	rdx, .LC1[rip]
	call	i40e_debug@PLT
	mov	eax, DWORD PTR ESRCH[rip]
	mov	r15d, DWORD PTR I40E_ERR_NVM[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	neg	eax
	mov	DWORD PTR [r12], eax
	pop	r12
	.cfi_def_cfa_offset 32
	mov	eax, r15d
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L34:
	.cfi_restore_state
	mov	edi, r15d
	call	i40e_aq_rc_to_posix@PLT
	jmp	.L26
	.cfi_endproc
.LFE0:
	.size	i40e_nvmupd_state_init, .-i40e_nvmupd_state_init
	.comm	i40e_nvm_update_state_str,8,8
	.comm	i40e_aqc_opc_nvm_update,8,8
	.comm	i40e_aqc_opc_nvm_erase,8,8
	.comm	TRUE,8,8
	.comm	I40E_SUCCESS,4,4
	.comm	I40E_RESOURCE_WRITE,4,4
	.comm	I40E_RESOURCE_READ,4,4
	.comm	I40E_NVMUPD_STATE_WRITE_WAIT,8,8
	.comm	I40E_NVMUPD_STATE_READING,8,8
	.comm	I40E_NVMUPD_STATE_INIT_WAIT,8,8
	.comm	I40E_ERR_NVM,4,4
	.comm	I40E_DEBUG_NVM,4,4
	.comm	ESRCH,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_i40e_nvm.c_i40e_nvmupd_state_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"i40e_nvmupd_state_init\000"
	.align	2
.LC1:
	.ascii	"NVMUPD: bad cmd %s in init state\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i40e_nvmupd_state_init, %function
i40e_nvmupd_state_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r3
	mov	r4, r0
	mov	r6, r1
	ldr	r0, .L35
	mov	r8, r2
	bl	DEBUGFUNC
	mov	r1, r6
	mov	r2, r5
	mov	r0, r4
	bl	i40e_nvmupd_validate_command
	sub	r1, r0, #128
	cmp	r1, #8
	ldrls	pc, [pc, r1, asl #2]
	b	.L2
.L4:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r3, .L35+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	i40e_acquire_nvm
	subs	r7, r0, #0
	bne	.L31
	mov	r0, r4
	bl	i40e_update_nvm_checksum
	subs	r7, r0, #0
	beq	.L24
	ldr	r1, [r4, #12]
	cmp	r1, #0
	bne	.L34
	ldr	r3, .L35+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L26:
	str	r0, [r5]
.L30:
	mov	r0, r4
	bl	i40e_release_nvm
	b	.L1
.L12:
	ldr	r3, .L35+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	i40e_acquire_nvm
	subs	r7, r0, #0
	bne	.L31
	mov	r3, r5
	mov	r2, r8
	mov	r1, r6
	mov	r0, r4
	bl	i40e_nvmupd_nvm_write
	subs	r7, r0, #0
	bne	.L30
	ldr	r2, .L35+12
	ldr	r3, .L35+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [r4, #4]
	str	r3, [r4]
	b	.L1
.L11:
	ldr	r3, .L35+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	i40e_acquire_nvm
	subs	r7, r0, #0
	bne	.L31
	mov	r3, r5
	mov	r2, r8
	mov	r1, r6
	mov	r0, r4
	bl	i40e_nvmupd_nvm_write
	subs	r7, r0, #0
	bne	.L30
.L24:
	ldr	r1, .L35+20
	ldr	r2, .L35+12
.L32:
	ldr	r3, .L35+24
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r3, [r3]
	str	r1, [r4, #8]
	str	r2, [r4, #4]
	str	r3, [r4]
	b	.L1
.L8:
	ldr	r3, .L35+28
	mov	r0, r4
	ldr	r1, [r3]
	bl	i40e_acquire_nvm
	subs	r7, r0, #0
	bne	.L31
	mov	r3, r5
	mov	r2, r8
	mov	r1, r6
	mov	r0, r4
	bl	i40e_nvmupd_nvm_read
	mov	r7, r0
	mov	r0, r4
	bl	i40e_release_nvm
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r3, r5
	mov	r2, r8
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	i40e_nvmupd_get_aq_result
.L6:
	mov	r3, r5
	mov	r2, r8
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	i40e_nvmupd_get_aq_event
.L5:
	mov	r3, r5
	mov	r2, r8
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	i40e_nvmupd_exec_aq
.L10:
	ldr	r3, .L35+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	i40e_acquire_nvm
	subs	r7, r0, #0
	bne	.L31
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	bl	i40e_nvmupd_nvm_erase
	subs	r7, r0, #0
	bne	.L30
	ldr	r1, .L35+20
	ldr	r2, .L35+32
	b	.L32
.L9:
	ldr	r3, .L35+28
	mov	r0, r4
	ldr	r1, [r3]
	bl	i40e_acquire_nvm
	subs	r7, r0, #0
	bne	.L31
	mov	r3, r5
	mov	r2, r8
	mov	r1, r6
	mov	r0, r4
	bl	i40e_nvmupd_nvm_read
	subs	r7, r0, #0
	bne	.L30
	ldr	r3, .L35+36
	ldr	r3, [r3]
	str	r3, [r4]
	b	.L1
.L31:
	ldr	r1, [r4, #12]
	bl	i40e_aq_rc_to_posix
	str	r0, [r5]
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L34:
	bl	i40e_aq_rc_to_posix
	b	.L26
.L2:
	mov	r3, r0
	ldr	r1, .L35+40
	ldr	r2, .L35+44
	ldr	r1, [r1]
	mov	r0, r4
	ldr	r3, [r1, r3, lsl #2]
	ldr	r1, [r2]
	ldr	r2, .L35+48
	bl	i40e_debug
	ldr	r3, .L35+52
	ldr	r2, .L35+56
	ldr	r3, [r3]
	ldr	r7, [r2]
	rsb	r3, r3, #0
	str	r3, [r5]
	b	.L1
.L36:
	.align	2
.L35:
	.word	.LC0
	.word	I40E_RESOURCE_WRITE
	.word	EIO
	.word	i40e_aqc_opc_nvm_update
	.word	I40E_NVMUPD_STATE_WRITE_WAIT
	.word	TRUE
	.word	I40E_NVMUPD_STATE_INIT_WAIT
	.word	I40E_RESOURCE_READ
	.word	i40e_aqc_opc_nvm_erase
	.word	I40E_NVMUPD_STATE_READING
	.word	i40e_nvm_update_state_str
	.word	I40E_DEBUG_NVM
	.word	.LC1
	.word	ESRCH
	.word	I40E_ERR_NVM
	.size	i40e_nvmupd_state_init, .-i40e_nvmupd_state_init
	.comm	i40e_nvm_update_state_str,4,4
	.comm	i40e_aqc_opc_nvm_update,4,4
	.comm	i40e_aqc_opc_nvm_erase,4,4
	.comm	TRUE,4,4
	.comm	I40E_SUCCESS,4,4
	.comm	I40E_RESOURCE_WRITE,4,4
	.comm	I40E_RESOURCE_READ,4,4
	.comm	I40E_NVMUPD_STATE_WRITE_WAIT,4,4
	.comm	I40E_NVMUPD_STATE_READING,4,4
	.comm	I40E_NVMUPD_STATE_INIT_WAIT,4,4
	.comm	I40E_ERR_NVM,4,4
	.comm	I40E_DEBUG_NVM,4,4
	.comm	ESRCH,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
