// File: /workspace/github_cpp_makefile_star2_O1/msotoodeh[P]asymmetric-passwords/demo/demo.cpp
// Function: main
int main(int argc, char**argv)
{
    if (SelfTest() != 0 ) return 1;

    std::string userid      = "jack";
    std::string password    = "password";
    std::string domain      = "www.example.com";

    demoRegisterNewUser(userid, password, domain);
    demoUserLogin(userid, password, domain);
    demoUserLogin("joe", password, domain);
    demoUserLogin(userid, "WRONG-PASSWORD", domain);
    demoChangeUserPassword(userid, password, "new-password", domain);
    demoUserLogin(userid, "new-password", domain);

    printf("\n-----------------------------------------------------------------\n");
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
callq 0x404e9e
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x405260
leaq -0x78(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x175334(%rip), %rsi    # 0x57a3a0
leaq 0x175331(%rip), %rdx    # 0x57a3a4
leaq -0x88(%rbp), %rdi
callq 0x40549e
leaq -0x98(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x17533b(%rip), %rsi    # 0x57a3cc
leaq 0x17533c(%rip), %rdx    # 0x57a3d4
leaq -0xa8(%rbp), %rdi
callq 0x40549e
leaq -0x58(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x1752f1(%rip), %rsi    # 0x57a3a5
leaq 0x1752f9(%rip), %rdx    # 0x57a3b4
leaq -0x68(%rbp), %rdi
callq 0x40549e
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x4045a6
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x404941
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x1752b4(%rip), %rsi    # 0x57a3b5
leaq 0x1752b0(%rip), %rdx    # 0x57a3b8
leaq -0x48(%rbp), %rdi
callq 0x40549e
leaq -0x48(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x404941
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x40513a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x40ad30
leaq -0x48(%rbp), %rdi
movq %r13, (%rdi)
leaq 0x175271(%rip), %rsi    # 0x57a3b9
leaq 0x175278(%rip), %rdx    # 0x57a3c7
callq 0x40549e
leaq -0x88(%rbp), %rdi
leaq -0x48(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x404941
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x40517d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x40ad30
leaq -0x48(%rbp), %rdi
movq %r13, (%rdi)
leaq 0x17523d(%rip), %rsi    # 0x57a3c8
leaq 0x175242(%rip), %rdx    # 0x57a3d4
callq 0x40549e
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
leaq -0x48(%rbp), %rdx
leaq -0x68(%rbp), %rcx
callq 0x404bc6
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x4051c7
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x40ad30
leaq -0x48(%rbp), %rdi
movq %r13, (%rdi)
leaq 0x1751f3(%rip), %rsi    # 0x57a3c8
leaq 0x1751f8(%rip), %rdx    # 0x57a3d4
callq 0x40549e
leaq -0x88(%rbp), %rdi
leaq -0x48(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x404941
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x40520a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x40ad30
leaq 0x1753aa(%rip), %rdi    # 0x57a5bb
callq 0x4d7910
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x40522b
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x40ad30
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x405246
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x40ad30
movq -0x88(%rbp), %rdi
cmpq %r14, %rdi
je 0x40525e
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x40ad30
xorl %eax, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x40527e
jmp 0x4052a4
jmp 0x40527e
jmp 0x4052a4
jmp 0x40527e
jmp 0x4052a4
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x4052a7
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x40ad30
jmp 0x4052a7
jmp 0x4052a4
movq %rax, %rbx
jmp 0x4052bc
movq %rax, %rbx
jmp 0x4052d7
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x4052bc
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x40ad30
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x4052d7
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x40ad30
movq -0x88(%rbp), %rdi
cmpq %r14, %rdi
je 0x4052ef
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x40ad30
movq %rbx, %rdi
callq 0x4a9c80
nop