	.file	"935373.c"
	.intel_syntax noprefix
	.text
	.globl	holidays
	.bss
	.align 32
	.type	holidays, @object
	.size	holidays, 324
holidays:
	.zero	324
	.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
	mov	eax, 0
	call	setHolidays
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"Holidays.txt"
.LC2:
	.string	"\nFailed to open the file."
.LC3:
	.string	"%d%c%d%c%d"
	.align 8
.LC4:
	.string	"\nThis is what we currently have in our file:"
.LC5:
	.string	"%d\n"
	.align 8
.LC6:
	.string	"\nWould you like to continue (e)diting or (s)ave or close"
.LC7:
	.string	"w"
.LC8:
	.string	"%4d%2d%2d"
.LC9:
	.string	"%d/%d/%d"
	.text
	.globl	setHolidays
	.type	setHolidays, @function
setHolidays:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 0
	mov	BYTE PTR -41[rbp], 101
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -32[rbp]
	imul	edx, eax, 10000
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, eax, 100
	lea	esi, [rdx+rax]
	mov	ecx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -28[rbp], edx
	add	ecx, esi
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, holidays[rip]
	mov	DWORD PTR [rdx+rax], ecx
.L6:
	lea	r8, -42[rbp]
	lea	rdi, -36[rbp]
	lea	rcx, -43[rbp]
	lea	rdx, -40[rbp]
	mov	rax, QWORD PTR -16[rbp]
	sub	rsp, 8
	lea	rsi, -32[rbp]
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	rsp, 16
	cmp	eax, -1
	jne	.L7
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, holidays[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -24[rbp], 1
.L8:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L9
	lea	rdi, .LC6[rip]
	call	puts@PLT
	call	getchar@PLT
	mov	BYTE PTR -41[rbp], al
	cmp	BYTE PTR -41[rbp], 115
	jne	.L5
	lea	rsi, .LC7[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L10
.L11:
	mov	edi, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR -40[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rsi, 0[0+rax*4]
	lea	rax, holidays[rip]
	mov	eax, DWORD PTR [rsi+rax]
	mov	r8d, edi
	lea	rsi, .LC8[rip]
	mov	edi, eax
	mov	eax, 0
	call	sprint@PLT
	mov	esi, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r8d, esi
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -20[rbp], 1
.L10:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L11
.L5:
	cmp	BYTE PTR -41[rbp], 101
	je	.L6
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	setHolidays, .-setHolidays
	.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	"935373.c"
	.text
	.comm	holidays,324,4
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	setHolidays
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"Holidays.txt\000"
	.align	2
.LC2:
	.ascii	"\012Failed to open the file.\000"
	.align	2
.LC3:
	.ascii	"%d%c%d%c%d\000"
	.align	2
.LC4:
	.ascii	"\012This is what we currently have in our file:\000"
	.align	2
.LC5:
	.ascii	"%d\012\000"
	.align	2
.LC6:
	.ascii	"\012Would you like to continue (e)diting or (s)ave "
	.ascii	"or close\000"
	.align	2
.LC7:
	.ascii	"w\000"
	.align	2
.LC8:
	.ascii	"%4d%2d%2d\000"
	.align	2
.LC9:
	.ascii	"%d/%d/%d\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setHolidays
	.syntax unified
	.arm
	.fpu softvfp
	.type	setHolidays, %function
setHolidays:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #101
	strb	r3, [fp, #-37]
	ldr	r1, .L14+4
	ldr	r0, .L14+8
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L14+12
	bl	puts
	mov	r0, #1
	bl	exit
.L7:
	ldr	r2, [fp, #-28]
	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, #-36]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	add	r0, r3, #1
	str	r0, [fp, #-24]
	add	r2, r1, r2
	ldr	r1, .L14+16
	str	r2, [r1, r3, lsl #2]
.L6:
	sub	r1, fp, #39
	sub	r2, fp, #36
	sub	r3, fp, #28
	str	r3, [sp, #8]
	sub	r3, fp, #38
	str	r3, [sp, #4]
	sub	r3, fp, #32
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L14+20
	ldr	r0, [fp, #-20]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L14+24
	bl	puts
	ldr	r0, [fp, #-20]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L8
.L9:
	ldr	r2, .L14+16
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L14+28
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L8:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L9
	ldr	r0, .L14+32
	bl	puts
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-37]
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #115
	bne	.L5
	ldr	r1, .L14+36
	ldr	r0, .L14+8
	bl	fopen
	str	r0, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L10
.L11:
	ldr	r2, .L14+16
	ldr	r3, [fp, #-12]
	ldr	r0, [r2, r3, lsl #2]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L14+40
	bl	sprint
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L14+44
	ldr	r0, [fp, #-20]
	bl	fprintf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L10:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L11
.L5:
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #101
	beq	.L6
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	holidays
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	setHolidays, .-setHolidays
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
