	.file	"extr_zip_main.c_hisi_zip_log_hw_error.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s [error status=0x%x] found\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"hisi-zip multi ecc sram num=0x%x\n"
	.align 8
.LC2:
	.string	"hisi-zip multi ecc sram addr=0x%x\n"
	.text
	.p2align 4
	.type	hisi_zip_log_hw_error, @function
hisi_zip_log_hw_error:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR zip_hw_error[rip]
	mov	rbp, QWORD PTR 8[rdi]
	mov	rdx, QWORD PTR 8[rbx]
	test	rdx, rdx
	je	.L1
	mov	r12, rdi
	mov	r14d, esi
	lea	r13, .LC0[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR 24[rbx]
	add	rbx, 16
	test	rdx, rdx
	je	.L1
.L6:
	mov	ecx, DWORD PTR [rbx]
	test	ecx, r14d
	je	.L4
	mov	rsi, r13
	mov	rdi, rbp
	xor	eax, eax
	call	dev_warn@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR HZIP_CORE_INT_STATUS_M_ECC[rip], eax
	je	.L4
	mov	rdi, QWORD PTR HZIP_CORE_SRAM_ECC_ERR_INFO[rip]
	add	rdi, QWORD PTR [r12]
	add	rbx, 16
	call	readl@PLT
	mov	ecx, DWORD PTR SRAM_ECC_ERR_NUM_SHIFT[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	r15d, eax
	xor	eax, eax
	sar	edx, cl
	movzx	edx, dl
	call	dev_warn@PLT
	mov	ecx, DWORD PTR SRAM_ECC_ERR_ADDR_SHIFT[rip]
	mov	edx, r15d
	xor	eax, eax
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	sar	edx, cl
	call	dev_warn@PLT
	mov	rdx, QWORD PTR 8[rbx]
	test	rdx, rdx
	jne	.L6
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.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
	ret
	.cfi_endproc
.LFE0:
	.size	hisi_zip_log_hw_error, .-hisi_zip_log_hw_error
	.comm	zip_hw_error,8,8
	.comm	SRAM_ECC_ERR_NUM_SHIFT,4,4
	.comm	SRAM_ECC_ERR_ADDR_SHIFT,4,4
	.comm	HZIP_CORE_SRAM_ECC_ERR_INFO,8,8
	.comm	HZIP_CORE_INT_STATUS_M_ECC,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_zip_main.c_hisi_zip_log_hw_error.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s [error status=0x%x] found\012\000"
	.align	2
.LC1:
	.ascii	"hisi-zip multi ecc sram num=0x%x\012\000"
	.align	2
.LC2:
	.ascii	"hisi-zip multi ecc sram addr=0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hisi_zip_log_hw_error, %function
hisi_zip_log_hw_error:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r3]
	ldr	r6, [r0, #4]
	ldr	r2, [r4, #4]
	sub	sp, sp, #12
	cmp	r2, #0
	beq	.L1
	mov	r7, r0
	mov	r5, r1
	ldr	r9, .L16+4
	ldr	r8, .L16+8
	ldr	fp, .L16+12
	ldr	r10, .L16+16
	add	r4, r4, #8
	b	.L6
.L4:
	ldr	r2, [r4, #4]
	add	r4, r4, #8
	cmp	r2, #0
	beq	.L1
.L6:
	ldr	r3, [r4, #-8]
	tst	r3, r5
	beq	.L4
	mov	r1, r9
	mov	r0, r6
	bl	dev_warn
	ldr	r2, [r4, #-8]
	ldr	r3, [r8]
	tst	r2, r3
	beq	.L4
	ldr	r3, [fp]
	ldr	r0, [r7]
	add	r4, r4, #8
	add	r0, r0, r3
	bl	readl
	ldr	r2, [r10]
	ldr	r1, .L16+20
	asr	r2, r0, r2
	str	r0, [sp, #4]
	and	r2, r2, #255
	mov	r0, r6
	bl	dev_warn
	ldr	r3, .L16+24
	mov	r0, r6
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	ldr	r1, .L16+28
	asr	r2, r3, r2
	bl	dev_warn
	ldr	r2, [r4, #-4]
	cmp	r2, #0
	bne	.L6
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	.align	2
.L16:
	.word	zip_hw_error
	.word	.LC0
	.word	HZIP_CORE_INT_STATUS_M_ECC
	.word	HZIP_CORE_SRAM_ECC_ERR_INFO
	.word	SRAM_ECC_ERR_NUM_SHIFT
	.word	.LC1
	.word	SRAM_ECC_ERR_ADDR_SHIFT
	.word	.LC2
	.size	hisi_zip_log_hw_error, .-hisi_zip_log_hw_error
	.comm	zip_hw_error,4,4
	.comm	SRAM_ECC_ERR_NUM_SHIFT,4,4
	.comm	SRAM_ECC_ERR_ADDR_SHIFT,4,4
	.comm	HZIP_CORE_SRAM_ECC_ERR_INFO,4,4
	.comm	HZIP_CORE_INT_STATUS_M_ECC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
