	.file	"738873.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"--No space left--"
.LC1:
	.string	"Enter day and reminder: "
.LC2:
	.string	"%2d"
.LC3:
	.string	"\nDay Reminder"
	.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, 528
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -516[rbp], 0
.L12:
	cmp	DWORD PTR -516[rbp], 50
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L3
.L2:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -520[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -520[rbp]
	test	eax, eax
	je	.L19
	mov	edx, DWORD PTR -520[rbp]
	lea	rax, -83[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -80[rbp]
	mov	esi, 60
	mov	rdi, rax
	call	read_line
	mov	DWORD PTR -512[rbp], 0
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -512[rbp]
	cdqe
	mov	rax, QWORD PTR -496[rbp+rax*8]
	lea	rdx, 4[rax]
	lea	rax, -83[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	js	.L20
	add	DWORD PTR -512[rbp], 1
.L5:
	mov	eax, DWORD PTR -512[rbp]
	cmp	eax, DWORD PTR -516[rbp]
	jl	.L8
	jmp	.L7
.L20:
	nop
.L7:
	mov	eax, DWORD PTR -516[rbp]
	mov	DWORD PTR -508[rbp], eax
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -508[rbp]
	sub	eax, 1
	cdqe
	mov	rdx, QWORD PTR -496[rbp+rax*8]
	mov	eax, DWORD PTR -508[rbp]
	cdqe
	mov	QWORD PTR -496[rbp+rax*8], rdx
	sub	DWORD PTR -508[rbp], 1
.L9:
	mov	eax, DWORD PTR -508[rbp]
	cmp	eax, DWORD PTR -512[rbp]
	jg	.L10
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 6
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -512[rbp]
	cdqe
	mov	QWORD PTR -496[rbp+rax*8], rdx
	mov	eax, DWORD PTR -512[rbp]
	cdqe
	mov	rax, QWORD PTR -496[rbp+rax*8]
	test	rax, rax
	jne	.L11
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L3
.L11:
	mov	eax, DWORD PTR -512[rbp]
	cdqe
	mov	rax, QWORD PTR -496[rbp+rax*8]
	lea	rdx, 4[rax]
	lea	rax, -83[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	eax, DWORD PTR -512[rbp]
	cdqe
	mov	rax, QWORD PTR -496[rbp+rax*8]
	lea	rdx, 4[rax]
	lea	rax, -80[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcat@PLT
	mov	eax, DWORD PTR -512[rbp]
	cdqe
	mov	rax, QWORD PTR -496[rbp+rax*8]
	add	rax, 4
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -512[rbp]
	cdqe
	mov	rax, QWORD PTR -496[rbp+rax*8]
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -516[rbp], 1
	jmp	.L12
.L19:
	nop
.L3:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -504[rbp], 0
	jmp	.L13
.L16:
	mov	DWORD PTR -500[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -504[rbp]
	cdqe
	mov	rdx, QWORD PTR -496[rbp+rax*8]
	mov	eax, DWORD PTR -500[rbp]
	cdqe
	movzx	eax, BYTE PTR 4[rdx+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -500[rbp], 1
.L14:
	mov	eax, DWORD PTR -504[rbp]
	cdqe
	mov	rax, QWORD PTR -496[rbp+rax*8]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -500[rbp], eax
	jl	.L15
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -504[rbp], 1
.L13:
	mov	eax, DWORD PTR -504[rbp]
	cmp	eax, DWORD PTR -516[rbp]
	jl	.L16
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	read_line
	.type	read_line, @function
read_line:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jge	.L22
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
.L22:
	call	getchar@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 10
	jne	.L23
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	read_line, .-read_line
	.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	"738873.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"--No space left--\000"
	.align	2
.LC1:
	.ascii	"Enter day and reminder: \000"
	.align	2
.LC2:
	.ascii	"%2d\000"
	.align	2
.LC3:
	.ascii	"\012Day Reminder\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-296]
.L12:
	ldr	r3, [fp, #-296]
	cmp	r3, #50
	bne	.L2
	ldr	r0, .L21+4
	bl	puts
	b	.L3
.L2:
	ldr	r0, .L21+8
	bl	printf
	sub	r3, fp, #300
	mov	r1, r3
	ldr	r0, .L21+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	beq	.L19
	ldr	r2, [fp, #-300]
	sub	r3, fp, #76
	ldr	r1, .L21+12
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #72
	mov	r1, #60
	mov	r0, r3
	bl	read_line
	mov	r3, #0
	str	r3, [fp, #-292]
	b	.L5
.L8:
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-272]
	add	r2, r3, #4
	sub	r3, fp, #76
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	blt	.L20
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	str	r3, [fp, #-292]
.L5:
	ldr	r2, [fp, #-292]
	ldr	r3, [fp, #-296]
	cmp	r2, r3
	blt	.L8
	b	.L7
.L20:
	nop
.L7:
	ldr	r3, [fp, #-296]
	str	r3, [fp, #-288]
	b	.L9
.L10:
	ldr	r3, [fp, #-288]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-272]
	ldr	r3, [fp, #-288]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-272]
	ldr	r3, [fp, #-288]
	sub	r3, r3, #1
	str	r3, [fp, #-288]
.L9:
	ldr	r2, [fp, #-288]
	ldr	r3, [fp, #-292]
	cmp	r2, r3
	bgt	.L10
	sub	r3, fp, #72
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #6
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-272]
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-272]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L21+4
	bl	puts
	b	.L3
.L11:
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-272]
	add	r3, r3, #4
	sub	r2, fp, #76
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-272]
	add	r3, r3, #4
	sub	r2, fp, #72
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-272]
	add	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-272]
	str	r2, [r3]
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	b	.L12
.L19:
	nop
.L3:
	ldr	r0, .L21+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-284]
	b	.L13
.L16:
	mov	r3, #0
	str	r3, [fp, #-280]
	b	.L14
.L15:
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-272]
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
.L14:
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-272]
	ldr	r3, [r3]
	ldr	r2, [fp, #-280]
	cmp	r2, r3
	blt	.L15
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
.L13:
	ldr	r2, [fp, #-284]
	ldr	r3, [fp, #-296]
	cmp	r2, r3
	blt	.L16
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.align	2
	.global	read_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_line, %function
read_line:
	@ 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	r3, #0
	str	r3, [fp, #-12]
	b	.L24
.L25:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bge	.L24
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
.L24:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L25
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	read_line, .-read_line
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
