	.file	"216291.c"
	.intel_syntax noprefix
	.text
	.local	store
	.comm	store,8,8
	.data
	.align 4
	.type	g_fd, @object
	.size	g_fd, 4
g_fd:
	.long	-1
	.local	cache_valid
	.comm	cache_valid,1,1
	.local	cache_idx
	.comm	cache_idx,8,8
	.local	cache_data
	.comm	cache_data,4104,32
	.local	cache_key
	.comm	cache_key,8,8
	.text
	.type	sm_create, @function
sm_create:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	eax, r8d
	mov	BYTE PTR -44[rbp], al
	cmp	QWORD PTR -24[rbp], 0
	je	.L2
	cmp	QWORD PTR -32[rbp], 0
	jne	.L3
.L2:
	mov	eax, -2
	jmp	.L4
.L3:
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	shm_open@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L5
	mov	eax, -1
	jmp	.L4
.L5:
	cmp	BYTE PTR -44[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, 6301992
	mov	edi, eax
	call	ftruncate@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L6
	mov	eax, -1
	jmp	.L4
.L6:
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sm_create, .-sm_create
	.type	sm_exists, @function
sm_exists:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rsi, QWORD PTR -24[rbp]
	lea	rax, -16[rbp]
	mov	r8d, 0
	mov	ecx, 448
	mov	edx, 2
	mov	rdi, rax
	call	sm_create
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L8
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
.L8:
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sm_exists, .-sm_exists
	.type	sm_attach, @function
sm_attach:
.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	QWORD PTR -16[rbp], 0
	jne	.L12
	mov	eax, -2
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -4[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 6301992
	mov	edi, 0
	call	mmap@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, -1
	jne	.L14
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], 0
	mov	eax, -1
	jmp	.L13
.L14:
	mov	eax, 0
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sm_attach, .-sm_attach
	.type	sm_detach, @function
sm_detach:
.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
	cmp	QWORD PTR -24[rbp], 0
	jne	.L16
	mov	eax, -2
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 6301992
	mov	rdi, rax
	call	munmap@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L18
	mov	eax, -1
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 0
	mov	eax, 0
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sm_detach, .-sm_detach
	.type	sm_close, @function
sm_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, 32
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L20
	mov	eax, -2
	jmp	.L21
.L20:
	mov	eax, DWORD PTR g_fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	shm_unlink@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L22
	mov	eax, -1
	jmp	.L21
.L22:
	mov	eax, 0
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	sm_close, .-sm_close
	.section	.rodata
.LC0:
	.string	"the_stack_data/216291.c"
.LC1:
	.string	"s.st_size == sizeof(store_t)"
	.text
	.globl	kv_store_create
	.type	kv_store_create, @function
kv_store_create:
.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, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR store[rip]
	test	rax, rax
	je	.L24
	mov	eax, 0
	jmp	.L33
.L24:
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	sm_exists
	mov	DWORD PTR -180[rbp], eax
	mov	DWORD PTR -184[rbp], 66
	mov	BYTE PTR -185[rbp], 1
	cmp	DWORD PTR -180[rbp], 0
	jne	.L26
	mov	DWORD PTR -184[rbp], 2
	mov	BYTE PTR -185[rbp], 0
.L26:
	movzx	ecx, BYTE PTR -185[rbp]
	mov	edx, DWORD PTR -184[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	r8d, ecx
	mov	ecx, 448
	mov	rsi, rax
	lea	rdi, g_fd[rip]
	call	sm_create
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L27
	mov	eax, -1
	jmp	.L33
.L27:
	mov	eax, DWORD PTR g_fd[rip]
	lea	rsi, store[rip]
	mov	edi, eax
	call	sm_attach
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L28
	mov	eax, -1
	jmp	.L33
.L28:
	cmp	BYTE PTR -185[rbp], 0
	je	.L29
	mov	rax, QWORD PTR store[rip]
	add	rax, 6301696
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	sem_init@PLT
	mov	rax, QWORD PTR store[rip]
	add	rax, 6301732
	mov	edx, 255
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR store[rip]
	lea	rcx, 6301732[rax]
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, 255
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	rax, QWORD PTR store[rip]
	mov	BYTE PTR 6301986[rax], 0
	mov	rax, QWORD PTR store[rip]
	mov	DWORD PTR 6301728[rax], 0
	mov	QWORD PTR -176[rbp], 0
	jmp	.L30
.L31:
	mov	rdx, QWORD PTR store[rip]
	mov	rax, QWORD PTR -176[rbp]
	imul	rax, rax, 24616
	add	rax, rdx
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	DWORD PTR 24576[rax], 0
	mov	QWORD PTR cache_idx[rip], 0
	mov	BYTE PTR cache_valid[rip], 0
	mov	QWORD PTR cache_key[rip], 0
	mov	edx, 4104
	mov	esi, 0
	lea	rdi, cache_data[rip]
	call	memset@PLT
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 24584
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	sem_init@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, 8192
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 8192
	mov	edx, 16384
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	add	QWORD PTR -176[rbp], 1
.L30:
	cmp	QWORD PTR -176[rbp], 255
	jbe	.L31
.L29:
	mov	rax, QWORD PTR store[rip]
	add	rax, 6301696
	mov	rdi, rax
	call	sem_wait@PLT
	mov	eax, DWORD PTR g_fd[rip]
	lea	rdx, -160[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR -112[rbp]
	cmp	rax, 6301992
	je	.L32
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 242
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L32:
	mov	rax, QWORD PTR store[rip]
	mov	edx, DWORD PTR 6301728[rax]
	add	edx, 1
	mov	DWORD PTR 6301728[rax], edx
	mov	rax, QWORD PTR store[rip]
	add	rax, 6301696
	mov	rdi, rax
	call	sem_post@PLT
	mov	eax, 0
.L33:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	kv_store_create, .-kv_store_create
	.globl	kv_delete_db
	.type	kv_delete_db, @function
kv_delete_db:
.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, 272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR store[rip]
	test	rax, rax
	jne	.L36
	mov	eax, -1
	jmp	.L38
.L36:
	mov	rax, QWORD PTR store[rip]
	add	rax, 6301696
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR store[rip]
	lea	rcx, 6301732[rax]
	lea	rax, -272[rbp]
	mov	edx, 255
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR store[rip]
	add	rax, 6301696
	mov	rdi, rax
	call	sem_post@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	kv_store_destroy
.L38:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	kv_delete_db, .-kv_delete_db
	.globl	kv_store_destroy
	.type	kv_store_destroy, @function
kv_store_destroy:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR store[rip]
	test	rax, rax
	je	.L41
	cmp	QWORD PTR -24[rbp], 0
	jne	.L42
.L41:
	mov	eax, -1
	jmp	.L43
.L42:
	mov	QWORD PTR cache_idx[rip], 0
	mov	BYTE PTR cache_valid[rip], 0
	mov	QWORD PTR cache_key[rip], 0
	mov	edx, 4104
	mov	esi, 0
	lea	rdi, cache_data[rip]
	call	memset@PLT
	mov	rax, QWORD PTR store[rip]
	add	rax, 6301696
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR store[rip]
	lea	rcx, 6301732[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 254
	mov	rsi, rax
	mov	rdi, rcx
	call	strncmp@PLT
	test	eax, eax
	je	.L44
	mov	rax, QWORD PTR store[rip]
	add	rax, 6301696
	mov	rdi, rax
	call	sem_post@PLT
	mov	eax, -1
	jmp	.L43
.L44:
	mov	rax, QWORD PTR store[rip]
	mov	edx, DWORD PTR 6301728[rax]
	sub	edx, 1
	mov	DWORD PTR 6301728[rax], edx
	mov	eax, DWORD PTR 6301728[rax]
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR store[rip]
	add	rax, 6301696
	mov	rdi, rax
	call	sem_post@PLT
	cmp	DWORD PTR -16[rbp], 0
	jg	.L45
	mov	QWORD PTR -8[rbp], 0
	jmp	.L46
.L47:
	mov	rdx, QWORD PTR store[rip]
	mov	rax, QWORD PTR -8[rbp]
	imul	rax, rax, 24616
	add	rax, 24576
	add	rax, rdx
	add	rax, 8
	mov	rdi, rax
	call	sem_destroy@PLT
	add	QWORD PTR -8[rbp], 1
.L46:
	cmp	QWORD PTR -8[rbp], 255
	jbe	.L47
	mov	rax, QWORD PTR store[rip]
	add	rax, 6301696
	mov	rdi, rax
	call	sem_destroy@PLT
.L45:
	lea	rdi, store[rip]
	call	sm_detach
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L48
	mov	eax, -1
	jmp	.L43
.L48:
	mov	QWORD PTR store[rip], 0
	cmp	DWORD PTR -16[rbp], 0
	jg	.L49
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sm_close
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L49
	mov	eax, -1
	jmp	.L43
.L49:
	mov	eax, 0
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	kv_store_destroy, .-kv_store_destroy
	.type	hash, @function
hash:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -12[rbp], 5381
	mov	QWORD PTR -8[rbp], 0
	jmp	.L51
.L52:
	mov	eax, DWORD PTR -12[rbp]
	cdq
	shr	edx, 8
	add	eax, edx
	and	eax, 16777215
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	sal	eax, 5
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	lea	ecx, [rdx+rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	eax, ecx
	mov	DWORD PTR -12[rbp], eax
	add	QWORD PTR -8[rbp], 1
.L51:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L52
	mov	eax, DWORD PTR -12[rbp]
	cdq
	idiv	DWORD PTR -28[rbp]
	mov	eax, edx
	test	eax, eax
	jns	.L53
	mov	eax, DWORD PTR -12[rbp]
	neg	eax
	cdq
	idiv	DWORD PTR -28[rbp]
	mov	eax, edx
	cdqe
	jmp	.L55
.L53:
	mov	eax, DWORD PTR -12[rbp]
	cdq
	idiv	DWORD PTR -28[rbp]
	mov	eax, edx
	cdqe
.L55:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	hash, .-hash
	.globl	kv_store_write
	.type	kv_store_write, @function
kv_store_write:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -24576[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 80
	mov	QWORD PTR -24648[rbp], rdi
	mov	QWORD PTR -24656[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -24648[rbp], 0
	je	.L57
	cmp	QWORD PTR -24656[rbp], 0
	je	.L57
	mov	rax, QWORD PTR store[rip]
	test	rax, rax
	je	.L57
	mov	rax, QWORD PTR -24648[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L58
.L57:
	mov	eax, -1
	jmp	.L66
.L58:
	mov	rax, QWORD PTR -24648[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	hash
	mov	DWORD PTR -24628[rbp], eax
	mov	rdx, QWORD PTR store[rip]
	mov	eax, DWORD PTR -24628[rbp]
	cdqe
	imul	rax, rax, 24616
	add	rax, rdx
	mov	QWORD PTR -24600[rbp], rax
	mov	rax, QWORD PTR -24600[rbp]
	add	rax, 24584
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR -24600[rbp]
	mov	DWORD PTR 24576[rax], 0
	mov	QWORD PTR cache_idx[rip], 0
	mov	QWORD PTR cache_key[rip], 0
	mov	BYTE PTR cache_valid[rip], 0
	mov	QWORD PTR -24624[rbp], 0
	jmp	.L60
.L61:
	mov	rax, QWORD PTR -24624[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, cache_data[rip]
	mov	QWORD PTR [rdx+rax], 0
	add	QWORD PTR -24624[rbp], 1
.L60:
	cmp	QWORD PTR -24624[rbp], 512
	jbe	.L61
	mov	QWORD PTR -24616[rbp], 0
	jmp	.L62
.L63:
	mov	rax, QWORD PTR -24616[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24600[rbp]
	lea	rcx, [rdx+rax]
	lea	rdx, -24592[rbp]
	mov	rax, QWORD PTR -24616[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -24616[rbp]
	add	rax, 256
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -24600[rbp]
	lea	rcx, [rdx+rax]
	lea	rdx, -16400[rbp]
	mov	rax, QWORD PTR -24616[rbp]
	sal	rax, 5
	add	rax, rdx
	mov	edx, 32
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	add	QWORD PTR -24616[rbp], 1
.L62:
	cmp	QWORD PTR -24616[rbp], 511
	jbe	.L63
	mov	QWORD PTR -24608[rbp], 0
	jmp	.L64
.L65:
	lea	rdx, -24592[rbp]
	mov	rax, QWORD PTR -24608[rbp]
	sal	rax, 4
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -24608[rbp]
	add	rax, 1
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24600[rbp]
	add	rax, rdx
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rdx, -16400[rbp]
	mov	rax, QWORD PTR -24608[rbp]
	sal	rax, 5
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -24608[rbp]
	add	rax, 1
	add	rax, 256
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -24600[rbp]
	add	rax, rdx
	mov	edx, 32
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	add	QWORD PTR -24608[rbp], 1
.L64:
	cmp	QWORD PTR -24608[rbp], 510
	jbe	.L65
	mov	rax, QWORD PTR -24600[rbp]
	mov	rcx, QWORD PTR -24648[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -24600[rbp]
	lea	rcx, 8192[rax]
	mov	rax, QWORD PTR -24656[rbp]
	mov	edx, 32
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	rax, QWORD PTR -24600[rbp]
	mov	BYTE PTR 15[rax], 0
	mov	rax, QWORD PTR -24600[rbp]
	mov	BYTE PTR 8223[rax], 0
	mov	rax, QWORD PTR -24600[rbp]
	add	rax, 24584
	mov	rdi, rax
	call	sem_post@PLT
	mov	eax, 0
.L66:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L67
	call	__stack_chk_fail@PLT
.L67:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	kv_store_write, .-kv_store_write
	.globl	kv_store_read
	.type	kv_store_read, @function
kv_store_read:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	cmp	QWORD PTR -56[rbp], 0
	je	.L69
	mov	rax, QWORD PTR store[rip]
	test	rax, rax
	jne	.L70
.L69:
	mov	eax, 0
	jmp	.L71
.L70:
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	hash
	mov	DWORD PTR -36[rbp], eax
	mov	QWORD PTR -32[rbp], 0
	mov	rdx, QWORD PTR store[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	imul	rax, rax, 24616
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 24584
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 24576[rax]
	test	eax, eax
	je	.L72
	movzx	eax, BYTE PTR cache_valid[rip]
	test	al, al
	je	.L72
	mov	rax, QWORD PTR cache_key[rip]
	mov	rcx, QWORD PTR -56[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L72
	mov	rax, QWORD PTR cache_idx[rip]
	lea	rdx, 0[0+rax*8]
	lea	rax, cache_data[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L73
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR cache_idx[rip], 0
	jmp	.L75
.L73:
	mov	rax, QWORD PTR cache_idx[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR cache_idx[rip], rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, cache_data[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	esi, 32
	mov	rdi, rax
	call	strndup@PLT
	mov	QWORD PTR -32[rbp], rax
	jmp	.L75
.L72:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24576[rax], 1
	mov	QWORD PTR cache_idx[rip], 0
	mov	BYTE PTR cache_valid[rip], 1
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L76
.L78:
	mov	eax, 511
	sub	rax, QWORD PTR -16[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 16
	mov	rsi, rax
	mov	rdi, rcx
	call	strncmp@PLT
	test	eax, eax
	jne	.L77
	mov	eax, 511
	sub	rax, QWORD PTR -16[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	QWORD PTR cache_key[rip], rax
	mov	eax, 511
	sub	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	lea	rdx, 256[rcx]
	mov	rcx, rdx
	sal	rcx, 5
	mov	rdx, QWORD PTR -8[rbp]
	add	rcx, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, cache_data[rip]
	mov	QWORD PTR [rdx+rax], rcx
.L77:
	add	QWORD PTR -16[rbp], 1
.L76:
	cmp	QWORD PTR -16[rbp], 511
	jbe	.L78
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, cache_data[rip]
	mov	QWORD PTR [rdx+rax], 0
	cmp	QWORD PTR -24[rbp], 0
	je	.L75
	mov	rax, QWORD PTR cache_idx[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR cache_idx[rip], rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, cache_data[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	esi, 32
	mov	rdi, rax
	call	strndup@PLT
	mov	QWORD PTR -32[rbp], rax
.L75:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 24584
	mov	rdi, rax
	call	sem_post@PLT
	mov	rax, QWORD PTR -32[rbp]
.L71:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	kv_store_read, .-kv_store_read
	.globl	kv_store_read_all
	.type	kv_store_read_all, @function
kv_store_read_all:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	cmp	QWORD PTR -72[rbp], 0
	je	.L80
	mov	rax, QWORD PTR store[rip]
	test	rax, rax
	jne	.L81
.L80:
	mov	eax, 0
	jmp	.L82
.L81:
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	hash
	mov	DWORD PTR -52[rbp], eax
	mov	esi, 8
	mov	edi, 513
	call	calloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 4096
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR -48[rbp], 0
	mov	rdx, QWORD PTR store[rip]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	imul	rax, rax, 24616
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 24584
	mov	rdi, rax
	call	sem_wait@PLT
	mov	QWORD PTR -40[rbp], 0
	jmp	.L83
.L85:
	mov	eax, 511
	sub	rax, QWORD PTR -40[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 16
	mov	rsi, rax
	mov	rdi, rcx
	call	strncmp@PLT
	test	eax, eax
	jne	.L84
	mov	eax, 511
	sub	rax, QWORD PTR -40[rbp]
	add	rax, 256
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	lea	rbx, [rcx+rax]
	mov	esi, 32
	mov	rdi, rdx
	call	strndup@PLT
	mov	QWORD PTR [rbx], rax
.L84:
	add	QWORD PTR -40[rbp], 1
.L83:
	cmp	QWORD PTR -40[rbp], 511
	jbe	.L85
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L86
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 24584
	mov	rdi, rax
	call	sem_post@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L82
.L86:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 24584
	mov	rdi, rax
	call	sem_post@PLT
	mov	rax, QWORD PTR -32[rbp]
.L82:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	kv_store_read_all, .-kv_store_read_all
	.type	sig_handler, @function
sig_handler:
.LFB18:
	.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
	call	kv_delete_db
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE18:
	.size	sig_handler, .-sig_handler
	.section	.rodata
.LC2:
	.string	"/STORE"
.LC3:
	.string	"content [A]"
.LC4:
	.string	"MyKey"
.LC5:
	.string	"content [B]"
.LC6:
	.string	"[%zu]"
.LC7:
	.string	"%zu => '%s'\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, sig_handler[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rsi, sig_handler[rip]
	mov	edi, 3
	call	signal@PLT
	lea	rsi, sig_handler[rip]
	mov	edi, 20
	call	signal@PLT
	lea	rdi, .LC2[rip]
	call	kv_store_create
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	kv_store_write
	lea	rsi, .LC5[rip]
	lea	rdi, .LC4[rip]
	call	kv_store_write
	mov	QWORD PTR -48[rbp], 0
	jmp	.L89
.L90:
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -13[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -13[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	call	kv_store_write
	add	QWORD PTR -48[rbp], 1
.L89:
	cmp	QWORD PTR -48[rbp], 16
	jbe	.L90
	mov	DWORD PTR -52[rbp], 0
.L93:
	lea	rdi, .LC4[rip]
	call	kv_store_read
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L99
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -52[rbp], 1
	jmp	.L93
.L99:
	nop
	lea	rdi, .LC4[rip]
	call	kv_store_read_all
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -40[rbp], 0
	jmp	.L94
.L95:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	QWORD PTR -40[rbp], 1
.L94:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L95
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC2[rip]
	call	kv_store_destroy
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L97
	call	__stack_chk_fail@PLT
.L97:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 16
__PRETTY_FUNCTION__.0:
	.string	"kv_store_create"
	.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	"216291.c"
	.text
	.local	store
	.comm	store,4,4
	.data
	.align	2
	.type	g_fd, %object
	.size	g_fd, 4
g_fd:
	.word	-1
	.local	cache_valid
	.comm	cache_valid,1,1
	.local	cache_idx
	.comm	cache_idx,4,4
	.local	cache_data
	.comm	cache_data,2052,4
	.local	cache_key
	.comm	cache_key,4,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sm_create, %function
sm_create:
	@ args = 4, 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L3
.L2:
	mvn	r3, #1
	b	.L4
.L3:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	shm_open
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L5
	mvn	r3, #0
	b	.L4
.L5:
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, .L7
	mov	r0, r3
	bl	ftruncate
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L6
	mvn	r3, #0
	b	.L4
.L6:
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	6296852
	.size	sm_create, .-sm_create
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sm_exists, %function
sm_exists:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #16
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #448
	mov	r2, #2
	ldr	r1, [fp, #-24]
	bl	sm_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
.L10:
	ldr	r3, [fp, #-12]
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	sm_exists, .-sm_exists
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sm_attach, %function
sm_attach:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L16
	mvn	r3, #1
	b	.L17
.L16:
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	ldr	r1, .L19
	mov	r0, #0
	bl	mmap
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L18
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3]
	mvn	r3, #0
	b	.L17
.L18:
	mov	r3, #0
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	6296852
	.size	sm_attach, .-sm_attach
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sm_detach, %function
sm_detach:
	@ 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]
	cmp	r3, #0
	bne	.L22
	mvn	r3, #1
	b	.L23
.L22:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, .L25
	mov	r0, r3
	bl	munmap
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L24
	mvn	r3, #0
	b	.L23
.L24:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	6296852
	.size	sm_detach, .-sm_detach
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sm_close, %function
sm_close:
	@ 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]
	cmp	r3, #0
	bne	.L28
	mvn	r3, #1
	b	.L29
.L28:
	ldr	r3, .L31
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r0, [fp, #-16]
	bl	shm_unlink
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L30
	mvn	r3, #0
	b	.L29
.L30:
	mov	r3, #0
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	g_fd
	.size	sm_close, .-sm_close
	.section	.rodata
	.align	2
.LC1:
	.ascii	"the_stack_data/216291.c\000"
	.align	2
.LC2:
	.ascii	"s.st_size == sizeof(store_t)\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kv_store_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	kv_store_create, %function
kv_store_create:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-128]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L45+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L34
	mov	r3, #0
	b	.L43
.L34:
	ldr	r0, [fp, #-128]
	bl	sm_exists
	str	r0, [fp, #-108]
	mov	r3, #66
	str	r3, [fp, #-116]
	mov	r3, #1
	strb	r3, [fp, #-117]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L36
	mov	r3, #2
	str	r3, [fp, #-116]
	mov	r3, #0
	strb	r3, [fp, #-117]
.L36:
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #448
	ldr	r2, [fp, #-116]
	ldr	r1, [fp, #-128]
	ldr	r0, .L45+8
	bl	sm_create
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L37
	mvn	r3, #0
	b	.L43
.L37:
	ldr	r3, .L45+8
	ldr	r3, [r3]
	ldr	r1, .L45+4
	mov	r0, r3
	bl	sm_attach
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L38
	mvn	r3, #0
	b	.L43
.L38:
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L39
	ldr	r3, .L45+4
	ldr	r3, [r3]
	add	r3, r3, #6291456
	add	r3, r3, #5120
	mov	r2, #1
	mov	r1, #1
	mov	r0, r3
	bl	sem_init
	ldr	r3, .L45+4
	ldr	r2, [r3]
	ldr	r3, .L45+12
	add	r3, r2, r3
	mov	r2, #255
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L45+4
	ldr	r2, [r3]
	ldr	r3, .L45+12
	add	r3, r2, r3
	mov	r2, #255
	ldr	r1, [fp, #-128]
	mov	r0, r3
	bl	strncpy
	ldr	r3, .L45+4
	ldr	r3, [r3]
	add	r3, r3, #6291456
	add	r3, r3, #4096
	mov	r2, #0
	strb	r2, [r3, #1298]
	ldr	r3, .L45+4
	ldr	r3, [r3]
	add	r3, r3, #6291456
	add	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #1040]
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L40
.L41:
	ldr	r3, .L45+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #9
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	add	r3, r3, #24576
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	ldr	r3, .L45+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L45+20
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L45+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, .L45+28
	mov	r1, #0
	ldr	r0, .L45+32
	bl	memset
	ldr	r3, [fp, #-104]
	add	r3, r3, #24576
	add	r3, r3, #4
	mov	r2, #1
	mov	r1, #1
	mov	r0, r3
	bl	sem_init
	ldr	r3, [fp, #-104]
	mov	r2, #8192
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-104]
	add	r3, r3, #8192
	mov	r2, #16384
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L40:
	ldr	r3, [fp, #-112]
	cmp	r3, #255
	bls	.L41
.L39:
	ldr	r3, .L45+4
	ldr	r3, [r3]
	add	r3, r3, #6291456
	add	r3, r3, #5120
	mov	r0, r3
	bl	sem_wait
	ldr	r3, .L45+8
	ldr	r3, [r3]
	sub	r2, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	fstat
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L42
	ldr	r3, [fp, #-56]
	ldr	r2, .L45+36
	cmp	r3, r2
	beq	.L42
	ldr	r3, .L45+40
	mov	r2, #242
	ldr	r1, .L45+44
	ldr	r0, .L45+48
	bl	__assert_fail
.L42:
	ldr	r3, .L45+4
	ldr	r2, [r3]
	add	r3, r2, #6291456
	add	r3, r3, #4096
	ldr	r3, [r3, #1040]
	add	r1, r3, #1
	add	r3, r2, #6291456
	add	r3, r3, #4096
	str	r1, [r3, #1040]
	ldr	r3, .L45+4
	ldr	r3, [r3]
	add	r3, r3, #6291456
	add	r3, r3, #5120
	mov	r0, r3
	bl	sem_post
	mov	r3, #0
.L43:
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC3
	.word	store
	.word	g_fd
	.word	6296596
	.word	cache_idx
	.word	cache_valid
	.word	cache_key
	.word	2052
	.word	cache_data
	.word	6296852
	.word	__PRETTY_FUNCTION__.6541
	.word	.LC1
	.word	.LC2
	.size	kv_store_create, .-kv_store_create
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kv_delete_db
	.syntax unified
	.arm
	.fpu softvfp
	.type	kv_delete_db, %function
kv_delete_db:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L52+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L48
	mvn	r3, #0
	b	.L50
.L48:
	ldr	r3, .L52+4
	ldr	r3, [r3]
	add	r3, r3, #6291456
	add	r3, r3, #5120
	mov	r0, r3
	bl	sem_wait
	ldr	r3, .L52+4
	ldr	r2, [r3]
	ldr	r3, .L52+8
	add	r3, r2, r3
	sub	r0, fp, #264
	mov	r2, #255
	mov	r1, r3
	bl	strncpy
	ldr	r3, .L52+4
	ldr	r3, [r3]
	add	r3, r3, #6291456
	add	r3, r3, #5120
	mov	r0, r3
	bl	sem_post
	sub	r3, fp, #264
	mov	r0, r3
	bl	kv_store_destroy
	mov	r3, r0
.L50:
	ldr	r2, .L52
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC4
	.word	store
	.word	6296596
	.size	kv_delete_db, .-kv_delete_db
	.align	2
	.global	kv_store_destroy
	.syntax unified
	.arm
	.fpu softvfp
	.type	kv_store_destroy, %function
kv_store_destroy:
	@ 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]
	ldr	r3, .L64
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L55
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L56
.L55:
	mvn	r3, #0
	b	.L57
.L56:
	ldr	r3, .L64+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L64+8
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L64+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, .L64+16
	mov	r1, #0
	ldr	r0, .L64+20
	bl	memset
	ldr	r3, .L64
	ldr	r3, [r3]
	add	r3, r3, #6291456
	add	r3, r3, #5120
	mov	r0, r3
	bl	sem_wait
	ldr	r3, .L64
	ldr	r2, [r3]
	ldr	r3, .L64+24
	add	r3, r2, r3
	mov	r2, #254
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L58
	ldr	r3, .L64
	ldr	r3, [r3]
	add	r3, r3, #6291456
	add	r3, r3, #5120
	mov	r0, r3
	bl	sem_post
	mvn	r3, #0
	b	.L57
.L58:
	ldr	r3, .L64
	ldr	r3, [r3]
	add	r2, r3, #6291456
	add	r2, r2, #4096
	ldr	r2, [r2, #1040]
	sub	r1, r2, #1
	add	r2, r3, #6291456
	add	r2, r2, #4096
	str	r1, [r2, #1040]
	add	r3, r3, #6291456
	add	r3, r3, #4096
	ldr	r3, [r3, #1040]
	str	r3, [fp, #-12]
	ldr	r3, .L64
	ldr	r3, [r3]
	add	r3, r3, #6291456
	add	r3, r3, #5120
	mov	r0, r3
	bl	sem_post
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L59
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L60
.L61:
	ldr	r3, .L64
	ldr	r1, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #9
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #24576
	add	r3, r1, r3
	add	r3, r3, #4
	mov	r0, r3
	bl	sem_destroy
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L60:
	ldr	r3, [fp, #-16]
	cmp	r3, #255
	bls	.L61
	ldr	r3, .L64
	ldr	r3, [r3]
	add	r3, r3, #6291456
	add	r3, r3, #5120
	mov	r0, r3
	bl	sem_destroy
.L59:
	ldr	r0, .L64
	bl	sm_detach
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L62
	mvn	r3, #0
	b	.L57
.L62:
	ldr	r3, .L64
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L63
	ldr	r0, [fp, #-24]
	bl	sm_close
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L63
	mvn	r3, #0
	b	.L57
.L63:
	mov	r3, #0
.L57:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	store
	.word	cache_idx
	.word	cache_valid
	.word	cache_key
	.word	2052
	.word	cache_data
	.word	6296596
	.size	kv_store_destroy, .-kv_store_destroy
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hash, %function
hash:
	@ 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, .L72
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L67
.L68:
	ldr	r3, [fp, #-12]
	rsbs	r2, r3, #0
	bic	r3, r3, #-16777216
	bic	r2, r2, #-16777216
	rsbpl	r3, r2, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #5
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L67:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L68
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bge	.L69
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #0
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	b	.L71
.L69:
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
.L71:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	5381
	.size	hash, .-hash
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kv_store_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	kv_store_write, %function
kv_store_write:
	@ args = 0, pretend = 0, frame = 24608
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24576
	sub	sp, sp, #32
	sub	r3, fp, #24576
	sub	r3, r3, #4
	str	r0, [r3, #-28]
	sub	r3, fp, #24576
	sub	r3, r3, #4
	str	r1, [r3, #-32]
	ldr	r3, .L86
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	beq	.L75
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	beq	.L75
	ldr	r3, .L86+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L75
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L76
.L75:
	mvn	r3, #0
	b	.L84
.L76:
	sub	r3, fp, #24576
	sub	r3, r3, #4
	mov	r1, #256
	ldr	r0, [r3, #-28]
	bl	hash
	mov	r3, r0
	sub	r2, fp, #24576
	sub	r2, r2, #4
	str	r3, [r2, #-12]
	ldr	r3, .L86+4
	ldr	r1, [r3]
	sub	r3, fp, #24576
	sub	r3, r3, #4
	mov	r0, r3
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r2, [r3, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #9
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r3, [r0, #-8]
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #24576
	add	r3, r3, #4
	mov	r0, r3
	bl	sem_wait
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #24576
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	ldr	r3, .L86+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L86+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L86+16
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #24576
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-24]
	b	.L78
.L79:
	ldr	r2, .L86+20
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-24]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	sub	r3, fp, #24576
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-24]
	add	r3, r3, #1
	str	r3, [r2, #-24]
.L78:
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-24]
	cmp	r3, #512
	bls	.L79
	sub	r3, fp, #24576
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	b	.L80
.L81:
	sub	r3, fp, #24576
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #24576
	sub	r2, r2, #4
	ldr	r2, [r2, #-20]
	lsl	r2, r2, #4
	add	r0, r3, r2
	sub	r3, fp, #24576
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-20]
	lsl	r3, r3, #4
	ldr	r2, [r2, #-8]
	add	r3, r2, r3
	mov	r2, #16
	mov	r1, r3
	bl	strncpy
	sub	r3, fp, #16384
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #24576
	sub	r2, r2, #4
	ldr	r2, [r2, #-20]
	lsl	r2, r2, #5
	add	r0, r3, r2
	sub	r3, fp, #24576
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-20]
	add	r3, r3, #256
	lsl	r3, r3, #5
	ldr	r2, [r2, #-8]
	add	r3, r2, r3
	mov	r2, #32
	mov	r1, r3
	bl	strncpy
	sub	r3, fp, #24576
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-20]
	add	r3, r3, #1
	str	r3, [r2, #-20]
.L80:
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-20]
	cmp	r3, #512
	bcc	.L81
	sub	r3, fp, #24576
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-16]
	b	.L82
.L83:
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	add	r3, r3, #1
	sub	r2, fp, #24576
	sub	r2, r2, #4
	lsl	r3, r3, #4
	ldr	r2, [r2, #-8]
	add	r0, r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #24576
	sub	r2, r2, #4
	ldr	r2, [r2, #-16]
	lsl	r2, r2, #4
	add	r3, r3, r2
	mov	r2, #16
	mov	r1, r3
	bl	strncpy
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	add	r3, r3, #1
	sub	r2, fp, #24576
	sub	r2, r2, #4
	add	r3, r3, #256
	lsl	r3, r3, #5
	ldr	r2, [r2, #-8]
	add	r0, r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #24576
	sub	r2, r2, #4
	ldr	r2, [r2, #-16]
	lsl	r2, r2, #5
	add	r3, r3, r2
	mov	r2, #32
	mov	r1, r3
	bl	strncpy
	sub	r3, fp, #24576
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	add	r3, r3, #1
	str	r3, [r2, #-16]
.L82:
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	ldr	r2, .L86+24
	cmp	r3, r2
	bls	.L83
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	sub	r2, fp, #24576
	sub	r2, r2, #4
	mov	r1, r2
	mov	r2, #16
	ldr	r1, [r1, #-28]
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #8192
	sub	r2, fp, #24576
	sub	r2, r2, #4
	mov	r1, r2
	mov	r2, #32
	ldr	r1, [r1, #-32]
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	mov	r2, #0
	strb	r2, [r3, #15]
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #8192
	mov	r2, #0
	strb	r2, [r3, #31]
	sub	r3, fp, #24576
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #24576
	add	r3, r3, #4
	mov	r0, r3
	bl	sem_post
	mov	r3, #0
.L84:
	ldr	r2, .L86
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L85
	bl	__stack_chk_fail
.L85:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	.LC5
	.word	store
	.word	cache_idx
	.word	cache_key
	.word	cache_valid
	.word	cache_data
	.word	510
	.size	kv_store_write, .-kv_store_write
	.align	2
	.global	kv_store_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	kv_store_read, %function
kv_store_read:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L89
	ldr	r3, .L99
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L90
.L89:
	mov	r3, #0
	b	.L91
.L90:
	mov	r1, #256
	ldr	r0, [fp, #-32]
	bl	hash
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L99
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #9
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #24576
	add	r3, r3, #4
	mov	r0, r3
	bl	sem_wait
	ldr	r3, [fp, #-8]
	add	r3, r3, #24576
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L92
	ldr	r3, .L99+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L92
	ldr	r3, .L99+8
	ldr	r3, [r3]
	mov	r2, #16
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L92
	ldr	r3, .L99+12
	ldr	r3, [r3]
	ldr	r2, .L99+16
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L93
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L99+12
	mov	r2, #0
	str	r2, [r3]
	b	.L95
.L93:
	ldr	r3, .L99+12
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L99+12
	str	r2, [r1]
	ldr	r2, .L99+16
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, #32
	mov	r0, r3
	bl	strndup
	mov	r3, r0
	str	r3, [fp, #-24]
	b	.L95
.L92:
	ldr	r3, [fp, #-8]
	add	r3, r3, #24576
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2]
	ldr	r3, .L99+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L99+4
	mov	r2, #1
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L96
.L98:
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #508
	add	r3, r3, #3
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #16
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L97
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #508
	add	r3, r3, #3
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L99+8
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #508
	add	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r1, r2, #1
	str	r1, [fp, #-20]
	add	r3, r3, #256
	lsl	r3, r3, #5
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldr	r1, .L99+16
	str	r3, [r1, r2, lsl #2]
.L97:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L96:
	ldr	r3, [fp, #-16]
	cmp	r3, #512
	bcc	.L98
	ldr	r2, .L99+16
	ldr	r3, [fp, #-20]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L95
	ldr	r3, .L99+12
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L99+12
	str	r2, [r1]
	ldr	r2, .L99+16
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, #32
	mov	r0, r3
	bl	strndup
	mov	r3, r0
	str	r3, [fp, #-24]
.L95:
	ldr	r3, [fp, #-8]
	add	r3, r3, #24576
	add	r3, r3, #4
	mov	r0, r3
	bl	sem_post
	ldr	r3, [fp, #-24]
.L91:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L100:
	.align	2
.L99:
	.word	store
	.word	cache_valid
	.word	cache_key
	.word	cache_idx
	.word	cache_data
	.size	kv_store_read, .-kv_store_read
	.align	2
	.global	kv_store_read_all
	.syntax unified
	.arm
	.fpu softvfp
	.type	kv_store_read_all, %function
kv_store_read_all:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L102
	ldr	r3, .L109
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L103
.L102:
	mov	r3, #0
	b	.L104
.L103:
	mov	r1, #256
	ldr	r0, [fp, #-40]
	bl	hash
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r1, #4
	ldr	r0, .L109+4
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r3, r3, #2048
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, .L109
	ldr	r1, [r3]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #9
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #24576
	add	r3, r3, #4
	mov	r0, r3
	bl	sem_wait
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L105
.L107:
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #508
	add	r3, r3, #3
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #16
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L106
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #508
	add	r3, r3, #3
	add	r3, r3, #256
	lsl	r3, r3, #5
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r4, r2, r3
	mov	r1, #32
	bl	strndup
	mov	r3, r0
	str	r3, [r4]
.L106:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L105:
	ldr	r3, [fp, #-28]
	cmp	r3, #512
	bcc	.L107
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L108
	ldr	r3, [fp, #-16]
	add	r3, r3, #24576
	add	r3, r3, #4
	mov	r0, r3
	bl	sem_post
	ldr	r0, [fp, #-20]
	bl	free
	mov	r3, #0
	b	.L104
.L108:
	ldr	r3, [fp, #-16]
	add	r3, r3, #24576
	add	r3, r3, #4
	mov	r0, r3
	bl	sem_post
	ldr	r3, [fp, #-20]
.L104:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L110:
	.align	2
.L109:
	.word	store
	.word	513
	.size	kv_store_read_all, .-kv_store_read_all
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig_handler, %function
sig_handler:
	@ 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]
	bl	kv_delete_db
	mov	r0, #0
	bl	exit
	.size	sig_handler, .-sig_handler
	.section	.rodata
	.align	2
.LC6:
	.ascii	"/STORE\000"
	.align	2
.LC7:
	.ascii	"content [A]\000"
	.align	2
.LC8:
	.ascii	"MyKey\000"
	.align	2
.LC9:
	.ascii	"content [B]\000"
	.align	2
.LC10:
	.ascii	"[%zu]\000"
	.align	2
.LC11:
	.ascii	"%zu => '%s'\012\000"
	.align	2
.LC12:
	.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, .L124
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L124+4
	mov	r0, #2
	bl	signal
	ldr	r1, .L124+4
	mov	r0, #3
	bl	signal
	ldr	r1, .L124+4
	mov	r0, #20
	bl	signal
	ldr	r0, .L124+8
	bl	kv_store_create
	ldr	r1, .L124+12
	ldr	r0, .L124+16
	bl	kv_store_write
	ldr	r1, .L124+20
	ldr	r0, .L124+16
	bl	kv_store_write
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L113
.L114:
	sub	r3, fp, #16
	ldr	r2, [fp, #-36]
	ldr	r1, .L124+24
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L124+16
	bl	kv_store_write
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L113:
	ldr	r3, [fp, #-36]
	cmp	r3, #16
	bls	.L114
	mov	r3, #0
	str	r3, [fp, #-32]
.L117:
	ldr	r0, .L124+16
	bl	kv_store_read
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L123
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L117
.L123:
	nop
	ldr	r0, .L124+16
	bl	kv_store_read_all
	str	r0, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L118
.L119:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, .L124+28
	bl	printf
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L118:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L119
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r0, .L124+8
	bl	kv_store_destroy
	mov	r3, #0
	ldr	r2, .L124
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L121
	bl	__stack_chk_fail
.L121:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L125:
	.align	2
.L124:
	.word	.LC12
	.word	sig_handler
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6541, %object
	.size	__PRETTY_FUNCTION__.6541, 16
__PRETTY_FUNCTION__.6541:
	.ascii	"kv_store_create\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
