	.file	"extr_cg_marks.c_CG_AllocMark.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CG_AllocMark
	.type	CG_AllocMark, @function
CG_AllocMark:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, QWORD PTR cg_freeMarkPolys[rip]
	test	r12, r12
	je	.L9
.L2:
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, r12
	mov	edx, 24
	xor	esi, esi
	mov	QWORD PTR cg_freeMarkPolys[rip], rax
	call	memset@PLT
	mov	rax, QWORD PTR cg_activeMarkPolys[rip+8]
	lea	rcx, cg_activeMarkPolys[rip]
	mov	QWORD PTR 16[r12], rcx
	mov	QWORD PTR 8[r12], rax
	mov	QWORD PTR 16[rax], r12
	mov	rax, r12
	mov	QWORD PTR cg_activeMarkPolys[rip+8], r12
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, QWORD PTR cg_activeMarkPolys[rip+16]
	mov	r12d, DWORD PTR [rdi]
	.p2align 4,,10
	.p2align 3
.L4:
	call	CG_FreeMarkPoly@PLT
	mov	rdi, QWORD PTR cg_activeMarkPolys[rip+16]
	test	rdi, rdi
	je	.L5
	cmp	DWORD PTR [rdi], r12d
	je	.L4
.L5:
	mov	r12, QWORD PTR cg_freeMarkPolys[rip]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	CG_AllocMark, .-CG_AllocMark
	.comm	cg_freeMarkPolys,8,8
	.comm	cg_activeMarkPolys,24,16
	.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_cg_marks.c_CG_AllocMark.c"
	.text
	.align	2
	.global	CG_AllocMark
	.syntax unified
	.arm
	.fpu softvfp
	.type	CG_AllocMark, %function
CG_AllocMark:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L11
	ldr	r4, .L11+4
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L8
.L2:
	ldr	r0, [r3, #4]
	mov	r2, #12
	str	r0, [r5]
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r2, [r4, #4]
	stmib	r0, {r2, r4}
	str	r0, [r2, #8]
	str	r0, [r4, #4]
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r0, [r4, #8]
	ldr	r6, [r0]
.L4:
	bl	CG_FreeMarkPoly
	ldr	r0, [r4, #8]
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r0]
	cmp	r3, r6
	beq	.L4
.L5:
	ldr	r3, [r5]
	b	.L2
.L12:
	.align	2
.L11:
	.word	cg_freeMarkPolys
	.word	cg_activeMarkPolys
	.size	CG_AllocMark, .-CG_AllocMark
	.comm	cg_freeMarkPolys,4,4
	.comm	cg_activeMarkPolys,12,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
