// File: /workspace/github_cpp_makefile_star2_O1/tonymuu[P]distributed-kv-store/Application.cpp
// Function: Application::initTestKVPairs()
void Application::initTestKVPairs() {
	srand(time(NULL));
	int i;
	string key;
	key.clear();
	testKVPairs.clear();
	int alphanumLen = sizeof(alphanum) - 1;
	while ( testKVPairs.size() != NUMBER_OF_INSERTS ) {
		for ( i = 0; i < KEY_LENGTH; i++ ) {
			key.push_back(alphanum[rand()%alphanumLen]);
		}
		string value = "value" + to_string(rand()%NUMBER_OF_INSERTS);
		testKVPairs[key] = value;
		key.clear();
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
xorl %r13d, %r13d
xorl %edi, %edi
callq 0x3250
movl %eax, %edi
callq 0x3270
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x60(%rbx), %rdi
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %rdi, 0x70(%rsp)
callq 0xb716
movq %rbx, 0x68(%rsp)
cmpq $0x64, 0x88(%rbx)
je 0xb176
leaq 0x58(%rsp), %r15
leaq 0xd7d7(%rip), %rbx      # 0x187c0
leaq 0x8(%rsp), %r14
leaq 0x28(%rsp), %r12
callq 0x30a0
cltq
imulq $-0x7bdef7bd, %rax, %rcx # imm = 0x84210843
shrq $0x20, %rcx
addl %eax, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
sarl $0x5, %ecx
addl %edx, %ecx
movl %ecx, %edx
shll $0x6, %edx
addl %ecx, %ecx
subl %edx, %ecx
addl %eax, %ecx
movslq %ecx, %rax
movsbl (%rax,%rbx), %esi
movq %r14, %rdi
callq 0x3230
incl %r13d
cmpl $0x5, %r13d
jne 0xaff3
movq %rbx, %r14
callq 0x30a0
movslq %eax, %rbx
imulq $0x51eb851f, %rbx, %rax # imm = 0x51EB851F
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x25, %rax
addl %ecx, %eax
imull $0x64, %eax, %eax
subl %eax, %ebx
movl %ebx, %r13d
negl %r13d
cmovsl %ebx, %r13d
cmpl $0xa, %r13d
movl $0x2, %ebp
sbbl $0x0, %ebp
shrl $0x1f, %ebx
leal (%rbx,%rbp), %esi
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq %r12, %rdi
movl $0x2d, %edx
callq 0x3330
movl %ebx, %edi
addq 0x28(%rsp), %rdi
movl %ebp, %esi
movl %r13d, %edx
callq 0xb618
movl $0x5, %r8d
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0xd284(%rip), %rcx      # 0x18334
callq 0x3300
movq %r15, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq %r14, %rbx
je 0xb0db
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0xb0e2
movups (%rcx), %xmm0
movups %xmm0, (%r15)
leaq 0x8(%rsp), %r14
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xb11b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x70(%rsp), %rdi
movq %r14, %rsi
callq 0xb4c8
movq %rax, %rdi
leaq 0x48(%rsp), %rsi
callq 0x3160
movq $0x0, 0x10(%rsp)
movq 0x8(%rsp), %rax
movb $0x0, (%rax)
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xb15d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x68(%rsp), %rax
cmpq $0x64, 0x88(%rax)
movl $0x0, %r13d
jne 0xaff3
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xb192
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32c0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb1bc
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xb1db
movq 0x38(%rsp), %rsi
jmp 0xb1d3
movq %rax, %rbx
jmp 0xb1db
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xb1db
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xb1f7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32c0
movq %rbx, %rdi
callq 0x34b0
nop