	.file	"extr_hinic_hw_api_cmd.c_api_cmd_status_update.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"API CMD status: Xor check error\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"unknown API CMD Chain %d\n"
	.text
	.p2align 4
	.type	api_cmd_status_update, @function
api_cmd_status_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR 4[rbp]
	mov	r13, QWORD PTR [rax]
	call	be64_to_cpu@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r12d, eax
	call	be32_to_cpu@PLT
	mov	esi, DWORD PTR CHKSUM_ERR[rip]
	mov	edi, eax
	mov	ebp, eax
	call	HINIC_API_CMD_STATUS_GET@PLT
	test	rax, rax
	jne	.L6
	mov	esi, DWORD PTR CHAIN_ID[rip]
	mov	edi, r12d
	call	HINIC_API_CMD_STATUS_HEADER_GET@PLT
	cmp	DWORD PTR HINIC_API_CMD_MAX[rip], eax
	jbe	.L7
	mov	esi, DWORD PTR CONS_IDX[rip]
	mov	edi, ebp
	call	HINIC_API_CMD_STATUS_GET@PLT
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, eax
	mov	rdi, r13
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	lea	rsi, .LC1[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	dev_err@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	lea	rsi, .LC0[rip]
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	dev_err@PLT
	.cfi_endproc
.LFE0:
	.size	api_cmd_status_update, .-api_cmd_status_update
	.comm	HINIC_API_CMD_MAX,4,4
	.comm	CONS_IDX,4,4
	.comm	CHKSUM_ERR,4,4
	.comm	CHAIN_ID,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_hinic_hw_api_cmd.c_api_cmd_status_update.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"API CMD status: Xor check error\012\000"
	.align	2
.LC1:
	.ascii	"unknown API CMD Chain %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	api_cmd_status_update, %function
api_cmd_status_update:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0, #4]
	ldr	r3, [r0, #8]
	mov	r4, r0
	ldr	r0, [r5, #4]
	ldr	r6, [r3]
	bl	be64_to_cpu
	mov	r3, r0
	ldr	r0, [r5]
	mov	r5, r3
	bl	be32_to_cpu
	ldr	r3, .L8
	mov	r7, r0
	ldr	r1, [r3]
	bl	HINIC_API_CMD_STATUS_GET
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L8+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	HINIC_API_CMD_STATUS_HEADER_GET
	ldr	r3, .L8+8
	ldr	r3, [r3]
	cmp	r3, r0
	bls	.L7
	ldr	r3, .L8+12
	mov	r0, r7
	ldr	r1, [r3]
	bl	HINIC_API_CMD_STATUS_GET
	str	r0, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r2, r0
	ldr	r1, .L8+16
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	dev_err
.L6:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L8+20
	b	dev_err
.L9:
	.align	2
.L8:
	.word	CHKSUM_ERR
	.word	CHAIN_ID
	.word	HINIC_API_CMD_MAX
	.word	CONS_IDX
	.word	.LC1
	.word	.LC0
	.size	api_cmd_status_update, .-api_cmd_status_update
	.comm	HINIC_API_CMD_MAX,4,4
	.comm	CONS_IDX,4,4
	.comm	CHKSUM_ERR,4,4
	.comm	CHAIN_ID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
