	.file	"413613.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"ab"
.LC1:
	.string	"patrons"
	.text
	.globl	save_patron
	.type	save_patron, @function
save_patron:
.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, 16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 184
	lea	rdi, 16[rbp]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	save_patron, .-save_patron
	.section	.rodata
.LC2:
	.string	"Enter name:"
.LC3:
	.string	"Enter Email:"
.LC4:
	.string	"Initial Password: "
	.align 8
.LC5:
	.string	"Enter 1 if staff 0 otherwise: "
.LC6:
	.string	"%d"
.LC7:
	.string	"Patron %s successfully added\n"
.LC8:
	.string	"Unsuccessfully"
	.text
	.globl	add_patron
	.type	add_patron, @function
add_patron:
.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, 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	lea	rax, -192[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -192[rbp]
	add	rax, 130
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -192[rbp]
	add	rax, 100
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -192[rbp]
	add	rax, 180
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	sub	rsp, 8
	push	QWORD PTR -16[rbp]
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	push	QWORD PTR -72[rbp]
	push	QWORD PTR -80[rbp]
	push	QWORD PTR -88[rbp]
	push	QWORD PTR -96[rbp]
	push	QWORD PTR -104[rbp]
	push	QWORD PTR -112[rbp]
	push	QWORD PTR -120[rbp]
	push	QWORD PTR -128[rbp]
	push	QWORD PTR -136[rbp]
	push	QWORD PTR -144[rbp]
	push	QWORD PTR -152[rbp]
	push	QWORD PTR -160[rbp]
	push	QWORD PTR -168[rbp]
	push	QWORD PTR -176[rbp]
	push	QWORD PTR -184[rbp]
	push	QWORD PTR -192[rbp]
	call	save_patron
	add	rsp, 192
	test	eax, eax
	je	.L4
	lea	rax, -192[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L4:
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L7:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	add_patron, .-add_patron
	.section	.rodata
.LC9:
	.string	"Select an action:"
.LC10:
	.string	"1. Add new patron"
.LC11:
	.string	"2. View Patrons"
.LC12:
	.string	"3. View Books"
.LC13:
	.string	"4. Add New Book"
.LC14:
	.string	"Your Action: "
.LC15:
	.string	"Invalid action. Try again"
	.text
	.globl	menu
	.type	menu, @function
menu:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jle	.L9
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 4
	jle	.L10
.L9:
	lea	rdi, .LC15[rip]
	call	puts@PLT
.L10:
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	menu, .-menu
	.section	.rodata
.LC16:
	.string	"Here is a list of patrons"
.LC17:
	.string	"Here is a list of all books"
.LC18:
	.string	"adding a new Book"
.LC19:
	.string	"Invalid action."
	.text
	.globl	execute_action
	.type	execute_action, @function
execute_action:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 4
	je	.L14
	cmp	DWORD PTR -4[rbp], 4
	jg	.L15
	cmp	DWORD PTR -4[rbp], 3
	je	.L16
	cmp	DWORD PTR -4[rbp], 3
	jg	.L15
	cmp	DWORD PTR -4[rbp], 1
	je	.L17
	cmp	DWORD PTR -4[rbp], 2
	je	.L18
	jmp	.L15
.L17:
	mov	eax, 0
	call	add_patron
	jmp	.L19
.L18:
	lea	rdi, .LC16[rip]
	call	puts@PLT
	jmp	.L19
.L16:
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L19
.L14:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L19
.L15:
	lea	rdi, .LC19[rip]
	call	puts@PLT
	nop
.L19:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	execute_action, .-execute_action
	.section	.rodata
.LC20:
	.string	"COUNTY LIBRARY SYSTEM!"
.LC21:
	.string	"Welcome Mr. Titus!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	eax, 0
	call	menu
	mov	edi, eax
	call	execute_action
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.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	"413613.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ab\000"
	.align	2
.LC1:
	.ascii	"patrons\000"
	.text
	.align	2
	.global	save_patron
	.syntax unified
	.arm
	.fpu softvfp
	.type	save_patron, %function
save_patron:
	@ args = 184, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r1, .L3
	ldr	r0, .L3+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	mov	r1, #184
	add	r0, fp, #4
	bl	fwrite
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	.LC1
	.size	save_patron, .-save_patron
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Enter name:\000"
	.align	2
.LC3:
	.ascii	"Enter Email:\000"
	.align	2
.LC4:
	.ascii	"Initial Password: \000"
	.align	2
.LC5:
	.ascii	"Enter 1 if staff 0 otherwise: \000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"Patron %s successfully added\012\000"
	.align	2
.LC8:
	.ascii	"Unsuccessfully\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	add_patron
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_patron, %function
add_patron:
	@ args = 0, pretend = 0, frame = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #360
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	printf
	bl	getchar
	sub	r3, fp, #192
	mov	r0, r3
	bl	gets
	ldr	r0, .L10+8
	bl	printf
	sub	r3, fp, #192
	add	r3, r3, #130
	mov	r0, r3
	bl	gets
	ldr	r0, .L10+12
	bl	printf
	sub	r3, fp, #192
	add	r3, r3, #100
	mov	r0, r3
	bl	gets
	ldr	r0, .L10+16
	bl	printf
	sub	r3, fp, #192
	add	r3, r3, #180
	mov	r1, r3
	ldr	r0, .L10+20
	bl	__isoc99_scanf
	mov	r0, sp
	sub	r3, fp, #176
	mov	r2, #168
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #192
	ldm	r3, {r0, r1, r2, r3}
	bl	save_patron
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	sub	r3, fp, #192
	mov	r1, r3
	ldr	r0, .L10+24
	bl	printf
	b	.L9
.L6:
	ldr	r0, .L10+28
	bl	puts
.L9:
	nop
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC9
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	add_patron, .-add_patron
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Select an action:\000"
	.align	2
.LC11:
	.ascii	"1. Add new patron\000"
	.align	2
.LC12:
	.ascii	"2. View Patrons\000"
	.align	2
.LC13:
	.ascii	"3. View Books\000"
	.align	2
.LC14:
	.ascii	"4. Add New Book\000"
	.align	2
.LC15:
	.ascii	"Your Action: \000"
	.align	2
.LC16:
	.ascii	"Invalid action. Try again\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu, %function
menu:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L17+4
	bl	puts
	ldr	r0, .L17+8
	bl	puts
	ldr	r0, .L17+12
	bl	puts
	ldr	r0, .L17+16
	bl	puts
	ldr	r0, .L17+20
	bl	puts
	ldr	r0, .L17+24
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L17+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L13
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L14
.L13:
	ldr	r0, .L17+32
	bl	puts
.L14:
	ldr	r3, [fp, #-12]
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC17
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC6
	.word	.LC16
	.size	menu, .-menu
	.section	.rodata
	.align	2
.LC18:
	.ascii	"Here is a list of patrons\000"
	.align	2
.LC19:
	.ascii	"Here is a list of all books\000"
	.align	2
.LC20:
	.ascii	"adding a new Book\000"
	.align	2
.LC21:
	.ascii	"Invalid action.\000"
	.text
	.align	2
	.global	execute_action
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_action, %function
execute_action:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L20
.L22:
	.word	.L25
	.word	.L24
	.word	.L23
	.word	.L21
.L25:
	bl	add_patron
	b	.L26
.L24:
	ldr	r0, .L27
	bl	puts
	b	.L26
.L23:
	ldr	r0, .L27+4
	bl	printf
	b	.L26
.L21:
	ldr	r0, .L27+8
	bl	puts
	b	.L26
.L20:
	ldr	r0, .L27+12
	bl	puts
	nop
.L26:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	execute_action, .-execute_action
	.section	.rodata
	.align	2
.LC22:
	.ascii	"COUNTY LIBRARY SYSTEM!\000"
	.align	2
.LC23:
	.ascii	"Welcome Mr. Titus!\000"
	.text
	.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
	ldr	r0, .L31
	bl	puts
	ldr	r0, .L31+4
	bl	puts
	bl	menu
	mov	r3, r0
	mov	r0, r3
	bl	execute_action
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC22
	.word	.LC23
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
