	.file	"extr_igc_main.c_igc_alloc_q_vectors.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	igc_alloc_q_vectors, @function
igc_alloc_q_vectors:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r10d, DWORD PTR [rdi]
	mov	r14d, DWORD PTR 4[rdi]
	mov	r12d, DWORD PTR 8[rdi]
	lea	eax, [r10+r14]
	cmp	eax, r12d
	jg	.L2
	test	r10d, r10d
	jne	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	xor	r15d, r15d
	cmp	r12d, ebx
	jg	.L5
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	mov	r10d, DWORD PTR 12[rsp]
	mov	ecx, DWORD PTR 8[rsp]
	add	ebx, 1
	add	r15d, 1
	sub	r10d, ebp
	sub	r14d, ecx
	cmp	r12d, ebx
	je	.L7
.L5:
	mov	esi, r12d
	mov	edi, r10d
	mov	DWORD PTR 12[rsp], r10d
	sub	esi, ebx
	mov	DWORD PTR 8[rsp], esi
	call	DIV_ROUND_UP@PLT
	mov	esi, DWORD PTR 8[rsp]
	mov	edi, r14d
	mov	ebp, eax
	call	DIV_ROUND_UP@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	edx, ebx
	mov	r9d, ebp
	push	rbx
	.cfi_def_cfa_offset 96
	mov	ecx, eax
	mov	r8d, r15d
	mov	esi, r12d
	mov	rdi, r13
	mov	DWORD PTR 24[rsp], eax
	call	igc_alloc_q_vector@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	test	eax, eax
	je	.L22
.L3:
	mov	QWORD PTR 0[r13], 0
	lea	ebp, -1[rbx]
	mov	DWORD PTR 8[r13], 0
	test	ebx, ebx
	je	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, ebp
	mov	rdi, r13
	sub	ebp, 1
	call	igc_free_q_vector@PLT
	cmp	ebp, -1
	jne	.L9
.L8:
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	r10d, DWORD PTR 8[rsp]
	add	ebx, 1
	cmp	r10d, ebx
	je	.L23
.L4:
	mov	DWORD PTR 8[rsp], r10d
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	esi, r12d
	mov	rdi, r13
	push	rbx
	.cfi_def_cfa_offset 96
	mov	r9d, 1
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edx, ebx
	call	igc_alloc_q_vector@PLT
	pop	rsi
	.cfi_def_cfa_offset 88
	pop	rdi
	.cfi_def_cfa_offset 80
	test	eax, eax
	je	.L24
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	xor	r10d, r10d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	igc_alloc_q_vectors, .-igc_alloc_q_vectors
	.comm	ENOMEM,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_igc_main.c_igc_alloc_q_vectors.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	igc_alloc_q_vectors, %function
igc_alloc_q_vectors:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldm	r0, {r8, r10}
	ldr	r7, [r0, #8]
	add	r3, r8, r10
	cmp	r3, r7
	mov	r9, r0
	sub	sp, sp, #20
	bgt	.L10
	cmp	r8, #0
	beq	.L11
	mov	r4, #0
	mov	r6, #1
	mov	r5, r4
	b	.L4
.L22:
	add	r4, r4, #1
	cmp	r8, r4
	beq	.L21
.L4:
	mov	r3, #0
	mov	r2, r4
	mov	r1, r7
	mov	r0, r9
	stm	sp, {r5, r6}
	str	r4, [sp, #8]
	bl	igc_alloc_q_vector
	cmp	r0, #0
	beq	.L22
.L3:
	mov	r3, #0
	cmp	r4, r3
	str	r3, [r9, #4]
	sub	r4, r4, #1
	str	r3, [r9]
	str	r3, [r9, #8]
	beq	.L8
.L9:
	mov	r1, r4
	mov	r0, r9
	sub	r4, r4, #1
	bl	igc_free_q_vector
	cmn	r4, #1
	bne	.L9
.L8:
	ldr	r3, .L24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	r4, #0
.L2:
	cmp	r7, r4
	movgt	fp, #0
	bgt	.L5
	b	.L7
.L23:
	add	r4, r4, #1
	cmp	r7, r4
	sub	r8, r8, r6
	sub	r10, r10, r5
	add	fp, fp, #1
	beq	.L7
.L5:
	sub	r5, r7, r4
	mov	r1, r5
	mov	r0, r8
	bl	DIV_ROUND_UP
	mov	r1, r5
	mov	r6, r0
	mov	r0, r10
	bl	DIV_ROUND_UP
	mov	r2, r4
	mov	r3, r0
	mov	r5, r0
	mov	r1, r7
	mov	r0, r9
	str	r6, [sp, #4]
	str	r4, [sp, #8]
	str	fp, [sp]
	bl	igc_alloc_q_vector
	cmp	r0, #0
	beq	.L23
	b	.L3
.L7:
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	mov	r8, r0
	b	.L2
.L11:
	mov	r4, r8
	b	.L2
.L25:
	.align	2
.L24:
	.word	ENOMEM
	.size	igc_alloc_q_vectors, .-igc_alloc_q_vectors
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
