	.file	"925587.c"
	.intel_syntax noprefix
	.text
	.globl	maxLen
	.section	.rodata
	.align 4
	.type	maxLen, @object
	.size	maxLen, 4
maxLen:
	.long	80
	.align 8
.LC0:
	.string	"n: add a new appointment (date, text)"
.LC1:
	.string	"d: sort appointments by date"
	.align 8
.LC2:
	.string	"a: sort appointments alphabetically by appointment text"
.LC3:
	.string	"p: print current appointments"
.LC4:
	.string	"q: quit"
.LC5:
	.string	"Enter option: "
.LC6:
	.string	"User option is %c\n"
.LC7:
	.string	"Enter month: "
	.align 8
.LC8:
	.string	"Enter day and year (day,year): "
.LC9:
	.string	"%d,%d"
.LC10:
	.string	"Enter text: "
.LC11:
	.string	"Invalid month name"
.LC12:
	.string	"Quitting program\n"
.LC13:
	.string	"Command not recongized"
	.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
	push	rbx
	sub	rsp, 296
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -300[rbp], 0
	mov	DWORD PTR -296[rbp], 1
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	imul	rax, rax, 92
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -280[rbp], rax
	movabs	rax, 34184235089551690
	mov	QWORD PTR -176[rbp], rax
	mov	WORD PTR -168[rbp], 0
	movabs	rax, 34184235088766278
	mov	QWORD PTR -166[rbp], rax
	mov	WORD PTR -158[rbp], 0
	movabs	rax, 448345039181
	mov	QWORD PTR -156[rbp], rax
	mov	WORD PTR -148[rbp], 0
	movabs	rax, 465625575489
	mov	QWORD PTR -146[rbp], rax
	mov	WORD PTR -138[rbp], 0
	mov	QWORD PTR -136[rbp], 7954765
	mov	WORD PTR -128[rbp], 0
	mov	QWORD PTR -126[rbp], 1701737802
	mov	WORD PTR -118[rbp], 0
	mov	QWORD PTR -116[rbp], 2037151050
	mov	WORD PTR -108[rbp], 0
	movabs	rax, 128039239775553
	mov	QWORD PTR -106[rbp], rax
	mov	WORD PTR -98[rbp], 0
	movabs	rax, 7305521828061013331
	mov	QWORD PTR -96[rbp], rax
	mov	WORD PTR -88[rbp], 114
	movabs	rax, 32199620796113743
	mov	QWORD PTR -86[rbp], rax
	mov	WORD PTR -78[rbp], 0
	movabs	rax, 8243102914964778830
	mov	QWORD PTR -76[rbp], rax
	mov	WORD PTR -68[rbp], 0
	movabs	rax, 8243102914963531076
	mov	QWORD PTR -66[rbp], rax
	mov	WORD PTR -58[rbp], 0
.L20:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	BYTE PTR -301[rbp], al
	nop
.L2:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L2
	movsx	eax, BYTE PTR -301[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	BYTE PTR -301[rbp], 110
	jne	.L3
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	BYTE PTR -302[rbp], al
	mov	DWORD PTR -288[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -288[rbp]
	cdqe
	movzx	edx, BYTE PTR -302[rbp]
	mov	BYTE PTR -48[rbp+rax], dl
	add	DWORD PTR -288[rbp], 1
	call	getchar@PLT
	mov	BYTE PTR -302[rbp], al
.L4:
	cmp	BYTE PTR -302[rbp], 10
	jne	.L5
	mov	eax, DWORD PTR -288[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], 0
	mov	DWORD PTR -284[rbp], 0
	mov	DWORD PTR -292[rbp], 0
	jmp	.L6
.L8:
	lea	rcx, -176[rbp]
	mov	eax, DWORD PTR -292[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rcx, rax
	lea	rax, -48[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -292[rbp]
	add	eax, 1
	mov	DWORD PTR -268[rbp], eax
	mov	DWORD PTR -284[rbp], 1
.L7:
	add	DWORD PTR -292[rbp], 1
.L6:
	cmp	DWORD PTR -292[rbp], 11
	jle	.L8
	cmp	DWORD PTR -284[rbp], 0
	je	.L9
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	lea	rdx, -272[rbp]
	lea	rcx, 8[rdx]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
.L10:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L10
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -288[rbp], 0
	call	getchar@PLT
	mov	BYTE PTR -302[rbp], al
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -288[rbp]
	cdqe
	movzx	edx, BYTE PTR -302[rbp]
	mov	BYTE PTR -260[rbp+rax], dl
	add	DWORD PTR -288[rbp], 1
	call	getchar@PLT
	mov	BYTE PTR -302[rbp], al
.L11:
	cmp	BYTE PTR -302[rbp], 10
	jne	.L12
	mov	eax, DWORD PTR -288[rbp]
	cdqe
	mov	BYTE PTR -260[rbp+rax], 0
	lea	rdx, -296[rbp]
	lea	rsi, -300[rbp]
	lea	rdi, -280[rbp]
	sub	rsp, 96
	mov	rax, rsp
	mov	rcx, QWORD PTR -272[rbp]
	mov	rbx, QWORD PTR -264[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -256[rbp]
	mov	rbx, QWORD PTR -248[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR -240[rbp]
	mov	rbx, QWORD PTR -232[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR -224[rbp]
	mov	rbx, QWORD PTR -216[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR -208[rbp]
	mov	rbx, QWORD PTR -200[rbp]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rcx, QWORD PTR -192[rbp]
	mov	QWORD PTR 80[rax], rcx
	mov	ecx, DWORD PTR -184[rbp]
	mov	DWORD PTR 88[rax], ecx
	call	addAppt
	add	rsp, 96
	jmp	.L20
.L9:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L20
.L3:
	cmp	BYTE PTR -301[rbp], 100
	jne	.L15
	mov	ecx, DWORD PTR -300[rbp]
	lea	rax, -280[rbp]
	lea	rdx, comesFirstByDate[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	insertionSort
	jmp	.L20
.L15:
	cmp	BYTE PTR -301[rbp], 97
	jne	.L16
	mov	ecx, DWORD PTR -300[rbp]
	lea	rax, -280[rbp]
	lea	rdx, comesFirstByText[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	insertionSort
	jmp	.L20
.L16:
	cmp	BYTE PTR -301[rbp], 112
	jne	.L17
	mov	edx, DWORD PTR -300[rbp]
	mov	rax, QWORD PTR -280[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	printAppt
	jmp	.L20
.L17:
	cmp	BYTE PTR -301[rbp], 113
	jne	.L18
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L21
	jmp	.L22
.L18:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L20
.L22:
	call	__stack_chk_fail@PLT
.L21:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	addAppt
	.type	addAppt, @function
addAppt:
.LFB7:
	.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L24
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, eax
	cdqe
	imul	rax, rax, 92
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L25
.L26:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	imul	rax, rax, 92
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	imul	rcx, rax, 92
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 16[rdx]
	mov	rbx, QWORD PTR 24[rdx]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR 32[rdx]
	mov	rbx, QWORD PTR 40[rdx]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR 48[rdx]
	mov	rbx, QWORD PTR 56[rdx]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR 64[rdx]
	mov	rbx, QWORD PTR 72[rdx]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rcx, QWORD PTR 80[rdx]
	mov	QWORD PTR 80[rax], rcx
	mov	edx, DWORD PTR 88[rdx]
	mov	DWORD PTR 88[rax], edx
	add	DWORD PTR -28[rbp], 1
.L25:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L26
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, [rax+rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
.L24:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	imul	rax, rax, 92
	add	rax, rdx
	mov	rcx, QWORD PTR 16[rbp]
	mov	rbx, QWORD PTR 24[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 32[rbp]
	mov	rbx, QWORD PTR 40[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR 48[rbp]
	mov	rbx, QWORD PTR 56[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR 64[rbp]
	mov	rbx, QWORD PTR 72[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR 80[rbp]
	mov	rbx, QWORD PTR 88[rbp]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rdx, QWORD PTR 96[rbp]
	mov	QWORD PTR 80[rax], rdx
	mov	edx, DWORD PTR 104[rbp]
	mov	DWORD PTR 88[rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	addAppt, .-addAppt
	.globl	combineDate
	.type	combineDate, @function
combineDate:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR 16[rbp]
	imul	edx, eax, 10000
	mov	eax, DWORD PTR 20[rbp]
	imul	eax, eax, 100
	add	edx, eax
	mov	eax, DWORD PTR 24[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	combineDate, .-combineDate
	.globl	comesFirstByDate
	.type	comesFirstByDate, @function
comesFirstByDate:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	sub	rsp, 96
	mov	rax, rsp
	mov	rcx, QWORD PTR 16[rbp]
	mov	rbx, QWORD PTR 24[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 32[rbp]
	mov	rbx, QWORD PTR 40[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR 48[rbp]
	mov	rbx, QWORD PTR 56[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR 64[rbp]
	mov	rbx, QWORD PTR 72[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR 80[rbp]
	mov	rbx, QWORD PTR 88[rbp]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rdx, QWORD PTR 96[rbp]
	mov	QWORD PTR 80[rax], rdx
	mov	edx, DWORD PTR 104[rbp]
	mov	DWORD PTR 88[rax], edx
	call	combineDate
	add	rsp, 96
	mov	r12d, eax
	sub	rsp, 96
	mov	rax, rsp
	mov	rcx, QWORD PTR 112[rbp]
	mov	rbx, QWORD PTR 120[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 128[rbp]
	mov	rbx, QWORD PTR 136[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR 144[rbp]
	mov	rbx, QWORD PTR 152[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR 160[rbp]
	mov	rbx, QWORD PTR 168[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR 176[rbp]
	mov	rbx, QWORD PTR 184[rbp]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rdx, QWORD PTR 192[rbp]
	mov	QWORD PTR 80[rax], rdx
	mov	edx, DWORD PTR 200[rbp]
	mov	DWORD PTR 88[rax], edx
	call	combineDate
	add	rsp, 96
	cmp	r12d, eax
	setl	al
	movzx	eax, al
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	comesFirstByDate, .-comesFirstByDate
	.globl	comesFirstByText
	.type	comesFirstByText, @function
comesFirstByText:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 80
	movsx	rdx, eax
	lea	rax, 112[rbp]
	lea	rcx, 12[rax]
	lea	rax, 28[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jns	.L32
	mov	eax, 1
	jmp	.L33
.L32:
	mov	eax, 0
.L33:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	comesFirstByText, .-comesFirstByText
	.globl	insertionSort
	.type	insertionSort, @function
insertionSort:
.LFB11:
	.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, 168
	.cfi_offset 3, -24
	mov	QWORD PTR -152[rbp], rdi
	mov	DWORD PTR -156[rbp], esi
	mov	QWORD PTR -168[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -136[rbp], 1
	jmp	.L35
.L39:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	imul	rax, rax, 92
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -128[rbp], rcx
	mov	QWORD PTR -120[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -112[rbp], rcx
	mov	QWORD PTR -104[rbp], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR -96[rbp], rcx
	mov	QWORD PTR -88[rbp], rbx
	mov	rcx, QWORD PTR 48[rax]
	mov	rbx, QWORD PTR 56[rax]
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -72[rbp], rbx
	mov	rcx, QWORD PTR 64[rax]
	mov	rbx, QWORD PTR 72[rax]
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -56[rbp], rbx
	mov	rdx, QWORD PTR 80[rax]
	mov	QWORD PTR -48[rbp], rdx
	mov	eax, DWORD PTR 88[rax]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -136[rbp]
	sub	eax, 1
	mov	DWORD PTR -132[rbp], eax
	jmp	.L36
.L38:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	imul	rax, rax, 92
	add	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	add	rax, 1
	imul	rax, rax, 92
	add	rax, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 16[rdx]
	mov	rbx, QWORD PTR 24[rdx]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR 32[rdx]
	mov	rbx, QWORD PTR 40[rdx]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR 48[rdx]
	mov	rbx, QWORD PTR 56[rdx]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR 64[rdx]
	mov	rbx, QWORD PTR 72[rdx]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rcx, QWORD PTR 80[rdx]
	mov	QWORD PTR 80[rax], rcx
	mov	edx, DWORD PTR 88[rdx]
	mov	DWORD PTR 88[rax], edx
	sub	DWORD PTR -132[rbp], 1
.L36:
	cmp	DWORD PTR -132[rbp], 0
	js	.L37
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	imul	rax, rax, 92
	add	rax, rdx
	sub	rsp, 96
	mov	rdx, rsp
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR [rdx], rcx
	mov	QWORD PTR 8[rdx], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR 16[rdx], rcx
	mov	QWORD PTR 24[rdx], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR 32[rdx], rcx
	mov	QWORD PTR 40[rdx], rbx
	mov	rcx, QWORD PTR 48[rax]
	mov	rbx, QWORD PTR 56[rax]
	mov	QWORD PTR 48[rdx], rcx
	mov	QWORD PTR 56[rdx], rbx
	mov	rcx, QWORD PTR 64[rax]
	mov	rbx, QWORD PTR 72[rax]
	mov	QWORD PTR 64[rdx], rcx
	mov	QWORD PTR 72[rdx], rbx
	mov	rcx, QWORD PTR 80[rax]
	mov	QWORD PTR 80[rdx], rcx
	mov	eax, DWORD PTR 88[rax]
	mov	DWORD PTR 88[rdx], eax
	sub	rsp, 96
	mov	rax, rsp
	mov	rcx, QWORD PTR -128[rbp]
	mov	rbx, QWORD PTR -120[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -112[rbp]
	mov	rbx, QWORD PTR -104[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR -96[rbp]
	mov	rbx, QWORD PTR -88[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR -80[rbp]
	mov	rbx, QWORD PTR -72[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR 80[rax], rdx
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR 88[rax], edx
	mov	rax, QWORD PTR -168[rbp]
	call	rax
	add	rsp, 192
	test	eax, eax
	jne	.L38
.L37:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	add	rax, 1
	imul	rax, rax, 92
	add	rax, rdx
	mov	rcx, QWORD PTR -128[rbp]
	mov	rbx, QWORD PTR -120[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -112[rbp]
	mov	rbx, QWORD PTR -104[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR -96[rbp]
	mov	rbx, QWORD PTR -88[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR -80[rbp]
	mov	rbx, QWORD PTR -72[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR 80[rax], rdx
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR 88[rax], edx
	add	DWORD PTR -136[rbp], 1
.L35:
	mov	eax, DWORD PTR -136[rbp]
	cmp	eax, DWORD PTR -156[rbp]
	jl	.L39
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	insertionSort, .-insertionSort
	.section	.rodata
.LC14:
	.string	"%10s %2.0d, %4.0d: %s\n"
	.text
	.globl	printAppt
	.type	printAppt, @function
printAppt:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	DWORD PTR -156[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 34184235089551690
	mov	QWORD PTR -128[rbp], rax
	mov	WORD PTR -120[rbp], 0
	movabs	rax, 34184235088766278
	mov	QWORD PTR -118[rbp], rax
	mov	WORD PTR -110[rbp], 0
	movabs	rax, 448345039181
	mov	QWORD PTR -108[rbp], rax
	mov	WORD PTR -100[rbp], 0
	movabs	rax, 465625575489
	mov	QWORD PTR -98[rbp], rax
	mov	WORD PTR -90[rbp], 0
	mov	QWORD PTR -88[rbp], 7954765
	mov	WORD PTR -80[rbp], 0
	mov	QWORD PTR -78[rbp], 1701737802
	mov	WORD PTR -70[rbp], 0
	mov	QWORD PTR -68[rbp], 2037151050
	mov	WORD PTR -60[rbp], 0
	movabs	rax, 128039239775553
	mov	QWORD PTR -58[rbp], rax
	mov	WORD PTR -50[rbp], 0
	movabs	rax, 7305521828061013331
	mov	QWORD PTR -48[rbp], rax
	mov	WORD PTR -40[rbp], 114
	movabs	rax, 32199620796113743
	mov	QWORD PTR -38[rbp], rax
	mov	WORD PTR -30[rbp], 0
	movabs	rax, 8243102914964778830
	mov	QWORD PTR -28[rbp], rax
	mov	WORD PTR -20[rbp], 0
	movabs	rax, 8243102914963531076
	mov	QWORD PTR -18[rbp], rax
	mov	WORD PTR -10[rbp], 0
	mov	DWORD PTR -132[rbp], 0
	jmp	.L42
.L43:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	imul	rdx, rax, 92
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	lea	rdi, 12[rax]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	imul	rdx, rax, 92
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	imul	rdx, rax, 92
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	imul	rsi, rax, 92
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rsi
	mov	eax, DWORD PTR 4[rax]
	sub	eax, 1
	lea	r8, -128[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 2
	add	rax, rsi
	add	rax, rax
	add	rax, r8
	mov	r8, rdi
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -132[rbp], 1
.L42:
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -156[rbp]
	jl	.L43
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	printAppt, .-printAppt
	.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	"925587.c"
	.text
	.global	maxLen
	.section	.rodata
	.align	2
	.type	maxLen, %object
	.size	maxLen, 4
maxLen:
	.word	80
	.align	2
.LC1:
	.ascii	"n: add a new appointment (date, text)\000"
	.align	2
.LC2:
	.ascii	"d: sort appointments by date\000"
	.align	2
.LC3:
	.ascii	"a: sort appointments alphabetically by appointment "
	.ascii	"text\000"
	.align	2
.LC4:
	.ascii	"p: print current appointments\000"
	.align	2
.LC5:
	.ascii	"q: quit\000"
	.align	2
.LC6:
	.ascii	"Enter option: \000"
	.align	2
.LC7:
	.ascii	"User option is %c\012\000"
	.align	2
.LC8:
	.ascii	"Enter month: \000"
	.align	2
.LC9:
	.ascii	"Enter day and year (day,year): \000"
	.align	2
.LC10:
	.ascii	"%d,%d\000"
	.align	2
.LC11:
	.ascii	"Enter text: \000"
	.align	2
.LC12:
	.ascii	"Invalid month name\000"
	.align	2
.LC13:
	.ascii	"Quitting program\012\000"
	.align	2
.LC14:
	.ascii	"Command not recongized\000"
	.align	2
.LC0:
	.ascii	"January\000"
	.space	2
	.ascii	"Febuary\000"
	.space	2
	.ascii	"March\000"
	.space	4
	.ascii	"April\000"
	.space	4
	.ascii	"May\000"
	.space	6
	.ascii	"June\000"
	.space	5
	.ascii	"July\000"
	.space	5
	.ascii	"August\000"
	.space	3
	.ascii	"September\000"
	.ascii	"October\000"
	.space	2
	.ascii	"November\000"
	.space	1
	.ascii	"December\000"
	.space	1
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #356
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-272]
	mov	r3, #1
	str	r3, [fp, #-264]
	ldr	r3, [fp, #-264]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-268]
	ldr	r2, .L23+4
	sub	r3, fp, #156
	mov	r1, r2
	mov	r2, #120
	mov	r0, r3
	bl	memcpy
.L20:
	ldr	r0, .L23+8
	bl	puts
	ldr	r0, .L23+12
	bl	puts
	ldr	r0, .L23+16
	bl	puts
	ldr	r0, .L23+20
	bl	puts
	ldr	r0, .L23+24
	bl	puts
	ldr	r0, .L23+28
	bl	printf
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-273]
	nop
.L2:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L2
	ldrb	r3, [fp, #-273]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L23+32
	bl	printf
	ldrb	r3, [fp, #-273]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L3
	ldr	r0, .L23+36
	bl	printf
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-274]
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L4
.L5:
	sub	r2, fp, #36
	ldr	r3, [fp, #-256]
	add	r3, r2, r3
	ldrb	r2, [fp, #-274]
	strb	r2, [r3]
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-274]
.L4:
	ldrb	r3, [fp, #-274]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L5
	sub	r2, fp, #36
	ldr	r3, [fp, #-256]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-252]
	mov	r3, #0
	str	r3, [fp, #-260]
	b	.L6
.L8:
	sub	r1, fp, #156
	ldr	r2, [fp, #-260]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r1, r1, r3
	sub	r3, fp, #36
	mov	r2, #10
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-260]
	add	r3, r3, #1
	str	r3, [fp, #-244]
	mov	r3, #1
	str	r3, [fp, #-252]
.L7:
	ldr	r3, [fp, #-260]
	add	r3, r3, #1
	str	r3, [fp, #-260]
.L6:
	ldr	r3, [fp, #-260]
	cmp	r3, #11
	ble	.L8
	ldr	r3, [fp, #-252]
	cmp	r3, #0
	beq	.L9
	ldr	r0, .L23+40
	bl	printf
	sub	r2, fp, #248
	sub	r3, fp, #248
	add	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L23+44
	bl	__isoc99_scanf
	nop
.L10:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L10
	ldr	r0, .L23+48
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-256]
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-274]
	b	.L11
.L12:
	sub	r2, fp, #236
	ldr	r3, [fp, #-256]
	add	r3, r2, r3
	ldrb	r2, [fp, #-274]
	strb	r2, [r3]
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-274]
.L11:
	ldrb	r3, [fp, #-274]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L12
	sub	r2, fp, #236
	ldr	r3, [fp, #-256]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r4, fp, #268
	sub	r3, fp, #264
	str	r3, [sp, #84]
	sub	r3, fp, #272
	str	r3, [sp, #80]
	mov	r0, sp
	sub	r3, fp, #236
	mov	r2, #80
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #248
	ldm	r3, {r1, r2, r3}
	mov	r0, r4
	bl	addAppt
	b	.L20
.L9:
	ldr	r0, .L23+52
	bl	puts
	b	.L20
.L3:
	ldrb	r3, [fp, #-273]	@ zero_extendqisi2
	cmp	r3, #100
	bne	.L15
	ldr	r1, [fp, #-272]
	sub	r3, fp, #268
	ldr	r2, .L23+56
	mov	r0, r3
	bl	insertionSort
	b	.L20
.L15:
	ldrb	r3, [fp, #-273]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L16
	ldr	r1, [fp, #-272]
	sub	r3, fp, #268
	ldr	r2, .L23+60
	mov	r0, r3
	bl	insertionSort
	b	.L20
.L16:
	ldrb	r3, [fp, #-273]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L17
	ldr	r3, [fp, #-268]
	ldr	r2, [fp, #-272]
	mov	r1, r2
	mov	r0, r3
	bl	printAppt
	b	.L20
.L17:
	ldrb	r3, [fp, #-273]	@ zero_extendqisi2
	cmp	r3, #113
	bne	.L18
	ldr	r0, .L23+64
	bl	puts
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	b	.L22
.L18:
	ldr	r0, .L23+68
	bl	puts
	b	.L20
.L22:
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC15
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	comesFirstByDate
	.word	comesFirstByText
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.align	2
	.global	addAppt
	.syntax unified
	.arm
	.fpu softvfp
	.type	addAppt, %function
addAppt:
	@ args = 104, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, [fp, #100]
	ldr	r2, [r3]
	ldr	r3, [fp, #104]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L26
	ldr	r3, [fp, #104]
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L27
.L28:
	ldr	r3, [fp, #-16]
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r0, r3
	mov	r3, #92
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	ldr	r3, [fp, #100]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L28
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #104]
	ldr	r3, [r3]
	lsl	r2, r3, #1
	ldr	r3, [fp, #104]
	str	r2, [r3]
.L26:
	ldr	r3, [fp, #-16]
	ldr	r1, [r3]
	ldr	r3, [fp, #100]
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r0, r3
	add	r3, fp, #8
	mov	r2, #92
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #100]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #100]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
	.size	addAppt, .-addAppt
	.align	2
	.global	combineDate
	.syntax unified
	.arm
	.fpu softvfp
	.type	combineDate, %function
combineDate:
	@ args = 92, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #16
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r2, [fp, #4]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r1, r3
	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, #2
	add	r2, r1, r3
	ldr	r3, [fp, #12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #16
	bx	lr
	.size	combineDate, .-combineDate
	.align	2
	.global	comesFirstByDate
	.syntax unified
	.arm
	.fpu softvfp
	.type	comesFirstByDate, %function
comesFirstByDate:
	@ args = 184, pretend = 16, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #84
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r0, sp
	add	r3, fp, #20
	mov	r2, #76
	mov	r1, r3
	bl	memcpy
	add	r3, fp, #4
	ldm	r3, {r0, r1, r2, r3}
	bl	combineDate
	mov	r4, r0
	mov	r0, sp
	add	r3, fp, #112
	mov	r2, #76
	mov	r1, r3
	bl	memcpy
	add	r3, fp, #96
	ldm	r3, {r0, r1, r2, r3}
	bl	combineDate
	mov	r3, r0
	cmp	r4, r3
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, lr}
	add	sp, sp, #16
	bx	lr
	.size	comesFirstByDate, .-comesFirstByDate
	.align	2
	.global	comesFirstByText
	.syntax unified
	.arm
	.fpu softvfp
	.type	comesFirstByText, %function
comesFirstByText:
	@ args = 184, pretend = 16, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #80
	mov	r2, r3
	add	r3, fp, #96
	add	r1, r3, #12
	add	r3, fp, #16
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bge	.L34
	mov	r3, #1
	b	.L35
.L34:
	mov	r3, #0
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
	.size	comesFirstByText, .-comesFirstByText
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	insertionSort
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertionSort, %function
insertionSort:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #292
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	str	r2, [fp, #-128]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-116]
	b	.L37
.L41:
	ldr	r3, [fp, #-120]
	ldr	r1, [r3]
	ldr	r2, [fp, #-116]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	sub	r3, fp, #108
	mov	r1, r2
	mov	r2, #92
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-116]
	sub	r3, r3, #1
	str	r3, [fp, #-112]
	b	.L38
.L40:
	ldr	r3, [fp, #-120]
	ldr	r1, [r3]
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r0, r1, r3
	ldr	r3, [fp, #-120]
	ldr	r1, [r3]
	ldr	r3, [fp, #-112]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	ip, r3
	mov	r1, r0
	mov	r3, #92
	mov	r2, r3
	mov	r0, ip
	bl	memcpy
	ldr	r3, [fp, #-112]
	sub	r3, r3, #1
	str	r3, [fp, #-112]
.L38:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	blt	.L39
	ldr	r3, [fp, #-120]
	ldr	r1, [r3]
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	add	r3, sp, #76
	mov	r1, r2
	mov	r2, #92
	mov	r0, r3
	bl	memcpy
	mov	r0, sp
	sub	r3, fp, #92
	mov	r2, #76
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #108
	ldm	r3, {r0, r1, r2, r3}
	ldr	r4, [fp, #-128]
	blx	r4
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
.L39:
	ldr	r3, [fp, #-120]
	ldr	r1, [r3]
	ldr	r3, [fp, #-112]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r0, r3
	sub	r3, fp, #108
	mov	r2, #92
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L37:
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-124]
	cmp	r2, r3
	blt	.L41
	nop
	ldr	r3, .L43
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC16
	.size	insertionSort, .-insertionSort
	.section	.rodata
	.align	2
.LC17:
	.ascii	"%10s %2.0d, %4.0d: %s\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printAppt
	.syntax unified
	.arm
	.fpu softvfp
	.type	printAppt, %function
printAppt:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L49+4
	sub	r3, fp, #128
	mov	r1, r2
	mov	r2, #120
	mov	r0, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L46
.L47:
	ldr	r2, [fp, #-132]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-136]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	sub	r2, r3, #1
	sub	r1, fp, #128
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r1, r1, r3
	ldr	r2, [fp, #-132]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-136]
	add	r3, r3, r2
	ldr	r0, [r3, #8]
	ldr	r2, [fp, #-132]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-136]
	add	r3, r3, r2
	ldr	ip, [r3]
	ldr	r2, [fp, #-132]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-136]
	add	r3, r3, r2
	add	r3, r3, #12
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L49+8
	bl	printf
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L46:
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-140]
	cmp	r2, r3
	blt	.L47
	nop
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC18
	.word	.LC0
	.word	.LC17
	.size	printAppt, .-printAppt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
