	.file	"85547.c"
	.intel_syntax noprefix
	.text
	.globl	allocate
	.type	allocate, @function
allocate:
.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	allocate, .-allocate
	.globl	deallocate
	.type	deallocate, @function
deallocate:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	deallocate, .-deallocate
	.globl	read_from_memory
	.type	read_from_memory, @function
read_from_memory:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1[rbp], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	read_from_memory, .-read_from_memory
	.globl	write_to_memory
	.type	write_to_memory, @function
write_to_memory:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 97
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	write_to_memory, .-write_to_memory
	.section	.rodata
.LC0:
	.string	"%s: array-size\n"
.LC1:
	.string	"the_stack_data/85547.c"
.LC2:
	.string	"array != 0"
.LC3:
	.string	"Please enter a command: "
.LC4:
	.string	"command_letter != EOF"
.LC5:
	.string	"%u %i"
.LC6:
	.string	"%u"
	.text
	.globl	main
	.type	main, @function
main:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -64[rbp], 0
	cmp	DWORD PTR -84[rbp], 2
	je	.L6
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L27
.L6:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 82
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L26:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	BYTE PTR -73[rbp], al
	cmp	BYTE PTR -73[rbp], -1
	jne	.L10
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 88
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L10:
	movsx	eax, BYTE PTR -73[rbp]
	sub	eax, 97
	cmp	eax, 22
	ja	.L11
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L13[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L13[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L13:
	.long	.L17-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L16-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L15-.L13
	.long	.L14-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L12-.L13
	.text
.L17:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -48[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	fgets@PLT
	lea	rcx, -68[rbp]
	lea	rdx, -72[rbp]
	lea	rax, -48[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 2
	jne	.L18
	mov	eax, DWORD PTR -72[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jbe	.L18
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	edx, DWORD PTR -72[rbp]
	mov	edx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	mov	rsi, rax
	mov	rdi, rdx
	call	allocate
	jmp	.L19
.L18:
	mov	DWORD PTR -64[rbp], 1
.L19:
	jmp	.L9
.L16:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -48[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	fgets@PLT
	lea	rdx, -72[rbp]
	lea	rax, -48[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	jne	.L20
	mov	eax, DWORD PTR -72[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jbe	.L20
	mov	eax, DWORD PTR -72[rbp]
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	deallocate
	jmp	.L21
.L20:
	mov	DWORD PTR -64[rbp], 1
.L21:
	jmp	.L9
.L14:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -48[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	fgets@PLT
	lea	rcx, -68[rbp]
	lea	rdx, -72[rbp]
	lea	rax, -48[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 2
	jne	.L22
	mov	eax, DWORD PTR -72[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jbe	.L22
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	eax, eax
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	read_from_memory
	jmp	.L23
.L22:
	mov	DWORD PTR -64[rbp], 1
.L23:
	jmp	.L9
.L12:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -48[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	fgets@PLT
	lea	rcx, -68[rbp]
	lea	rdx, -72[rbp]
	lea	rax, -48[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 2
	jne	.L24
	mov	eax, DWORD PTR -72[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jbe	.L24
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	eax, eax
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	write_to_memory
	jmp	.L25
.L24:
	mov	DWORD PTR -64[rbp], 1
.L25:
	jmp	.L9
.L15:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L27
.L11:
	mov	DWORD PTR -64[rbp], 1
.L9:
	cmp	DWORD PTR -64[rbp], 0
	je	.L26
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
.L27:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"85547.c"
	.text
	.align	2
	.global	allocate
	.syntax unified
	.arm
	.fpu softvfp
	.type	allocate, %function
allocate:
	@ 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	r0, [fp, #-12]
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	allocate, .-allocate
	.align	2
	.global	deallocate
	.syntax unified
	.arm
	.fpu softvfp
	.type	deallocate, %function
deallocate:
	@ 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]
	mov	r0, r3
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	deallocate, .-deallocate
	.align	2
	.global	read_from_memory
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_from_memory, %function
read_from_memory:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-5]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	read_from_memory, .-read_from_memory
	.align	2
	.global	write_to_memory
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_to_memory, %function
write_to_memory:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #97
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	write_to_memory, .-write_to_memory
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: array-size\012\000"
	.align	2
.LC1:
	.ascii	"the_stack_data/85547.c\000"
	.align	2
.LC2:
	.ascii	"array != 0\000"
	.align	2
.LC3:
	.ascii	"Please enter a command: \000"
	.align	2
.LC4:
	.ascii	"%u %i\000"
	.align	2
.LC5:
	.ascii	"%u\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 = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-72]
	cmp	r3, #2
	beq	.L6
	ldr	r3, .L28+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L28+8
	bl	fprintf
	mov	r3, #1
	b	.L26
.L6:
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-48]
	mov	r1, #4
	ldr	r0, [fp, #-48]
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L28+12
	mov	r2, #82
	ldr	r1, .L28+16
	ldr	r0, .L28+20
	bl	__assert_fail
.L25:
	ldr	r0, .L28+24
	bl	printf
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-61]
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	sub	r3, r3, #97
	cmp	r3, #22
	ldrls	pc, [pc, r3, asl #2]
	b	.L10
.L12:
	.word	.L16
	.word	.L10
	.word	.L10
	.word	.L15
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L14
	.word	.L13
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L11
.L16:
	ldr	r3, .L28+28
	ldr	r2, [r3]
	sub	r3, fp, #40
	mov	r1, #32
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #56
	sub	r2, fp, #60
	sub	r0, fp, #40
	ldr	r1, .L28+32
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #2
	bne	.L17
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bls	.L17
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [fp, #-56]
	mov	r1, r2
	mov	r0, r3
	bl	allocate
	b	.L18
.L17:
	mov	r3, #1
	str	r3, [fp, #-52]
.L18:
	b	.L9
.L15:
	ldr	r3, .L28+28
	ldr	r2, [r3]
	sub	r3, fp, #40
	mov	r1, #32
	mov	r0, r3
	bl	fgets
	sub	r2, fp, #60
	sub	r3, fp, #40
	ldr	r1, .L28+36
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L19
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bls	.L19
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	mov	r0, r3
	bl	deallocate
	b	.L20
.L19:
	mov	r3, #1
	str	r3, [fp, #-52]
.L20:
	b	.L9
.L13:
	ldr	r3, .L28+28
	ldr	r2, [r3]
	sub	r3, fp, #40
	mov	r1, #32
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #56
	sub	r2, fp, #60
	sub	r0, fp, #40
	ldr	r1, .L28+32
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #2
	bne	.L21
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bls	.L21
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	mov	r1, r2
	mov	r0, r3
	bl	read_from_memory
	b	.L22
.L21:
	mov	r3, #1
	str	r3, [fp, #-52]
.L22:
	b	.L9
.L11:
	ldr	r3, .L28+28
	ldr	r2, [r3]
	sub	r3, fp, #40
	mov	r1, #32
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #56
	sub	r2, fp, #60
	sub	r0, fp, #40
	ldr	r1, .L28+32
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #2
	bne	.L23
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bls	.L23
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	mov	r1, r2
	mov	r0, r3
	bl	write_to_memory
	b	.L24
.L23:
	mov	r3, #1
	str	r3, [fp, #-52]
.L24:
	b	.L9
.L14:
	ldr	r0, [fp, #-44]
	bl	free
	mov	r3, #0
	b	.L26
.L10:
	mov	r3, #1
	str	r3, [fp, #-52]
.L9:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L25
	ldr	r0, [fp, #-44]
	bl	free
	mov	r3, #1
.L26:
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC6
	.word	stderr
	.word	.LC0
	.word	__PRETTY_FUNCTION__.5156
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stdin
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5156, %object
	.size	__PRETTY_FUNCTION__.5156, 5
__PRETTY_FUNCTION__.5156:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
