	.file	"871841.c"
	.intel_syntax noprefix
	.text
	.local	foo
	.comm	foo,8,8
	.local	bar
	.comm	bar,8,8
	.local	bletch
	.comm	bletch,8,8
	.local	snarf
	.comm	snarf,8,8
	.local	glorf
	.comm	glorf,800,32
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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, 1000
	mov	eax, 0
	call	malloc@PLT
	mov	QWORD PTR foo[rip], rax
	mov	edi, 2000
	mov	eax, 0
	call	malloc@PLT
	mov	QWORD PTR bar[rip], rax
	mov	edi, 3000
	mov	eax, 0
	call	malloc@PLT
	mov	QWORD PTR bletch[rip], rax
	mov	edi, 1000
	mov	eax, 0
	call	malloc@PLT
	mov	QWORD PTR snarf[rip], rax
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax, 200
	mov	edi, eax
	mov	eax, 0
	call	malloc@PLT
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, glorf[rip]
	mov	QWORD PTR [rcx+rdx], rax
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 99
	jle	.L3
	mov	DWORD PTR -4[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, glorf[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, glorf[rip]
	mov	QWORD PTR [rdx+rax], 0
	add	DWORD PTR -4[rbp], 1
.L4:
	cmp	DWORD PTR -4[rbp], 99
	jle	.L5
	mov	rax, QWORD PTR snarf[rip]
	mov	rdx, QWORD PTR bletch[rip]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR foo[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR bletch[rip]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR bletch[rip], 0
	mov	rax, QWORD PTR foo[rip]
	mov	BYTE PTR [rax], 97
	mov	QWORD PTR bar[rip], 0
	mov	eax, 0
	call	CheckMemory@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"871841.c"
	.text
	.local	foo
	.comm	foo,4,4
	.local	bar
	.comm	bar,4,4
	.local	bletch
	.comm	bletch,4,4
	.local	snarf
	.comm	snarf,4,4
	.local	glorf
	.comm	glorf,400,4
	.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
	mov	r0, #1000
	bl	malloc
	mov	r3, r0
	ldr	r2, .L7
	str	r3, [r2]
	mov	r0, #2000
	bl	malloc
	mov	r3, r0
	ldr	r2, .L7+4
	str	r3, [r2]
	ldr	r0, .L7+8
	bl	malloc
	mov	r3, r0
	ldr	r2, .L7+12
	str	r3, [r2]
	mov	r0, #1000
	bl	malloc
	mov	r3, r0
	ldr	r2, .L7+16
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r2, r0
	ldr	r1, .L7+20
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #99
	ble	.L3
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L4
.L5:
	ldr	r2, .L7+20
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	free
	ldr	r2, .L7+20
	ldr	r3, [fp, #-8]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #99
	ble	.L5
	ldr	r3, .L7+16
	ldr	r3, [r3]
	ldr	r2, .L7+12
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L7+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L7+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #97
	strb	r2, [r3]
	ldr	r3, .L7+4
	mov	r2, #0
	str	r2, [r3]
	bl	CheckMemory
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	foo
	.word	bar
	.word	3000
	.word	bletch
	.word	snarf
	.word	glorf
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
