// File: /workspace/github_cpp_makefile_star2_O3/billDrett[P]Bulletin-Boards/board.cpp
// Function: main
int main(int argc, char *argv[])
{
    pid_t serverPid = 1;
    string path, tmpPath, boardID;
    string line;
    int found;

    if(argc != 2)
    {
        cout<<"error arguments"<<endl;
        return - 2;
    }

    signal(SIGINT, SIG_IGN); //agnow to control c
    path = argv[1];
    found = path.find_last_of("/");
    if(found ==  string::npos)
    {
        boardID = path;
    }
    else
    {
        boardID = path.substr(found+1);
    }

    tmpPath = path + "/" + boardID + "_pid";

    if(open(tmpPath.c_str(), O_RDONLY, 0666) == -1)
    {
        //tmpPath = path + "/" +boardID;
        mkdir(path.c_str(), 0773);
        tmpPath = path + "/" +boardID + "_selfC2S";
        mkfifo(tmpPath.c_str(), 0666);
        tmpPath = path + "/" +boardID + "_selfS2C";
        mkfifo(tmpPath.c_str(), 0666);
        tmpPath = path + "/" +boardID + "_othersS2BP";
        mkfifo(tmpPath.c_str(), 0666);
        tmpPath = path + "/" +boardID + "_othersBP2S";
        mkfifo(tmpPath.c_str(), 0666);

        serverPid = fork();
        if(serverPid == -1)
        {
            perror("Failed to fork");
            exit(1);
        }
    }

    if(serverPid != 0) //boardClient process
    {
        cout<<"client proccess created"<<endl;
        string tmp1 = path + "/" + boardID + "_selfC2S", tmp2 = path + "/" + boardID + "_selfS2C";
        BoardClient* client = new BoardClient(tmp1, tmp2);
        while(!getline(cin, line).eof()) //eisodos apo pliktrologio
        {
            if(client->menu(line) == -1) break;
        }
        delete client;
        exit(0);
    }
    else //server process
    {
        char conver[32];
        chdir(path.c_str());
        tmpPath = boardID + "_pid";
        ofstream pidFile(tmpPath.c_str());

        pid_t currentPid = getpid();
        pidFile << currentPid;
        pidFile.close();
        cout<<"server process created"<<endl;

        string tmp1 = boardID + "_selfC2S", tmp2 = boardID + "_selfS2C", tmp3 = boardID + "_othersBP2S", tmp4 = boardID + "_othersS2BP";
        BoardServer* server = new BoardServer(tmp1, tmp2, tmp3, tmp4);
        server->parser();

        delete server;
        unlink(tmp1.c_str());
        unlink(tmp2.c_str());
        unlink(tmp3.c_str());
        unlink(tmp4.c_str());
        unlink(tmpPath.c_str());
        chdir("..");
        rmdir(path.c_str());
        exit(0);

    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3c8, %rsp            # imm = 0x3C8
leaq -0xc0(%rbp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq -0xa0(%rbp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq -0x80(%rbp), %r14
movq %r14, -0x10(%r14)
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq -0x1e0(%rbp), %r15
movq %r15, -0x10(%r15)
movq %rax, -0x8(%r15)
movb %al, (%r15)
cmpl $0x2, %edi
je 0x283a
movq 0x9855(%rip), %rbx      # 0xbfd0
leaq 0x5882(%rip), %rsi      # 0x8004
movl $0xf, %edx
movq %rbx, %rdi
callq 0x2280
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq 0x9823(%rip), %rdi      # 0xbfd0
callq 0x2030
movq %rax, %rdi
callq 0x2190
movq -0x1f0(%rbp), %rdi
cmpq %r15, %rdi
je 0x27d5
movq -0x1e0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x27ed
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xb0(%rbp), %rdi
cmpq %r13, %rdi
je 0x2808
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xd0(%rbp), %rdi
cmpq %r12, %rdi
je 0x2823
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2230
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x3c8, %rsp            # imm = 0x3C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %rbx
movl $0x1, %esi
movl $0x2, %edi
callq 0x2290
movq 0x8(%rbx), %rsi
leaq -0xd0(%rbp), %rdi
callq 0x22d0
leaq 0x57b1(%rip), %rsi      # 0x8014
leaq -0xd0(%rbp), %rdi
movl $0x1, %ecx
movq $-0x1, %rdx
callq 0x2410
cmpl $-0x1, %eax
jne 0x2895
leaq -0x90(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x2170
jmp 0x28e8
incl %eax
movslq %eax, %rdx
leaq -0x3f0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
movq $-0x1, %rcx
callq 0x2250
leaq -0x90(%rbp), %rdi
leaq -0x3f0(%rbp), %rbx
movq %rbx, %rsi
callq 0x22b0
movq (%rbx), %rdi
leaq -0x3e0(%rbp), %rax
cmpq %rax, %rdi
je 0x28e8
movq -0x3e0(%rbp), %rsi
incq %rsi
callq 0x2230
leaq 0x5725(%rip), %rdx      # 0x8014
leaq -0x68(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x3744
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x36e0
leaq 0x56fc(%rip), %rsi      # 0x8016
leaq -0x48(%rbp), %rdi
callq 0x23f0
leaq -0x3e0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x294c
movups (%rcx), %xmm0
leaq -0x3e0(%rbp), %rdx
movups %xmm0, (%rdx)
jmp 0x295d
movq %rdx, -0x3f0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x3e0(%rbp)
movq 0x8(%rax), %rdx
leaq -0x3f0(%rbp), %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xb0(%rbp), %rdi
movq %rbx, %rsi
callq 0x22b0
movq (%rbx), %rdi
leaq -0x3e0(%rbp), %rax
cmpq %rax, %rdi
je 0x29a8
movq -0x3e0(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29c1
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29da
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xb0(%rbp), %rdi
xorl %esi, %esi
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x21b0
cmpl $-0x1, %eax
jne 0x2e22
leaq -0xd0(%rbp), %rbx
movq (%rbx), %rdi
movl $0x1fb, %esi            # imm = 0x1FB
callq 0x2130
leaq 0x5601(%rip), %rdx      # 0x8014
leaq -0x68(%rbp), %rdi
movq %rbx, %rsi
callq 0x3744
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x36e0
leaq 0x55e1(%rip), %rsi      # 0x801b
leaq -0x48(%rbp), %rdi
callq 0x23f0
leaq -0x3e0(%rbp), %rcx
movq %rcx, -0x3f0(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x2a6f
movups (%rcx), %xmm0
leaq -0x3e0(%rbp), %rdx
movups %xmm0, (%rdx)
jmp 0x2a80
movq %rdx, -0x3f0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x3e0(%rbp)
movq 0x8(%rax), %rdx
leaq -0x3f0(%rbp), %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xb0(%rbp), %rdi
movq %rbx, %rsi
callq 0x22b0
movq (%rbx), %rdi
leaq -0x3e0(%rbp), %rax
cmpq %rax, %rdi
je 0x2acb
movq -0x3e0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2ae4
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2afd
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xb0(%rbp), %rdi
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x2070
leaq 0x54ff(%rip), %rdx      # 0x8014
leaq -0x68(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x3744
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x36e0
leaq 0x54e4(%rip), %rsi      # 0x8024
leaq -0x48(%rbp), %rdi
callq 0x23f0
leaq -0x3e0(%rbp), %rcx
movq %rcx, -0x3f0(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x2b75
movups (%rcx), %xmm0
leaq -0x3e0(%rbp), %rdx
movups %xmm0, (%rdx)
jmp 0x2b86
movq %rdx, -0x3f0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x3e0(%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xb0(%rbp), %rdi
movq %rbx, %rsi
callq 0x22b0
movq (%rbx), %rdi
leaq -0x3e0(%rbp), %rax
cmpq %rax, %rdi
je 0x2bca
movq -0x3e0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2be3
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2bfc
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xb0(%rbp), %rdi
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x2070
leaq 0x5400(%rip), %rdx      # 0x8014
leaq -0x68(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x3744
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x36e0
leaq 0x53ee(%rip), %rsi      # 0x802d
leaq -0x48(%rbp), %rdi
callq 0x23f0
leaq -0x3e0(%rbp), %rcx
movq %rcx, -0x3f0(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x2c74
movups (%rcx), %xmm0
leaq -0x3e0(%rbp), %rdx
movups %xmm0, (%rdx)
jmp 0x2c85
movq %rdx, -0x3f0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x3e0(%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xb0(%rbp), %rdi
movq %rbx, %rsi
callq 0x22b0
movq (%rbx), %rdi
leaq -0x3e0(%rbp), %rax
cmpq %rax, %rdi
je 0x2cc9
movq -0x3e0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2ce2
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2cfb
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xb0(%rbp), %rdi
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x2070
leaq 0x5301(%rip), %rdx      # 0x8014
leaq -0x68(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x3744
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x36e0
leaq 0x52fb(%rip), %rsi      # 0x8039
leaq -0x48(%rbp), %rdi
callq 0x23f0
leaq -0x3e0(%rbp), %rcx
movq %rcx, -0x3f0(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x2d73
movups (%rcx), %xmm0
leaq -0x3e0(%rbp), %rdx
movups %xmm0, (%rdx)
jmp 0x2d84
movq %rdx, -0x3f0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x3e0(%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xb0(%rbp), %rdi
movq %rbx, %rsi
callq 0x22b0
movq (%rbx), %rdi
leaq -0x3e0(%rbp), %rax
cmpq %rax, %rdi
je 0x2dc8
movq -0x3e0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2de1
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2dfa
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xb0(%rbp), %rdi
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x2070
callq 0x20a0
testl %eax, %eax
je 0x30d0
cmpl $-0x1, %eax
jne 0x2e22
callq 0x2430
movq 0x91a7(%rip), %rdi      # 0xbfd0
leaq 0x5224(%rip), %rsi      # 0x8054
movl $0x17, %edx
callq 0x2280
movq 0x918f(%rip), %rdi      # 0xbfd0
callq 0x2150
leaq 0x51c7(%rip), %rdx      # 0x8014
leaq -0x68(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x3744
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x36e0
leaq 0x51a3(%rip), %rsi      # 0x801b
leaq -0x48(%rbp), %rdi
callq 0x23f0
leaq -0x3e0(%rbp), %rcx
movq %rcx, -0x3f0(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x2ead
movups (%rcx), %xmm0
leaq -0x3e0(%rbp), %rdx
movups %xmm0, (%rdx)
jmp 0x2ebe
movq %rdx, -0x3f0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x3e0(%rbp)
movq 0x8(%rax), %rdx
movq %rdx, -0x3e8(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2ef1
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2f0a
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
leaq 0x5103(%rip), %rdx      # 0x8014
leaq -0xf0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x3744
leaq -0x68(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x36e0
leaq 0x50e2(%rip), %rsi      # 0x8024
leaq -0x68(%rbp), %rdi
callq 0x23f0
leaq -0x38(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x2f6e
movups (%rcx), %xmm0
leaq -0x38(%rbp), %rdx
movups %xmm0, (%rdx)
jmp 0x2f79
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2fa9
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0xe0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2fc8
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2230
movl $0x8, %edi
callq 0x2220
movq %rax, -0x70(%rbp)
leaq -0x1a0(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x3f0(%rbp), %rsi
movq -0x3e8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1b0(%rbp), %rdi
callq 0x37a4
leaq -0x180(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0x190(%rbp), %rdi
callq 0x37a4
leaq -0x1b0(%rbp), %rsi
leaq -0x190(%rbp), %rdx
movq -0x70(%rbp), %rdi
callq 0x3844
movq -0x190(%rbp), %rdi
leaq -0x180(%rbp), %rax
cmpq %rax, %rdi
je 0x3059
movq -0x180(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x1b0(%rbp), %rdi
leaq -0x1a0(%rbp), %rax
cmpq %rax, %rdi
je 0x307b
movq -0x1a0(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x1f0(%rbp), %rbx
movq 0x8f57(%rip), %rdi      # 0xbfe0
movq %rbx, %rsi
callq 0x2090
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x2, 0x20(%rax,%rcx)
jne 0x30b0
movq -0x70(%rbp), %rdi
movq %rbx, %rsi
callq 0x4372
cmpl $-0x1, %eax
jne 0x3082
movq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x38a0
movl $0x8, %esi
movq %rbx, %rdi
callq 0x2230
xorl %edi, %edi
callq 0x22a0
movq -0xd0(%rbp), %rdi
callq 0x2320
leaq 0x4f33(%rip), %rdx      # 0x8016
leaq -0x3f0(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3744
leaq -0xb0(%rbp), %rdi
movq %rbx, %rsi
callq 0x22b0
movq (%rbx), %rdi
leaq -0x3e0(%rbp), %rax
cmpq %rax, %rdi
je 0x3123
movq -0x3e0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xb0(%rbp), %rsi
leaq -0x3f0(%rbp), %rdi
movl $0x10, %edx
callq 0x2260
callq 0x2310
leaq -0x3f0(%rbp), %rdi
movl %eax, %esi
callq 0x23a0
leaq -0x3f0(%rbp), %rdi
callq 0x22e0
movq 0x8e6f(%rip), %rdi      # 0xbfd0
leaq 0x4f04(%rip), %rsi      # 0x806c
movl $0x16, %edx
callq 0x2280
movq 0x8e57(%rip), %rdi      # 0xbfd0
callq 0x2150
leaq 0x4e96(%rip), %rdx      # 0x801b
leaq -0x48(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3744
leaq 0x4e88(%rip), %rdx      # 0x8024
leaq -0x68(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3744
leaq 0x4e86(%rip), %rdx      # 0x8039
leaq -0xf0(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3744
leaq 0x4e60(%rip), %rdx      # 0x802d
leaq -0x1d0(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3744
movl $0x38, %edi
callq 0x2220
movq %rax, -0x70(%rbp)
leaq -0x160(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0x170(%rbp), %rdi
callq 0x37a4
leaq -0x140(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
addq %rsi, %rdx
leaq -0x150(%rbp), %rdi
callq 0x37a4
leaq -0x120(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x130(%rbp), %rdi
callq 0x37a4
leaq -0x100(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x1d0(%rbp), %rsi
movq -0x1c8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x110(%rbp), %rdi
callq 0x37a4
leaq -0x170(%rbp), %rsi
leaq -0x150(%rbp), %rdx
leaq -0x130(%rbp), %rcx
leaq -0x110(%rbp), %r8
movq -0x70(%rbp), %rdi
callq 0x4774
movq -0x110(%rbp), %rdi
leaq -0x100(%rbp), %rax
cmpq %rax, %rdi
je 0x32c9
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
je 0x32eb
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0x330d
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x170(%rbp), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
je 0x332f
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x70(%rbp), %rdi
callq 0x5138
movq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x488a
movl $0x38, %esi
movq %rbx, %rdi
callq 0x2230
movq -0x48(%rbp), %rdi
callq 0x2140
movq -0x68(%rbp), %rdi
callq 0x2140
movq -0xf0(%rbp), %rdi
callq 0x2140
movq -0x1d0(%rbp), %rdi
callq 0x2140
movq -0xb0(%rbp), %rdi
callq 0x2140
leaq 0x4cf5(%rip), %rdi      # 0x8083
callq 0x2320
movq -0xd0(%rbp), %rdi
callq 0x2110
jmp 0x30c9
movq %rax, %rbx
movq -0x110(%rbp), %rdi
leaq -0x100(%rbp), %rax
cmpq %rax, %rdi
je 0x33ce
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x33ce
movq %rax, %rbx
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
je 0x33f5
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x33f5
movq %rax, %rbx
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0x341c
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x341c
movq %rax, %rbx
movq -0x170(%rbp), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
je 0x3443
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x3443
movq %rax, %rbx
movl $0x38, %esi
movq -0x70(%rbp), %rdi
callq 0x2230
jmp 0x3456
movq %rax, %rbx
leaq -0x1c0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x347a
movq -0x1c0(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x347a
movq %rax, %rbx
leaq -0xe0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x349e
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x349e
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x34bc
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x34bc
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x34dc
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x34dc
jmp 0x34d9
movq %rax, %rbx
leaq -0x3f0(%rbp), %rdi
callq 0x2330
jmp 0x366f
jmp 0x366c
jmp 0x366c
jmp 0x356e
jmp 0x35fd
movq %rax, %rbx
movq -0x190(%rbp), %rdi
leaq -0x180(%rbp), %rax
cmpq %rax, %rdi
je 0x352d
movq -0x180(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x352d
jmp 0x361d
movq %rax, %rbx
movq -0x1b0(%rbp), %rdi
leaq -0x1a0(%rbp), %rax
cmpq %rax, %rdi
je 0x3559
movq -0x1a0(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x3559
jmp 0x366c
movq %rax, %rbx
movl $0x8, %esi
movq -0x70(%rbp), %rdi
callq 0x2230
jmp 0x3571
jmp 0x35fd
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x35d5
movq -0x38(%rbp), %rsi
jmp 0x35c6
jmp 0x361d
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x35af
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x35af
jmp 0x366c
movq %rax, %rbx
leaq -0xe0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x35d5
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x35d5
jmp 0x35fd
movq %rax, %rbx
movq -0x3f0(%rbp), %rdi
leaq -0x3e0(%rbp), %rax
cmpq %rax, %rdi
je 0x366f
movq -0x3e0(%rbp), %rsi
jmp 0x365e
jmp 0x361d
jmp 0x35fd
jmp 0x366c
jmp 0x361d
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x3620
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x3620
jmp 0x366c
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
jmp 0x3655
jmp 0x366c
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x364d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x364d
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x366f
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x366f
jmp 0x366c
jmp 0x366c
movq %rax, %rbx
movq -0x1f0(%rbp), %rdi
cmpq %r15, %rdi
je 0x368a
movq -0x1e0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x36a2
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xb0(%rbp), %rdi
cmpq %r13, %rdi
je 0x36bd
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xd0(%rbp), %rdi
cmpq %r12, %rdi
je 0x36d8
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x23c0