	.file	"extr_um_idi.c_process_idi_ind.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	process_idi_ind, @function
process_idi_ind:
.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
	lea	r12, 48[rdi]
	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
	cmp	DWORD PTR 8[rdi], 2
	je	.L2
	mov	rdi, r12
	call	diva_data_q_get_segment4write@PLT
	test	rax, rax
	jne	.L11
	movsx	rdi, DWORD PTR 32[rbx]
	call	DBG_TRC@PLT
	movabs	rax, 4294967296
	mov	QWORD PTR 12[rbx], rax
	mov	eax, 1
.L4:
	mov	edx, DWORD PTR [rbx]
	test	DWORD PTR DIVA_UM_IDI_RC_PENDING[rip], edx
	je	.L1
	mov	edx, DWORD PTR 4[rbx]
	test	edx, edx
	mov	edx, 0
	cmove	eax, edx
.L1:
	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
.L11:
	.cfi_restore_state
	mov	rdx, QWORD PTR 24[rbx]
	add	rax, 24
	mov	DWORD PTR 12[rbx], 1
	mov	rdi, r12
	mov	QWORD PTR 8[rdx], rax
	call	diva_data_q_get_max_length@PLT
	movsx	rdi, eax
	mov	rax, QWORD PTR 24[rbx]
	sub	rdi, 24
	mov	QWORD PTR [rax], rdi
	call	DBG_TRC@PLT
	xor	eax, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 24[rdi]
	mov	ebp, esi
	mov	rdi, QWORD PTR [rax]
	mov	r13, QWORD PTR 8[rax]
	call	DBG_TRC@PLT
	mov	eax, DWORD PTR DIVA_UM_IDI_IND[rip]
	mov	DWORD PTR -12[r13], ebp
	mov	rdi, r12
	mov	DWORD PTR -8[r13], eax
	mov	eax, DWORD PTR 32[rbx]
	mov	DWORD PTR -16[r13], eax
	mov	rax, QWORD PTR 24[rbx]
	mov	rsi, QWORD PTR [rax]
	mov	QWORD PTR -24[r13], rsi
	add	esi, 24
	call	diva_data_q_ack_segment4write@PLT
	mov	eax, 1
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	process_idi_ind, .-process_idi_ind
	.comm	DIVA_UM_IDI_RC_PENDING,4,4
	.comm	DIVA_UM_IDI_IND,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_um_idi.c_process_idi_ind.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_idi_ind, %function
process_idi_ind:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #2
	mov	r4, r0
	add	r6, r0, #36
	beq	.L2
	mov	r0, r6
	bl	diva_data_q_get_segment4write
	subs	r5, r0, #0
	bne	.L11
	ldr	r0, [r4, #24]
	bl	DBG_TRC
	mov	r0, #1
	str	r5, [r4, #12]
	str	r0, [r4, #16]
.L4:
	ldr	r3, .L12
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r4, #4]
	cmp	r3, #0
	moveq	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r2, #1
	ldr	r3, [r4, #20]
	add	r5, r5, #16
	str	r2, [r4, #12]
	mov	r0, r6
	str	r5, [r3, #4]
	bl	diva_data_q_get_max_length
	ldr	r3, [r4, #20]
	sub	r0, r0, #16
	str	r0, [r3]
	bl	DBG_TRC
	mov	r0, #0
	b	.L4
.L2:
	mov	r5, r1
	ldr	r3, [r0, #20]
	ldm	r3, {r0, r7}
	bl	DBG_TRC
	ldr	r3, .L12+4
	ldr	r2, [r4, #20]
	ldr	r3, [r3]
	ldr	r1, [r2]
	str	r3, [r7, #-4]
	ldr	r3, [r4, #24]
	mov	r0, r6
	str	r1, [r7, #-16]
	str	r5, [r7, #-8]
	str	r3, [r7, #-12]
	add	r1, r1, #16
	bl	diva_data_q_ack_segment4write
	mov	r0, #1
	b	.L4
.L13:
	.align	2
.L12:
	.word	DIVA_UM_IDI_RC_PENDING
	.word	DIVA_UM_IDI_IND
	.size	process_idi_ind, .-process_idi_ind
	.comm	DIVA_UM_IDI_RC_PENDING,4,4
	.comm	DIVA_UM_IDI_IND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
