	.file	"849167.c"
	.intel_syntax noprefix
	.text
	.globl	sigintHandler
	.type	sigintHandler, @function
sigintHandler:
.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
	mov	DWORD PTR -4[rbp], edi
	lea	rsi, sigintHandler[rip]
	mov	edi, 2
	call	signal@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sigintHandler, .-sigintHandler
	.section	.rodata
.LC0:
	.string	"vi"
.LC1:
	.string	"Version 1.0.0\n"
	.align 8
.LC2:
	.string	"Developed by Yianni Kiritsis for CS50 final project\nFor information on how to use this manager, go to https://github.com/yianniKir/pass_manager\n"
	.align 8
.LC3:
	.string	"Try running ./passwords -i for more information\n"
.LC4:
	.string	"database.db"
.LC5:
	.string	"Could not open the .db file\n"
	.align 8
.LC6:
	.string	"CREATE TABLE IF NOT EXISTS password(pass TEXT NOT NULL);"
.LC7:
	.string	"ERROR: %s\n"
.LC8:
	.string	"SELECT pass FROM password;"
	.align 8
.LC9:
	.string	"I see this is your first time running this password, enter a default password\n"
.LC10:
	.string	"%30s"
	.align 8
.LC11:
	.string	"INSERT INTO password(pass) VALUES('%s');"
	.align 8
.LC12:
	.string	"Great! You have completed the setup, your password is %s, don't forget it!\n"
	.align 8
.LC13:
	.string	"Something is wrong with your program password. We will have to reset, enter a new password\n"
.LC14:
	.string	"DELETE FROM password;"
	.align 8
.LC15:
	.string	"Hello, %s. Enter password to access: "
.LC16:
	.string	""
	.align 8
.LC17:
	.string	"CREATE TABLE IF NOT EXISTS passwords(username TEXT NOT NULL, password TEXT NOT NULL, email TEXT NOT NULL, website TEXT NOT NULL);"
	.align 8
.LC18:
	.string	"================MENU================\n1) Create new password\n2) Find all sites and apps connected to an email\n3) Find a password for a site or app\n4) Change program password\n5) List everything\n0) Exit\n====================================\n"
.LC19:
	.string	"%i"
.LC20:
	.string	"Invalid selection\n"
.LC21:
	.string	"Provide username\n"
.LC22:
	.string	"Provide password\n"
.LC23:
	.string	"Provide email\n"
.LC24:
	.string	"Provide website/application\n"
	.align 8
.LC25:
	.string	"INSERT INTO passwords(username, password, email, website) VALUES('%s', '%s', '%s', '%s');"
	.align 8
.LC26:
	.string	"SELECT username, password, email, website FROM passwords WHERE email = '%s' ORDER BY username ASC;"
.LC27:
	.string	"\nUsername: %s"
.LC28:
	.string	"\nPassword: %s"
.LC29:
	.string	"\nEmail: %s"
.LC30:
	.string	"\nWebsite: %s"
.LC31:
	.string	"Provide website\n"
	.align 8
.LC32:
	.string	"SELECT username, password, email, website FROM passwords WHERE website = '%s' ORDER BY username ASC;"
.LC33:
	.string	"Provide new password\n"
.LC34:
	.string	"Your new password is: %s\n"
	.align 8
.LC35:
	.string	"SELECT * FROM passwords ORDER BY username ASC;"
	.align 8
.LC36:
	.string	"Application closed succesfully\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 352
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, sigintHandler[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rax, .LC0[rip]
	mov	QWORD PTR -288[rbp], rax
	mov	rdx, QWORD PTR -288[rbp]
	mov	rcx, QWORD PTR -352[rbp]
	mov	eax, DWORD PTR -340[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	BYTE PTR -333[rbp], al
	cmp	BYTE PTR -333[rbp], 118
	jne	.L3
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L45
.L3:
	cmp	BYTE PTR -333[rbp], 105
	jne	.L5
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 144
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L45
.L5:
	cmp	BYTE PTR -333[rbp], 63
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 48
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L45
.L6:
	lea	rax, -320[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	call	sqlite3_open@PLT
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L45
.L7:
	mov	rax, QWORD PTR -320[rbp]
	lea	rdx, -296[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	sqlite3_exec@PLT
	test	eax, eax
	je	.L8
	mov	rdx, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L45
.L8:
	call	getuid@PLT
	mov	DWORD PTR -324[rbp], eax
	mov	eax, DWORD PTR -324[rbp]
	mov	edi, eax
	call	getpwuid@PLT
	mov	QWORD PTR -280[rbp], rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	sqlite3_mprintf@PLT
	mov	QWORD PTR -272[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	lea	rcx, -304[rbp]
	lea	rdx, -312[rbp]
	mov	rsi, QWORD PTR -272[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 128
	mov	rdi, rax
	call	sqlite3_prepare_v2@PLT
	test	eax, eax
	je	.L9
	mov	rdx, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L45
.L9:
	mov	DWORD PTR -328[rbp], 0
	jmp	.L10
.L11:
	add	DWORD PTR -328[rbp], 1
.L10:
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	sqlite3_step@PLT
	cmp	eax, 100
	je	.L11
	cmp	DWORD PTR -328[rbp], 0
	je	.L12
	cmp	DWORD PTR -328[rbp], 1
	je	.L49
	jmp	.L47
.L12:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 78
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdin[rip]
	lea	rdx, -176[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -176[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	sqlite3_mprintf@PLT
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	lea	rdx, -296[rbp]
	mov	rsi, QWORD PTR -264[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	sqlite3_exec@PLT
	test	eax, eax
	je	.L15
	mov	rdx, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L45
.L15:
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, -176[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L16
.L47:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 91
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdin[rip]
	lea	rdx, -176[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -176[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	sqlite3_mprintf@PLT
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	lea	rdx, -296[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	sqlite3_exec@PLT
	test	eax, eax
	je	.L17
	mov	rdx, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L45
.L17:
	mov	rax, QWORD PTR -320[rbp]
	lea	rdx, -296[rbp]
	mov	rsi, QWORD PTR -264[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	sqlite3_exec@PLT
	test	eax, eax
	je	.L18
	mov	rdx, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L45
.L18:
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, -176[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L19
.L49:
	nop
.L16:
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rdx, rax
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L19:
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	sqlite3_step@PLT
	cmp	eax, 100
	je	.L20
.L21:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdi, .LC16[rip]
	call	getpass@PLT
	mov	QWORD PTR -256[rbp], rax
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR -320[rbp]
	lea	rdx, -296[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	sqlite3_exec@PLT
	test	eax, eax
	je	.L22
	mov	rdx, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L45
.L22:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 237
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdin[rip]
	lea	rdx, -332[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -332[rbp]
	test	eax, eax
	js	.L23
	mov	eax, DWORD PTR -332[rbp]
	cmp	eax, 6
	jle	.L24
.L23:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
.L24:
	mov	eax, DWORD PTR -332[rbp]
	test	eax, eax
	js	.L22
	mov	eax, DWORD PTR -332[rbp]
	cmp	eax, 6
	jg	.L22
	mov	eax, DWORD PTR -332[rbp]
	cmp	eax, 1
	jne	.L25
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdin[rip]
	lea	rdx, -144[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdin[rip]
	lea	rdx, -112[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdin[rip]
	lea	rdx, -80[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdin[rip]
	lea	rdx, -48[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rsi, -48[rbp]
	lea	rcx, -80[rbp]
	lea	rdx, -112[rbp]
	lea	rax, -144[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	sqlite3_mprintf@PLT
	mov	QWORD PTR -248[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	lea	rdx, -296[rbp]
	mov	rsi, QWORD PTR -248[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	sqlite3_exec@PLT
	test	eax, eax
	je	.L25
	mov	rdx, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L45
.L25:
	mov	eax, DWORD PTR -332[rbp]
	cmp	eax, 2
	jne	.L27
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdin[rip]
	lea	rdx, -48[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	sqlite3_mprintf@PLT
	mov	QWORD PTR -240[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	lea	rcx, -304[rbp]
	lea	rdx, -312[rbp]
	mov	rsi, QWORD PTR -240[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 128
	mov	rdi, rax
	call	sqlite3_prepare_v2@PLT
	test	eax, eax
	je	.L29
	mov	rdx, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L45
.L30:
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L29:
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	sqlite3_step@PLT
	cmp	eax, 100
	je	.L30
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L27:
	mov	eax, DWORD PTR -332[rbp]
	cmp	eax, 3
	jne	.L31
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC31[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdin[rip]
	lea	rdx, -48[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	sqlite3_mprintf@PLT
	mov	QWORD PTR -232[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	lea	rcx, -304[rbp]
	lea	rdx, -312[rbp]
	mov	rsi, QWORD PTR -232[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 128
	mov	rdi, rax
	call	sqlite3_prepare_v2@PLT
	test	eax, eax
	je	.L33
	mov	rdx, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L45
.L34:
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L33:
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	sqlite3_step@PLT
	cmp	eax, 100
	je	.L34
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L31:
	mov	eax, DWORD PTR -332[rbp]
	cmp	eax, 4
	jne	.L35
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdin[rip]
	lea	rdx, -48[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -320[rbp]
	lea	rdx, -296[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	sqlite3_exec@PLT
	test	eax, eax
	je	.L36
	mov	rdx, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L45
.L36:
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	sqlite3_mprintf@PLT
	mov	QWORD PTR -224[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	lea	rdx, -296[rbp]
	mov	rsi, QWORD PTR -224[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	sqlite3_exec@PLT
	test	eax, eax
	je	.L38
	mov	rdx, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L45
.L38:
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, -48[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L35:
	mov	eax, DWORD PTR -332[rbp]
	cmp	eax, 5
	jne	.L39
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	sqlite3_mprintf@PLT
	mov	QWORD PTR -216[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	lea	rcx, -304[rbp]
	lea	rdx, -312[rbp]
	mov	rsi, QWORD PTR -216[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 128
	mov	rdi, rax
	call	sqlite3_prepare_v2@PLT
	test	eax, eax
	je	.L41
	mov	rdx, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L45
.L42:
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L41:
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	sqlite3_step@PLT
	cmp	eax, 100
	je	.L42
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L39:
	mov	eax, DWORD PTR -332[rbp]
	test	eax, eax
	je	.L50
	jmp	.L22
.L50:
	nop
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	sqlite3_finalize@PLT
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	sqlite3_close@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC36[rip]
	call	fwrite@PLT
	mov	eax, 0
.L45:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"849167.c"
	.text
	.align	2
	.global	sigintHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigintHandler, %function
sigintHandler:
	@ 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	r1, .L2
	mov	r0, #2
	bl	signal
	ldr	r3, .L2+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L2+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	sigintHandler
	.word	stdout
	.size	sigintHandler, .-sigintHandler
	.section	.rodata
	.align	2
.LC0:
	.ascii	"vi\000"
	.align	2
.LC1:
	.ascii	"Version 1.0.0\012\000"
	.align	2
.LC2:
	.ascii	"Developed by Yianni Kiritsis for CS50 final project"
	.ascii	"\012For information on how to use this manager, go "
	.ascii	"to https://github.com/yianniKir/pass_manager\012\000"
	.align	2
.LC3:
	.ascii	"Try running ./passwords -i for more information\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"database.db\000"
	.align	2
.LC5:
	.ascii	"Could not open the .db file\012\000"
	.align	2
.LC6:
	.ascii	"CREATE TABLE IF NOT EXISTS password(pass TEXT NOT N"
	.ascii	"ULL);\000"
	.align	2
.LC7:
	.ascii	"ERROR: %s\012\000"
	.align	2
.LC8:
	.ascii	"SELECT pass FROM password;\000"
	.align	2
.LC9:
	.ascii	"I see this is your first time running this password"
	.ascii	", enter a default password\012\000"
	.align	2
.LC10:
	.ascii	"%30s\000"
	.align	2
.LC11:
	.ascii	"INSERT INTO password(pass) VALUES('%s');\000"
	.align	2
.LC12:
	.ascii	"Great! You have completed the setup, your password "
	.ascii	"is %s, don't forget it!\012\000"
	.align	2
.LC13:
	.ascii	"Something is wrong with your program password. We w"
	.ascii	"ill have to reset, enter a new password\012\000"
	.align	2
.LC14:
	.ascii	"DELETE FROM password;\000"
	.align	2
.LC15:
	.ascii	"Hello, %s. Enter password to access: \000"
	.align	2
.LC16:
	.ascii	"\000"
	.align	2
.LC17:
	.ascii	"CREATE TABLE IF NOT EXISTS passwords(username TEXT "
	.ascii	"NOT NULL, password TEXT NOT NULL, email TEXT NOT NU"
	.ascii	"LL, website TEXT NOT NULL);\000"
	.align	2
.LC18:
	.ascii	"================MENU================\0121) Create n"
	.ascii	"ew password\0122) Find all sites and apps connected"
	.ascii	" to an email\0123) Find a password for a site or ap"
	.ascii	"p\0124) Change program password\0125) List everythi"
	.ascii	"ng\0120) Exit\012=================================="
	.ascii	"==\012\000"
	.align	2
.LC19:
	.ascii	"%i\000"
	.align	2
.LC20:
	.ascii	"Invalid selection\012\000"
	.align	2
.LC21:
	.ascii	"Provide username\012\000"
	.align	2
.LC22:
	.ascii	"Provide password\012\000"
	.align	2
.LC23:
	.ascii	"Provide email\012\000"
	.align	2
.LC24:
	.ascii	"Provide website/application\012\000"
	.align	2
.LC25:
	.ascii	"INSERT INTO passwords(username, password, email, we"
	.ascii	"bsite) VALUES('%s', '%s', '%s', '%s');\000"
	.align	2
.LC26:
	.ascii	"SELECT username, password, email, website FROM pass"
	.ascii	"words WHERE email = '%s' ORDER BY username ASC;\000"
	.align	2
.LC27:
	.ascii	"\012Username: %s\000"
	.align	2
.LC28:
	.ascii	"\012Password: %s\000"
	.align	2
.LC29:
	.ascii	"\012Email: %s\000"
	.align	2
.LC30:
	.ascii	"\012Website: %s\000"
	.align	2
.LC31:
	.ascii	"Provide website\012\000"
	.align	2
.LC32:
	.ascii	"SELECT username, password, email, website FROM pass"
	.ascii	"words WHERE website = '%s' ORDER BY username ASC;\000"
	.align	2
.LC33:
	.ascii	"Provide new password\012\000"
	.align	2
.LC34:
	.ascii	"Your new password is: %s\012\000"
	.align	2
.LC35:
	.ascii	"SELECT * FROM passwords ORDER BY username ASC;\000"
	.align	2
.LC36:
	.ascii	"Application closed succesfully\012\000"
	.align	2
.LC37:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #292
	str	r0, [fp, #-288]
	str	r1, [fp, #-292]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L53+4
	mov	r0, #2
	bl	signal
	ldr	r3, .L53+8
	str	r3, [fp, #-252]
	ldr	r2, [fp, #-252]
	ldr	r1, [fp, #-292]
	ldr	r0, [fp, #-288]
	bl	getopt
	mov	r3, r0
	strb	r3, [fp, #-277]
	ldrb	r3, [fp, #-277]	@ zero_extendqisi2
	cmp	r3, #118
	bne	.L5
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L53+16
	bl	fwrite
	mov	r3, #0
	b	.L47
.L5:
	ldrb	r3, [fp, #-277]	@ zero_extendqisi2
	cmp	r3, #105
	bne	.L7
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #144
	mov	r1, #1
	ldr	r0, .L53+20
	bl	fwrite
	mov	r3, #0
	b	.L47
.L7:
	ldrb	r3, [fp, #-277]	@ zero_extendqisi2
	cmp	r3, #63
	bne	.L8
	ldr	r3, .L53+24
	ldr	r3, [r3]
	mov	r2, #48
	mov	r1, #1
	ldr	r0, .L53+28
	bl	fwrite
	mov	r3, #1
	b	.L47
.L8:
	sub	r3, fp, #276
	mov	r1, r3
	ldr	r0, .L53+32
	bl	sqlite3_open
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L53+24
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L53+36
	bl	fwrite
	mov	r3, #1
	b	.L47
.L9:
	ldr	r0, [fp, #-276]
	sub	r3, fp, #264
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L53+40
	bl	sqlite3_exec
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L53+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-264]
	ldr	r1, .L53+44
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L47
.L10:
	bl	getuid
	str	r0, [fp, #-248]
	ldr	r0, [fp, #-248]
	bl	getpwuid
	str	r0, [fp, #-244]
	ldr	r0, .L53+48
	bl	sqlite3_mprintf
	str	r0, [fp, #-240]
	ldr	r0, [fp, #-276]
	sub	r2, fp, #272
	sub	r3, fp, #268
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #128
	ldr	r1, [fp, #-240]
	bl	sqlite3_prepare_v2
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L53+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-264]
	ldr	r1, .L53+44
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L47
.L11:
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L12
.L13:
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L12:
	ldr	r3, [fp, #-272]
	mov	r0, r3
	bl	sqlite3_step
	mov	r3, r0
	cmp	r3, #100
	beq	.L13
	ldr	r3, [fp, #-256]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-256]
	cmp	r3, #1
	beq	.L51
	b	.L49
.L14:
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #78
	mov	r1, #1
	ldr	r0, .L53+52
	bl	fwrite
	ldr	r3, .L53+56
	ldr	r3, [r3]
	sub	r2, fp, #176
	ldr	r1, .L53+60
	mov	r0, r3
	bl	__isoc99_fscanf
	sub	r3, fp, #176
	mov	r1, r3
	ldr	r0, .L53+64
	bl	sqlite3_mprintf
	str	r0, [fp, #-236]
	ldr	r0, [fp, #-276]
	sub	r3, fp, #264
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-236]
	bl	sqlite3_exec
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L53+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-264]
	ldr	r1, .L53+44
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L47
.L17:
	ldr	r3, .L53+12
	ldr	r3, [r3]
	sub	r2, fp, #176
	ldr	r1, .L53+68
	mov	r0, r3
	bl	fprintf
	b	.L18
.L49:
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #91
	mov	r1, #1
	ldr	r0, .L53+72
	bl	fwrite
	ldr	r3, .L53+56
	ldr	r3, [r3]
	sub	r2, fp, #176
	ldr	r1, .L53+60
	mov	r0, r3
	bl	__isoc99_fscanf
	sub	r3, fp, #176
	mov	r1, r3
	ldr	r0, .L53+64
	bl	sqlite3_mprintf
	str	r0, [fp, #-236]
	ldr	r0, [fp, #-276]
	sub	r3, fp, #264
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L53+76
	bl	sqlite3_exec
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L53+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-264]
	ldr	r1, .L53+44
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L47
.L19:
	ldr	r0, [fp, #-276]
	sub	r3, fp, #264
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-236]
	bl	sqlite3_exec
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L53+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-264]
	ldr	r1, .L53+44
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L47
.L20:
	ldr	r3, .L53+12
	ldr	r3, [r3]
	sub	r2, fp, #176
	ldr	r1, .L53+68
	mov	r0, r3
	bl	fprintf
	b	.L21
.L51:
	nop
.L18:
	b	.L21
.L22:
	ldr	r3, [fp, #-272]
	mov	r1, #0
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r2, r0
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
.L21:
	ldr	r3, [fp, #-272]
	mov	r0, r3
	bl	sqlite3_step
	mov	r3, r0
	cmp	r3, #100
	beq	.L22
.L23:
	ldr	r3, .L53+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-244]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L53+80
	bl	fprintf
	ldr	r0, .L53+84
	bl	getpass
	str	r0, [fp, #-232]
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, [fp, #-232]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r0, [fp, #-276]
	sub	r3, fp, #264
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L53+88
	bl	sqlite3_exec
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L53+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-264]
	ldr	r1, .L53+44
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L47
.L24:
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #237
	mov	r1, #1
	ldr	r0, .L53+92
	bl	fwrite
	ldr	r3, .L53+56
	ldr	r3, [r3]
	sub	r2, fp, #260
	ldr	r1, .L53+96
	mov	r0, r3
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-260]
	cmp	r3, #0
	blt	.L25
	ldr	r3, [fp, #-260]
	cmp	r3, #6
	ble	.L26
.L25:
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L53+100
	bl	fwrite
.L26:
	ldr	r3, [fp, #-260]
	cmp	r3, #0
	blt	.L24
	ldr	r3, [fp, #-260]
	cmp	r3, #6
	bgt	.L24
	ldr	r3, [fp, #-260]
	cmp	r3, #1
	bne	.L27
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L53+104
	bl	fwrite
	ldr	r3, .L53+56
	ldr	r3, [r3]
	sub	r2, fp, #144
	ldr	r1, .L53+60
	mov	r0, r3
	bl	__isoc99_fscanf
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L53+108
	bl	fwrite
	ldr	r3, .L53+56
	ldr	r3, [r3]
	sub	r2, fp, #112
	ldr	r1, .L53+60
	mov	r0, r3
	bl	__isoc99_fscanf
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L53+112
	bl	fwrite
	ldr	r3, .L53+56
	ldr	r3, [r3]
	sub	r2, fp, #80
	ldr	r1, .L53+60
	mov	r0, r3
	bl	__isoc99_fscanf
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L53+116
	bl	fwrite
	ldr	r3, .L53+56
	ldr	r3, [r3]
	sub	r2, fp, #48
	ldr	r1, .L53+60
	mov	r0, r3
	bl	__isoc99_fscanf
	sub	r0, fp, #80
	sub	r2, fp, #112
	sub	r1, fp, #144
	sub	r3, fp, #48
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L53+120
	bl	sqlite3_mprintf
	str	r0, [fp, #-228]
	ldr	r0, [fp, #-276]
	sub	r3, fp, #264
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-228]
	bl	sqlite3_exec
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r3, .L53+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-264]
	ldr	r1, .L53+44
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L47
.L27:
	ldr	r3, [fp, #-260]
	cmp	r3, #2
	bne	.L29
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L53+112
	bl	fwrite
	ldr	r3, .L53+56
	ldr	r3, [r3]
	sub	r2, fp, #48
	ldr	r1, .L53+60
	mov	r0, r3
	bl	__isoc99_fscanf
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L53+124
	bl	sqlite3_mprintf
	str	r0, [fp, #-224]
	ldr	r0, [fp, #-276]
	sub	r2, fp, #272
	sub	r3, fp, #268
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #128
	ldr	r1, [fp, #-224]
	bl	sqlite3_prepare_v2
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	ldr	r3, .L53+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-264]
	ldr	r1, .L53+44
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L47
.L32:
	ldr	r3, .L53+12
	ldr	r4, [r3]
	ldr	r3, [fp, #-272]
	mov	r1, #0
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L53+128
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L53+12
	ldr	r4, [r3]
	ldr	r3, [fp, #-272]
	mov	r1, #1
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L53+132
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L53+12
	ldr	r4, [r3]
	ldr	r3, [fp, #-272]
	mov	r1, #2
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L53+136
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L53+12
	ldr	r4, [r3]
	ldr	r3, [fp, #-272]
	mov	r1, #3
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L53+140
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
.L31:
	ldr	r3, [fp, #-272]
	mov	r0, r3
	bl	sqlite3_step
	mov	r3, r0
	cmp	r3, #100
	beq	.L32
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
.L29:
	ldr	r3, [fp, #-260]
	cmp	r3, #3
	bne	.L33
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L53+144
	bl	fwrite
	ldr	r3, .L53+56
	ldr	r3, [r3]
	sub	r2, fp, #48
	ldr	r1, .L53+60
	mov	r0, r3
	bl	__isoc99_fscanf
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L53+148
	bl	sqlite3_mprintf
	str	r0, [fp, #-220]
	ldr	r0, [fp, #-276]
	sub	r2, fp, #272
	sub	r3, fp, #268
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #128
	ldr	r1, [fp, #-220]
	bl	sqlite3_prepare_v2
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r3, .L53+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-264]
	ldr	r1, .L53+44
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L47
.L36:
	ldr	r3, .L53+12
	ldr	r4, [r3]
	ldr	r3, [fp, #-272]
	mov	r1, #0
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L53+128
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L53+12
	ldr	r4, [r3]
	ldr	r3, [fp, #-272]
	mov	r1, #1
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L53+132
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L53+12
	ldr	r4, [r3]
	ldr	r3, [fp, #-272]
	mov	r1, #2
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L53+136
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L53+12
	ldr	r4, [r3]
	ldr	r3, [fp, #-272]
	mov	r1, #3
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L53+140
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
.L35:
	ldr	r3, [fp, #-272]
	mov	r0, r3
	bl	sqlite3_step
	mov	r3, r0
	cmp	r3, #100
	beq	.L36
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
.L33:
	ldr	r3, [fp, #-260]
	cmp	r3, #4
	bne	.L37
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L53+152
	bl	fwrite
	ldr	r3, .L53+56
	ldr	r3, [r3]
	sub	r2, fp, #48
	ldr	r1, .L53+60
	mov	r0, r3
	bl	__isoc99_fscanf
	ldr	r0, [fp, #-276]
	sub	r3, fp, #264
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L53+76
	bl	sqlite3_exec
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L53+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-264]
	ldr	r1, .L53+44
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L47
.L38:
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L53+64
	bl	sqlite3_mprintf
	str	r0, [fp, #-216]
	ldr	r0, [fp, #-276]
	sub	r3, fp, #264
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-216]
	bl	sqlite3_exec
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	ldr	r3, .L53+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-264]
	ldr	r1, .L53+44
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L47
.L40:
	ldr	r3, .L53+12
	ldr	r3, [r3]
	sub	r2, fp, #48
	ldr	r1, .L53+156
	mov	r0, r3
	bl	fprintf
.L37:
	ldr	r3, [fp, #-260]
	cmp	r3, #5
	bne	.L41
	ldr	r0, .L53+160
	bl	sqlite3_mprintf
	str	r0, [fp, #-212]
	ldr	r0, [fp, #-276]
	sub	r2, fp, #272
	sub	r3, fp, #268
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #128
	ldr	r1, [fp, #-212]
	bl	sqlite3_prepare_v2
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	ldr	r3, .L53+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-264]
	ldr	r1, .L53+44
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L47
.L44:
	ldr	r3, .L53+12
	ldr	r4, [r3]
	ldr	r3, [fp, #-272]
	mov	r1, #0
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L53+128
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L53+12
	ldr	r4, [r3]
	ldr	r3, [fp, #-272]
	mov	r1, #1
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L53+132
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L53+12
	ldr	r4, [r3]
	ldr	r3, [fp, #-272]
	mov	r1, #2
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L53+136
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L53+12
	ldr	r4, [r3]
	ldr	r3, [fp, #-272]
	mov	r1, #3
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L53+140
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
.L43:
	ldr	r3, [fp, #-272]
	mov	r0, r3
	bl	sqlite3_step
	mov	r3, r0
	cmp	r3, #100
	beq	.L44
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
.L41:
	ldr	r3, [fp, #-260]
	cmp	r3, #0
	beq	.L52
	b	.L24
.L52:
	nop
	ldr	r3, [fp, #-272]
	mov	r0, r3
	bl	sqlite3_finalize
	ldr	r3, [fp, #-276]
	mov	r0, r3
	bl	sqlite3_close
	ldr	r3, .L53+12
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L53+164
	bl	fwrite
	mov	r3, #0
.L47:
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC37
	.word	sigintHandler
	.word	.LC0
	.word	stdout
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	stdin
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
