	.file	"577688.c"
	.intel_syntax noprefix
	.text
	.globl	memory
	.bss
	.align 16
	.type	memory, @object
	.size	memory, 31
memory:
	.zero	31
	.text
	.globl	beginmemory
	.type	beginmemory, @function
beginmemory:
.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, 32
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L2
.L12:
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L3
	call	rand@PLT
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	add	eax, 2
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, memory[rip]
	mov	BYTE PTR [rax+rdx], 42
	add	DWORD PTR -24[rbp], 1
	cmp	DWORD PTR -24[rbp], 29
	jg	.L13
	add	DWORD PTR -16[rbp], 1
.L4:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L7
	jmp	.L2
.L13:
	nop
	jmp	.L2
.L3:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -1840700269
	shr	rdx, 32
	add	edx, eax
	sar	edx, 3
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 14
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 2[rdx]
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 65
	mov	ecx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, memory[rip]
	mov	BYTE PTR [rax+rdx], cl
	add	DWORD PTR -24[rbp], 1
	cmp	DWORD PTR -24[rbp], 29
	jg	.L14
	add	DWORD PTR -12[rbp], 1
.L8:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L11
	jmp	.L10
.L14:
	nop
.L10:
	add	DWORD PTR -20[rbp], 1
.L2:
	cmp	DWORD PTR -24[rbp], 29
	jle	.L12
	mov	BYTE PTR memory[rip+30], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	beginmemory, .-beginmemory
	.globl	newProcess
	.type	newProcess, @function
newProcess:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L16
.L18:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, memory[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	cmp	DWORD PTR -4[rbp], eax
	jge	.L17
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, memory[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	DWORD PTR -4[rbp], eax
.L17:
	add	DWORD PTR -8[rbp], 1
.L16:
	cmp	DWORD PTR -8[rbp], 29
	jle	.L18
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	newProcess, .-newProcess
	.globl	primerAjuste
	.type	primerAjuste, @function
primerAjuste:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L21
.L25:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, memory[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 42
	jne	.L22
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jne	.L23
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -20[rbp]
	add	eax, 1
	jmp	.L24
.L22:
	mov	DWORD PTR -4[rbp], 0
.L23:
	add	DWORD PTR -8[rbp], 1
.L21:
	cmp	DWORD PTR -8[rbp], 29
	jle	.L25
	mov	eax, -1
.L24:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	primerAjuste, .-primerAjuste
	.globl	compactMemory
	.type	compactMemory, @function
compactMemory:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L27
.L32:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, memory[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 42
	jne	.L28
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L29
.L31:
	add	DWORD PTR -4[rbp], 1
.L29:
	cmp	DWORD PTR -4[rbp], 29
	jg	.L30
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, memory[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 42
	je	.L31
.L30:
	cmp	DWORD PTR -4[rbp], 29
	jg	.L28
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, memory[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, memory[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, memory[rip]
	mov	BYTE PTR [rax+rdx], 42
.L28:
	add	DWORD PTR -8[rbp], 1
.L27:
	cmp	DWORD PTR -8[rbp], 29
	jle	.L32
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	compactMemory, .-compactMemory
	.section	.rodata
.LC0:
	.string	"Asignaci\303\263n actual:\n%s\n"
	.align 8
.LC1:
	.string	"\302\277Qu\303\251 acci\303\263n desea realizar?\n\nAsignar --> A\t\tLiberar --> L\n"
.LC2:
	.string	"%s"
	.align 8
.LC3:
	.string	"Indique el tama\303\261o del nuevo %c proceso (El valor debe de ser de entre 2 y 15: \n"
.LC4:
	.string	"%i"
	.align 8
.LC5:
	.string	"El tama\303\261o del proceso debe de ser entre 2 y 15, vuelva a indicar el tama\303\261o:"
.LC6:
	.string	"--Compactaci\303\263n requerida--"
	.align 8
.LC7:
	.string	"Nueva situaci\303\263n:\n%s\nAsignando a %c\n"
	.align 8
.LC8:
	.string	"No hay espacio suficiente en memoria, se tiene que liberar un proceso para asignar uno nuevo"
.LC9:
	.string	"\302\277Qu\303\251 proceso desea liberar?"
.LC10:
	.string	"\302\277Desea continuar?"
	.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
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	eax, 0
	call	beginmemory
	jmp	.L34
.L48:
	lea	rsi, memory[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -51[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -51[rbp]
	cmp	al, 65
	jne	.L35
	mov	eax, 0
	call	newProcess
	mov	BYTE PTR -49[rbp], al
	movsx	eax, BYTE PTR -49[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L36
.L37:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L36:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 1
	jle	.L37
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 15
	jg	.L37
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	primerAjuste
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], -1
	je	.L38
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	jmp	.L39
.L40:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	cdqe
	lea	rcx, memory[rip]
	movzx	edx, BYTE PTR -49[rbp]
	mov	BYTE PTR [rax+rcx], dl
	add	DWORD PTR -44[rbp], 1
.L39:
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L40
	jmp	.L41
.L38:
	mov	eax, 0
	call	compactMemory
	lea	rdi, .LC6[rip]
	call	puts@PLT
	movsx	eax, BYTE PTR -49[rbp]
	mov	edx, eax
	lea	rsi, memory[rip]
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	primerAjuste
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], -1
	je	.L42
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	jmp	.L43
.L44:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cdqe
	lea	rcx, memory[rip]
	movzx	edx, BYTE PTR -49[rbp]
	mov	BYTE PTR [rax+rcx], dl
	add	DWORD PTR -40[rbp], 1
.L43:
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -40[rbp], eax
	jl	.L44
	jmp	.L41
.L42:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L41
.L35:
	movzx	eax, BYTE PTR -51[rbp]
	cmp	al, 76
	jne	.L41
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rax, -26[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L45
.L47:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, memory[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	ebx, al
	movzx	eax, BYTE PTR -26[rbp]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	cmp	ebx, eax
	jne	.L46
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, memory[rip]
	mov	BYTE PTR [rax+rdx], 42
.L46:
	add	DWORD PTR -36[rbp], 1
.L45:
	cmp	DWORD PTR -36[rbp], 29
	jle	.L47
.L41:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rax, -50[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L34:
	movzx	eax, BYTE PTR -50[rbp]
	cmp	al, 78
	jne	.L48
	movzx	eax, BYTE PTR -50[rbp]
	cmp	al, 110
	jne	.L48
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"577688.c"
	.text
	.comm	memory,31,4
	.align	2
	.global	beginmemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	beginmemory, %function
beginmemory:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L12:
	bl	rand
	mov	r1, r0
	ldr	r3, .L15
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L3
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	add	r3, r3, #2
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L4
.L7:
	ldr	r2, .L15+4
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #29
	bgt	.L13
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L4:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L7
	b	.L2
.L13:
	nop
	b	.L2
.L3:
	bl	rand
	mov	r2, r0
	ldr	r3, .L15+8
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #3
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	lsl	r3, r3, #1
	sub	r1, r2, r3
	add	r3, r1, #2
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L8
.L11:
	ldr	r3, [fp, #-24]
	and	r3, r3, #255
	add	r3, r3, #65
	and	r1, r3, #255
	ldr	r2, .L15+4
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #29
	bgt	.L14
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L8:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L11
	b	.L10
.L14:
	nop
.L10:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-28]
	cmp	r3, #29
	ble	.L12
	ldr	r3, .L15+4
	mov	r2, #0
	strb	r2, [r3, #30]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	1431655766
	.word	memory
	.word	-1840700269
	.size	beginmemory, .-beginmemory
	.align	2
	.global	newProcess
	.syntax unified
	.arm
	.fpu softvfp
	.type	newProcess, %function
newProcess:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L18
.L20:
	ldr	r2, .L22
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bge	.L19
	ldr	r2, .L22
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
.L19:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L18:
	ldr	r3, [fp, #-12]
	cmp	r3, #29
	ble	.L20
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L23:
	.align	2
.L22:
	.word	memory
	.size	newProcess, .-newProcess
	.align	2
	.global	primerAjuste
	.syntax unified
	.arm
	.fpu softvfp
	.type	primerAjuste, %function
primerAjuste:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L25
.L29:
	ldr	r2, .L30
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L26
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L27
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	add	r3, r3, #1
	b	.L28
.L26:
	mov	r3, #0
	str	r3, [fp, #-8]
.L27:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L25:
	ldr	r3, [fp, #-12]
	cmp	r3, #29
	ble	.L29
	mvn	r3, #0
.L28:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L31:
	.align	2
.L30:
	.word	memory
	.size	primerAjuste, .-primerAjuste
	.align	2
	.global	compactMemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	compactMemory, %function
compactMemory:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L33
.L38:
	ldr	r2, .L39
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L34
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	b	.L35
.L37:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L35:
	ldr	r3, [fp, #-8]
	cmp	r3, #29
	bgt	.L36
	ldr	r2, .L39
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #42
	beq	.L37
.L36:
	ldr	r3, [fp, #-8]
	cmp	r3, #29
	bgt	.L34
	ldr	r2, .L39
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, .L39
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r2, .L39
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
.L34:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L33:
	ldr	r3, [fp, #-12]
	cmp	r3, #29
	ble	.L38
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L40:
	.align	2
.L39:
	.word	memory
	.size	compactMemory, .-compactMemory
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Asignaci\303\263n actual:\012%s\012\000"
	.align	2
.LC1:
	.ascii	"\302\277Qu\303\251 acci\303\263n desea realizar?\012"
	.ascii	"\012Asignar --> A\011\011Liberar --> L\012\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.ascii	"Indique el tama\303\261o del nuevo %c proceso (El v"
	.ascii	"alor debe de ser de entre 2 y 15: \012\000"
	.align	2
.LC4:
	.ascii	"%i\000"
	.align	2
.LC5:
	.ascii	"El tama\303\261o del proceso debe de ser entre 2 y "
	.ascii	"15, vuelva a indicar el tama\303\261o:\000"
	.align	2
.LC6:
	.ascii	"--Compactaci\303\263n requerida--\000"
	.align	2
.LC7:
	.ascii	"Nueva situaci\303\263n:\012%s\012Asignando a %c\012"
	.ascii	"\000"
	.align	2
.LC8:
	.ascii	"No hay espacio suficiente en memoria, se tiene que "
	.ascii	"liberar un proceso para asignar uno nuevo\000"
	.align	2
.LC9:
	.ascii	"\302\277Qu\303\251 proceso desea liberar?\000"
	.align	2
.LC10:
	.ascii	"\302\277Desea continuar?\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	beginmemory
	b	.L42
.L56:
	ldr	r1, .L59+4
	ldr	r0, .L59+8
	bl	printf
	ldr	r0, .L59+12
	bl	puts
	sub	r3, fp, #43
	mov	r1, r3
	ldr	r0, .L59+16
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-43]	@ zero_extendqisi2
	cmp	r3, #65
	bne	.L43
	bl	newProcess
	mov	r3, r0
	strb	r3, [fp, #-41]
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L59+20
	bl	printf
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L59+24
	bl	__isoc99_scanf
	b	.L44
.L45:
	ldr	r0, .L59+28
	bl	puts
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L59+24
	bl	__isoc99_scanf
.L44:
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	ble	.L45
	ldr	r3, [fp, #-40]
	cmp	r3, #15
	bgt	.L45
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	primerAjuste
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	beq	.L46
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L47
.L48:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r1, .L59+4
	ldrb	r2, [fp, #-41]
	strb	r2, [r1, r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L47:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L48
	b	.L49
.L46:
	bl	compactMemory
	ldr	r0, .L59+32
	bl	puts
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L59+4
	ldr	r0, .L59+36
	bl	printf
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	primerAjuste
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	beq	.L50
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L51
.L52:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r1, .L59+4
	ldrb	r2, [fp, #-41]
	strb	r2, [r1, r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L51:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L52
	b	.L49
.L50:
	ldr	r0, .L59+40
	bl	puts
	b	.L49
.L43:
	ldrb	r3, [fp, #-43]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L49
	ldr	r0, .L59+44
	bl	puts
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L59+16
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L53
.L55:
	ldr	r2, .L59+4
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r4, r3
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	cmp	r4, r3
	bne	.L54
	ldr	r2, .L59+4
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
.L54:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L53:
	ldr	r3, [fp, #-28]
	cmp	r3, #29
	ble	.L55
.L49:
	ldr	r0, .L59+48
	bl	puts
	sub	r3, fp, #42
	mov	r1, r3
	ldr	r0, .L59+16
	bl	__isoc99_scanf
.L42:
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	cmp	r3, #78
	bne	.L56
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L56
	mov	r3, #0
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC11
	.word	memory
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
