	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_AllocMark                   ## -- Begin function CG_AllocMark
	.p2align	4, 0x90
_CG_AllocMark:                          ## @CG_AllocMark
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cg_freeMarkPolys@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.1:
	movq	_cg_activeMarkPolys@GOTPCREL(%rip), %r15
	movq	16(%r15), %rdi
	movl	(%rdi), %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_CG_FreeMarkPoly
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%rdi), %ebx
	je	LBB0_2
LBB0_4:
	movq	(%r14), %rbx
LBB0_5:
	movq	8(%rbx), %rax
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_cg_activeMarkPolys@GOTPCREL(%rip), %rax
	movq	8(%rax), %rcx
	movq	%rcx, 8(%rbx)
	movq	%rax, 16(%rbx)
	movq	8(%rax), %rcx
	movq	%rbx, 16(%rcx)
	movq	%rbx, 8(%rax)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg_freeMarkPolys,8,3           ## @cg_freeMarkPolys
	.comm	_cg_activeMarkPolys,24,3        ## @cg_activeMarkPolys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_AllocMark                   ; -- Begin function CG_AllocMark
	.p2align	2
_CG_AllocMark:                          ; @CG_AllocMark
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x21, _cg_freeMarkPolys@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cg_freeMarkPolys@GOTPAGEOFF]
	ldr	x19, [x21]
Lloh2:
	adrp	x20, _cg_activeMarkPolys@GOTPAGE
Lloh3:
	ldr	x20, [x20, _cg_activeMarkPolys@GOTPAGEOFF]
	cbnz	x19, LBB0_5
; %bb.1:
	ldr	x0, [x20, #16]
	ldr	w19, [x0]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_CG_FreeMarkPoly
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x0]
	cmp	w19, w8
	b.eq	LBB0_2
LBB0_4:
	ldr	x19, [x21]
LBB0_5:
	ldr	x8, [x19, #8]
	str	x8, [x21]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [x20, #8]
	stp	x8, x20, [x19, #8]
	ldr	x8, [x20, #8]
	str	x19, [x8, #16]
	str	x19, [x20, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cg_freeMarkPolys,8,3           ; @cg_freeMarkPolys
	.comm	_cg_activeMarkPolys,24,3        ; @cg_activeMarkPolys
.subsections_via_symbols
