// File: /workspace/github_cpp_makefile_star2_O3/tonymuu[P]distributed-kv-store/MP2Node.cpp
// Function: MP2Node::handleCreateMessage(Message)
void MP2Node::handleCreateMessage(Message msg) {
    Message reply(msg.transID, memberNode->addr, REPLY, msg.key, msg.value, msg.replica);
    if (!createKeyValue(msg.key, msg.value, msg.replica)) {
        log->logCreateFail(&msg.fromAddr, false, msg.transID, msg.key, msg.value);
        reply.success = false;
    } else {
        log->logCreateSuccess(&msg.fromAddr, false, msg.transID, msg.key, msg.value);
        reply.success = true;
    }
    sendMessage(msg.fromAddr, reply);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rsi, %r14
movq %rdi, %rbx
movl 0x50(%rsi), %ebp
movq 0x50(%rdi), %rsi
addq $0x8, %rsi
leaq 0x12(%rsp), %rdi
callq 0xc8c4
leaq 0xc8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq 0xb8(%rsp), %rdi
callq 0x5a4e
leaq 0xa8(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x28(%r14), %rsi
movq 0x30(%r14), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x5a4e
movl 0x4(%r14), %eax
movl %eax, (%rsp)
leaq 0x118(%rsp), %rdi
leaq 0x12(%rsp), %rdx
leaq 0xb8(%rsp), %r8
leaq 0x98(%rsp), %r9
movl %ebp, %esi
movl $0x4, %ecx
callq 0x15c3a
movq 0x98(%rsp), %rdi
cmpq %r12, %rdi
je 0x112c6
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x112e3
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x32c0
leaq 0x88(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0x5a4e
leaq 0x68(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x28(%r14), %rsi
movq 0x30(%r14), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0x5a4e
movl 0x4(%r14), %ecx
leaq 0x78(%rsp), %rsi
leaq 0x58(%rsp), %rdx
movq %rbx, %rdi
callq 0x10822
movl %eax, %r13d
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x11353
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x1136d
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x68(%rbx), %r12
leaq 0x48(%r14), %r15
movl 0x50(%r14), %ebp
testb %r13b, %r13b
je 0x1140e
leaq 0xe8(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq 0xd8(%rsp), %rdi
callq 0x5a4e
leaq 0x28(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x28(%r14), %rsi
movq 0x30(%r14), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %rdi
callq 0x5a4e
leaq 0xd8(%rsp), %r8
leaq 0x18(%rsp), %r9
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
movl %ebp, %ecx
callq 0xbf68
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x113fc
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0xd8(%rsp), %rdi
movb $0x1, %bpl
movb $0x1, %al
jmp 0x11497
leaq 0x108(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq 0xf8(%rsp), %rdi
callq 0x5a4e
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x28(%r14), %rsi
movq 0x30(%r14), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0x5a4e
leaq 0xf8(%rsp), %r8
leaq 0x38(%rsp), %r9
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
movl %ebp, %ecx
callq 0xc322
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x11488
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0xf8(%rsp), %rdi
xorl %ebp, %ebp
movl $0x0, %eax
cmpq %r13, %rdi
je 0x114aa
movq (%r13), %rsi
incq %rsi
callq 0x32c0
movl %ebp, %eax
movb %al, 0x16c(%rsp)
leaq 0xc(%rsp), %rdi
movq %r15, %rsi
callq 0xc8c4
leaq 0x190(%rsp), %rdi
leaq 0x118(%rsp), %rsi
callq 0x15d5a
leaq 0xc(%rsp), %rsi
leaq 0x190(%rsp), %rdx
movq %rbx, %rdi
callq 0xfbc4
leaq 0x1f8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11509
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x32c0
leaq 0x1c8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1152a
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x32c0
leaq 0x1a8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1154b
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x32c0
leaq 0x180(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1156c
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x32c0
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1158d
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x32c0
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x115ae
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x32c0
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x11605
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0x11605
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x11623
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0x11623
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r13, %rdi
je 0x116d5
movq 0x108(%rsp), %rsi
jmp 0x11684
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r13, %rdi
je 0x116d5
movq 0xe8(%rsp), %rsi
jmp 0x11684
movq %rax, %rbx
leaq 0x190(%rsp), %rdi
callq 0x1263c
jmp 0x116d5
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x11672
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0x11672
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x116d5
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0x116d5
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r12, %rdi
je 0x116b3
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0x116b3
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x116e2
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0x116e2
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
callq 0x1263c
movq %rbx, %rdi
callq 0x34b0