// File: /workspace/github_cpp_makefile_star2_O1/QZzcoder[P]LiveChat/server.cpp
// Function: storeMessage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool storeMessage(string origin,string target,string msg){
    MYSQL mysql_conn;
    MYSQL_RES * ptr_res;
    MYSQL_ROW result_row;
    mysql_init(&mysql_conn);
    if(!mysql_real_connect(&mysql_conn,"localhost","root",dbpassword,"Chat",0,NULL,0)){
        cout<<"mysql error";
        exit(1);
    }
    string sql = "insert into message values("+to_string(timeStamp())
                +",\'"+origin+"\',\'"+target+"\',\'"+msg+"\');";

    return !mysql_query(&mysql_conn,sql.c_str());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x5c8, %rsp            # imm = 0x5C8
movq %rdx, %r14
movq %rsi, -0x30(%rbp)
movq %rdi, %r15
leaq -0x5e0(%rbp), %rbx
movq %rbx, %rdi
callq 0x3130
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
leaq 0x41ea(%rip), %rsi      # 0x8020
leaq 0x41ed(%rip), %rdx      # 0x802a
leaq 0x7444(%rip), %rcx      # 0xb288
leaq 0x41e4(%rip), %r8       # 0x802f
movq %rbx, %rdi
xorl %r9d, %r9d
callq 0x3170
testq %rax, %rax
je 0x42c3
callq 0x77fc
movq %rax, %r13
movq %rax, %r12
negq %r12
cmovsq %rax, %r12
movl $0x1, %ebx
cmpq $0xa, %r12
jb 0x3ecb
movl $0x4, %ebx
movabsq $0x346dc5d63886594b, %rsi # imm = 0x346DC5D63886594B
movq %r12, %rcx
cmpq $0x63, %rcx
jbe 0x3ec4
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x3ec9
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x3ecb
movq %rcx, %rax
mulq %rsi
shrq $0xb, %rdx
addl $0x4, %ebx
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x3e8e
addl $-0x3, %ebx
jmp 0x3ecb
addl $-0x2, %ebx
jmp 0x3ecb
decl %ebx
movq %r14, -0x38(%rbp)
shrq $0x3f, %r13
leal (%rbx,%r13), %esi
leaq -0xc8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0xd8(%rbp), %r14
movq %r14, %rdi
movl $0x2d, %edx
callq 0x3380
addq (%r14), %r13
movq %r13, %rdi
movl %ebx, %esi
movq %r12, %rdx
callq 0x6492
leaq 0x4196(%rip), %rcx      # 0x80a3
movl $0x1b, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3350
leaq -0xe8(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3f4c
movq %rdx, -0xf8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xe8(%rbp)
jmp 0x3f54
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq -0xf8(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x4147(%rip), %rsi      # 0x80c0
callq 0x34d0
leaq -0x48(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3fa2
movq %rdx, -0x58(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x48(%rbp)
jmp 0x3fa8
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0x58(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
callq 0x30c0
leaq -0x68(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3ff3
movq %rdx, -0x78(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x68(%rbp)
jmp 0x3ff9
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0x78(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x40a4(%rip), %rsi      # 0x80bf
callq 0x34d0
leaq -0x88(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x404d
movq %rdx, -0x98(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x88(%rbp)
jmp 0x4053
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0x98(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x30c0
leaq -0x108(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x40ae
movq %rdx, -0x118(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x108(%rbp)
jmp 0x40b4
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0x118(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3fe6(%rip), %rsi      # 0x80bf
callq 0x34d0
leaq -0x128(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x410b
movq %rdx, -0x138(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x128(%rbp)
jmp 0x4112
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq -0x138(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x38(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x30c0
leaq -0x148(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x416d
movq %rdx, -0x158(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x148(%rbp)
jmp 0x4174
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq -0x158(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3f2a(%rip), %rsi      # 0x80c3
callq 0x34d0
leaq -0xa8(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x41cc
movq %rdx, -0xb8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xa8(%rbp)
jmp 0x41d4
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0xb0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x158(%rbp), %rdi
cmpq %r15, %rdi
je 0x41ff
callq 0x32b0
movq -0x138(%rbp), %rdi
cmpq %r14, %rdi
je 0x4210
callq 0x32b0
movq -0x118(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4221
callq 0x32b0
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x4239
callq 0x32b0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x424b
callq 0x32b0
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x425d
callq 0x32b0
movq -0xf8(%rbp), %rdi
cmpq %r13, %rdi
je 0x426e
callq 0x32b0
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x4286
callq 0x32b0
movq -0xb8(%rbp), %rsi
leaq -0x5e0(%rbp), %rdi
callq 0x31d0
movl %eax, %ebx
movq -0xb8(%rbp), %rdi
cmpq %r12, %rdi
je 0x42ac
callq 0x32b0
testl %ebx, %ebx
sete %al
addq $0x5c8, %rsp            # imm = 0x5C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x6d0e(%rip), %rdi      # 0xafd8
leaq 0x3d63(%rip), %rsi      # 0x8034
callq 0x32e0
movl $0x1, %edi
callq 0x3390
movq %rax, -0x30(%rbp)
movq -0xb8(%rbp), %rdi
cmpq %r12, %rdi
jne 0x43ba
jmp 0x43bf
movq %rax, -0x30(%rbp)
movq -0x158(%rbp), %rdi
cmpq %r15, %rdi
je 0x4314
callq 0x32b0
jmp 0x4314
movq %rax, -0x30(%rbp)
movq -0x138(%rbp), %rdi
cmpq %r14, %rdi
je 0x432b
callq 0x32b0
jmp 0x432b
movq %rax, -0x30(%rbp)
movq -0x118(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4342
callq 0x32b0
jmp 0x4342
movq %rax, -0x30(%rbp)
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x4360
callq 0x32b0
jmp 0x4360
movq %rax, -0x30(%rbp)
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x4378
callq 0x32b0
jmp 0x4378
movq %rax, -0x30(%rbp)
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x4390
callq 0x32b0
jmp 0x4390
movq %rax, -0x30(%rbp)
movq -0xf8(%rbp), %rdi
cmpq %r13, %rdi
je 0x43a7
callq 0x32b0
jmp 0x43a7
movq %rax, -0x30(%rbp)
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x43bf
callq 0x32b0
movq -0x30(%rbp), %rdi
callq 0x3480