// File: /workspace/github_c_makefile_star2_O2/winton[P]redis_parse/redis_parse.c
// Function: hash_add_or_update
bool hash_add_or_update(int query_index, char *record) {
	if (!record)
		return false;
	else {
		HASH_FIND_STR(queries[query_index].hash, record, hash_record);
		if (hash_record) {
			hash_record->count++;
		} else {
			hash_record = (struct hash_struct*)malloc(sizeof(struct hash_struct));
			hash_record->field = record;
			hash_record->count = 1;
			HASH_ADD_KEYPTR(hh, queries[query_index].hash, hash_record->field, strlen(hash_record->field), hash_record);
		}
		return true;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
testq %rsi, %rsi
je 0x3181
andq $0x0, 0x84a8(%rip)      # 0xaeb0
movslq %edi, %rax
imulq $0x48, %rax, %r15
leaq 0x687a(%rip), %rax      # 0x9290
movq 0x40(%r15,%rax), %r12
testq %r12, %r12
je 0x2cc2
movq %r15, 0x8(%rsp)
movq %rbx, %rdi
callq 0x20e0
leaq 0xb(%rbx), %rcx
movl $0xfeedbeef, %edx       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
movl %eax, %r8d
movl $0x9e3779b9, %edi       # imm = 0x9E3779B9
cmpl $0xc, %r8d
jb 0x2b57
movsbl -0xb(%rcx), %r10d
movsbl -0xa(%rcx), %r9d
shll $0x8, %r9d
movsbl -0x9(%rcx), %ebp
shll $0x10, %ebp
movzbl -0x8(%rcx), %r11d
shll $0x18, %r11d
addl %ebp, %r11d
movsbl -0x7(%rcx), %ebp
movsbl -0x6(%rcx), %r14d
shll $0x8, %r14d
movsbl -0x5(%rcx), %r13d
shll $0x10, %r13d
movzbl -0x4(%rcx), %r15d
shll $0x18, %r15d
addl %r13d, %r15d
addl %ebp, %esi
addl %r14d, %esi
addl %r15d, %esi
movsbl -0x3(%rcx), %ebp
movsbl -0x2(%rcx), %r14d
shll $0x8, %r14d
movsbl -0x1(%rcx), %r15d
shll $0x10, %r15d
movzbl (%rcx), %r13d
shll $0x18, %r13d
addl %r15d, %r13d
addl %ebp, %edx
addl %r14d, %edx
addl %r13d, %edx
addl %r10d, %edi
addl %r9d, %edi
addl %r11d, %edi
subl %esi, %edi
subl %edx, %edi
movl %edx, %r9d
shrl $0xd, %r9d
xorl %edi, %r9d
subl %edx, %esi
subl %r9d, %esi
movl %r9d, %edi
shll $0x8, %edi
xorl %esi, %edi
subl %r9d, %edx
subl %edi, %edx
movl %edi, %esi
shrl $0xd, %esi
xorl %edx, %esi
subl %edi, %r9d
subl %esi, %r9d
movl %esi, %edx
shrl $0xc, %edx
xorl %r9d, %edx
subl %esi, %edi
subl %edx, %edi
movl %edx, %r9d
shll $0x10, %r9d
xorl %edi, %r9d
subl %edx, %esi
subl %r9d, %esi
movl %r9d, %r10d
shrl $0x5, %r10d
xorl %esi, %r10d
subl %r9d, %edx
subl %r10d, %edx
movl %r10d, %edi
shrl $0x3, %edi
xorl %edx, %edi
subl %r10d, %r9d
subl %edi, %r9d
movl %edi, %esi
shll $0xa, %esi
xorl %r9d, %esi
subl %edi, %r10d
subl %esi, %r10d
movl %esi, %edx
shrl $0xf, %edx
xorl %r10d, %edx
addl $-0xc, %r8d
addq $0xc, %rcx
jmp 0x2a47
addl %eax, %edx
decl %r8d
cmpl $0xa, %r8d
ja 0x31a0
leaq 0x3497(%rip), %rax      # 0x6004
movslq (%rax,%r8,4), %r8
addq %rax, %r8
movq 0x8(%rsp), %r15
jmpq *%r8
movzbl -0x1(%rcx), %eax
shll $0x18, %eax
addl %edx, %eax
movl %eax, %edx
movsbl -0x2(%rcx), %eax
shll $0x10, %eax
addl %edx, %eax
movl %eax, %edx
movsbl -0x3(%rcx), %eax
shll $0x8, %eax
addl %edx, %eax
movl %eax, %edx
movzbl -0x4(%rcx), %eax
shll $0x18, %eax
addl %esi, %eax
movl %eax, %esi
movsbl -0x5(%rcx), %eax
shll $0x10, %eax
addl %esi, %eax
movl %eax, %esi
movsbl -0x6(%rcx), %eax
shll $0x8, %eax
addl %esi, %eax
movl %eax, %esi
movsbl -0x7(%rcx), %eax
addl %esi, %eax
movl %eax, %esi
movzbl -0x8(%rcx), %eax
shll $0x18, %eax
addl %edi, %eax
movl %eax, %edi
movsbl -0x9(%rcx), %eax
shll $0x10, %eax
addl %edi, %eax
movl %eax, %edi
movsbl -0xa(%rcx), %eax
shll $0x8, %eax
addl %edi, %eax
movl %eax, %edi
movsbl -0xb(%rcx), %eax
addl %edi, %eax
movl %eax, %edi
subl %esi, %edi
subl %edx, %edi
movl %edx, %eax
shrl $0xd, %eax
xorl %edi, %eax
subl %edx, %esi
subl %eax, %esi
movl %eax, %ecx
shll $0x8, %ecx
xorl %esi, %ecx
subl %eax, %edx
subl %ecx, %edx
movl %ecx, %esi
shrl $0xd, %esi
xorl %edx, %esi
subl %ecx, %eax
subl %esi, %eax
movl %esi, %edx
shrl $0xc, %edx
xorl %eax, %edx
subl %esi, %ecx
subl %edx, %ecx
movl %edx, %eax
shll $0x10, %eax
xorl %ecx, %eax
subl %edx, %esi
subl %eax, %esi
movl %eax, %ecx
shrl $0x5, %ecx
xorl %esi, %ecx
subl %eax, %edx
subl %ecx, %edx
movl %ecx, %esi
shrl $0x3, %esi
xorl %edx, %esi
subl %ecx, %eax
subl %esi, %eax
movl %esi, %edx
shll $0xa, %edx
xorl %eax, %edx
addl %edx, %esi
subl %esi, %ecx
shrl $0xf, %edx
xorl %ecx, %edx
movq 0x10(%r12), %rbp
movl 0x8(%rbp), %eax
decl %eax
andl %edx, %eax
movq (%rbp), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %r13
testq %r13, %r13
je 0x2c73
subq 0x20(%rbp), %r13
jmp 0x2cb6
xorl %r13d, %r13d
jmp 0x2cb6
movl 0x40(%r13), %r14d
movq %rbx, %rdi
callq 0x20e0
cmpq %r14, %rax
jne 0x2ca0
movq 0x38(%r13), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2200
testl %eax, %eax
je 0x2f03
movq 0x30(%r13), %rax
movl $0x0, %r13d
testq %rax, %rax
je 0x2cb6
subq 0x20(%rbp), %rax
movq %rax, %r13
movq %r13, 0x81f3(%rip)      # 0xaeb0
testq %r13, %r13
jne 0x2c78
pushq $0x48
popq %rdi
callq 0x21f0
movq %rax, %r14
movq %rax, 0x81dc(%rip)      # 0xaeb0
movq %rbx, (%rax)
movl $0x1, 0x8(%rax)
andq $0x0, 0x20(%rax)
movq %rbx, 0x38(%rax)
movq %rbx, %rdi
callq 0x20e0
movl %eax, 0x40(%r14)
testq %r12, %r12
je 0x2d1c
movq %r12, 0x10(%rsp)
movq 0x10(%r12), %r15
movq 0x18(%r15), %rax
movq %r14, 0x10(%rax)
subq 0x20(%r15), %rax
movq %rax, 0x18(%r14)
leaq 0x10(%r14), %rax
movq %rax, 0x18(%r15)
jmp 0x2d91
leaq 0x656d(%rip), %rax      # 0x9290
addq %r15, %rax
addq $0x40, %rax
movq %r14, (%rax)
andq $0x0, 0x18(%r14)
pushq $0x1
popq %rdi
pushq $0x40
popq %rsi
callq 0x21b0
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x31aa
movq %rax, %r15
leaq 0x10(%r14), %rax
movq %rax, 0x18(%r15)
movabsq $0x500000020, %rax      # imm = 0x500000020
movq %rax, 0x8(%r15)
movq $0x10, 0x20(%r15)
pushq $0x1
popq %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x21b0
movq %rax, (%r15)
testq %rax, %rax
je 0x31aa
movl $0xa0111fe1, 0x38(%r15) # imm = 0xA0111FE1
movq %r14, 0x10(%rsp)
incl 0x10(%r15)
movq %r14, %rax
addq $0x10, %rax
movq %rax, 0x8(%rsp)
movq %r15, 0x10(%r14)
movq %rbx, %rdi
callq 0x20e0
leaq 0xb(%rbx), %rcx
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
movl $0xfeedbeef, %edi       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %edx       # imm = 0x9E3779B9
movl %eax, %r8d
cmpl $0xc, %r8d
jb 0x2ed4
movsbl -0xb(%rcx), %r10d
movsbl -0xa(%rcx), %r9d
shll $0x8, %r9d
movsbl -0x9(%rcx), %ebp
shll $0x10, %ebp
movzbl -0x8(%rcx), %r11d
shll $0x18, %r11d
addl %ebp, %r11d
movsbl -0x7(%rcx), %ebp
movsbl -0x6(%rcx), %r15d
shll $0x8, %r15d
movsbl -0x5(%rcx), %r12d
shll $0x10, %r12d
movzbl -0x4(%rcx), %r13d
shll $0x18, %r13d
addl %r12d, %r13d
addl %ebp, %edx
addl %r15d, %edx
addl %r13d, %edx
movsbl -0x3(%rcx), %ebp
movsbl -0x2(%rcx), %r12d
shll $0x8, %r12d
addl %ebp, %r12d
movsbl -0x1(%rcx), %r15d
shll $0x10, %r15d
movzbl (%rcx), %ebp
shll $0x18, %ebp
addl %edi, %r15d
addl %r12d, %r15d
addl %ebp, %r15d
addl %r10d, %esi
addl %r9d, %esi
addl %r11d, %esi
subl %edx, %esi
subl %r15d, %esi
movl %r15d, %edi
shrl $0xd, %edi
xorl %esi, %edi
subl %r15d, %edx
subl %edi, %edx
movl %edi, %esi
shll $0x8, %esi
xorl %edx, %esi
subl %edi, %r15d
subl %esi, %r15d
movl %esi, %edx
shrl $0xd, %edx
xorl %r15d, %edx
subl %esi, %edi
subl %edx, %edi
movl %edx, %r9d
shrl $0xc, %r9d
xorl %edi, %r9d
subl %edx, %esi
subl %r9d, %esi
movl %r9d, %edi
shll $0x10, %edi
xorl %esi, %edi
subl %r9d, %edx
subl %edi, %edx
movl %edi, %r10d
shrl $0x5, %r10d
xorl %edx, %r10d
subl %edi, %r9d
subl %r10d, %r9d
movl %r10d, %esi
shrl $0x3, %esi
xorl %r9d, %esi
subl %r10d, %edi
subl %esi, %edi
movl %esi, %edx
shll $0xa, %edx
xorl %edi, %edx
subl %esi, %r10d
subl %edx, %r10d
movl %edx, %edi
shrl $0xf, %edi
xorl %r10d, %edi
movl %edi, 0x44(%r14)
addl $-0xc, %r8d
addq $0xc, %rcx
jmp 0x2dc3
addl %eax, %edi
decl %r8d
cmpl $0xa, %r8d
movq 0x10(%rsp), %r9
ja 0x3196
leaq 0x3141(%rip), %rax      # 0x6030
movslq (%rax,%r8,4), %r8
addq %rax, %r8
jmpq *%r8
movq 0x8(%rsp), %r8
jmp 0x2fb8
incl 0x8(%r13)
jmp 0x3181
movq 0x8(%rsp), %r8
jmp 0x2f8f
movq 0x8(%rsp), %r8
jmp 0x2fa2
movq 0x8(%rsp), %r8
jmp 0x2f97
movq 0x8(%rsp), %r8
jmp 0x2f6e
movq 0x8(%rsp), %r8
jmp 0x2fad
movq 0x8(%rsp), %r8
jmp 0x2f84
movq 0x8(%rsp), %r8
jmp 0x2f79
movzbl -0x1(%rcx), %eax
shll $0x18, %eax
addl %edi, %eax
movl %eax, 0x44(%r14)
movl %eax, %edi
movsbl -0x2(%rcx), %eax
shll $0x10, %eax
addl %edi, %eax
movl %eax, %edi
movq 0x8(%rsp), %r8
movsbl -0x3(%rcx), %eax
shll $0x8, %eax
addl %edi, %eax
movl %eax, 0x44(%r14)
movl %eax, %edi
movzbl -0x4(%rcx), %eax
shll $0x18, %eax
addl %edx, %eax
movl %eax, %edx
movsbl -0x5(%rcx), %eax
shll $0x10, %eax
addl %edx, %eax
movl %eax, %edx
movsbl -0x6(%rcx), %eax
shll $0x8, %eax
addl %edx, %eax
movl %eax, %edx
movsbl -0x7(%rcx), %eax
addl %edx, %eax
movl %eax, %edx
movzbl -0x8(%rcx), %eax
shll $0x18, %eax
addl %esi, %eax
movl %eax, %esi
movsbl -0x9(%rcx), %eax
shll $0x10, %eax
addl %esi, %eax
movl %eax, %esi
movsbl -0xa(%rcx), %eax
shll $0x8, %eax
addl %esi, %eax
movl %eax, %esi
movsbl -0xb(%rcx), %eax
addl %esi, %eax
movl %eax, %esi
subl %edx, %esi
subl %edi, %esi
movl %edi, %eax
shrl $0xd, %eax
xorl %esi, %eax
subl %edi, %edx
subl %eax, %edx
movl %eax, %ecx
shll $0x8, %ecx
xorl %edx, %ecx
subl %eax, %edi
subl %ecx, %edi
movl %ecx, %edx
shrl $0xd, %edx
xorl %edi, %edx
subl %ecx, %eax
subl %edx, %eax
movl %edx, %esi
shrl $0xc, %esi
xorl %eax, %esi
subl %edx, %ecx
subl %esi, %ecx
movl %esi, %eax
shll $0x10, %eax
xorl %ecx, %eax
subl %esi, %edx
subl %eax, %edx
movl %eax, %ecx
shrl $0x5, %ecx
xorl %edx, %ecx
subl %eax, %esi
subl %ecx, %esi
movl %ecx, %edx
shrl $0x3, %edx
xorl %esi, %edx
subl %ecx, %eax
subl %edx, %eax
movl %edx, %esi
shll $0xa, %esi
xorl %eax, %esi
addl %esi, %edx
subl %edx, %ecx
shrl $0xf, %esi
xorl %ecx, %esi
movl %esi, 0x44(%r14)
movq 0x10(%r9), %rax
movl 0x8(%rax), %edx
decl %edx
andl %esi, %edx
movq (%rax), %rsi
shlq $0x4, %rdx
leaq (%rsi,%rdx), %rcx
movl 0x8(%rsi,%rdx), %eax
incl %eax
movl %eax, 0x8(%rsi,%rdx)
movq (%rsi,%rdx), %rdx
movq %rdx, 0x30(%r14)
andq $0x0, 0x28(%r14)
testq %rdx, %rdx
je 0x305b
movq %r8, 0x18(%rdx)
movq %r8, (%rcx)
imull $0xa, 0xc(%rcx), %ecx
addl $0xa, %ecx
cmpl %ecx, %eax
jb 0x3181
movq 0x7e3c(%rip), %rax      # 0xaeb0
movq 0x10(%rax), %r15
cmpl $0x1, 0x34(%r15)
je 0x3181
movl 0x8(%r15), %r12d
leal (%r12,%r12), %r13d
movq %r13, %rsi
shlq $0x4, %rsi
pushq $0x1
popq %rdi
callq 0x21b0
testq %rax, %rax
je 0x31aa
movq %rax, %r14
movl 0x10(%r15), %esi
movb 0xc(%r15), %cl
incb %cl
decl %r13d
movl %r13d, %eax
andl %esi, %eax
shrl %cl, %esi
cmpl $0x1, %eax
sbbl $-0x1, %esi
movl %esi, 0x28(%r15)
andl $0x0, 0x2c(%r15)
movq (%r15), %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
cmpq %r12, %r8
je 0x3139
movq %r8, %rax
shlq $0x4, %rax
movq (%rdi,%rax), %r9
testq %r9, %r9
je 0x3134
movq 0x20(%r9), %r10
movl 0x34(%r9), %edx
andl %r13d, %edx
shlq $0x4, %rdx
leaq (%r14,%rdx), %r11
movl 0x8(%r14,%rdx), %eax
incl %eax
movl %eax, 0x8(%r14,%rdx)
cmpl %esi, %eax
jbe 0x3117
incl %ecx
movl %ecx, 0x2c(%r15)
xorl %edx, %edx
divl %esi
movl %eax, 0xc(%r11)
andq $0x0, 0x18(%r9)
movq (%r11), %rax
movq %rax, 0x20(%r9)
testq %rax, %rax
je 0x312c
movq %r9, 0x18(%rax)
movq %r9, (%r11)
movq %r10, %r9
jmp 0x30e1
incq %r8
jmp 0x30d1
callq 0x2040
movq 0x7d6b(%rip), %rax      # 0xaeb0
movq 0x10(%rax), %rax
shll 0x8(%rax)
incl 0xc(%rax)
movq %r14, (%rax)
movq 0x7d57(%rip), %rax      # 0xaeb0
movq 0x10(%rax), %rax
movl 0x10(%rax), %ecx
shrl %ecx
cmpl %ecx, 0x2c(%rax)
jbe 0x317d
movl 0x30(%rax), %ecx
incl %ecx
movl %ecx, 0x30(%rax)
cmpl $0x2, %ecx
jb 0x3181
movl $0x1, 0x34(%rax)
jmp 0x3181
andl $0x0, 0x30(%rax)
testq %rbx, %rbx
setne %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %r8
jmp 0x2fc0
movq 0x8(%rsp), %r15
jmp 0x2bef
pushq $-0x1
popq %rdi
callq 0x2250