// File: /workspace/github_cpp_makefile_star2_O1/QZzcoder[P]LiveChat/server.cpp
// Function: userCheck(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 userCheck(string name,string password){
    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 = "select * from User where name = \"" + name + "\" and password = "+password+";";
    if(!mysql_query(&mysql_conn,sql.c_str())){
        ptr_res = mysql_use_result(&mysql_conn);
        return mysql_fetch_row(ptr_res)!=NULL;
    }
    cout<<"query error"<<endl;
    mysql_close(&mysql_conn);
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x520, %rsp            # imm = 0x520
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x528(%rbp), %r15
movq %r15, %rdi
callq 0x3130
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
leaq 0x38ac(%rip), %rsi      # 0x8020
leaq 0x38af(%rip), %rdx      # 0x802a
leaq 0x6b06(%rip), %rcx      # 0xb288
leaq 0x38a6(%rip), %r8       # 0x802f
movq %r15, %rdi
xorl %r9d, %r9d
callq 0x3170
testq %rax, %rax
je 0x4982
leaq 0x3950(%rip), %rsi      # 0x80f4
leaq -0xa0(%rbp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x5fc0
leaq 0x3959(%rip), %rsi      # 0x8116
movq %r15, %rdi
callq 0x34d0
leaq -0x50(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x47e9
movq %rdx, -0x60(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x50(%rbp)
jmp 0x47f0
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq -0x60(%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 -0x70(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x483c
movq %rdx, -0x80(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x70(%rbp)
jmp 0x4844
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq -0x80(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3806(%rip), %rsi      # 0x806c
callq 0x34d0
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x488f
movq %rdx, -0x40(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x30(%rbp)
jmp 0x4896
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, -0x38(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x48bb
callq 0x32b0
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x48c9
callq 0x32b0
leaq -0x90(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x48de
callq 0x32b0
movq -0x40(%rbp), %rsi
leaq -0x528(%rbp), %rdi
callq 0x31d0
testl %eax, %eax
je 0x4948
movq 0x66df(%rip), %rbx      # 0xafd8
leaq 0x3828(%rip), %rsi      # 0x8128
movl $0xb, %edx
movq %rbx, %rdi
callq 0x3360
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq 0x66ad(%rip), %rdi      # 0xafd8
callq 0x3030
movq %rax, %rdi
callq 0x31f0
leaq -0x528(%rbp), %rdi
callq 0x33b0
xorl %ebx, %ebx
jmp 0x4962
leaq -0x528(%rbp), %rdi
callq 0x34c0
movq %rax, %rdi
callq 0x3310
testq %rax, %rax
setne %bl
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x4970
callq 0x32b0
movl %ebx, %eax
addq $0x520, %rsp            # imm = 0x520
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x664f(%rip), %rdi      # 0xafd8
leaq 0x36a4(%rip), %rsi      # 0x8034
callq 0x32e0
movl $0x1, %edi
callq 0x3390
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x49b5
callq 0x32b0
jmp 0x49b5
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x49c8
callq 0x32b0
jmp 0x49c8
movq %rax, %rbx
leaq -0x90(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x49e6
jmp 0x49eb
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x49eb
callq 0x32b0
movq %rbx, %rdi
callq 0x3480