	.file	"265294.c"
	.intel_syntax noprefix
	.text
	.globl	db
	.bss
	.align 4
	.type	db, @object
	.size	db, 4
db:
	.zero	4
	.section	.rodata
.LC0:
	.string	"clear"
	.align 8
.LC1:
	.string	"__________LIBRARY SOFTWARE__________"
.LC2:
	.string	"1.SEARCH FOR BOOK\n"
.LC3:
	.string	"2.ISSUE A BOOK\n"
.LC4:
	.string	"3.RETURN A BOOK\n"
.LC5:
	.string	"4.ADD BOOKS(ADMIN ONLY)\n"
.LC6:
	.string	"5.EXIT\n"
.LC7:
	.string	"PLEASE ENTER YOUR CHOICE:"
.LC8:
	.string	"%d"
	.align 8
.LC9:
	.string	"PLEASE SELECT A CORRECT OPTION"
	.align 8
.LC10:
	.string	"WOULD YOU LIKE TO RETURN TO THE MAIN MENU(Y/N)?"
.LC11:
	.string	"%s"
.LC12:
	.string	"y"
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	system@PLT
.L11:
	mov	DWORD PTR -36[rbp], 0
	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]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, 5
	ja	.L2
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L2-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L8:
	mov	eax, 0
	call	search
	jmp	.L9
.L5:
	mov	eax, 0
	call	add
	jmp	.L9
.L7:
	mov	eax, 0
	call	issue
	jmp	.L9
.L6:
	mov	eax, 0
	call	ret
	jmp	.L9
.L3:
	mov	edi, 0
	call	exit@PLT
.L2:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	nop
.L9:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rax, -32[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	mov	DWORD PTR -36[rbp], 1
.L10:
	cmp	DWORD PTR -36[rbp], 1
	je	.L11
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC13:
	.string	"a+"
.LC14:
	.string	"issue.txt"
.LC15:
	.string	"r"
.LC16:
	.string	"NO BOOKS HAVE BEEN ADDED"
.LC17:
	.string	"ENTER THE NAME OF THE BOOK:"
.LC18:
	.string	"THE ID OF THE BOOK IS %d\n"
	.align 8
.LC19:
	.string	"THE BOOK HAS ALREADY BEEN ISSUED TO USN %s AND WILL MOSTLY RETURNED BY %d-%d-%d\n"
.LC20:
	.string	"%d %s %d %d %d"
.LC21:
	.string	"THE BOOK IS ON RACK 1"
.LC22:
	.string	"THE BOOK IS ON RACK 2"
.LC23:
	.string	"BOOK DOES NOT EXIST"
	.text
	.globl	search
	.type	search, @function
search:
.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, 496
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	system@PLT
	mov	DWORD PTR -472[rbp], 1
	mov	DWORD PTR -468[rbp], 25
	mov	DWORD PTR -476[rbp], 0
	movabs	rax, 8679613455108370274
	mov	edx, 116
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	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	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rsi, .LC13[rip]
	lea	rdi, .LC14[rip]
	call	fopen@PLT
	mov	QWORD PTR -464[rbp], rax
	lea	rax, -112[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -456[rbp], rax
	cmp	QWORD PTR -456[rbp], 0
	jne	.L14
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L24
.L14:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rax, -336[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L16
.L22:
	lea	rdx, -336[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR -472[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -492[rbp]
	cmp	DWORD PTR -472[rbp], eax
	jne	.L18
	mov	esi, DWORD PTR -480[rbp]
	mov	ecx, DWORD PTR -484[rbp]
	mov	edx, DWORD PTR -488[rbp]
	lea	rax, -448[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L24
.L18:
	lea	r8, -484[rbp]
	lea	rdi, -488[rbp]
	lea	rcx, -448[rbp]
	lea	rdx, -492[rbp]
	mov	rax, QWORD PTR -464[rbp]
	sub	rsp, 8
	lea	rsi, -480[rbp]
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	rsp, 16
	test	eax, eax
	jg	.L19
	cmp	DWORD PTR -472[rbp], 4
	jg	.L20
	lea	rdi, .LC21[rip]
	call	puts@PLT
	jmp	.L21
.L20:
	lea	rdi, .LC22[rip]
	call	puts@PLT
.L21:
	mov	DWORD PTR -476[rbp], 1
.L17:
	add	DWORD PTR -472[rbp], 1
.L16:
	lea	rdx, -224[rbp]
	mov	rax, QWORD PTR -456[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	test	eax, eax
	jg	.L22
	cmp	DWORD PTR -476[rbp], 0
	jne	.L23
	lea	rdi, .LC23[rip]
	call	puts@PLT
.L23:
	mov	rax, QWORD PTR -456[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L24:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	search, .-search
	.section	.rodata
.LC24:
	.string	"ENTER THE PASSWORD:"
.LC25:
	.string	"WRONG PASSWORD"
.LC26:
	.string	"a"
.LC27:
	.string	"books.txt"
.LC28:
	.string	"ENTER THE NUMBER OF BOOKS:"
.LC29:
	.string	"ENTER A BOOK NAME:"
.LC30:
	.string	"%s "
	.text
	.globl	add
	.type	add, @function
add:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 352
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	system@PLT
	mov	QWORD PTR -336[rbp], 1701082468
	mov	QWORD PTR -328[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	DWORD PTR -240[rbp], 0
	lea	rdi, .LC24[rip]
	call	puts@PLT
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -336[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L27
	lea	rdi, .LC25[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L31
.L27:
	lea	rsi, .LC26[rip]
	lea	rdi, .LC27[rip]
	call	fopen@PLT
	mov	QWORD PTR -344[rbp], rax
	lea	rdi, .LC28[rip]
	call	puts@PLT
	lea	rax, -352[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -348[rbp], 1
	jmp	.L29
.L30:
	lea	rdi, .LC29[rip]
	call	puts@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -344[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -348[rbp], 1
.L29:
	mov	eax, DWORD PTR -352[rbp]
	cmp	DWORD PTR -348[rbp], eax
	jle	.L30
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L31:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	add, .-add
	.section	.rodata
.LC31:
	.string	"ENTER THE ID OF THE BOOK:"
.LC32:
	.string	"NO SUCH BOOK FUND"
.LC33:
	.string	"ENTER YOUR USN:"
	.align 8
.LC34:
	.string	"YOU HAVE REACHED THE LIMIT OF ISSUING THE BOOKS"
.LC35:
	.string	"ENTER TODAY'S DATE :"
.LC36:
	.string	"%d%d%d"
.LC37:
	.string	"invalid date"
.LC38:
	.string	"RETURN DATE:\t%d-%d-%d\n"
.LC39:
	.string	"%d %s %d %d %d "
	.text
	.globl	issue
	.type	issue, @function
issue:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 544
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -484[rbp], 0
	mov	DWORD PTR -480[rbp], 1
	lea	rsi, .LC15[rip]
	lea	rdi, .LC27[rip]
	call	fopen@PLT
	mov	QWORD PTR -472[rbp], rax
	cmp	QWORD PTR -472[rbp], 0
	jne	.L34
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L59
.L34:
	mov	rax, QWORD PTR -472[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC13[rip]
	lea	rdi, .LC14[rip]
	call	fopen@PLT
	mov	QWORD PTR -464[rbp], rax
	lea	rsi, .LC15[rip]
	lea	rdi, .LC27[rip]
	call	fopen@PLT
	mov	QWORD PTR -472[rbp], rax
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC31[rip]
	call	puts@PLT
	lea	rax, -516[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L36
.L39:
	mov	eax, DWORD PTR -516[rbp]
	cmp	DWORD PTR -480[rbp], eax
	jne	.L37
	mov	DWORD PTR -484[rbp], 0
	jmp	.L38
.L37:
	mov	DWORD PTR -484[rbp], 1
	add	DWORD PTR -480[rbp], 1
.L36:
	lea	rdx, -448[rbp]
	mov	rax, QWORD PTR -472[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	test	eax, eax
	jg	.L39
.L38:
	mov	rax, QWORD PTR -472[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	DWORD PTR -484[rbp], 1
	jne	.L41
	lea	rdi, .LC32[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L59
.L42:
	mov	edx, DWORD PTR -532[rbp]
	mov	eax, DWORD PTR -516[rbp]
	cmp	edx, eax
	jne	.L41
	mov	esi, DWORD PTR -520[rbp]
	mov	ecx, DWORD PTR -524[rbp]
	mov	edx, DWORD PTR -528[rbp]
	lea	rax, -224[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L59
.L41:
	lea	r8, -524[rbp]
	lea	rdi, -528[rbp]
	lea	rcx, -224[rbp]
	lea	rdx, -532[rbp]
	mov	rax, QWORD PTR -464[rbp]
	sub	rsp, 8
	lea	rsi, -520[rbp]
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	rsp, 16
	test	eax, eax
	jg	.L42
	mov	rax, QWORD PTR -464[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -476[rbp], 0
	lea	rdi, .LC33[rip]
	call	puts@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, .LC15[rip]
	lea	rdi, .LC14[rip]
	call	fopen@PLT
	mov	QWORD PTR -464[rbp], rax
	jmp	.L43
.L45:
	lea	rdx, -112[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L44
	add	DWORD PTR -476[rbp], 1
.L44:
	cmp	DWORD PTR -476[rbp], 2
	jne	.L43
	lea	rdi, .LC34[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L59
.L43:
	lea	r8, -508[rbp]
	lea	rdi, -512[rbp]
	lea	rcx, -336[rbp]
	lea	rdx, -500[rbp]
	mov	rax, QWORD PTR -464[rbp]
	sub	rsp, 8
	lea	rsi, -504[rbp]
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	rsp, 16
	test	eax, eax
	jg	.L45
	mov	DWORD PTR -496[rbp], 0
	mov	DWORD PTR -492[rbp], 0
	mov	DWORD PTR -488[rbp], 0
	lea	rdi, .LC35[rip]
	call	puts@PLT
	lea	rcx, -488[rbp]
	lea	rdx, -492[rbp]
	lea	rax, -496[rbp]
	mov	rsi, rax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -492[rbp]
	test	eax, eax
	jle	.L46
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, 12
	jg	.L46
	mov	eax, DWORD PTR -496[rbp]
	test	eax, eax
	jle	.L46
	mov	eax, DWORD PTR -496[rbp]
	cmp	eax, 31
	jle	.L47
.L46:
	lea	rdi, .LC37[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L59
.L47:
	mov	eax, DWORD PTR -496[rbp]
	add	eax, 15
	mov	DWORD PTR -496[rbp], eax
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, 1
	je	.L48
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, 3
	je	.L48
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, 5
	je	.L48
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, 7
	je	.L48
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, 8
	je	.L48
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, 10
	je	.L48
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, 12
	jne	.L49
.L48:
	mov	eax, DWORD PTR -496[rbp]
	cmp	eax, 31
	jle	.L52
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, 12
	jne	.L51
	mov	eax, DWORD PTR -496[rbp]
	sub	eax, 31
	mov	DWORD PTR -496[rbp], eax
	mov	DWORD PTR -492[rbp], 1
	mov	eax, DWORD PTR -488[rbp]
	add	eax, 1
	mov	DWORD PTR -488[rbp], eax
	jmp	.L52
.L51:
	mov	eax, DWORD PTR -496[rbp]
	sub	eax, 31
	mov	DWORD PTR -496[rbp], eax
	mov	eax, DWORD PTR -492[rbp]
	add	eax, 1
	mov	DWORD PTR -492[rbp], eax
	jmp	.L52
.L49:
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, 2
	jne	.L53
	mov	eax, DWORD PTR -496[rbp]
	cmp	eax, 28
	jle	.L52
	mov	eax, DWORD PTR -488[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L54
	mov	edx, DWORD PTR -488[rbp]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L55
.L54:
	mov	edx, DWORD PTR -488[rbp]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 7
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 400
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L56
.L55:
	mov	eax, DWORD PTR -496[rbp]
	sub	eax, 29
	mov	DWORD PTR -496[rbp], eax
	jmp	.L57
.L56:
	mov	eax, DWORD PTR -496[rbp]
	sub	eax, 28
	mov	DWORD PTR -496[rbp], eax
.L57:
	mov	eax, DWORD PTR -492[rbp]
	add	eax, 1
	mov	DWORD PTR -492[rbp], eax
	jmp	.L52
.L53:
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, 4
	je	.L58
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, 6
	je	.L58
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, 9
	je	.L58
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, 11
	jne	.L52
.L58:
	mov	eax, DWORD PTR -496[rbp]
	cmp	eax, 30
	jle	.L52
	mov	eax, DWORD PTR -492[rbp]
	add	eax, 1
	mov	DWORD PTR -492[rbp], eax
	mov	eax, DWORD PTR -496[rbp]
	sub	eax, 30
	mov	DWORD PTR -496[rbp], eax
.L52:
	mov	ecx, DWORD PTR -488[rbp]
	mov	edx, DWORD PTR -492[rbp]
	mov	eax, DWORD PTR -496[rbp]
	mov	esi, eax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC26[rip]
	lea	rdi, .LC14[rip]
	call	fopen@PLT
	mov	QWORD PTR -456[rbp], rax
	mov	esi, DWORD PTR -488[rbp]
	mov	r8d, DWORD PTR -492[rbp]
	mov	edi, DWORD PTR -496[rbp]
	mov	edx, DWORD PTR -516[rbp]
	lea	rcx, -112[rbp]
	mov	rax, QWORD PTR -456[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -456[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -464[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L59:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	issue, .-issue
	.section	.rodata
.LC40:
	.string	"NO BOOKS HAVE BEEN ISSUED"
.LC41:
	.string	"ENTER THE BOOK ID:"
.LC42:
	.string	"NO SUCH BOOK HAS BEEN ISSUED"
.LC43:
	.string	"w"
.LC44:
	.string	"issues.txt"
.LC45:
	.string	"ENTER  TODAY'S DATE"
	.align 8
.LC46:
	.string	"TODAY'S DATE:\t%d-%d-%d\t\tRETURN DATE:\t %d-%d-%d\n"
.LC47:
	.string	"BOOK Returned successfully"
.LC48:
	.string	"BOOK SUCESSFULLY RETURNED"
.LC49:
	.string	"FINE TO BE PAID: \t%d\n"
	.align 8
.LC50:
	.string	"ENTER THE PASSKEY GIVEN AFTER THE PAYMENT OF FINE:"
	.align 8
.LC51:
	.string	"THE BOOK HAS BEEN SUCESSFULLY RETURNED"
	.align 8
.LC52:
	.string	"THE PASSKEY IS WRONG PLEASE CHECK AGAIN"
	.text
	.globl	ret
	.type	ret, @function
ret:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 448
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC15[rip]
	lea	rdi, .LC14[rip]
	call	fopen@PLT
	mov	QWORD PTR -360[rbp], rax
	mov	rax, QWORD PTR -360[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -360[rbp]
	mov	rdi, rax
	call	ftell@PLT
	test	rax, rax
	jne	.L62
	lea	rdi, .LC40[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L104
.L62:
	mov	rax, QWORD PTR -360[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	DWORD PTR -396[rbp], 0
	lea	rdi, .LC0[rip]
	call	system@PLT
	movabs	rax, 8679613395146863465
	mov	edx, 116
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], rdx
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	movabs	rax, 8371755636927722345
	mov	edx, 29816
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	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	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC41[rip]
	call	puts@PLT
	lea	rax, -416[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, .LC15[rip]
	lea	rdi, .LC14[rip]
	call	fopen@PLT
	mov	QWORD PTR -352[rbp], rax
	jmp	.L64
.L67:
	mov	edx, DWORD PTR -416[rbp]
	mov	eax, DWORD PTR -420[rbp]
	cmp	edx, eax
	jne	.L65
	mov	DWORD PTR -396[rbp], 1
	jmp	.L66
.L65:
	mov	DWORD PTR -396[rbp], 0
.L64:
	lea	r8, -440[rbp]
	lea	rdi, -444[rbp]
	lea	rcx, -336[rbp]
	lea	rdx, -420[rbp]
	mov	rax, QWORD PTR -352[rbp]
	sub	rsp, 8
	lea	rsi, -436[rbp]
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	rsp, 16
	test	eax, eax
	jg	.L67
.L66:
	mov	rax, QWORD PTR -352[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC15[rip]
	lea	rdi, .LC14[rip]
	call	fopen@PLT
	mov	QWORD PTR -352[rbp], rax
	cmp	DWORD PTR -396[rbp], 0
	jne	.L68
	lea	rdi, .LC42[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L104
.L68:
	lea	rsi, .LC43[rip]
	lea	rdi, .LC44[rip]
	call	fopen@PLT
	mov	QWORD PTR -344[rbp], rax
	jmp	.L69
.L71:
	mov	edx, DWORD PTR -416[rbp]
	mov	eax, DWORD PTR -420[rbp]
	cmp	edx, eax
	je	.L70
	mov	esi, DWORD PTR -424[rbp]
	mov	r8d, DWORD PTR -428[rbp]
	mov	edi, DWORD PTR -432[rbp]
	mov	edx, DWORD PTR -420[rbp]
	lea	rcx, -336[rbp]
	mov	rax, QWORD PTR -344[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	jmp	.L69
.L70:
	mov	eax, DWORD PTR -432[rbp]
	mov	DWORD PTR -392[rbp], eax
	mov	eax, DWORD PTR -428[rbp]
	mov	DWORD PTR -388[rbp], eax
	mov	eax, DWORD PTR -424[rbp]
	mov	DWORD PTR -384[rbp], eax
.L69:
	lea	r8, -428[rbp]
	lea	rdi, -432[rbp]
	lea	rcx, -336[rbp]
	lea	rdx, -420[rbp]
	mov	rax, QWORD PTR -352[rbp]
	sub	rsp, 8
	lea	rsi, -424[rbp]
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	rsp, 16
	test	eax, eax
	jg	.L71
	lea	rdi, .LC45[rip]
	call	puts@PLT
	lea	rcx, -404[rbp]
	lea	rdx, -408[rbp]
	lea	rax, -412[rbp]
	mov	rsi, rax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	ecx, DWORD PTR -404[rbp]
	mov	edx, DWORD PTR -408[rbp]
	mov	eax, DWORD PTR -412[rbp]
	mov	r8d, DWORD PTR -388[rbp]
	mov	edi, DWORD PTR -392[rbp]
	sub	rsp, 8
	mov	esi, DWORD PTR -384[rbp]
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	eax, DWORD PTR -412[rbp]
	cmp	DWORD PTR -392[rbp], eax
	jl	.L72
	mov	eax, DWORD PTR -408[rbp]
	cmp	DWORD PTR -388[rbp], eax
	jl	.L72
	mov	eax, DWORD PTR -404[rbp]
	cmp	DWORD PTR -384[rbp], eax
	jl	.L72
	lea	rdi, .LC47[rip]
	call	puts@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	remove@PLT
	lea	rdx, -224[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rename@PLT
	mov	rax, QWORD PTR -352[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L104
.L72:
	mov	DWORD PTR -380[rbp], 0
	mov	DWORD PTR -376[rbp], 0
	mov	DWORD PTR -372[rbp], 1
	jmp	.L73
.L84:
	cmp	DWORD PTR -372[rbp], 1
	jne	.L74
	mov	eax, DWORD PTR -412[rbp]
	add	DWORD PTR -380[rbp], eax
	jmp	.L75
.L74:
	cmp	DWORD PTR -372[rbp], 2
	jne	.L76
	mov	eax, DWORD PTR -404[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L77
	mov	edx, DWORD PTR -404[rbp]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L78
.L77:
	mov	edx, DWORD PTR -404[rbp]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 7
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 400
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L79
.L78:
	add	DWORD PTR -380[rbp], 29
	jmp	.L75
.L79:
	add	DWORD PTR -380[rbp], 28
	jmp	.L75
.L76:
	cmp	DWORD PTR -372[rbp], 3
	je	.L81
	cmp	DWORD PTR -372[rbp], 5
	je	.L81
	cmp	DWORD PTR -372[rbp], 7
	je	.L81
	cmp	DWORD PTR -372[rbp], 8
	je	.L81
	cmp	DWORD PTR -372[rbp], 10
	je	.L81
	cmp	DWORD PTR -372[rbp], 12
	jne	.L82
.L81:
	add	DWORD PTR -380[rbp], 31
	jmp	.L75
.L82:
	cmp	DWORD PTR -372[rbp], 4
	je	.L83
	cmp	DWORD PTR -372[rbp], 6
	je	.L83
	cmp	DWORD PTR -372[rbp], 9
	je	.L83
	cmp	DWORD PTR -372[rbp], 11
	jne	.L75
.L83:
	add	DWORD PTR -380[rbp], 30
.L75:
	add	DWORD PTR -372[rbp], 1
.L73:
	mov	eax, DWORD PTR -408[rbp]
	cmp	DWORD PTR -372[rbp], eax
	jle	.L84
	mov	DWORD PTR -372[rbp], 1
	jmp	.L85
.L96:
	cmp	DWORD PTR -372[rbp], 1
	jne	.L86
	mov	eax, DWORD PTR -392[rbp]
	add	DWORD PTR -376[rbp], eax
	jmp	.L87
.L86:
	cmp	DWORD PTR -372[rbp], 2
	jne	.L88
	mov	eax, DWORD PTR -384[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L89
	mov	edx, DWORD PTR -384[rbp]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L90
.L89:
	mov	edx, DWORD PTR -384[rbp]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 7
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 400
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L91
.L90:
	add	DWORD PTR -376[rbp], 29
	jmp	.L87
.L91:
	add	DWORD PTR -376[rbp], 28
	jmp	.L87
.L88:
	cmp	DWORD PTR -372[rbp], 3
	je	.L93
	cmp	DWORD PTR -372[rbp], 5
	je	.L93
	cmp	DWORD PTR -372[rbp], 7
	je	.L93
	cmp	DWORD PTR -372[rbp], 8
	je	.L93
	cmp	DWORD PTR -372[rbp], 10
	je	.L93
	cmp	DWORD PTR -372[rbp], 12
	jne	.L94
.L93:
	add	DWORD PTR -376[rbp], 31
	jmp	.L87
.L94:
	cmp	DWORD PTR -372[rbp], 4
	je	.L95
	cmp	DWORD PTR -372[rbp], 6
	je	.L95
	cmp	DWORD PTR -372[rbp], 9
	je	.L95
	cmp	DWORD PTR -372[rbp], 11
	jne	.L87
.L95:
	add	DWORD PTR -376[rbp], 30
.L87:
	add	DWORD PTR -372[rbp], 1
.L85:
	mov	eax, DWORD PTR -372[rbp]
	cmp	eax, DWORD PTR -388[rbp]
	jle	.L96
	mov	eax, DWORD PTR -404[rbp]
	cmp	DWORD PTR -384[rbp], eax
	jle	.L97
	mov	edx, DWORD PTR -404[rbp]
	mov	eax, DWORD PTR -384[rbp]
	sub	eax, edx
	mov	DWORD PTR -368[rbp], eax
	mov	eax, DWORD PTR -384[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L98
	mov	edx, DWORD PTR -384[rbp]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L99
.L98:
	mov	edx, DWORD PTR -384[rbp]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 7
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 400
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L100
.L99:
	mov	eax, DWORD PTR -368[rbp]
	imul	eax, eax, 366
	add	DWORD PTR -376[rbp], eax
	jmp	.L97
.L100:
	mov	eax, DWORD PTR -368[rbp]
	imul	eax, eax, 365
	add	DWORD PTR -376[rbp], eax
.L97:
	mov	eax, DWORD PTR -380[rbp]
	sub	eax, DWORD PTR -376[rbp]
	mov	DWORD PTR -364[rbp], eax
	cmp	DWORD PTR -364[rbp], 0
	jns	.L101
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	remove@PLT
	lea	rdx, -224[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rename@PLT
	mov	rax, QWORD PTR -352[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC48[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L104
.L101:
	mov	eax, DWORD PTR -364[rbp]
	mov	esi, eax
	lea	rdi, .LC49[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -400[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -400[rbp]
	cmp	eax, 8068
	jne	.L102
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	remove@PLT
	lea	rdx, -224[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rename@PLT
	mov	rax, QWORD PTR -352[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC51[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L104
.L102:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	remove@PLT
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -352[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L104:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L105
	call	__stack_chk_fail@PLT
.L105:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	ret, .-ret
	.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	"265294.c"
	.text
	.comm	db,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"clear\000"
	.align	2
.LC1:
	.ascii	"__________LIBRARY SOFTWARE__________\000"
	.align	2
.LC2:
	.ascii	"1.SEARCH FOR BOOK\012\000"
	.align	2
.LC3:
	.ascii	"2.ISSUE A BOOK\012\000"
	.align	2
.LC4:
	.ascii	"3.RETURN A BOOK\012\000"
	.align	2
.LC5:
	.ascii	"4.ADD BOOKS(ADMIN ONLY)\012\000"
	.align	2
.LC6:
	.ascii	"5.EXIT\012\000"
	.align	2
.LC7:
	.ascii	"PLEASE ENTER YOUR CHOICE:\000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"PLEASE SELECT A CORRECT OPTION\000"
	.align	2
.LC10:
	.ascii	"WOULD YOU LIKE TO RETURN TO THE MAIN MENU(Y/N)?\000"
	.align	2
.LC11:
	.ascii	"%s\000"
	.align	2
.LC12:
	.ascii	"y\000"
	.align	2
.LC13:
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L13+4
	bl	system
.L11:
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r0, .L13+8
	bl	puts
	ldr	r0, .L13+12
	bl	puts
	ldr	r0, .L13+16
	bl	puts
	ldr	r0, .L13+20
	bl	puts
	ldr	r0, .L13+24
	bl	puts
	ldr	r0, .L13+28
	bl	puts
	ldr	r0, .L13+32
	bl	puts
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L13+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L8:
	bl	search
	b	.L9
.L5:
	bl	add
	b	.L9
.L7:
	bl	issue
	b	.L9
.L6:
	bl	ret
	b	.L9
.L3:
	mov	r0, #0
	bl	exit
.L2:
	ldr	r0, .L13+40
	bl	puts
	nop
.L9:
	ldr	r0, .L13+44
	bl	puts
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L13+48
	bl	__isoc99_scanf
	ldr	r0, .L13+4
	bl	system
	sub	r3, fp, #28
	ldr	r1, .L13+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	mov	r3, #1
	str	r3, [fp, #-32]
.L10:
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	beq	.L11
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC13
	.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
	.size	main, .-main
	.section	.rodata
	.align	2
.LC15:
	.ascii	"a+\000"
	.align	2
.LC16:
	.ascii	"issue.txt\000"
	.align	2
.LC17:
	.ascii	"r\000"
	.align	2
.LC18:
	.ascii	"NO BOOKS HAVE BEEN ADDED\000"
	.align	2
.LC19:
	.ascii	"ENTER THE NAME OF THE BOOK:\000"
	.align	2
.LC20:
	.ascii	"THE ID OF THE BOOK IS %d\012\000"
	.align	2
.LC21:
	.ascii	"THE BOOK HAS ALREADY BEEN ISSUED TO USN %s AND WILL"
	.ascii	" MOSTLY RETURNED BY %d-%d-%d\012\000"
	.align	2
.LC22:
	.ascii	"%d %s %d %d %d\000"
	.align	2
.LC23:
	.ascii	"THE BOOK IS ON RACK 1\000"
	.align	2
.LC24:
	.ascii	"THE BOOK IS ON RACK 2\000"
	.align	2
.LC25:
	.ascii	"BOOK DOES NOT EXIST\000"
	.align	2
.LC14:
	.ascii	"books.txt\000"
	.space	90
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	search
	.syntax unified
	.arm
	.fpu softvfp
	.type	search, %function
search:
	@ args = 0, pretend = 0, frame = 440
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #456
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L28+4
	bl	system
	mov	r3, #1
	str	r3, [fp, #-424]
	mov	r3, #25
	str	r3, [fp, #-420]
	mov	r3, #0
	str	r3, [fp, #-428]
	ldr	r2, .L28+8
	sub	r3, fp, #108
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #98
	mov	r2, #90
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r1, .L28+12
	ldr	r0, .L28+16
	bl	fopen
	str	r0, [fp, #-416]
	sub	r3, fp, #108
	ldr	r1, .L28+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-412]
	ldr	r3, [fp, #-412]
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L28+24
	bl	puts
	mov	r3, #0
	b	.L26
.L16:
	ldr	r0, .L28+28
	bl	puts
	sub	r3, fp, #308
	mov	r1, r3
	ldr	r0, .L28+32
	bl	__isoc99_scanf
	b	.L18
.L24:
	sub	r2, fp, #308
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	ldr	r1, [fp, #-424]
	ldr	r0, .L28+36
	bl	printf
	b	.L20
.L21:
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-424]
	cmp	r2, r3
	bne	.L20
	ldr	r2, [fp, #-440]
	ldr	r0, [fp, #-436]
	ldr	r3, [fp, #-432]
	sub	r1, fp, #408
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L28+40
	bl	printf
	mov	r3, #0
	b	.L26
.L20:
	sub	r1, fp, #408
	sub	r2, fp, #444
	sub	r3, fp, #432
	str	r3, [sp, #8]
	sub	r3, fp, #436
	str	r3, [sp, #4]
	sub	r3, fp, #440
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L28+44
	ldr	r0, [fp, #-416]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L21
	ldr	r3, [fp, #-424]
	cmp	r3, #4
	bgt	.L22
	ldr	r0, .L28+48
	bl	puts
	b	.L23
.L22:
	ldr	r0, .L28+52
	bl	puts
.L23:
	mov	r3, #1
	str	r3, [fp, #-428]
.L19:
	ldr	r3, [fp, #-424]
	add	r3, r3, #1
	str	r3, [fp, #-424]
.L18:
	sub	r3, fp, #208
	mov	r2, r3
	ldr	r1, .L28+32
	ldr	r0, [fp, #-412]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L24
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L28+56
	bl	puts
.L25:
	ldr	r0, [fp, #-412]
	bl	fclose
	mov	r3, #0
.L26:
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC26
	.word	.LC0
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC11
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	search, .-search
	.section	.rodata
	.align	2
.LC28:
	.ascii	"ENTER THE PASSWORD:\000"
	.align	2
.LC29:
	.ascii	"WRONG PASSWORD\000"
	.align	2
.LC30:
	.ascii	"a\000"
	.align	2
.LC31:
	.ascii	"books.txt\000"
	.align	2
.LC32:
	.ascii	"ENTER THE NUMBER OF BOOKS:\000"
	.align	2
.LC33:
	.ascii	"ENTER A BOOK NAME:\000"
	.align	2
.LC34:
	.ascii	"%s \000"
	.align	2
.LC27:
	.ascii	"dude\000"
	.space	95
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	add
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #320
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L37+4
	bl	system
	ldr	r2, .L37+8
	sub	r3, fp, #308
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	sub	r3, fp, #300
	sub	r3, r3, #3
	mov	r2, #95
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L37+12
	bl	puts
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L37+16
	bl	__isoc99_scanf
	sub	r2, fp, #308
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	ldr	r0, .L37+20
	bl	puts
	mov	r3, #0
	b	.L35
.L31:
	ldr	r1, .L37+24
	ldr	r0, .L37+28
	bl	fopen
	str	r0, [fp, #-312]
	ldr	r0, .L37+32
	bl	puts
	sub	r3, fp, #320
	mov	r1, r3
	ldr	r0, .L37+36
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-316]
	b	.L33
.L34:
	ldr	r0, .L37+40
	bl	puts
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L37+16
	bl	__isoc99_scanf
	sub	r3, fp, #108
	mov	r2, r3
	ldr	r1, .L37+44
	ldr	r0, [fp, #-312]
	bl	fprintf
	ldr	r3, [fp, #-316]
	add	r3, r3, #1
	str	r3, [fp, #-316]
.L33:
	ldr	r3, [fp, #-320]
	ldr	r2, [fp, #-316]
	cmp	r2, r3
	ble	.L34
	ldr	r0, [fp, #-312]
	bl	fclose
	mov	r3, #0
.L35:
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC35
	.word	.LC0
	.word	.LC27
	.word	.LC28
	.word	.LC11
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC8
	.word	.LC33
	.word	.LC34
	.size	add, .-add
	.section	.rodata
	.align	2
.LC36:
	.ascii	"ENTER THE ID OF THE BOOK:\000"
	.align	2
.LC37:
	.ascii	"NO SUCH BOOK FUND\000"
	.align	2
.LC38:
	.ascii	"ENTER YOUR USN:\000"
	.align	2
.LC39:
	.ascii	"YOU HAVE REACHED THE LIMIT OF ISSUING THE BOOKS\000"
	.align	2
.LC40:
	.ascii	"ENTER TODAY'S DATE :\000"
	.align	2
.LC41:
	.ascii	"%d%d%d\000"
	.align	2
.LC42:
	.ascii	"invalid date\000"
	.align	2
.LC43:
	.ascii	"RETURN DATE:\011%d-%d-%d\012\000"
	.align	2
.LC44:
	.ascii	"%d %s %d %d %d \000"
	.align	2
.LC45:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	issue
	.syntax unified
	.arm
	.fpu softvfp
	.type	issue, %function
issue:
	@ args = 0, pretend = 0, frame = 480
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #496
	ldr	r3, .L67
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-432]
	mov	r3, #1
	str	r3, [fp, #-428]
	ldr	r1, .L67+4
	ldr	r0, .L67+8
	bl	fopen
	str	r0, [fp, #-420]
	ldr	r3, [fp, #-420]
	cmp	r3, #0
	bne	.L40
	ldr	r0, .L67+12
	bl	puts
	mov	r3, #0
	b	.L65
.L40:
	ldr	r0, [fp, #-420]
	bl	fclose
	ldr	r1, .L67+16
	ldr	r0, .L67+20
	bl	fopen
	str	r0, [fp, #-416]
	ldr	r1, .L67+4
	ldr	r0, .L67+8
	bl	fopen
	str	r0, [fp, #-420]
	ldr	r0, .L67+24
	bl	system
	ldr	r0, .L67+28
	bl	puts
	sub	r3, fp, #464
	mov	r1, r3
	ldr	r0, .L67+32
	bl	__isoc99_scanf
	b	.L42
.L45:
	ldr	r3, [fp, #-464]
	ldr	r2, [fp, #-428]
	cmp	r2, r3
	bne	.L43
	mov	r3, #0
	str	r3, [fp, #-432]
	b	.L44
.L43:
	mov	r3, #1
	str	r3, [fp, #-432]
	ldr	r3, [fp, #-428]
	add	r3, r3, #1
	str	r3, [fp, #-428]
.L42:
	sub	r3, fp, #408
	mov	r2, r3
	ldr	r1, .L67+36
	ldr	r0, [fp, #-420]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L45
.L44:
	ldr	r0, [fp, #-420]
	bl	fclose
	ldr	r3, [fp, #-432]
	cmp	r3, #1
	bne	.L47
	ldr	r0, .L67+40
	bl	puts
	mov	r3, #0
	b	.L65
.L48:
	ldr	r2, [fp, #-480]
	ldr	r3, [fp, #-464]
	cmp	r2, r3
	bne	.L47
	ldr	r2, [fp, #-476]
	ldr	r0, [fp, #-472]
	ldr	r3, [fp, #-468]
	sub	r1, fp, #208
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L67+44
	bl	printf
	mov	r3, #0
	b	.L65
.L47:
	sub	r1, fp, #208
	sub	r2, fp, #480
	sub	r3, fp, #468
	str	r3, [sp, #8]
	sub	r3, fp, #472
	str	r3, [sp, #4]
	sub	r3, fp, #476
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L67+48
	ldr	r0, [fp, #-416]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L48
	ldr	r0, [fp, #-416]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-424]
	ldr	r0, .L67+52
	bl	puts
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L67+36
	bl	__isoc99_scanf
	ldr	r1, .L67+4
	ldr	r0, .L67+20
	bl	fopen
	str	r0, [fp, #-416]
	b	.L49
.L51:
	sub	r2, fp, #108
	sub	r3, fp, #308
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
	ldr	r3, [fp, #-424]
	add	r3, r3, #1
	str	r3, [fp, #-424]
.L50:
	ldr	r3, [fp, #-424]
	cmp	r3, #2
	bne	.L49
	ldr	r0, .L67+56
	bl	puts
	mov	r3, #0
	b	.L65
.L49:
	sub	r1, fp, #308
	sub	r2, fp, #448
	sub	r3, fp, #452
	str	r3, [sp, #8]
	sub	r3, fp, #456
	str	r3, [sp, #4]
	sub	r3, fp, #460
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L67+48
	ldr	r0, [fp, #-416]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L51
	mov	r3, #0
	str	r3, [fp, #-444]
	mov	r3, #0
	str	r3, [fp, #-440]
	mov	r3, #0
	str	r3, [fp, #-436]
	ldr	r0, .L67+60
	bl	puts
	sub	r3, fp, #436
	sub	r2, fp, #440
	sub	r1, fp, #444
	ldr	r0, .L67+64
	bl	__isoc99_scanf
	ldr	r3, [fp, #-440]
	cmp	r3, #0
	ble	.L52
	ldr	r3, [fp, #-440]
	cmp	r3, #12
	bgt	.L52
	ldr	r3, [fp, #-444]
	cmp	r3, #0
	ble	.L52
	ldr	r3, [fp, #-444]
	cmp	r3, #31
	ble	.L53
.L52:
	ldr	r0, .L67+68
	bl	puts
	mov	r3, #0
	b	.L65
.L53:
	ldr	r3, [fp, #-444]
	add	r3, r3, #15
	str	r3, [fp, #-444]
	ldr	r3, [fp, #-440]
	cmp	r3, #1
	beq	.L54
	ldr	r3, [fp, #-440]
	cmp	r3, #3
	beq	.L54
	ldr	r3, [fp, #-440]
	cmp	r3, #5
	beq	.L54
	ldr	r3, [fp, #-440]
	cmp	r3, #7
	beq	.L54
	ldr	r3, [fp, #-440]
	cmp	r3, #8
	beq	.L54
	ldr	r3, [fp, #-440]
	cmp	r3, #10
	beq	.L54
	ldr	r3, [fp, #-440]
	cmp	r3, #12
	bne	.L55
.L54:
	ldr	r3, [fp, #-444]
	cmp	r3, #31
	ble	.L58
	ldr	r3, [fp, #-440]
	cmp	r3, #12
	bne	.L57
	ldr	r3, [fp, #-444]
	sub	r3, r3, #31
	str	r3, [fp, #-444]
	mov	r3, #1
	str	r3, [fp, #-440]
	ldr	r3, [fp, #-436]
	add	r3, r3, #1
	str	r3, [fp, #-436]
	b	.L58
.L57:
	ldr	r3, [fp, #-444]
	sub	r3, r3, #31
	str	r3, [fp, #-444]
	ldr	r3, [fp, #-440]
	add	r3, r3, #1
	str	r3, [fp, #-440]
	b	.L58
.L55:
	ldr	r3, [fp, #-440]
	cmp	r3, #2
	bne	.L59
	ldr	r3, [fp, #-444]
	cmp	r3, #28
	ble	.L58
	ldr	r3, [fp, #-436]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L60
	ldr	r1, [fp, #-436]
	ldr	r3, .L67+72
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L61
.L60:
	ldr	r1, [fp, #-436]
	ldr	r3, .L67+72
	smull	r2, r3, r1, r3
	asr	r2, r3, #7
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L62
.L61:
	ldr	r3, [fp, #-444]
	sub	r3, r3, #29
	str	r3, [fp, #-444]
	b	.L63
.L62:
	ldr	r3, [fp, #-444]
	sub	r3, r3, #28
	str	r3, [fp, #-444]
.L63:
	ldr	r3, [fp, #-440]
	add	r3, r3, #1
	str	r3, [fp, #-440]
	b	.L58
.L59:
	ldr	r3, [fp, #-440]
	cmp	r3, #4
	beq	.L64
	ldr	r3, [fp, #-440]
	cmp	r3, #6
	beq	.L64
	ldr	r3, [fp, #-440]
	cmp	r3, #9
	beq	.L64
	ldr	r3, [fp, #-440]
	cmp	r3, #11
	bne	.L58
.L64:
	ldr	r3, [fp, #-444]
	cmp	r3, #30
	ble	.L58
	ldr	r3, [fp, #-440]
	add	r3, r3, #1
	str	r3, [fp, #-440]
	ldr	r3, [fp, #-444]
	sub	r3, r3, #30
	str	r3, [fp, #-444]
.L58:
	ldr	r1, [fp, #-444]
	ldr	r2, [fp, #-440]
	ldr	r3, [fp, #-436]
	ldr	r0, .L67+76
	bl	printf
	ldr	r1, .L67+80
	ldr	r0, .L67+20
	bl	fopen
	str	r0, [fp, #-412]
	ldr	r0, [fp, #-464]
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-440]
	ldr	r1, [fp, #-436]
	sub	ip, fp, #108
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r1, .L67+84
	ldr	r0, [fp, #-412]
	bl	fprintf
	ldr	r0, [fp, #-412]
	bl	fclose
	ldr	r0, [fp, #-416]
	bl	fclose
	mov	r3, #0
.L65:
	ldr	r2, .L67
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L66
	bl	__stack_chk_fail
.L66:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L68:
	.align	2
.L67:
	.word	.LC45
	.word	.LC17
	.word	.LC31
	.word	.LC18
	.word	.LC15
	.word	.LC16
	.word	.LC0
	.word	.LC36
	.word	.LC8
	.word	.LC11
	.word	.LC37
	.word	.LC21
	.word	.LC22
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	1374389535
	.word	.LC43
	.word	.LC30
	.word	.LC44
	.size	issue, .-issue
	.section	.rodata
	.align	2
.LC46:
	.ascii	"NO BOOKS HAVE BEEN ISSUED\000"
	.align	2
.LC49:
	.ascii	"ENTER THE BOOK ID:\000"
	.align	2
.LC50:
	.ascii	"NO SUCH BOOK HAS BEEN ISSUED\000"
	.align	2
.LC51:
	.ascii	"w\000"
	.align	2
.LC52:
	.ascii	"issues.txt\000"
	.align	2
.LC53:
	.ascii	"ENTER  TODAY'S DATE\000"
	.align	2
.LC54:
	.ascii	"TODAY'S DATE:\011%d-%d-%d\011\011RETURN DATE:\011 %"
	.ascii	"d-%d-%d\012\000"
	.align	2
.LC55:
	.ascii	"BOOK Returned successfully\000"
	.align	2
.LC56:
	.ascii	"BOOK SUCESSFULLY RETURNED\000"
	.align	2
.LC57:
	.ascii	"FINE TO BE PAID: \011%d\012\000"
	.align	2
.LC58:
	.ascii	"ENTER THE PASSKEY GIVEN AFTER THE PAYMENT OF FINE:\000"
	.align	2
.LC59:
	.ascii	"THE BOOK HAS BEEN SUCESSFULLY RETURNED\000"
	.align	2
.LC60:
	.ascii	"THE PASSKEY IS WRONG PLEASE CHECK AGAIN\000"
	.align	2
.LC47:
	.ascii	"issue.txt\000"
	.space	90
	.align	2
.LC48:
	.ascii	"issues.txt\000"
	.space	89
	.align	2
.LC61:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ret
	.syntax unified
	.arm
	.fpu softvfp
	.type	ret, %function
ret:
	@ args = 0, pretend = 0, frame = 400
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #416
	ldr	r3, .L114
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L114+4
	ldr	r0, .L114+8
	bl	fopen
	str	r0, [fp, #-328]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-328]
	bl	fseek
	ldr	r0, [fp, #-328]
	bl	ftell
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	ldr	r0, .L114+12
	bl	puts
	mov	r3, #0
	b	.L112
.L70:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-328]
	bl	fseek
	mov	r3, #0
	str	r3, [fp, #-356]
	ldr	r0, .L114+16
	bl	system
	ldr	r2, .L114+20
	sub	r3, fp, #208
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #198
	mov	r2, #90
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r2, .L114+24
	sub	r3, fp, #108
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	r3, fp, #97
	mov	r2, #89
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L114+28
	bl	puts
	sub	r3, fp, #376
	mov	r1, r3
	ldr	r0, .L114+32
	bl	__isoc99_scanf
	ldr	r1, .L114+4
	ldr	r0, .L114+8
	bl	fopen
	str	r0, [fp, #-324]
	b	.L72
.L75:
	ldr	r2, [fp, #-376]
	ldr	r3, [fp, #-380]
	cmp	r2, r3
	bne	.L73
	mov	r3, #1
	str	r3, [fp, #-356]
	b	.L74
.L73:
	mov	r3, #0
	str	r3, [fp, #-356]
.L72:
	sub	r1, fp, #308
	sub	r2, fp, #380
	sub	r3, fp, #396
	str	r3, [sp, #8]
	sub	r3, fp, #400
	str	r3, [sp, #4]
	sub	r3, fp, #404
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L114+36
	ldr	r0, [fp, #-324]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L75
.L74:
	ldr	r0, [fp, #-324]
	bl	fclose
	ldr	r1, .L114+4
	ldr	r0, .L114+8
	bl	fopen
	str	r0, [fp, #-324]
	ldr	r3, [fp, #-356]
	cmp	r3, #0
	bne	.L76
	ldr	r0, .L114+40
	bl	puts
	mov	r3, #0
	b	.L112
.L76:
	ldr	r1, .L114+44
	ldr	r0, .L114+48
	bl	fopen
	str	r0, [fp, #-320]
	b	.L77
.L79:
	ldr	r2, [fp, #-376]
	ldr	r3, [fp, #-380]
	cmp	r2, r3
	beq	.L78
	ldr	r0, [fp, #-380]
	ldr	r3, [fp, #-392]
	ldr	r2, [fp, #-388]
	ldr	r1, [fp, #-384]
	sub	ip, fp, #308
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r1, .L114+52
	ldr	r0, [fp, #-320]
	bl	fprintf
	b	.L77
.L78:
	ldr	r3, [fp, #-392]
	str	r3, [fp, #-352]
	ldr	r3, [fp, #-388]
	str	r3, [fp, #-348]
	ldr	r3, [fp, #-384]
	str	r3, [fp, #-344]
.L77:
	sub	r1, fp, #308
	sub	r2, fp, #380
	sub	r3, fp, #384
	str	r3, [sp, #8]
	sub	r3, fp, #388
	str	r3, [sp, #4]
	sub	r3, fp, #392
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L114+36
	ldr	r0, [fp, #-324]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L79
	ldr	r0, .L114+56
	bl	puts
	sub	r3, fp, #364
	sub	r2, fp, #368
	sub	r1, fp, #372
	ldr	r0, .L114+60
	bl	__isoc99_scanf
	ldr	r1, [fp, #-372]
	ldr	r2, [fp, #-368]
	ldr	r0, [fp, #-364]
	ldr	r3, [fp, #-344]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-348]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-352]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L114+64
	bl	printf
	ldr	r3, [fp, #-372]
	ldr	r2, [fp, #-352]
	cmp	r2, r3
	blt	.L80
	ldr	r3, [fp, #-368]
	ldr	r2, [fp, #-348]
	cmp	r2, r3
	blt	.L80
	ldr	r3, [fp, #-364]
	ldr	r2, [fp, #-344]
	cmp	r2, r3
	blt	.L80
	ldr	r0, .L114+68
	bl	puts
	sub	r3, fp, #208
	mov	r0, r3
	bl	remove
	sub	r2, fp, #208
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	rename
	ldr	r0, [fp, #-324]
	bl	fclose
	ldr	r0, [fp, #-320]
	bl	fclose
	mov	r3, #0
	b	.L112
.L80:
	mov	r3, #0
	str	r3, [fp, #-340]
	mov	r3, #0
	str	r3, [fp, #-336]
	mov	r3, #1
	str	r3, [fp, #-332]
	b	.L81
.L92:
	ldr	r3, [fp, #-332]
	cmp	r3, #1
	bne	.L82
	ldr	r3, [fp, #-372]
	ldr	r2, [fp, #-340]
	add	r3, r2, r3
	str	r3, [fp, #-340]
	b	.L83
.L82:
	ldr	r3, [fp, #-332]
	cmp	r3, #2
	bne	.L84
	ldr	r3, [fp, #-364]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L85
	ldr	r1, [fp, #-364]
	ldr	r3, .L114+72
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L86
.L85:
	ldr	r1, [fp, #-364]
	ldr	r3, .L114+72
	smull	r2, r3, r1, r3
	asr	r2, r3, #7
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L87
.L86:
	ldr	r3, [fp, #-340]
	add	r3, r3, #29
	str	r3, [fp, #-340]
	b	.L83
.L87:
	ldr	r3, [fp, #-340]
	add	r3, r3, #28
	str	r3, [fp, #-340]
	b	.L83
.L84:
	ldr	r3, [fp, #-332]
	cmp	r3, #3
	beq	.L89
	ldr	r3, [fp, #-332]
	cmp	r3, #5
	beq	.L89
	ldr	r3, [fp, #-332]
	cmp	r3, #7
	beq	.L89
	ldr	r3, [fp, #-332]
	cmp	r3, #8
	beq	.L89
	ldr	r3, [fp, #-332]
	cmp	r3, #10
	beq	.L89
	ldr	r3, [fp, #-332]
	cmp	r3, #12
	bne	.L90
.L89:
	ldr	r3, [fp, #-340]
	add	r3, r3, #31
	str	r3, [fp, #-340]
	b	.L83
.L90:
	ldr	r3, [fp, #-332]
	cmp	r3, #4
	beq	.L91
	ldr	r3, [fp, #-332]
	cmp	r3, #6
	beq	.L91
	ldr	r3, [fp, #-332]
	cmp	r3, #9
	beq	.L91
	ldr	r3, [fp, #-332]
	cmp	r3, #11
	bne	.L83
.L91:
	ldr	r3, [fp, #-340]
	add	r3, r3, #30
	str	r3, [fp, #-340]
.L83:
	ldr	r3, [fp, #-332]
	add	r3, r3, #1
	str	r3, [fp, #-332]
.L81:
	ldr	r3, [fp, #-368]
	ldr	r2, [fp, #-332]
	cmp	r2, r3
	ble	.L92
	mov	r3, #1
	str	r3, [fp, #-332]
	b	.L93
.L104:
	ldr	r3, [fp, #-332]
	cmp	r3, #1
	bne	.L94
	ldr	r2, [fp, #-336]
	ldr	r3, [fp, #-352]
	add	r3, r2, r3
	str	r3, [fp, #-336]
	b	.L95
.L94:
	ldr	r3, [fp, #-332]
	cmp	r3, #2
	bne	.L96
	ldr	r3, [fp, #-344]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L97
	ldr	r1, [fp, #-344]
	ldr	r3, .L114+72
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L98
.L97:
	ldr	r1, [fp, #-344]
	ldr	r3, .L114+72
	smull	r2, r3, r1, r3
	asr	r2, r3, #7
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L99
.L98:
	ldr	r3, [fp, #-336]
	add	r3, r3, #29
	str	r3, [fp, #-336]
	b	.L95
.L99:
	ldr	r3, [fp, #-336]
	add	r3, r3, #28
	str	r3, [fp, #-336]
	b	.L95
.L96:
	ldr	r3, [fp, #-332]
	cmp	r3, #3
	beq	.L101
	ldr	r3, [fp, #-332]
	cmp	r3, #5
	beq	.L101
	ldr	r3, [fp, #-332]
	cmp	r3, #7
	beq	.L101
	ldr	r3, [fp, #-332]
	cmp	r3, #8
	beq	.L101
	ldr	r3, [fp, #-332]
	cmp	r3, #10
	beq	.L101
	ldr	r3, [fp, #-332]
	cmp	r3, #12
	bne	.L102
.L101:
	ldr	r3, [fp, #-336]
	add	r3, r3, #31
	str	r3, [fp, #-336]
	b	.L95
.L102:
	ldr	r3, [fp, #-332]
	cmp	r3, #4
	beq	.L103
	ldr	r3, [fp, #-332]
	cmp	r3, #6
	beq	.L103
	ldr	r3, [fp, #-332]
	cmp	r3, #9
	beq	.L103
	ldr	r3, [fp, #-332]
	cmp	r3, #11
	bne	.L95
.L103:
	ldr	r3, [fp, #-336]
	add	r3, r3, #30
	str	r3, [fp, #-336]
.L95:
	ldr	r3, [fp, #-332]
	add	r3, r3, #1
	str	r3, [fp, #-332]
.L93:
	ldr	r2, [fp, #-332]
	ldr	r3, [fp, #-348]
	cmp	r2, r3
	ble	.L104
	ldr	r3, [fp, #-364]
	ldr	r2, [fp, #-344]
	cmp	r2, r3
	ble	.L105
	ldr	r3, [fp, #-364]
	ldr	r2, [fp, #-344]
	sub	r3, r2, r3
	str	r3, [fp, #-316]
	ldr	r3, [fp, #-344]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L106
	ldr	r1, [fp, #-344]
	ldr	r3, .L114+72
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L107
.L106:
	ldr	r1, [fp, #-344]
	ldr	r3, .L114+72
	smull	r2, r3, r1, r3
	asr	r2, r3, #7
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L108
.L107:
	ldr	r2, [fp, #-316]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	lsl	r3, r2, #1
	mov	r2, r3
	ldr	r3, [fp, #-336]
	add	r3, r3, r2
	str	r3, [fp, #-336]
	b	.L105
.L108:
	ldr	r2, [fp, #-316]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-336]
	add	r3, r2, r3
	str	r3, [fp, #-336]
.L105:
	ldr	r2, [fp, #-340]
	ldr	r3, [fp, #-336]
	sub	r3, r2, r3
	str	r3, [fp, #-312]
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bge	.L109
	sub	r3, fp, #208
	mov	r0, r3
	bl	remove
	sub	r2, fp, #208
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	rename
	ldr	r0, [fp, #-324]
	bl	fclose
	ldr	r0, [fp, #-320]
	bl	fclose
	ldr	r0, .L114+76
	bl	puts
	mov	r3, #0
	b	.L112
.L109:
	ldr	r1, [fp, #-312]
	ldr	r0, .L114+80
	bl	printf
	ldr	r0, .L114+84
	bl	printf
	sub	r3, fp, #360
	mov	r1, r3
	ldr	r0, .L114+32
	bl	__isoc99_scanf
	ldr	r3, [fp, #-360]
	ldr	r2, .L114+88
	cmp	r3, r2
	bne	.L110
	sub	r3, fp, #208
	mov	r0, r3
	bl	remove
	sub	r2, fp, #208
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	rename
	ldr	r0, [fp, #-324]
	bl	fclose
	ldr	r0, [fp, #-320]
	bl	fclose
	ldr	r0, .L114+92
	bl	puts
	mov	r3, #0
	b	.L112
.L110:
	sub	r3, fp, #108
	mov	r0, r3
	bl	remove
	ldr	r0, .L114+96
	bl	printf
	ldr	r0, [fp, #-324]
	bl	fclose
	ldr	r0, [fp, #-320]
	bl	fclose
	mov	r3, #0
.L112:
	ldr	r2, .L114
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L113
	bl	__stack_chk_fail
.L113:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L115:
	.align	2
.L114:
	.word	.LC61
	.word	.LC17
	.word	.LC16
	.word	.LC46
	.word	.LC0
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC8
	.word	.LC22
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC44
	.word	.LC53
	.word	.LC41
	.word	.LC54
	.word	.LC55
	.word	1374389535
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	8068
	.word	.LC59
	.word	.LC60
	.size	ret, .-ret
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
