	.file	"extr_chip.c_handle_sdma_err.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SDMA Error: %s\n"
	.text
	.p2align 4
	.type	handle_sdma_err, @function
handle_sdma_err:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, 96
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movsx	rbp, edx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edx, ebp
	sub	rsp, 112
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	rdi, rsp
	call	sdma_err_status_string@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	mov	edx, eax
	call	dd_dev_info@PLT
	test	DWORD PTR ALL_SDMA_FREEZE_ERR[rip], ebp
	jne	.L18
.L2:
	mov	eax, DWORD PTR NUM_SEND_DMA_ERR_STATUS_COUNTERS[rip]
	xor	ebx, ebx
	test	eax, eax
	jg	.L5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 1
	cmp	DWORD PTR NUM_SEND_DMA_ERR_STATUS_COUNTERS[rip], ebx
	jle	.L1
.L5:
	bt	rbp, rbx
	jnc	.L4
	mov	rax, QWORD PTR [r12]
	lea	rdi, [rax+rbx*4]
	add	rbx, 1
	call	incr_cntr64@PLT
	cmp	DWORD PTR NUM_SEND_DMA_ERR_STATUS_COUNTERS[rip], ebx
	jg	.L5
.L1:
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 112
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[r12]
	xor	esi, esi
	call	start_freeze_handling@PLT
	jmp	.L2
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	handle_sdma_err, .-handle_sdma_err
	.comm	NUM_SEND_DMA_ERR_STATUS_COUNTERS,4,4
	.comm	ALL_SDMA_FREEZE_ERR,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_chip.c_handle_sdma_err.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SDMA Error: %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_sdma_err, %function
handle_sdma_err:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L19
	sub	sp, sp, #108
	mov	r5, r0
	mov	r1, #96
	add	r0, sp, #4
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #100]
	mov	r3,#0
	bl	sdma_err_status_string
	ldr	r1, .L19+4
	mov	r2, r0
	mov	r0, r5
	bl	dd_dev_info
	ldr	r3, .L19+8
	ldr	r3, [r3]
	tst	r8, r3
	bne	.L17
.L2:
	ldr	r10, .L19+12
	ldr	r3, [r10]
	cmp	r3, #0
	ble	.L1
	mov	r4, #0
	asr	r9, r8, #31
	mov	fp, r4
	b	.L5
.L4:
	ldr	r3, [r10]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L1
.L5:
	mov	r7, fp
	rsb	r2, r4, #32
	lsr	r3, r8, r4
	orr	r3, r3, r9, lsl r2
	sub	r2, r4, #32
	orr	r3, r3, r9, lsr r2
	and	r6, r3, #1
	orrs	r3, r6, r7
	beq	.L4
	ldr	r0, [r5]
	add	r0, r0, r4, lsl #2
	bl	incr_cntr64
	ldr	r3, [r10]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #100]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #108
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	mov	r1, #0
	ldr	r0, [r5, #4]
	bl	start_freeze_handling
	b	.L2
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	.LC0
	.word	ALL_SDMA_FREEZE_ERR
	.word	NUM_SEND_DMA_ERR_STATUS_COUNTERS
	.size	handle_sdma_err, .-handle_sdma_err
	.comm	NUM_SEND_DMA_ERR_STATUS_COUNTERS,4,4
	.comm	ALL_SDMA_FREEZE_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
