	.file	"extr_qm.c_QmGetCgId.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No available CG"
	.text
	.p2align 4
	.globl	QmGetCgId
	.type	QmGetCgId, @function
QmGetCgId:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	mov	rcx, QWORD PTR 8[rdi]
	add	rcx, rax
	cmp	rcx, rax
	jbe	.L2
	mov	rdx, QWORD PTR 16[rdi]
	lea	rdx, [rdx+rax*8]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rax, 1
	add	rdx, 8
	cmp	rcx, rax
	je	.L5
.L4:
	cmp	QWORD PTR [rdx], 0
	jne	.L3
	mov	rcx, QWORD PTR TRUE[rip]
	mov	QWORD PTR [rdx], rcx
	mov	QWORD PTR [rsi], rax
	mov	rcx, QWORD PTR 8[rdi]
	add	rcx, QWORD PTR [rdi]
.L2:
	cmp	rax, rcx
	je	.L5
	mov	eax, DWORD PTR E_OK[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR E_BUSY[rip]
	mov	edi, DWORD PTR MINOR[rip]
	lea	rdx, .LC0[rip]
	jmp	RETURN_ERROR@PLT
	.cfi_endproc
.LFE0:
	.size	QmGetCgId, .-QmGetCgId
	.comm	TRUE,8,8
	.comm	MINOR,4,4
	.comm	E_OK,4,4
	.comm	E_BUSY,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_qm.c_QmGetCgId.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No available CG\000"
	.text
	.align	2
	.global	QmGetCgId
	.syntax unified
	.arm
	.fpu softvfp
	.type	QmGetCgId, %function
QmGetCgId:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldm	r0, {r3, r4}
	add	r4, r3, r4
	cmp	r4, r3
	bls	.L2
	ldr	r2, [r0, #8]
	add	r2, r2, r3, lsl #2
	b	.L4
.L3:
	add	r3, r3, #1
	cmp	r4, r3
	beq	.L5
.L4:
	ldr	lr, [r2]
	mov	ip, r2
	cmp	lr, #0
	add	r2, r2, #4
	bne	.L3
	ldr	r2, .L10
	ldr	r2, [r2]
	str	r2, [ip]
	str	r3, [r1]
	ldm	r0, {r2, r4}
	add	r4, r4, r2
.L2:
	cmp	r3, r4
	beq	.L5
	ldr	r3, .L10+4
	ldr	r0, [r3]
	pop	{r4, pc}
.L5:
	ldr	r2, .L10+8
	ldr	r3, .L10+12
	ldr	r1, [r2]
	ldr	r0, [r3]
	ldr	r2, .L10+16
	pop	{r4, lr}
	b	RETURN_ERROR
.L11:
	.align	2
.L10:
	.word	TRUE
	.word	E_OK
	.word	E_BUSY
	.word	MINOR
	.word	.LC0
	.size	QmGetCgId, .-QmGetCgId
	.comm	TRUE,4,4
	.comm	MINOR,4,4
	.comm	E_OK,4,4
	.comm	E_BUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
