	.file	"261678.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"ERROR: %s\n"
	.text
	.globl	die
	.type	die, @function
die:
.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	cmp	QWORD PTR -16[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	fclose@PLT
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
.L4:
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	die, .-die
	.section	.rodata
.LC1:
	.string	"%d %s %s\n"
	.text
	.globl	Address_print
	.type	Address_print, @function
Address_print:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 520[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Address_print, .-Address_print
	.section	.rodata
.LC2:
	.string	"Failed to load database."
	.text
	.globl	Database_load
	.type	Database_load, @function
Database_load:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 103200
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 1
	je	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	call	die
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Database_load, .-Database_load
	.section	.rodata
.LC3:
	.string	"Memory error"
.LC4:
	.string	"w"
.LC5:
	.string	"r+"
.LC6:
	.string	"Failed to open the file"
	.text
	.globl	Database_open
	.type	Database_open, @function
Database_open:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L12
	mov	esi, 0
	lea	rdi, .LC3[rip]
	call	die
.L12:
	mov	edi, 103200
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	call	die
.L13:
	cmp	BYTE PTR -28[rbp], 99
	jne	.L14
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	Database_load
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	call	die
.L16:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Database_open, .-Database_open
	.globl	Database_close
	.type	Database_close, @function
Database_close:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L22
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L20
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	fclose@PLT
.L20:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L21
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L22:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	Database_close, .-Database_close
	.section	.rodata
.LC7:
	.string	"Failed to write database."
.LC8:
	.string	"Cannot flush database."
	.text
	.globl	Database_write
	.type	Database_write, @function
Database_write:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 103200
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 1
	je	.L24
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	call	die
.L24:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L26
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	call	die
.L26:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	Database_write, .-Database_write
	.globl	Database_create
	.type	Database_create, @function
Database_create:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1072
	mov	QWORD PTR -1064[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1044[rbp], 0
	mov	DWORD PTR -1044[rbp], 0
	jmp	.L28
.L29:
	lea	rdx, -1040[rbp]
	mov	eax, 0
	mov	ecx, 129
	mov	rdi, rdx
	rep stosq
	mov	eax, DWORD PTR -1044[rbp]
	mov	DWORD PTR -1040[rbp], eax
	mov	rax, QWORD PTR -1064[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -1044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 7
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdx, rax
	lea	rax, -1040[rbp]
	mov	ecx, 1032
	mov	rsi, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rsi
	mov	esi, ecx
	add	rsi, rdx
	lea	rdi, 8[rsi]
	mov	esi, ecx
	add	rsi, rax
	add	rsi, 8
	mov	rsi, QWORD PTR -16[rsi]
	mov	QWORD PTR -16[rdi], rsi
	lea	rdi, 8[rdx]
	and	rdi, -8
	sub	rdx, rdi
	sub	rax, rdx
	add	ecx, edx
	and	ecx, -8
	shr	ecx, 3
	mov	edx, ecx
	mov	edx, edx
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	add	DWORD PTR -1044[rbp], 1
.L28:
	cmp	DWORD PTR -1044[rbp], 99
	jle	.L29
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	Database_create, .-Database_create
	.section	.rodata
.LC9:
	.string	"Already set, delete it first"
.LC10:
	.string	"%s - %lu\n"
.LC11:
	.string	"Name copy failed"
.LC12:
	.string	"Email copy failed"
	.text
	.globl	Database_set
	.type	Database_set, @function
Database_set:
.LFB13:
	.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 7
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L32
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	call	die
.L32:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	BYTE PTR 8[rdx+rax], 0
	cmp	QWORD PTR -8[rbp], 0
	jne	.L33
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	call	die
.L33:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 520[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	BYTE PTR 520[rdx+rax], 0
	cmp	QWORD PTR -8[rbp], 0
	jne	.L35
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	call	die
.L35:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	Database_set, .-Database_set
	.section	.rodata
.LC13:
	.string	"ID is not set"
	.text
	.globl	Database_get
	.type	Database_get, @function
Database_get:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 7
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L37
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	Address_print
	jmp	.L39
.L37:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	call	die
.L39:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	Database_get, .-Database_get
	.globl	Database_delete
	.type	Database_delete, @function
Database_delete:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1056
	mov	QWORD PTR -1048[rbp], rdi
	mov	DWORD PTR -1052[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -1040[rbp]
	mov	eax, 0
	mov	ecx, 129
	mov	rdi, rdx
	rep stosq
	mov	eax, DWORD PTR -1052[rbp]
	mov	DWORD PTR -1040[rbp], eax
	mov	rax, QWORD PTR -1048[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -1052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 7
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdx, rax
	lea	rax, -1040[rbp]
	mov	ecx, 1032
	mov	rsi, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rsi
	mov	esi, ecx
	add	rsi, rdx
	lea	rdi, 8[rsi]
	mov	esi, ecx
	add	rsi, rax
	add	rsi, 8
	mov	rsi, QWORD PTR -16[rsi]
	mov	QWORD PTR -16[rdi], rsi
	lea	rdi, 8[rdx]
	and	rdi, -8
	sub	rdx, rdi
	sub	rax, rdx
	add	ecx, edx
	and	ecx, -8
	shr	ecx, 3
	mov	edx, ecx
	mov	edx, edx
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	Database_delete, .-Database_delete
	.globl	Database_list
	.type	Database_list, @function
Database_list:
.LFB16:
	.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	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L43
.L45:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 7
	add	rax, rdx
	sal	rax, 3
	mov	rdx, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L44
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	Address_print
.L44:
	add	DWORD PTR -20[rbp], 1
.L43:
	cmp	DWORD PTR -20[rbp], 99
	jle	.L45
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	Database_list, .-Database_list
	.section	.rodata
	.align 8
.LC14:
	.string	"USAGE: ex17 <dbfile> <action> [action params]"
	.align 8
.LC15:
	.string	"There's not that many records."
.LC16:
	.string	"Need an id to get"
.LC17:
	.string	"Need id, name, email to set"
.LC18:
	.string	"Need id to delete"
	.align 8
.LC19:
	.string	"Invalid action: c=create, g=get, s=set, d=del, l=list"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 2
	jg	.L47
	mov	esi, 0
	lea	rdi, .LC14[rip]
	call	die
.L47:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -21[rbp], al
	movsx	edx, BYTE PTR -21[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	Database_open
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	cmp	DWORD PTR -36[rbp], 3
	jle	.L48
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
.L48:
	cmp	DWORD PTR -20[rbp], 99
	jle	.L49
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	call	die
.L49:
	movsx	eax, BYTE PTR -21[rbp]
	sub	eax, 99
	cmp	eax, 16
	ja	.L50
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L52[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L52[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L52:
	.long	.L56-.L52
	.long	.L55-.L52
	.long	.L50-.L52
	.long	.L50-.L52
	.long	.L54-.L52
	.long	.L50-.L52
	.long	.L50-.L52
	.long	.L50-.L52
	.long	.L50-.L52
	.long	.L53-.L52
	.long	.L50-.L52
	.long	.L50-.L52
	.long	.L50-.L52
	.long	.L50-.L52
	.long	.L50-.L52
	.long	.L50-.L52
	.long	.L51-.L52
	.text
.L56:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	Database_create
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	Database_write
	jmp	.L57
.L54:
	cmp	DWORD PTR -36[rbp], 4
	je	.L58
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	call	die
.L58:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	Database_get
	jmp	.L57
.L51:
	cmp	DWORD PTR -36[rbp], 6
	je	.L59
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	call	die
.L59:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 40
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	mov	esi, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	Database_set
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	Database_write
	jmp	.L57
.L55:
	cmp	DWORD PTR -36[rbp], 4
	je	.L60
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	call	die
.L60:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	Database_delete
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	Database_write
	jmp	.L57
.L53:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	Database_list
	jmp	.L57
.L50:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	call	die
.L57:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	Database_close
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.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	"261678.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ERROR: %s\012\000"
	.text
	.align	2
	.global	die
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ 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]
	str	r1, [fp, #-12]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r0, [fp, #-8]
	bl	perror
	b	.L3
.L2:
	ldr	r1, [fp, #-8]
	ldr	r0, .L7
	bl	printf
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L5:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
.L6:
	ldr	r0, [fp, #-12]
	bl	free
.L4:
	mov	r0, #1
	bl	exit
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	die, .-die
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d %s %s\012\000"
	.text
	.align	2
	.global	Address_print
	.syntax unified
	.arm
	.fpu softvfp
	.type	Address_print, %function
Address_print:
	@ 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]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	add	r2, r3, #8
	ldr	r3, [fp, #-8]
	add	r3, r3, #520
	ldr	r0, .L10
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC1
	.size	Address_print, .-Address_print
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Failed to load database.\000"
	.text
	.align	2
	.global	Database_load
	.syntax unified
	.arm
	.fpu softvfp
	.type	Database_load, %function
Database_load:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L15
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L14
	ldr	r1, [fp, #-16]
	ldr	r0, .L15+4
	bl	die
.L14:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	103200
	.word	.LC2
	.size	Database_load, .-Database_load
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Memory error\000"
	.align	2
.LC4:
	.ascii	"w\000"
	.align	2
.LC5:
	.ascii	"r+\000"
	.align	2
.LC6:
	.ascii	"Failed to open the file\000"
	.text
	.align	2
	.global	Database_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	Database_open, %function
Database_open:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L18
	mov	r1, #0
	ldr	r0, .L24
	bl	die
.L18:
	ldr	r0, .L24+4
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L19
	ldr	r1, [fp, #-8]
	ldr	r0, .L24
	bl	die
.L19:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L20
	ldr	r1, .L24+8
	ldr	r0, [fp, #-16]
	bl	fopen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	b	.L21
.L20:
	ldr	r1, .L24+12
	ldr	r0, [fp, #-16]
	bl	fopen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L21
	ldr	r0, [fp, #-8]
	bl	Database_load
.L21:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	ldr	r1, [fp, #-8]
	ldr	r0, .L24+16
	bl	die
.L22:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC3
	.word	103200
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	Database_open, .-Database_open
	.align	2
	.global	Database_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	Database_close, %function
Database_close:
	@ 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]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L28:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
.L29:
	ldr	r0, [fp, #-8]
	bl	free
.L30:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Database_close, .-Database_close
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Failed to write database.\000"
	.align	2
.LC8:
	.ascii	"Cannot flush database.\000"
	.text
	.align	2
	.global	Database_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	Database_write, %function
Database_write:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	rewind
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L35
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L32
	ldr	r1, [fp, #-16]
	ldr	r0, .L35+4
	bl	die
.L32:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L34
	ldr	r1, [fp, #-16]
	ldr	r0, .L35+8
	bl	die
.L34:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	103200
	.word	.LC7
	.word	.LC8
	.size	Database_write, .-Database_write
	.section	.rodata
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Database_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	Database_create, %function
Database_create:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1048]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1044]
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L38
.L39:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, .L41+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-1044]
	str	r3, [fp, #-1040]
	ldr	r3, [fp, #-1048]
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-1044]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r0, r3
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, .L41+4
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	str	r3, [fp, #-1044]
.L38:
	ldr	r3, [fp, #-1044]
	cmp	r3, #99
	ble	.L39
	nop
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC9
	.word	1032
	.size	Database_create, .-Database_create
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Already set, delete it first\000"
	.align	2
.LC11:
	.ascii	"%s - %lu\012\000"
	.align	2
.LC12:
	.ascii	"Name copy failed\000"
	.align	2
.LC13:
	.ascii	"Email copy failed\000"
	.text
	.align	2
	.global	Database_set
	.syntax unified
	.arm
	.fpu softvfp
	.type	Database_set, %function
Database_set:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L44
	ldr	r1, [fp, #-24]
	ldr	r0, .L48
	bl	die
.L44:
	ldr	r3, [fp, #-20]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, .L48+4
	bl	printf
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-36]
	ldr	r0, .L48+4
	bl	printf
	ldr	r3, [fp, #-20]
	add	r4, r3, #8
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-32]
	mov	r0, r4
	bl	strncpy
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L45
	ldr	r1, [fp, #-24]
	ldr	r0, .L48+8
	bl	die
.L45:
	ldr	r3, [fp, #-20]
	add	r4, r3, #520
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-36]
	mov	r0, r4
	bl	strncpy
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3, #520]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L47
	ldr	r1, [fp, #-24]
	ldr	r0, .L48+12
	bl	die
.L47:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	Database_set, .-Database_set
	.section	.rodata
	.align	2
.LC14:
	.ascii	"ID is not set\000"
	.text
	.align	2
	.global	Database_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	Database_get, %function
Database_get:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L51
	ldr	r0, [fp, #-8]
	bl	Address_print
	b	.L53
.L51:
	ldr	r1, [fp, #-16]
	ldr	r0, .L54
	bl	die
.L53:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC14
	.size	Database_get, .-Database_get
	.section	.rodata
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Database_delete
	.syntax unified
	.arm
	.fpu softvfp
	.type	Database_delete, %function
Database_delete:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1048]
	str	r1, [fp, #-1052]
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, .L58+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-1052]
	str	r3, [fp, #-1040]
	ldr	r3, [fp, #-1048]
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-1052]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r0, r3
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, .L58+4
	mov	r1, r3
	bl	memcpy
	nop
	ldr	r3, .L58
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC15
	.word	1032
	.size	Database_delete, .-Database_delete
	.align	2
	.global	Database_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	Database_list, %function
Database_list:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L61
.L63:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L62
	ldr	r0, [fp, #-8]
	bl	Address_print
.L62:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L61:
	ldr	r3, [fp, #-16]
	cmp	r3, #99
	ble	.L63
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Database_list, .-Database_list
	.section	.rodata
	.align	2
.LC16:
	.ascii	"USAGE: ex17 <dbfile> <action> [action params]\000"
	.align	2
.LC17:
	.ascii	"There's not that many records.\000"
	.align	2
.LC18:
	.ascii	"Need an id to get\000"
	.align	2
.LC19:
	.ascii	"Need id, name, email to set\000"
	.align	2
.LC20:
	.ascii	"Need id to delete\000"
	.align	2
.LC21:
	.ascii	"Invalid action: c=create, g=get, s=set, d=del, l=li"
	.ascii	"st\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bgt	.L65
	mov	r1, #0
	ldr	r0, .L80
	bl	die
.L65:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	Database_open
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	ble	.L66
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
.L66:
	ldr	r3, [fp, #-16]
	cmp	r3, #99
	ble	.L67
	ldr	r1, [fp, #-8]
	ldr	r0, .L80+4
	bl	die
.L67:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	sub	r3, r3, #99
	cmp	r3, #16
	ldrls	pc, [pc, r3, asl #2]
	b	.L68
.L70:
	.word	.L74
	.word	.L73
	.word	.L68
	.word	.L68
	.word	.L72
	.word	.L68
	.word	.L68
	.word	.L68
	.word	.L68
	.word	.L71
	.word	.L68
	.word	.L68
	.word	.L68
	.word	.L68
	.word	.L68
	.word	.L68
	.word	.L69
.L74:
	ldr	r0, [fp, #-8]
	bl	Database_create
	ldr	r0, [fp, #-8]
	bl	Database_write
	b	.L75
.L72:
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	beq	.L76
	ldr	r1, [fp, #-8]
	ldr	r0, .L80+8
	bl	die
.L76:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	Database_get
	b	.L75
.L69:
	ldr	r3, [fp, #-24]
	cmp	r3, #6
	beq	.L77
	ldr	r1, [fp, #-8]
	ldr	r0, .L80+12
	bl	die
.L77:
	ldr	r3, [fp, #-28]
	add	r3, r3, #16
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #20
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	Database_set
	ldr	r0, [fp, #-8]
	bl	Database_write
	b	.L75
.L73:
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	beq	.L78
	ldr	r1, [fp, #-8]
	ldr	r0, .L80+16
	bl	die
.L78:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	Database_delete
	ldr	r0, [fp, #-8]
	bl	Database_write
	b	.L75
.L71:
	ldr	r0, [fp, #-8]
	bl	Database_list
	b	.L75
.L68:
	ldr	r1, [fp, #-8]
	ldr	r0, .L80+20
	bl	die
.L75:
	ldr	r0, [fp, #-8]
	bl	Database_close
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L81:
	.align	2
.L80:
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
