	.file	"100574.c"
	.intel_syntax noprefix
	.text
	.globl	assert
	.type	assert, @function
assert:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	assert, .-assert
	.globl	newVM
	.type	newVM, @function
newVM:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	edi, 2072
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 2048[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 2056[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 2064[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 2068[rax], 8
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	newVM, .-newVM
	.section	.rodata
.LC0:
	.string	"Stack overflow!"
	.text
	.globl	push
	.type	push, @function
push:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 2048[rax]
	cmp	eax, 255
	setle	al
	movzx	eax, al
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	assert
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 2048[rax]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 2048[rdx], ecx
	mov	rdx, QWORD PTR -8[rbp]
	cdqe
	mov	rcx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rdx+rax*8], rcx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	push, .-push
	.section	.rodata
.LC1:
	.string	"Stack underflow!"
	.text
	.globl	pop
	.type	pop, @function
pop:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 2048[rax]
	test	eax, eax
	setg	al
	movzx	eax, al
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	assert
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 2048[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 2048[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 2048[rax]
	mov	rax, QWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	pop, .-pop
	.globl	mark
	.type	mark, @function
mark:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	jne	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 4[rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L9
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	mark
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	mark
	jmp	.L9
.L12:
	nop
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	mark, .-mark
	.globl	markAll
	.type	markAll, @function
markAll:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdi, rax
	call	mark
	add	DWORD PTR -4[rbp], 1
.L14:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 2048[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L15
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	markAll, .-markAll
	.globl	sweep
	.type	sweep, @function
sweep:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2056
	mov	QWORD PTR -16[rbp], rax
	jmp	.L17
.L19:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	jne	.L18
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 2064[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 2064[rax], edx
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	BYTE PTR 4[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 8
	mov	QWORD PTR -16[rbp], rax
.L17:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L19
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	sweep, .-sweep
	.section	.rodata
	.align 8
.LC2:
	.string	"Collected %d objects, %d remaining.\n"
	.text
	.globl	gc
	.type	gc, @function
gc:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 2064[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	markAll
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sweep
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 2064[rax]
	test	eax, eax
	je	.L21
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 2064[rax]
	lea	edx, [rax+rax]
	jmp	.L22
.L21:
	mov	edx, 8
.L22:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 2068[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 2064[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR 2064[rdx]
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, edx
	sub	ecx, esi
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	gc, .-gc
	.globl	newObject
	.type	newObject, @function
newObject:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 2064[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 2068[rax]
	cmp	edx, eax
	jne	.L24
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	gc
.L24:
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 2056[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 2056[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 4[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 2064[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 2064[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	newObject, .-newObject
	.globl	pushInt
	.type	pushInt, @function
pushInt:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	newObject
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	push
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	pushInt, .-pushInt
	.globl	pushPair
	.type	pushPair, @function
pushPair:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	newObject
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pop
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pop
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	push
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	pushPair, .-pushPair
	.section	.rodata
.LC3:
	.string	"%d"
.LC4:
	.string	", "
	.text
	.globl	objectPrint
	.type	objectPrint, @function
objectPrint:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L30
	cmp	eax, 1
	je	.L31
	jmp	.L33
.L30:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L32
.L31:
	mov	edi, 40
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	objectPrint
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	objectPrint
	mov	edi, 41
	call	putchar@PLT
	nop
.L32:
.L33:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	objectPrint, .-objectPrint
	.globl	freeVM
	.type	freeVM, @function
freeVM:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 2048[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	gc
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	freeVM, .-freeVM
	.section	.rodata
	.align 8
.LC5:
	.string	"Test 1: Objects on stack are preserved."
	.align 8
.LC6:
	.string	"Should have preserved objects."
	.text
	.globl	test1
	.type	test1, @function
test1:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 0
	call	newVM
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pushInt
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	pushInt
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	gc
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 2064[rax]
	cmp	eax, 2
	sete	al
	movzx	eax, al
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	assert
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	freeVM
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	test1, .-test1
	.section	.rodata
	.align 8
.LC7:
	.string	"Test 2: Unreached objects are collected."
	.align 8
.LC8:
	.string	"Should have collected objects."
	.text
	.globl	test2
	.type	test2, @function
test2:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	call	newVM
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pushInt
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	pushInt
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pop
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pop
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	gc
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 2064[rax]
	test	eax, eax
	sete	al
	movzx	eax, al
	lea	rsi, .LC8[rip]
	mov	edi, eax
	call	assert
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	freeVM
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	test2, .-test2
	.section	.rodata
.LC9:
	.string	"Test 3: Reach nested objects."
.LC10:
	.string	"Should have reached objects."
	.text
	.globl	test3
	.type	test3, @function
test3:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, 0
	call	newVM
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pushInt
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	pushInt
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pushPair
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	pushInt
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	pushInt
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pushPair
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pushPair
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	gc
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 2064[rax]
	cmp	eax, 7
	sete	al
	movzx	eax, al
	lea	rsi, .LC10[rip]
	mov	edi, eax
	call	assert
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	freeVM
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	test3, .-test3
	.section	.rodata
.LC11:
	.string	"Test 4: Handle cycles."
	.text
	.globl	test4
	.type	test4, @function
test4:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
	call	newVM
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pushInt
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	pushInt
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pushPair
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	pushInt
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	pushInt
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pushPair
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	gc
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 2064[rax]
	cmp	eax, 4
	sete	al
	movzx	eax, al
	lea	rsi, .LC8[rip]
	mov	edi, eax
	call	assert
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	freeVM
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	test4, .-test4
	.section	.rodata
.LC12:
	.string	"Performance Test."
	.text
	.globl	perfTest
	.type	perfTest, @function
perfTest:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, 0
	call	newVM
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L40
.L45:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L41
.L42:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	pushInt
	add	DWORD PTR -16[rbp], 1
.L41:
	cmp	DWORD PTR -16[rbp], 19
	jle	.L42
	mov	DWORD PTR -12[rbp], 0
	jmp	.L43
.L44:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pop
	add	DWORD PTR -12[rbp], 1
.L43:
	cmp	DWORD PTR -12[rbp], 19
	jle	.L44
	add	DWORD PTR -20[rbp], 1
.L40:
	cmp	DWORD PTR -20[rbp], 999
	jle	.L45
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	freeVM
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	perfTest, .-perfTest
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, 0
	call	test1
	mov	eax, 0
	call	test2
	mov	eax, 0
	call	test3
	mov	eax, 0
	call	test4
	mov	eax, 0
	call	perfTest
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"100574.c"
	.text
	.align	2
	.global	assert
	.syntax unified
	.arm
	.fpu softvfp
	.type	assert, %function
assert:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	ldr	r0, [fp, #-12]
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	assert, .-assert
	.align	2
	.global	newVM
	.syntax unified
	.arm
	.fpu softvfp
	.type	newVM, %function
newVM:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #1040
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #1024]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #1028]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #1032]
	ldr	r3, [fp, #-8]
	mov	r2, #8
	str	r2, [r3, #1036]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	newVM, .-newVM
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Stack overflow!\000"
	.text
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #1024]
	cmp	r3, #255
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	ldr	r1, .L7
	mov	r0, r3
	bl	assert
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #1024]
	add	r1, r3, #1
	ldr	r2, [fp, #-8]
	str	r1, [r2, #1024]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	str	r1, [r2, r3, lsl #2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	push, .-push
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Stack underflow!\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #1024]
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	ldr	r1, .L11
	mov	r0, r3
	bl	assert
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #1024]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #1024]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #1024]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC1
	.size	pop, .-pop
	.align	2
	.global	mark
	.syntax unified
	.arm
	.fpu softvfp
	.type	mark, %function
mark:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-8]
	mov	r2, #1
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L13
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	mark
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	mark
	b	.L13
.L16:
	nop
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mark, .-mark
	.align	2
	.global	markAll
	.syntax unified
	.arm
	.fpu softvfp
	.type	markAll, %function
markAll:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L18
.L19:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	mark
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #1024]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L19
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	markAll, .-markAll
	.align	2
	.global	sweep
	.syntax unified
	.arm
	.fpu softvfp
	.type	sweep, %function
sweep:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1024
	add	r3, r3, #4
	str	r3, [fp, #-12]
	b	.L21
.L23:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #1032]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #1032]
	b	.L21
.L22:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	add	r3, r3, #8
	str	r3, [fp, #-12]
.L21:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L23
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sweep, .-sweep
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Collected %d objects, %d remaining.\012\000"
	.text
	.align	2
	.global	gc
	.syntax unified
	.arm
	.fpu softvfp
	.type	gc, %function
gc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #1032]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	markAll
	ldr	r0, [fp, #-16]
	bl	sweep
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #1032]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #1032]
	lsl	r3, r3, #1
	b	.L26
.L25:
	mov	r3, #8
.L26:
	ldr	r2, [fp, #-16]
	str	r3, [r2, #1036]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #1032]
	ldr	r2, [fp, #-8]
	sub	r1, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #1032]
	mov	r2, r3
	ldr	r0, .L27
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC2
	.size	gc, .-gc
	.align	2
	.global	newObject
	.syntax unified
	.arm
	.fpu softvfp
	.type	newObject, %function
newObject:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #1032]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #1036]
	cmp	r2, r3
	bne	.L30
	ldr	r0, [fp, #-16]
	bl	gc
.L30:
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #1028]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #1028]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #1032]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #1032]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	newObject, .-newObject
	.align	2
	.global	pushInt
	.syntax unified
	.arm
	.fpu softvfp
	.type	pushInt, %function
pushInt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	newObject
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #12]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	push
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	pushInt, .-pushInt
	.align	2
	.global	pushPair
	.syntax unified
	.arm
	.fpu softvfp
	.type	pushPair, %function
pushPair:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	newObject
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	pop
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r0, [fp, #-16]
	bl	pop
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	push
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	pushPair, .-pushPair
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	", \000"
	.text
	.align	2
	.global	objectPrint
	.syntax unified
	.arm
	.fpu softvfp
	.type	objectPrint, %function
objectPrint:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L36
	cmp	r3, #1
	beq	.L37
	b	.L39
.L36:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r1, r3
	ldr	r0, .L40
	bl	printf
	b	.L38
.L37:
	mov	r0, #40
	bl	putchar
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	objectPrint
	ldr	r0, .L40+4
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	objectPrint
	mov	r0, #41
	bl	putchar
	nop
.L38:
.L39:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC3
	.word	.LC4
	.size	objectPrint, .-objectPrint
	.align	2
	.global	freeVM
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeVM, %function
freeVM:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #1024]
	ldr	r0, [fp, #-8]
	bl	gc
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	freeVM, .-freeVM
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Test 1: Objects on stack are preserved.\000"
	.align	2
.LC6:
	.ascii	"Should have preserved objects.\000"
	.text
	.align	2
	.global	test1
	.syntax unified
	.arm
	.fpu softvfp
	.type	test1, %function
test1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L44
	bl	puts
	bl	newVM
	str	r0, [fp, #-8]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	pushInt
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	pushInt
	ldr	r0, [fp, #-8]
	bl	gc
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #1032]
	cmp	r3, #2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	ldr	r1, .L44+4
	mov	r0, r3
	bl	assert
	ldr	r0, [fp, #-8]
	bl	freeVM
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC5
	.word	.LC6
	.size	test1, .-test1
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Test 2: Unreached objects are collected.\000"
	.align	2
.LC8:
	.ascii	"Should have collected objects.\000"
	.text
	.align	2
	.global	test2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test2, %function
test2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L47
	bl	puts
	bl	newVM
	str	r0, [fp, #-8]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	pushInt
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	pushInt
	ldr	r0, [fp, #-8]
	bl	pop
	ldr	r0, [fp, #-8]
	bl	pop
	ldr	r0, [fp, #-8]
	bl	gc
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #1032]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	ldr	r1, .L47+4
	mov	r0, r3
	bl	assert
	ldr	r0, [fp, #-8]
	bl	freeVM
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC7
	.word	.LC8
	.size	test2, .-test2
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Test 3: Reach nested objects.\000"
	.align	2
.LC10:
	.ascii	"Should have reached objects.\000"
	.text
	.align	2
	.global	test3
	.syntax unified
	.arm
	.fpu softvfp
	.type	test3, %function
test3:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L50
	bl	puts
	bl	newVM
	str	r0, [fp, #-8]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	pushInt
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	pushInt
	ldr	r0, [fp, #-8]
	bl	pushPair
	mov	r1, #3
	ldr	r0, [fp, #-8]
	bl	pushInt
	mov	r1, #4
	ldr	r0, [fp, #-8]
	bl	pushInt
	ldr	r0, [fp, #-8]
	bl	pushPair
	ldr	r0, [fp, #-8]
	bl	pushPair
	ldr	r0, [fp, #-8]
	bl	gc
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #1032]
	cmp	r3, #7
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	ldr	r1, .L50+4
	mov	r0, r3
	bl	assert
	ldr	r0, [fp, #-8]
	bl	freeVM
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC9
	.word	.LC10
	.size	test3, .-test3
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Test 4: Handle cycles.\000"
	.text
	.align	2
	.global	test4
	.syntax unified
	.arm
	.fpu softvfp
	.type	test4, %function
test4:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r0, .L53
	bl	puts
	bl	newVM
	str	r0, [fp, #-16]
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	pushInt
	mov	r1, #2
	ldr	r0, [fp, #-16]
	bl	pushInt
	ldr	r0, [fp, #-16]
	bl	pushPair
	str	r0, [fp, #-12]
	mov	r1, #3
	ldr	r0, [fp, #-16]
	bl	pushInt
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	pushInt
	ldr	r0, [fp, #-16]
	bl	pushPair
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #16]
	ldr	r0, [fp, #-16]
	bl	gc
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #1032]
	cmp	r3, #4
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	ldr	r1, .L53+4
	mov	r0, r3
	bl	assert
	ldr	r0, [fp, #-16]
	bl	freeVM
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC11
	.word	.LC8
	.size	test4, .-test4
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Performance Test.\000"
	.text
	.align	2
	.global	perfTest
	.syntax unified
	.arm
	.fpu softvfp
	.type	perfTest, %function
perfTest:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r0, .L62
	bl	puts
	bl	newVM
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L56
.L61:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L57
.L58:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	pushInt
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L57:
	ldr	r3, [fp, #-16]
	cmp	r3, #19
	ble	.L58
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L59
.L60:
	ldr	r0, [fp, #-8]
	bl	pop
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L59:
	ldr	r3, [fp, #-12]
	cmp	r3, #19
	ble	.L60
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L56:
	ldr	r3, [fp, #-20]
	cmp	r3, #1000
	blt	.L61
	ldr	r0, [fp, #-8]
	bl	freeVM
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC12
	.size	perfTest, .-perfTest
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	bl	test1
	bl	test2
	bl	test3
	bl	test4
	bl	perfTest
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
