	.file	"extr_ib_isert.c_isert_comp_get.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"conn %p, using comp %p min_index: %d\n"
	.text
	.p2align 4
	.type	isert_comp_get, @function
isert_comp_get:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	r12, QWORD PTR [rdi]
	mov	rbp, rdi
	lea	rdi, device_list_mutex[rip]
	call	mutex_lock@PLT
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	jle	.L2
	mov	rdi, QWORD PTR 8[r12]
	lea	esi, -1[rax]
	xor	r13d, r13d
	xor	eax, eax
	mov	r8, QWORD PTR [rdi]
	mov	rcx, r8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	movsx	rdx, r13d
	lea	r12, [rdi+rdx*8]
	lea	rdx, 1[rax]
	cmp	rax, rsi
	je	.L5
.L10:
	mov	rcx, QWORD PTR [rdi+rdx*8]
	mov	rax, rdx
.L6:
	cmp	r8, rcx
	jle	.L9
	lea	r12, [rdi+rax*8]
	mov	r8, rcx
	lea	rdx, 1[rax]
	mov	r13d, eax
	cmp	rax, rsi
	jne	.L10
.L5:
	add	r8, 1
	lea	rdi, device_list_mutex[rip]
	mov	QWORD PTR [r12], r8
	call	mutex_unlock@PLT
	mov	ecx, r13d
	mov	rdx, r12
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	call	isert_info@PLT
	mov	rax, r12
	pop	rbp
	.cfi_remember_state
	.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
.L2:
	.cfi_restore_state
	mov	r12, QWORD PTR 8[r12]
	xor	r13d, r13d
	mov	r8, QWORD PTR [r12]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	isert_comp_get, .-isert_comp_get
	.comm	device_list_mutex,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_ib_isert.c_isert_comp_get.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"conn %p, using comp %p min_index: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isert_comp_get, %function
isert_comp_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0]
	mov	r7, r0
	ldr	r0, .L11
	bl	mutex_lock
	ldr	r3, [r4]
	mov	r6, #0
	cmp	r3, #0
	ble	.L2
	ldr	r1, [r4, #4]
	mov	ip, r6
	ldr	r4, [r1]
	mov	lr, r1
	mov	r2, r4
	b	.L6
.L10:
	ldr	r2, [lr, #4]!
.L6:
	cmp	r4, r2
	movgt	r6, ip
	add	ip, ip, #1
	movgt	r4, r2
	movgt	r5, lr
	addle	r5, r1, r6, lsl #2
	cmp	ip, r3
	bne	.L10
.L5:
	add	r4, r4, #1
	str	r4, [r5]
	ldr	r0, .L11
	bl	mutex_unlock
	mov	r3, r6
	mov	r2, r5
	mov	r1, r7
	ldr	r0, .L11+4
	bl	isert_info
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r5, [r4, #4]
	ldr	r4, [r5]
	b	.L5
.L12:
	.align	2
.L11:
	.word	device_list_mutex
	.word	.LC0
	.size	isert_comp_get, .-isert_comp_get
	.comm	device_list_mutex,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
