	.file	"extr_capifunc.c_find_free_id.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	find_free_id, @function
find_free_id:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR MAX_DESCRIPTORS[rip]
	test	eax, eax
	jle	.L4
	lea	edx, -1[rax]
	mov	rcx, QWORD PTR adapter[rip]
	mov	eax, 1
	add	rdx, 2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	add	rax, 1
	cmp	rax, rdx
	je	.L7
.L3:
	mov	esi, DWORD PTR -4[rcx+rax*4]
	mov	r8d, eax
	test	esi, esi
	jne	.L8
.L1:
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	add	r8d, 1
	mov	eax, r8d
	ret
.L4:
	mov	r8d, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	find_free_id, .-find_free_id
	.comm	adapter,8,8
	.comm	MAX_DESCRIPTORS,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_capifunc.c_find_free_id.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_free_id, %function
find_free_id:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L10
	ldr	r1, [r3]
	cmp	r1, #0
	ble	.L4
	mov	r0, #0
	ldr	r3, .L10+4
	ldr	r3, [r3]
	sub	r3, r3, #4
.L3:
	ldr	r2, [r3, #4]!
	add	r0, r0, #1
	cmp	r2, #0
	bxeq	lr
	cmp	r1, r0
	bne	.L3
	add	r0, r0, #1
	bx	lr
.L4:
	mov	r0, #1
	bx	lr
.L11:
	.align	2
.L10:
	.word	MAX_DESCRIPTORS
	.word	adapter
	.size	find_free_id, .-find_free_id
	.comm	adapter,4,4
	.comm	MAX_DESCRIPTORS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
