	.file	"108557.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"calendar.txt"
.LC2:
	.string	"%s"
	.text
	.globl	FindEvent
	.type	FindEvent, @function
FindEvent:
.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, 592
	mov	DWORD PTR -580[rbp], edi
	mov	DWORD PTR -584[rbp], esi
	mov	DWORD PTR -588[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 100
	call	malloc@PLT
	mov	QWORD PTR -544[rbp], rax
	mov	WORD PTR -114[rbp], 32
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	jmp	.L2
.L6:
	mov	DWORD PTR -568[rbp], 0
	lea	rdx, -114[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -552[rbp], rax
	jmp	.L3
.L4:
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -568[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	lea	rax, -114[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -552[rbp], rax
	add	DWORD PTR -568[rbp], 1
.L3:
	cmp	QWORD PTR -552[rbp], 0
	jne	.L4
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -564[rbp], eax
	lea	rax, -528[rbp]
	add	rax, 100
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -560[rbp], eax
	lea	rax, -528[rbp]
	add	rax, 200
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -556[rbp], eax
	mov	eax, DWORD PTR -556[rbp]
	cmp	eax, DWORD PTR -588[rbp]
	jne	.L2
	mov	eax, DWORD PTR -560[rbp]
	cmp	eax, DWORD PTR -584[rbp]
	jne	.L2
	mov	eax, DWORD PTR -564[rbp]
	cmp	eax, DWORD PTR -580[rbp]
	jne	.L2
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -544[rbp]
	lea	rdx, -528[rbp]
	lea	rcx, 300[rdx]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -544[rbp]
	jmp	.L7
.L2:
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	FindEvent, .-FindEvent
	.section	.rodata
.LC3:
	.string	" "
	.text
	.globl	ParseEvent
	.type	ParseEvent, @function
ParseEvent:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	WORD PTR -24[rbp], 0
	lea	rax, .LC3[rip]
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	WORD PTR -114[rbp], 0
	mov	DWORD PTR -148[rbp], 0
	jmp	.L10
.L13:
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -114[rbp], al
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -144[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L11
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -112[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 95
	jmp	.L12
.L11:
	lea	rdx, -114[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
.L12:
	add	DWORD PTR -148[rbp], 1
.L10:
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	cmp	QWORD PTR -136[rbp], rax
	ja	.L13
	mov	edi, 100
	call	malloc@PLT
	mov	QWORD PTR -128[rbp], rax
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -128[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ParseEvent, .-ParseEvent
	.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	"108557.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"calendar.txt\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	FindEvent
	.syntax unified
	.arm
	.fpu softvfp
	.type	FindEvent, %function
FindEvent:
	@ args = 0, pretend = 0, frame = 552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #552
	str	r0, [fp, #-544]
	str	r1, [fp, #-548]
	str	r2, [fp, #-552]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #100
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-532]
	mov	r3, #32
	strh	r3, [fp, #-112]	@ movhi
	ldr	r1, .L9+4
	ldr	r0, .L9+8
	bl	fopen
	str	r0, [fp, #-528]
	b	.L2
.L6:
	mov	r3, #0
	str	r3, [fp, #-540]
	sub	r2, fp, #112
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-536]
	b	.L3
.L4:
	sub	r1, fp, #512
	ldr	r2, [fp, #-540]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [fp, #-536]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #112
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-536]
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
.L3:
	ldr	r3, [fp, #-536]
	cmp	r3, #0
	bne	.L4
	sub	r3, fp, #512
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-524]
	sub	r3, fp, #512
	add	r3, r3, #100
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-520]
	sub	r3, fp, #512
	add	r3, r3, #200
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-516]
	ldr	r2, [fp, #-516]
	ldr	r3, [fp, #-552]
	cmp	r2, r3
	bne	.L2
	ldr	r2, [fp, #-520]
	ldr	r3, [fp, #-548]
	cmp	r2, r3
	bne	.L2
	ldr	r2, [fp, #-524]
	ldr	r3, [fp, #-544]
	cmp	r2, r3
	bne	.L2
	ldr	r0, [fp, #-528]
	bl	fclose
	sub	r3, fp, #512
	add	r3, r3, #300
	ldr	r2, [fp, #-532]
	ldr	r1, .L9+12
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-532]
	b	.L7
.L2:
	sub	r3, fp, #108
	ldr	r2, [fp, #-528]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r0, [fp, #-528]
	bl	fclose
	mov	r3, #0
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	FindEvent, .-FindEvent
	.section	.rodata
	.align	2
.LC4:
	.ascii	" \000"
	.align	2
.LC5:
	.ascii	"_\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ParseEvent
	.syntax unified
	.arm
	.fpu softvfp
	.type	ParseEvent, %function
ParseEvent:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-100]
	sub	r3, fp, #96
	mov	r2, #86
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L18+4
	str	r3, [fp, #-116]
	ldr	r0, [fp, #-128]
	bl	strlen
	str	r0, [fp, #-112]
	mov	r3, #0
	strh	r3, [fp, #-104]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L12
.L15:
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-128]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-104]
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-128]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L13
	sub	r3, fp, #100
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #100
	add	r3, r3, r2
	ldr	r2, .L18+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	b	.L14
.L13:
	sub	r2, fp, #104
	sub	r3, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	strcat
.L14:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L12:
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	bhi	.L15
	mov	r0, #100
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-108]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-108]
	bl	strcpy
	ldr	r3, [fp, #-108]
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.size	ParseEvent, .-ParseEvent
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
