	.file	"extr_logs-engine.c_memcache_store.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"memcache_store: key='%s', key_len=%d, value_len=%d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"select"
.LC2:
	.string	"select%d"
.LC3:
	.string	"current_text %d\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"WARNING: not enough memory for message allocating\n"
	.section	.rodata.str1.1
.LC5:
	.string	"add_event"
.LC6:
	.string	"%d : %s\n"
.LC7:
	.string	"key = %s | ts = %s, s = %s\n"
	.text
	.p2align 4
	.globl	memcache_store
	.type	memcache_store, @function
memcache_store:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14d, ecx
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdx
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -56
	movsx	rbx, DWORD PTR 16[rbp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR verbosity[rip], 1
	jle	.L2
	mov	edi, DWORD PTR stderr[rip]
	mov	r8d, ebx
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
.L2:
	lea	eax, 1[rbx]
	cmp	eax, DWORD PTR MAX_VALUE_LEN[rip]
	jl	.L53
.L3:
	mov	edi, DWORD PTR set[rip]
	mov	esi, -2
	call	RETURN@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L54
	lea	rsp, -40[rbp]
	xor	eax, eax
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L53:
	.cfi_restore_state
	lea	rdx, -72[rbp]
	lea	rcx, -80[rbp]
	mov	esi, r14d
	mov	rdi, r13
	call	eat_at@PLT
	mov	edx, DWORD PTR write_only[rip]
	test	edx, edx
	jne	.L51
	cmp	DWORD PTR -80[rbp], 5
	jle	.L3
	mov	rdi, QWORD PTR -72[rbp]
	mov	edx, 6
	lea	rsi, .LC1[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L51
	cmp	DWORD PTR MAX_QUERY_LEN[rip], ebx
	jle	.L51
	lea	r14, -64[rbp]
	mov	rdi, QWORD PTR -72[rbp]
	lea	rsi, .LC2[rip]
	mov	rdx, r14
	call	sscanf@PLT
	cmp	eax, 1
	je	.L9
	mov	edi, DWORD PTR set[rip]
	mov	esi, -2
	call	RETURN@PLT
.L9:
	cmp	DWORD PTR verbosity[rip], 1
	mov	r13d, DWORD PTR -64[rbp]
	jle	.L10
	mov	edi, DWORD PTR stderr[rip]
	mov	edx, r13d
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	r13d, DWORD PTR -64[rbp]
.L10:
	mov	rdi, r12
	call	MESSAGE@PLT
	mov	edx, r13d
	mov	esi, ebx
	mov	edi, eax
	call	msg_reinit@PLT
	test	rax, rax
	js	.L55
.L11:
	mov	rdi, r12
	call	MESSAGE@PLT
	mov	edi, eax
	call	msg_get_buf@PLT
	mov	r13, rax
	mov	rdi, rax
	call	assert@PLT
	mov	rsi, r13
	mov	rdi, r12
	mov	edx, ebx
	call	safe_read_in@PLT
	movsx	rax, ebx
	mov	esi, 1
	mov	BYTE PTR 0[r13+rax], 0
	mov	edi, DWORD PTR set[rip]
	call	RETURN@PLT
	.p2align 4,,10
	.p2align 3
.L51:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, 8
	jle	.L3
	mov	rdi, QWORD PTR -72[rbp]
	mov	edx, 9
	lea	rsi, .LC5[rip]
	call	strncmp@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L3
	mov	r8d, DWORD PTR -80[rbp]
	cmp	r8d, 999
	jg	.L3
	mov	r15, QWORD PTR -72[rbp]
	cmp	BYTE PTR 9[r15], 40
	jne	.L14
	lea	eax, -9[r8]
	cdqe
	cmp	BYTE PTR 8[r15+rax], 41
	je	.L15
.L14:
	mov	edi, DWORD PTR set[rip]
	mov	esi, -2
	mov	DWORD PTR -88[rbp], r8d
	call	RETURN@PLT
	mov	r8d, DWORD PTR -88[rbp]
.L15:
	lea	rax, 10[r15]
	cmp	DWORD PTR verbosity[rip], 2
	mov	r14, QWORD PTR stats_buff[rip]
	mov	QWORD PTR -88[rbp], rax
	lea	eax, -11[r8]
	mov	DWORD PTR -100[rbp], eax
	jg	.L56
.L16:
	mov	eax, DWORD PTR -100[rbp]
	test	eax, eax
	jle	.L17
	lea	ecx, -12[r8]
	xor	eax, eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L19:
	add	r14, 1
	mov	BYTE PTR -1[r14], dl
	lea	r13d, 1[rax]
	lea	rdx, 1[rax]
	cmp	rcx, rax
	je	.L17
	mov	rax, rdx
.L18:
	movzx	edx, BYTE PTR 10[r15+rax]
	mov	r13d, eax
	cmp	dl, 44
	jne	.L19
	mov	BYTE PTR [r14], 0
	cmp	DWORD PTR verbosity[rip], 2
	jle	.L21
.L31:
	mov	rsi, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR stats_buff[rip]
	mov	rdx, QWORD PTR -72[rbp]
	mov	edi, DWORD PTR stderr[rip]
	lea	r8, 1[rsi+rax]
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	fprintf@PLT
.L21:
	mov	esi, DWORD PTR FN[rip]
	mov	rcx, rsp
	mov	QWORD PTR -120[rbp], rsp
	lea	eax, -2[rsi]
	cdqe
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L23
.L57:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L57
.L23:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L24
	or	QWORD PTR -8[rsp+rdx], 0
.L24:
	lea	rax, -76[rbp]
	mov	QWORD PTR -96[rbp], rsp
	mov	r15d, 2
	lea	r14, -64[rbp]
	mov	QWORD PTR -112[rbp], rax
	cmp	esi, 2
	jg	.L25
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L58:
	mov	QWORD PTR [rcx+rax*4], rsi
.L29:
	lea	r15d, 1[r15+rdx]
	cmp	DWORD PTR FN[rip], r15d
	jle	.L30
.L25:
	mov	rsi, QWORD PTR -88[rbp]
	movsx	rax, r13d
	mov	rdx, QWORD PTR -112[rbp]
	mov	DWORD PTR -76[rbp], -1
	lea	rdi, 1[rsi+rax]
	mov	rsi, r14
	call	read_long@PLT
	test	eax, eax
	jle	.L26
	mov	eax, DWORD PTR -76[rbp]
	lea	edx, 1[rax+r13]
	cmp	edx, DWORD PTR -100[rbp]
	je	.L27
	mov	rsi, QWORD PTR -88[rbp]
	lea	edx, [rax+r13]
	movsx	rdx, edx
	cmp	BYTE PTR 1[rsi+rdx], 44
	je	.L27
.L26:
	mov	edi, DWORD PTR set[rip]
	mov	esi, -2
	call	RETURN@PLT
	mov	eax, DWORD PTR -76[rbp]
.L27:
	mov	rdx, QWORD PTR std_t[rip]
	lea	r13d, 1[rax+r13]
	movsx	rax, r15d
	mov	rsi, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR [rdx+rax*8]
	lea	eax, -2[r15]
	cdqe
	test	rdx, rdx
	jne	.L58
	mov	DWORD PTR [rcx+rax*4], esi
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rsi, QWORD PTR buf[rip]
	mov	edx, ebx
	mov	rdi, r12
	call	safe_read_in@PLT
	mov	rax, QWORD PTR buf[rip]
	mov	rsi, QWORD PTR -96[rbp]
	mov	BYTE PTR [rax+rbx], 0
	mov	rdx, QWORD PTR buf[rip]
	mov	rdi, QWORD PTR stats_buff[rip]
	call	do_add_event@PLT
	mov	edi, DWORD PTR set[rip]
	mov	esi, eax
	call	RETURN@PLT
	mov	rsp, QWORD PTR -120[rbp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	mov	BYTE PTR [r14], 0
	cmp	DWORD PTR verbosity[rip], 2
	jle	.L21
	cmp	DWORD PTR -100[rbp], r13d
	je	.L21
	movsx	rax, r13d
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L56:
	mov	edi, DWORD PTR stderr[rip]
	mov	edx, eax
	lea	rcx, 10[r15]
	xor	eax, eax
	lea	rsi, .LC6[rip]
	mov	DWORD PTR -96[rbp], r8d
	call	fprintf@PLT
	mov	r8d, DWORD PTR -96[rbp]
	jmp	.L16
.L55:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR set[rip]
	mov	esi, -2
	call	RETURN@PLT
	jmp	.L11
.L54:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	memcache_store, .-memcache_store
	.comm	write_only,4,4
	.comm	verbosity,4,4
	.comm	stderr,4,4
	.comm	std_t,8,8
	.comm	stats_buff,8,8
	.comm	set,4,4
	.comm	buf,8,8
	.comm	MAX_VALUE_LEN,4,4
	.comm	MAX_QUERY_LEN,4,4
	.comm	INIT,4,4
	.comm	FN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_logs-engine.c_memcache_store.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"memcache_store: key='%s', key_len=%d, value_len=%d\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"select\000"
	.align	2
.LC2:
	.ascii	"select%d\000"
	.align	2
.LC3:
	.ascii	"current_text %d\012\000"
	.align	2
.LC4:
	.ascii	"WARNING: not enough memory for message allocating\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"add_event\000"
	.align	2
.LC6:
	.ascii	"%d : %s\012\000"
	.align	2
.LC7:
	.ascii	"key = %s | ts = %s, s = %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	memcache_store
	.syntax unified
	.arm
	.fpu softvfp
	.type	memcache_store, %function
memcache_store:
	@ args = 12, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #68
	ldr	r6, .L63
	mov	r4, r0
	ldr	r1, [r6]
	ldr	r0, .L63+4
	cmp	r1, #1
	ldr	r0, [r0]
	str	r0, [fp, #-40]
	mov	r0,#0
	mov	r5, r2
	mov	r7, r3
	ble	.L2
	ldr	r0, .L63+8
	ldr	ip, [fp, #12]
	ldr	r0, [r0]
	ldr	r1, .L63+12
	str	ip, [sp]
	bl	fprintf
.L2:
	ldr	r3, .L63+16
	ldr	r2, [fp, #12]
	ldr	r3, [r3]
	add	r2, r2, #1
	cmp	r2, r3
	blt	.L48
.L58:
	ldr	r5, .L63+20
.L3:
	mvn	r1, #1
	ldr	r0, [r5]
	bl	RETURN
	ldr	r3, .L63+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L60
	mov	r0, #0
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L48:
	mov	r1, r7
	sub	r3, fp, #60
	mov	r0, r5
	sub	r2, fp, #64
	bl	eat_at
	ldr	r3, .L63+24
	ldr	r7, [fp, #-60]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L57
	cmp	r7, #5
	ble	.L58
	ldr	r5, [fp, #-64]
	mov	r2, #6
	mov	r0, r5
	ldr	r1, .L63+28
	bl	strncmp
	cmp	r0, #0
	bne	.L57
	ldr	r3, .L63+32
	ldr	r2, [fp, #12]
	ldr	r3, [r3]
	cmp	r3, r2
	ble	.L57
	mov	r0, r5
	ldr	r1, .L63+36
	sub	r2, fp, #52
	bl	sscanf
	cmp	r0, #1
	ldr	r5, .L63+20
	beq	.L7
	mvn	r1, #1
	ldr	r0, [r5]
	bl	RETURN
.L7:
	ldr	r3, [r6]
	cmp	r3, #1
	ble	.L8
	ldr	r3, .L63+8
	ldr	r2, [fp, #-52]
	ldr	r0, [r3]
	ldr	r1, .L63+40
	bl	fprintf
.L8:
	mov	r0, r4
	bl	MESSAGE
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #12]
	bl	msg_reinit
	cmp	r0, #0
	blt	.L61
.L9:
	mov	r0, r4
	bl	MESSAGE
	bl	msg_get_buf
	mov	r7, r0
	bl	assert
	mov	r1, r7
	ldr	r2, [fp, #12]
	mov	r0, r4
	bl	safe_read_in
	mov	r3, #0
	ldr	r2, [fp, #12]
	mov	r1, #1
	strb	r3, [r7, r2]
	ldr	r0, [r5]
	bl	RETURN
	ldr	r7, [fp, #-60]
	b	.L5
.L57:
	ldr	r5, .L63+20
.L5:
	cmp	r7, #8
	ble	.L3
	ldr	r8, [fp, #-64]
	mov	r2, #9
	mov	r0, r8
	ldr	r1, .L63+44
	bl	strncmp
	cmp	r7, #1000
	movge	r3, #0
	movlt	r3, #1
	cmp	r0, #0
	movne	r3, #0
	cmp	r3, #0
	beq	.L3
	ldrb	r3, [r8, #9]	@ zero_extendqisi2
	cmp	r3, #40
	bne	.L10
	add	r3, r8, r7
	ldrb	r3, [r3, #-1]	@ zero_extendqisi2
	cmp	r3, #41
	beq	.L11
.L10:
	mvn	r1, #1
	ldr	r0, [r5]
	bl	RETURN
.L11:
	ldr	r3, [r6]
	sub	r7, r7, #11
	cmp	r3, #2
	ldr	r3, .L63+48
	ldr	r9, [r3]
	add	r3, r8, #10
	str	r3, [fp, #-80]
	bgt	.L62
.L12:
	cmp	r7, #0
	ble	.L26
	add	r3, r8, #9
	mov	ip, #0
	mov	r8, r7
	b	.L14
.L15:
	add	ip, ip, #1
	cmp	ip, r7
	strb	r2, [r9], #1
	beq	.L13
.L14:
	ldrb	r2, [r3, #1]!	@ zero_extendqisi2
	mov	r1, ip
	cmp	r2, #44
	bne	.L15
	mov	r3, #0
	strb	r3, [r9]
	ldr	r3, [r6]
	cmp	r3, #2
	movle	r8, ip
	ble	.L17
.L24:
	ldr	r3, .L63+8
	ldr	lr, [fp, #-80]
	ldr	r0, [r3]
	add	r1, r1, #1
	ldr	r3, .L63+48
	add	r1, lr, r1
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	str	r1, [sp]
	ldr	r1, .L63+52
	mov	r8, ip
	bl	fprintf
.L17:
	ldr	r9, .L63+56
	str	sp, [fp, #-84]
	ldr	r2, [r9]
	lsl	r3, r2, #2
	sub	r3, r3, #1
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r3, sp, #8
	cmp	r2, #2
	str	r3, [fp, #-72]
	ble	.L23
	mov	r6, #2
	str	r5, [fp, #-76]
	ldr	r10, .L63+60
	mov	r5, r8
	mov	r8, r7
	ldr	r7, [fp, #-80]
	str	r4, [fp, #-88]
.L18:
	mvn	r3, #0
	add	r4, r5, #1
	add	r0, r7, r4
	sub	r2, fp, #56
	sub	r1, fp, #52
	str	r3, [fp, #-56]
	bl	read_long
	cmp	r0, #0
	ble	.L19
	ldr	r2, [fp, #-56]
	add	r4, r4, r2
	cmp	r4, r8
	beq	.L20
	add	r1, r7, r2
	add	r1, r1, r5
	ldrb	r1, [r1, #1]	@ zero_extendqisi2
	cmp	r1, #44
	beq	.L20
.L19:
	ldr	r3, [fp, #-76]
	mvn	r1, #1
	ldr	r0, [r3]
	bl	RETURN
	ldr	r2, [fp, #-56]
.L20:
	ldr	r1, [r10]
	ldr	r3, [fp, #-72]
	ldr	r1, [r1, r6, lsl #2]
	add	r2, r2, #1
	cmp	r1, #0
	ldr	r0, [fp, #-52]
	ldr	ip, [fp, #-48]
	add	r5, r5, r2
	lsl	r2, r6, #2
	addne	r2, r3, r2
	stmdbne	r2, {r0, ip}
	add	r1, r1, #1
	ldr	r2, [r9]
	sub	lr, r6, #2
	add	r6, r6, r1
	streq	r0, [r3, lr, lsl #2]
	cmp	r2, r6
	bgt	.L18
	ldr	r4, [fp, #-88]
	ldr	r5, [fp, #-76]
.L23:
	ldr	r6, .L63+64
	ldr	r2, [fp, #12]
	ldr	r1, [r6]
	mov	r0, r4
	bl	safe_read_in
	mov	r2, #0
	ldr	r3, [r6]
	ldr	r0, [fp, #12]
	ldr	r1, [fp, #-72]
	strb	r2, [r3, r0]
	ldr	r3, .L63+48
	ldr	r2, [r6]
	ldr	r0, [r3]
	bl	do_add_event
	mov	r1, r0
	ldr	r0, [r5]
	bl	RETURN
	ldr	sp, [fp, #-84]
	b	.L3
.L26:
	mov	r8, #0
.L13:
	mov	r3, #0
	strb	r3, [r9]
	ldr	r3, [r6]
	cmp	r7, r8
	cmpne	r3, #2
	ble	.L17
	mov	r1, r8
	mov	ip, r8
	b	.L24
.L62:
	ldr	r2, .L63+8
	ldr	r1, .L63+68
	ldr	r0, [r2]
	mov	r2, r7
	bl	fprintf
	b	.L12
.L61:
	ldr	r3, .L63+8
	ldr	r1, .L63+72
	ldr	r0, [r3]
	bl	fprintf
	mvn	r1, #1
	ldr	r0, [r5]
	bl	RETURN
	b	.L9
.L60:
	bl	__stack_chk_fail
.L64:
	.align	2
.L63:
	.word	verbosity
	.word	.LC8
	.word	stderr
	.word	.LC0
	.word	MAX_VALUE_LEN
	.word	set
	.word	write_only
	.word	.LC1
	.word	MAX_QUERY_LEN
	.word	.LC2
	.word	.LC3
	.word	.LC5
	.word	stats_buff
	.word	.LC7
	.word	FN
	.word	std_t
	.word	buf
	.word	.LC6
	.word	.LC4
	.size	memcache_store, .-memcache_store
	.comm	write_only,4,4
	.comm	verbosity,4,4
	.comm	stderr,4,4
	.comm	std_t,4,4
	.comm	stats_buff,4,4
	.comm	set,4,4
	.comm	buf,4,4
	.comm	MAX_VALUE_LEN,4,4
	.comm	MAX_QUERY_LEN,4,4
	.comm	INIT,4,4
	.comm	FN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
