// File: /workspace/github_cpp_makefile_star2_O1/QZzcoder[P]LiveChat/server.cpp
// Function: updateTime(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool updateTime(string name){
    string sql = "update User set logofftime = "+to_string(timeStamp())+" where name =\""+name+"\";";
    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);
    }
    if(!mysql_query(&mysql_conn,sql.c_str())){
        return true;
    }
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x518, %rsp            # imm = 0x518
movq %rdi, %rbx
callq 0x77fc
movq %rax, %r15
movq %rax, %r14
negq %r14
cmovsq %rax, %r14
movl $0x1, %r12d
cmpq $0xa, %r14
jb 0x4451
movl $0x4, %r12d
movabsq $0x346dc5d63886594b, %rsi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x4448
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x444e
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x4451
movq %rcx, %rax
mulq %rsi
shrq $0xb, %rdx
addl $0x4, %r12d
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x4410
addl $-0x3, %r12d
jmp 0x4451
addl $-0x2, %r12d
jmp 0x4451
decl %r12d
shrq $0x3f, %r15
leal (%r15,%r12), %esi
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x68(%rbp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x3380
addq (%r13), %r15
movq %r15, %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x6492
leaq 0x3c3c(%rip), %rcx      # 0x80c7
movl $0x1d, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3350
leaq -0x78(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x44c4
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x44cb
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq -0x88(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3bf5(%rip), %rsi      # 0x80e5
callq 0x34d0
leaq -0x98(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4522
movq %rdx, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0x4529
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq -0xa8(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x30c0
leaq -0x520(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4580
movq %rdx, -0x530(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x520(%rbp)
jmp 0x4588
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq -0x530(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3abe(%rip), %rsi      # 0x806b
callq 0x34d0
leaq -0x38(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x45d7
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x45df
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x530(%rbp), %rdi
cmpq %r13, %rdi
je 0x4607
callq 0x32b0
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x4618
callq 0x32b0
movq -0x88(%rbp), %rdi
cmpq %r14, %rdi
je 0x4629
callq 0x32b0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x463b
callq 0x32b0
leaq -0x530(%rbp), %rdi
callq 0x3130
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
leaq 0x39cb(%rip), %rsi      # 0x8020
leaq 0x39ce(%rip), %rdx      # 0x802a
leaq 0x6c25(%rip), %rcx      # 0xb288
leaq 0x39c5(%rip), %r8       # 0x802f
leaq -0x530(%rbp), %rdi
xorl %r9d, %r9d
callq 0x3170
testq %rax, %rax
je 0x46b5
movq -0x48(%rbp), %rsi
leaq -0x530(%rbp), %rdi
callq 0x31d0
movl %eax, %ebx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x469e
callq 0x32b0
testl %ebx, %ebx
sete %al
addq $0x518, %rsp            # imm = 0x518
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x691c(%rip), %rdi      # 0xafd8
leaq 0x3971(%rip), %rsi      # 0x8034
callq 0x32e0
movl $0x1, %edi
callq 0x3390
movq %rax, %rbx
movq -0x530(%rbp), %rdi
cmpq %r13, %rdi
je 0x46eb
callq 0x32b0
jmp 0x46eb
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x4701
callq 0x32b0
jmp 0x4701
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r14, %rdi
je 0x4717
callq 0x32b0
jmp 0x4717
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x4729
callq 0x32b0
movq %rbx, %rdi
callq 0x3480
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
jne 0x4724
jmp 0x4729