	.file	"877170.c"
	.intel_syntax noprefix
	.text
	.globl	globalArray
	.bss
	.align 32
	.type	globalArray, @object
	.size	globalArray, 4096
globalArray:
	.zero	4096
	.section	.rodata
.LC0:
	.string	"Usage: mem1 [numMallocs]\n"
.LC1:
	.string	"Addresses:\n"
.LC2:
	.string	"\tglobalArray: %p\n"
.LC3:
	.string	"\tlocalArray: %p\n"
.LC4:
	.string	"\tp: %p\n"
.LC5:
	.string	"\tp: %p, region %d: %p\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	add	rsp, -128
	mov	DWORD PTR -4212[rbp], edi
	mov	QWORD PTR -4224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4208[rbp], 3
	cmp	DWORD PTR -4212[rbp], 2
	jle	.L2
	lea	rax, -4192[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -4192[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -4192[rbp]
	mov	rsi, rax
	mov	edi, 2
	mov	eax, 0
	call	write@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	cmp	DWORD PTR -4212[rbp], 2
	jne	.L3
	mov	rax, QWORD PTR -4224[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4208[rbp], eax
.L3:
	lea	rax, -4192[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -4192[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -4192[rbp]
	mov	rsi, rax
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
	lea	rax, -4192[rbp]
	lea	rdx, globalArray[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -4192[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -4192[rbp]
	mov	rsi, rax
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
	lea	rdx, -4112[rbp]
	lea	rax, -4192[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -4192[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -4192[rbp]
	mov	rsi, rax
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
	lea	rdx, -4200[rbp]
	lea	rax, -4192[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -4192[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -4192[rbp]
	mov	rsi, rax
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
	mov	DWORD PTR -4204[rbp], 0
	jmp	.L4
.L5:
	mov	edi, 4096
	mov	eax, 0
	call	sbrk@PLT
	cdqe
	mov	QWORD PTR -4200[rbp], rax
	mov	rsi, QWORD PTR -4200[rbp]
	mov	ecx, DWORD PTR -4204[rbp]
	lea	rdx, -4200[rbp]
	lea	rax, -4192[rbp]
	mov	r8, rsi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -4192[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -4192[rbp]
	mov	rsi, rax
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
	mov	edi, -4096
	mov	eax, 0
	call	sbrk@PLT
	cdqe
	mov	QWORD PTR -4200[rbp], rax
	add	DWORD PTR -4204[rbp], 1
.L4:
	mov	eax, DWORD PTR -4204[rbp]
	cmp	eax, DWORD PTR -4208[rbp]
	jl	.L5
.L6:
	jmp	.L6
	.cfi_endproc
.LFE6:
	.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	"877170.c"
	.text
	.comm	globalArray,4096,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: mem1 [numMallocs]\012\000"
	.align	2
.LC1:
	.ascii	"Addresses:\012\000"
	.align	2
.LC2:
	.ascii	"\011globalArray: %p\012\000"
	.align	2
.LC3:
	.ascii	"\011localArray: %p\012\000"
	.align	2
.LC4:
	.ascii	"\011p: %p\012\000"
	.align	2
.LC5:
	.ascii	"\011p: %p, region %d: %p\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4160
	sub	sp, sp, #52
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-100]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-104]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #3
	str	r3, [r2, #-92]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmp	r3, #2
	ble	.L2
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r1, .L8+4
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r3
	mov	r0, #2
	bl	write
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmp	r3, #2
	bne	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-92]
.L3:
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r1, .L8+8
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r3
	mov	r0, #1
	bl	write
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r2, .L8+12
	ldr	r1, .L8+16
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r3
	mov	r0, #1
	bl	write
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r1, .L8+20
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r3
	mov	r0, #1
	bl	write
	sub	r2, fp, #4160
	sub	r2, r2, #12
	sub	r2, r2, #32
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r1, .L8+24
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r3
	mov	r0, #1
	bl	write
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-88]
	b	.L4
.L5:
	mov	r0, #4096
	bl	sbrk
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r2, [r3, #-96]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-96]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #4160
	sub	r2, r2, #12
	sub	r2, r2, #32
	sub	r0, fp, #4160
	sub	r0, r0, #12
	sub	r0, r0, #20
	str	r3, [sp]
	ldr	r3, [r1, #-88]
	ldr	r1, .L8+28
	bl	sprintf
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldr	r0, .L8+32
	bl	sbrk
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r2, [r3, #-96]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-88]
	add	r3, r3, #1
	str	r3, [r2, #-88]
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-88]
	ldr	r3, [r3, #-92]
	cmp	r2, r3
	blt	.L5
.L6:
	b	.L6
.L9:
	.align	2
.L8:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	globalArray
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	-4096
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
