	.file	"extr_vcilcs.c_ilcs_response.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ilcs_response, @function
ilcs_response:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	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
	call	vcos_mutex_lock@PLT
	mov	ebp, DWORD PTR ILCS_MAX_WAITING[rip]
	test	ebp, ebp
	jle	.L6
	mov	rax, QWORD PTR 8[r15]
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	QWORD PTR 24[rax], 0
	mov	rbx, rax
	je	.L3
	cmp	QWORD PTR [rax], r14
	je	.L7
.L3:
	add	edx, 1
	add	rax, 32
	cmp	edx, ebp
	jne	.L4
.L2:
	mov	rdi, r15
	call	vcos_mutex_unlock@PLT
	cmp	DWORD PTR ILCS_MAX_WAITING[rip], ebp
	je	.L11
.L5:
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, r12d
	mov	rdi, QWORD PTR 24[rbx]
	mov	rsi, r13
	cmp	DWORD PTR [rax], r12d
	cmovle	edx, DWORD PTR [rax]
	mov	DWORD PTR [rax], r12d
	call	memcpy@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	lea	rdi, 16[rbx]
	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
	jmp	vcos_event_signal@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, r15
	mov	ebp, edx
	call	vcos_mutex_unlock@PLT
	cmp	DWORD PTR ILCS_MAX_WAITING[rip], ebp
	jne	.L5
.L11:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	edi, edi
	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
	jmp	vcos_assert@PLT
.L6:
	.cfi_restore_state
	xor	ebp, ebp
	xor	ebx, ebx
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ilcs_response, .-ilcs_response
	.comm	ILCS_MAX_WAITING,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_vcilcs.c_ilcs_response.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ilcs_response, %function
ilcs_response:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, .L15
	mov	r10, r1
	mov	r8, r2
	mov	r7, r3
	mov	fp, r0
	bl	vcos_mutex_lock
	ldr	r5, [r9]
	cmp	r5, #0
	ble	.L6
	ldr	r2, [fp, #4]
	mov	lr, #0
	mov	ip, r2
.L4:
	ldr	r4, [ip, #12]
	mov	r6, ip
	cmp	r4, #0
	beq	.L3
	ldr	r3, [r2, lr, lsl #4]
	cmp	r3, r10
	beq	.L7
.L3:
	add	lr, lr, #1
	cmp	lr, r5
	add	ip, ip, #16
	bne	.L4
.L2:
	mov	r0, fp
	bl	vcos_mutex_unlock
	ldr	r3, [r9]
	cmp	r3, r5
	beq	.L14
	ldr	r3, [r6, #4]
	mov	r1, r8
	ldr	r2, [r3]
	ldr	r0, [r6, #12]
	cmp	r7, r2
	movlt	r2, r7
	str	r7, [r3]
	bl	memcpy
	add	r0, r6, #8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	vcos_event_signal
.L7:
	mov	r5, lr
	b	.L2
.L14:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	vcos_assert
.L6:
	mov	r5, #0
	mov	r6, r5
	b	.L2
.L16:
	.align	2
.L15:
	.word	ILCS_MAX_WAITING
	.size	ilcs_response, .-ilcs_response
	.comm	ILCS_MAX_WAITING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
