	.file	"extr_qm.c_qm_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	"qm %s doorbell timeout in function %u\n"
	.align 8
.LC2:
	.string	"qm %s fifo overflow in function %u\n"
	.section	.rodata.str1.1
.LC3:
	.string	"unknown error type\n"
	.text
	.p2align 4
	.type	qm_log_hw_error, @function
qm_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, 24
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR qm_hw_error[rip]
	mov	r12, QWORD PTR 8[rdi]
	mov	rdx, QWORD PTR 8[rbx]
	test	rdx, rdx
	je	.L1
	mov	rbp, rdi
	mov	r14d, esi
	lea	r13, .LC0[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR 24[rbx]
	add	rbx, 16
	test	rdx, rdx
	je	.L1
.L8:
	mov	ecx, DWORD PTR [rbx]
	test	ecx, r14d
	je	.L4
	xor	eax, eax
	mov	rsi, r13
	mov	rdi, r12
	call	dev_err@PLT
	test	DWORD PTR QM_DB_TIMEOUT[rip], r14d
	jne	.L21
.L5:
	test	DWORD PTR QM_OF_FIFO_OF[rip], r14d
	je	.L4
	mov	rdi, QWORD PTR QM_ABNORMAL_INF00[rip]
	add	rdi, QWORD PTR 0[rbp]
	call	readl@PLT
	mov	ecx, DWORD PTR QM_FIFO_OVERFLOW_TYPE_SHIFT[rip]
	mov	rdi, QWORD PTR qm_fifo_overflow[rip]
	mov	edx, eax
	and	edx, DWORD PTR QM_FIFO_OVERFLOW_TYPE[rip]
	mov	DWORD PTR 12[rsp], eax
	sar	edx, cl
	mov	ecx, DWORD PTR QM_FIFO_OVERFLOW_VF[rip]
	mov	r15d, edx
	mov	DWORD PTR 8[rsp], ecx
	call	ARRAY_SIZE@PLT
	cmp	eax, r15d
	jle	.L7
	mov	esi, DWORD PTR 12[rsp]
	mov	ecx, DWORD PTR 8[rsp]
	movsx	rdx, r15d
	mov	rdi, r12
	mov	rax, QWORD PTR qm_fifo_overflow[rip]
	add	rbx, 16
	and	ecx, esi
	lea	rsi, .LC2[rip]
	mov	edx, DWORD PTR [rax+rdx*4]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdx, QWORD PTR 8[rbx]
	test	rdx, rdx
	jne	.L8
.L1:
	add	rsp, 24
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	rdi, QWORD PTR QM_ABNORMAL_INF01[rip]
	add	rdi, QWORD PTR 0[rbp]
	call	readl@PLT
	mov	r8d, DWORD PTR QM_DB_TIMEOUT_VF[rip]
	mov	rdi, r12
	mov	ecx, DWORD PTR QM_DB_TIMEOUT_TYPE_SHIFT[rip]
	mov	rdx, QWORD PTR qm_db_timeout[rip]
	lea	rsi, .LC1[rip]
	and	r8d, eax
	and	eax, DWORD PTR QM_DB_TIMEOUT_TYPE[rip]
	sar	eax, cl
	mov	ecx, r8d
	cdqe
	mov	edx, DWORD PTR [rdx+rax*4]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	qm_log_hw_error, .-qm_log_hw_error
	.comm	qm_hw_error,8,8
	.comm	qm_fifo_overflow,8,8
	.comm	qm_db_timeout,8,8
	.comm	QM_OF_FIFO_OF,4,4
	.comm	QM_FIFO_OVERFLOW_VF,4,4
	.comm	QM_FIFO_OVERFLOW_TYPE_SHIFT,4,4
	.comm	QM_FIFO_OVERFLOW_TYPE,4,4
	.comm	QM_DB_TIMEOUT_VF,4,4
	.comm	QM_DB_TIMEOUT_TYPE_SHIFT,4,4
	.comm	QM_DB_TIMEOUT_TYPE,4,4
	.comm	QM_DB_TIMEOUT,4,4
	.comm	QM_ABNORMAL_INF01,8,8
	.comm	QM_ABNORMAL_INF00,8,8
	.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_qm.c_qm_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	"qm %s doorbell timeout in function %u\012\000"
	.align	2
.LC2:
	.ascii	"qm %s fifo overflow in function %u\012\000"
	.align	2
.LC3:
	.ascii	"unknown error type\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qm_log_hw_error, %function
qm_log_hw_error:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L22
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r3]
	ldr	r7, [r0, #4]
	ldr	r2, [r4, #4]
	sub	sp, sp, #12
	cmp	r2, #0
	beq	.L1
	mov	fp, r0
	mov	r5, r1
	ldr	r10, .L22+4
	ldr	r9, .L22+8
	ldr	r8, .L22+12
	add	r4, r4, #8
	b	.L8
.L4:
	ldr	r2, [r4, #4]
	add	r4, r4, #8
	cmp	r2, #0
	beq	.L1
.L8:
	ldr	r3, [r4, #-8]
	tst	r3, r5
	beq	.L4
	mov	r1, r10
	mov	r0, r7
	bl	dev_err
	ldr	r3, [r9]
	tst	r5, r3
	bne	.L21
.L5:
	ldr	r3, [r8]
	tst	r5, r3
	beq	.L4
	ldr	r3, .L22+16
	ldr	r0, [fp]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	readl
	ldr	r2, .L22+20
	ldr	r3, .L22+24
	ldr	r6, [r2]
	ldr	r2, .L22+28
	and	r6, r6, r0
	ldr	r1, [r2]
	ldr	r2, .L22+32
	str	r0, [sp, #4]
	ldr	r2, [r2]
	ldr	r0, [r3]
	asr	r6, r6, r1
	str	r2, [sp]
	bl	ARRAY_SIZE
	ldm	sp, {r2, r3}
	cmp	r0, r6
	ldr	r1, .L22+36
	and	r3, r3, r2
	ble	.L7
	ldr	r2, .L22+24
	mov	r0, r7
	ldr	r2, [r2]
	add	r4, r4, #8
	ldr	r2, [r2, r6, lsl #2]
	bl	dev_err
	ldr	r2, [r4, #-4]
	cmp	r2, #0
	bne	.L8
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	ldr	r3, .L22+40
	ldr	r0, [fp]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L22+44
	ldr	ip, .L22+48
	ldr	r2, [r3]
	ldr	r1, .L22+52
	ldr	r3, .L22+56
	ldr	ip, [ip]
	ldr	r1, [r1]
	and	r2, r2, r0
	ldr	r3, [r3]
	asr	r2, r2, ip
	ldr	r2, [r1, r2, lsl #2]
	and	r3, r3, r0
	ldr	r1, .L22+60
	mov	r0, r7
	bl	dev_err
	b	.L5
.L7:
	mov	r0, r7
	ldr	r1, .L22+64
	bl	dev_err
	b	.L4
.L23:
	.align	2
.L22:
	.word	qm_hw_error
	.word	.LC0
	.word	QM_DB_TIMEOUT
	.word	QM_OF_FIFO_OF
	.word	QM_ABNORMAL_INF00
	.word	QM_FIFO_OVERFLOW_TYPE
	.word	qm_fifo_overflow
	.word	QM_FIFO_OVERFLOW_TYPE_SHIFT
	.word	QM_FIFO_OVERFLOW_VF
	.word	.LC2
	.word	QM_ABNORMAL_INF01
	.word	QM_DB_TIMEOUT_TYPE
	.word	QM_DB_TIMEOUT_TYPE_SHIFT
	.word	qm_db_timeout
	.word	QM_DB_TIMEOUT_VF
	.word	.LC1
	.word	.LC3
	.size	qm_log_hw_error, .-qm_log_hw_error
	.comm	qm_hw_error,4,4
	.comm	qm_fifo_overflow,4,4
	.comm	qm_db_timeout,4,4
	.comm	QM_OF_FIFO_OF,4,4
	.comm	QM_FIFO_OVERFLOW_VF,4,4
	.comm	QM_FIFO_OVERFLOW_TYPE_SHIFT,4,4
	.comm	QM_FIFO_OVERFLOW_TYPE,4,4
	.comm	QM_DB_TIMEOUT_VF,4,4
	.comm	QM_DB_TIMEOUT_TYPE_SHIFT,4,4
	.comm	QM_DB_TIMEOUT_TYPE,4,4
	.comm	QM_DB_TIMEOUT,4,4
	.comm	QM_ABNORMAL_INF01,4,4
	.comm	QM_ABNORMAL_INF00,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
