// File: /workspace/github_c_makefile_star2_O3/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
pushq %rax
movq %rsi, %rbx
testq %rsi, %rsi
je 0x31b9
movq $0x0, 0x945e(%rip) # 0xbeb0
movslq %edi, %rax
leaq (%rax,%rax,8), %r12
leaq 0x7830(%rip), %rax      # 0xa290
movq 0x40(%rax,%r12,8), %r15
testq %r15, %r15
je 0x2cfe
movq %rbx, %rdi
callq 0x20e0
cmpl $0xc, %eax
jb 0x2ba1
movl $0x9e3779b9, %edi       # imm = 0x9E3779B9
movl $0xfeedbeef, %edx       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
movl %eax, %r8d
movq %rbx, %rcx
movsbl (%rcx), %r9d
addl %edi, %r9d
movsbl 0x1(%rcx), %r10d
shll $0x8, %r10d
addl %r9d, %r10d
movsbl 0x2(%rcx), %r9d
shll $0x10, %r9d
movzbl 0x3(%rcx), %edi
shll $0x18, %edi
addl %r9d, %edi
addl %r10d, %edi
movsbl 0x4(%rcx), %r9d
addl %esi, %r9d
movsbl 0x5(%rcx), %r10d
shll $0x8, %r10d
addl %r9d, %r10d
movsbl 0x6(%rcx), %r9d
shll $0x10, %r9d
movzbl 0x7(%rcx), %esi
shll $0x18, %esi
addl %r9d, %esi
addl %r10d, %esi
movsbl 0x8(%rcx), %r9d
addl %edx, %r9d
movsbl 0x9(%rcx), %r10d
shll $0x8, %r10d
addl %r9d, %r10d
movsbl 0xa(%rcx), %r9d
shll $0x10, %r9d
movzbl 0xb(%rcx), %edx
shll $0x18, %edx
addl %r9d, %edx
addl %r10d, %edx
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
addq $0xc, %rcx
addl $-0xc, %r8d
cmpl $0xb, %r8d
ja 0x2a94
jmp 0x2bb6
movl $0xfeedbeef, %edx       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
movq %rbx, %rcx
movl %eax, %r8d
movl $0x9e3779b9, %edi       # imm = 0x9E3779B9
addl %eax, %edx
decl %r8d
cmpl $0xa, %r8d
ja 0x2c48
leaq 0x4438(%rip), %rax      # 0x7004
movslq (%rax,%r8,4), %r8
addq %rax, %r8
jmpq *%r8
movzbl 0xa(%rcx), %eax
shll $0x18, %eax
addl %edx, %eax
movl %eax, %edx
movsbl 0x9(%rcx), %eax
shll $0x10, %eax
addl %edx, %eax
movl %eax, %edx
movsbl 0x8(%rcx), %eax
shll $0x8, %eax
addl %edx, %eax
movl %eax, %edx
movzbl 0x7(%rcx), %eax
shll $0x18, %eax
addl %esi, %eax
movl %eax, %esi
movsbl 0x6(%rcx), %eax
shll $0x10, %eax
addl %esi, %eax
movl %eax, %esi
movsbl 0x5(%rcx), %eax
shll $0x8, %eax
addl %esi, %eax
movl %eax, %esi
movsbl 0x4(%rcx), %eax
addl %esi, %eax
movl %eax, %esi
movzbl 0x3(%rcx), %eax
shll $0x18, %eax
addl %edi, %eax
movl %eax, %edi
movsbl 0x2(%rcx), %eax
shll $0x10, %eax
addl %edi, %eax
movl %eax, %edi
movsbl 0x1(%rcx), %eax
shll $0x8, %eax
addl %edi, %eax
movl %eax, %edi
movsbl (%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(%r15), %rbp
movl 0x8(%rbp), %eax
decl %eax
andl %edx, %eax
movq (%rbp), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %r13
testq %r13, %r13
je 0x2cfe
subq 0x20(%rbp), %r13
movq %r13, 0x91e0(%rip)      # 0xbeb0
movl 0x40(%r13), %r14d
movq %rbx, %rdi
callq 0x20e0
cmpq %r14, %rax
jne 0x2cf8
movq 0x38(%r13), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2200
testl %eax, %eax
je 0x31ac
movq 0x30(%r13), %r13
jmp 0x2cc0
leaq 0x758b(%rip), %rax      # 0xa290
leaq (%rax,%r12,8), %r12
addq $0x40, %r12
movl $0x48, %edi
callq 0x21f0
movq %rax, %r14
movq %rax, 0x918f(%rip)      # 0xbeb0
movq %rbx, (%rax)
movl $0x1, 0x8(%rax)
movq $0x0, 0x20(%rax)
movq %rbx, 0x38(%rax)
movq %rbx, %rdi
callq 0x20e0
movl %eax, 0x40(%r14)
testq %r15, %r15
je 0x2d6f
movq 0x10(%r15), %rax
movq 0x18(%rax), %rcx
movq %r14, 0x10(%rcx)
subq 0x20(%rax), %rcx
movq %rcx, 0x18(%r14)
leaq 0x10(%r14), %rcx
movq %rcx, 0x18(%rax)
movq (%r12), %r12
movq 0x10(%r12), %r15
jmp 0x2dde
movq %r14, (%r12)
movq $0x0, 0x18(%r14)
movl $0x1, %edi
movl $0x40, %esi
callq 0x21b0
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x31ce
movq %rax, %r15
leaq 0x10(%r14), %rax
movq %rax, 0x18(%r15)
movabsq $0x500000020, %rax      # imm = 0x500000020
movq %rax, 0x8(%r15)
movq $0x10, 0x20(%r15)
movl $0x1, %edi
movl $0x200, %esi            # imm = 0x200
callq 0x21b0
movq %rax, (%r15)
testq %rax, %rax
je 0x31ce
movl $0xa0111fe1, 0x38(%r15) # imm = 0xA0111FE1
movq %r14, %r12
incl 0x10(%r15)
movq %r15, 0x10(%r14)
movq %rbx, %rdi
callq 0x20e0
cmpl $0xc, %eax
jb 0x2f19
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
movl $0xfeedbeef, %edx       # imm = 0xFEEDBEEF
movq %rbx, %rcx
movl %eax, %r8d
movl $0x9e3779b9, %edi       # imm = 0x9E3779B9
movsbl (%rcx), %r9d
addl %edi, %r9d
movsbl 0x1(%rcx), %r10d
shll $0x8, %r10d
addl %r9d, %r10d
movsbl 0x2(%rcx), %r9d
shll $0x10, %r9d
movzbl 0x3(%rcx), %edi
shll $0x18, %edi
addl %r9d, %edi
addl %r10d, %edi
movsbl 0x4(%rcx), %r9d
addl %esi, %r9d
movsbl 0x5(%rcx), %r10d
shll $0x8, %r10d
addl %r9d, %r10d
movsbl 0x6(%rcx), %r9d
shll $0x10, %r9d
movzbl 0x7(%rcx), %esi
shll $0x18, %esi
addl %r9d, %esi
addl %r10d, %esi
movsbl 0x8(%rcx), %r9d
movsbl 0x9(%rcx), %r10d
shll $0x8, %r10d
addl %r9d, %r10d
movsbl 0xa(%rcx), %r9d
shll $0x10, %r9d
addl %edx, %r9d
addl %r10d, %r9d
movzbl 0xb(%rcx), %edx
shll $0x18, %edx
addl %r9d, %edx
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
addq $0xc, %rcx
addl $-0xc, %r8d
cmpl $0xb, %r8d
ja 0x2e0c
jmp 0x2f2e
movl $0x9e3779b9, %edi       # imm = 0x9E3779B9
movl $0xfeedbeef, %edx       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %esi       # imm = 0x9E3779B9
movl %eax, %r8d
movq %rbx, %rcx
addl %eax, %edx
movl %edx, 0x44(%r14)
decl %r8d
cmpl $0xa, %r8d
ja 0x2fd0
leaq 0x40e8(%rip), %rax      # 0x7030
movslq (%rax,%r8,4), %r8
addq %rax, %r8
jmpq *%r8
movzbl 0xa(%rcx), %eax
shll $0x18, %eax
addl %edx, %eax
movl %eax, 0x44(%r14)
movl %eax, %edx
movsbl 0x9(%rcx), %eax
shll $0x10, %eax
addl %edx, %eax
movl %eax, 0x44(%r14)
movl %eax, %edx
movsbl 0x8(%rcx), %eax
shll $0x8, %eax
addl %edx, %eax
movl %eax, 0x44(%r14)
movl %eax, %edx
movzbl 0x7(%rcx), %eax
shll $0x18, %eax
addl %esi, %eax
movl %eax, %esi
movsbl 0x6(%rcx), %eax
shll $0x10, %eax
addl %esi, %eax
movl %eax, %esi
movsbl 0x5(%rcx), %eax
shll $0x8, %eax
addl %esi, %eax
movl %eax, %esi
movsbl 0x4(%rcx), %eax
addl %esi, %eax
movl %eax, %esi
movzbl 0x3(%rcx), %eax
shll $0x18, %eax
addl %edi, %eax
movl %eax, %edi
movsbl 0x2(%rcx), %eax
shll $0x10, %eax
addl %edi, %eax
movl %eax, %edi
movsbl 0x1(%rcx), %eax
shll $0x8, %eax
addl %edi, %eax
movl %eax, %edi
movsbl (%rcx), %eax
addl %edi, %eax
movl %eax, %edi
movq %r14, %rax
addq $0x10, %rax
subl %esi, %edi
subl %edx, %edi
movl %edx, %ecx
shrl $0xd, %ecx
xorl %edi, %ecx
subl %edx, %esi
subl %ecx, %esi
movl %ecx, %edi
shll $0x8, %edi
xorl %esi, %edi
subl %ecx, %edx
subl %edi, %edx
movl %edi, %esi
shrl $0xd, %esi
xorl %edx, %esi
subl %edi, %ecx
subl %esi, %ecx
movl %esi, %edx
shrl $0xc, %edx
xorl %ecx, %edx
subl %esi, %edi
subl %edx, %edi
movl %edx, %ecx
shll $0x10, %ecx
xorl %edi, %ecx
subl %edx, %esi
subl %ecx, %esi
movl %ecx, %edi
shrl $0x5, %edi
xorl %esi, %edi
subl %ecx, %edx
subl %edi, %edx
movl %edi, %esi
shrl $0x3, %esi
xorl %edx, %esi
subl %edi, %ecx
subl %esi, %ecx
movl %esi, %edx
shll $0xa, %edx
xorl %ecx, %edx
addl %edx, %esi
subl %esi, %edi
shrl $0xf, %edx
xorl %edi, %edx
movl %edx, 0x44(%r14)
movq 0x10(%r12), %rcx
movl 0x8(%rcx), %esi
decl %esi
andl %edx, %esi
movq (%rcx), %rdi
shlq $0x4, %rsi
leaq (%rdi,%rsi), %rdx
movl 0x8(%rdi,%rsi), %ecx
incl %ecx
movl %ecx, 0x8(%rdi,%rsi)
movq (%rdi,%rsi), %rsi
movq %rsi, 0x30(%r14)
movq $0x0, 0x28(%r14)
testq %rsi, %rsi
je 0x3076
movq %rax, 0x18(%rsi)
movq %rax, (%rdx)
movl 0xc(%rdx), %eax
leal (%rax,%rax,4), %eax
leal 0xa(,%rax,2), %eax
cmpl %eax, %ecx
jb 0x31b9
movq 0x8e1b(%rip), %rax      # 0xbeb0
movq 0x10(%rax), %r15
cmpl $0x1, 0x34(%r15)
je 0x31b9
movl 0x8(%r15), %r12d
leal (%r12,%r12), %r13d
movq %r13, %rsi
shlq $0x4, %rsi
movl $0x1, %edi
callq 0x21b0
testq %rax, %rax
je 0x31ce
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)
movl $0x0, 0x2c(%r15)
movq (%r15), %rdi
testq %r12, %r12
je 0x3168
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %r8, %rax
shlq $0x4, %rax
movq (%rdi,%rax), %r9
testq %r9, %r9
je 0x3160
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 0x313d
incl %ecx
movl %ecx, 0x2c(%r15)
xorl %edx, %edx
divl %esi
movl %eax, 0xc(%r11)
movq $0x0, 0x18(%r9)
movq (%r11), %rax
movq %rax, 0x20(%r9)
testq %rax, %rax
je 0x3155
movq %r9, 0x18(%rax)
movq %r9, (%r11)
movq %r10, %r9
testq %r10, %r10
jne 0x310c
incq %r8
cmpq %r12, %r8
jne 0x30fc
callq 0x2040
movq 0x8d3c(%rip), %rax      # 0xbeb0
movq 0x10(%rax), %rax
shll 0x8(%rax)
incl 0xc(%rax)
movq %r14, (%rax)
movq 0x8d28(%rip), %rax      # 0xbeb0
movq 0x10(%rax), %rax
movl 0x10(%rax), %ecx
shrl %ecx
cmpl %ecx, 0x2c(%rax)
jbe 0x31b2
movl 0x30(%rax), %ecx
incl %ecx
movl %ecx, 0x30(%rax)
cmpl $0x2, %ecx
jb 0x31b9
movl $0x1, 0x34(%rax)
jmp 0x31b9
incl 0x8(%r13)
jmp 0x31b9
movl $0x0, 0x30(%rax)
testq %rbx, %rbx
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x2250