// File: /workspace/github_cpp_makefile_star2_O1/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 0x3752
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x36ee
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
movl %eax, %ecx
movl $0x1, %eax
cmpl $-0x1, %ecx
jne 0x2e21
leaq -0xd0(%rbp), %rbx
movq (%rbx), %rdi
movl $0x1fb, %esi            # imm = 0x1FB
callq 0x2130
leaq 0x55fa(%rip), %rdx      # 0x8014
leaq -0x68(%rbp), %rdi
movq %rbx, %rsi
callq 0x3752
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x36ee
leaq 0x55da(%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 0x2a76
movups (%rcx), %xmm0
leaq -0x3e0(%rbp), %rdx
movups %xmm0, (%rdx)
jmp 0x2a87
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 0x2ad2
movq -0x3e0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2aeb
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2b04
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xb0(%rbp), %rdi
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x2070
leaq 0x54f8(%rip), %rdx      # 0x8014
leaq -0x68(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x3752
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x36ee
leaq 0x54dd(%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 0x2b7c
movups (%rcx), %xmm0
leaq -0x3e0(%rbp), %rdx
movups %xmm0, (%rdx)
jmp 0x2b8d
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 0x2bd1
movq -0x3e0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2bea
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2c03
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xb0(%rbp), %rdi
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x2070
leaq 0x53f9(%rip), %rdx      # 0x8014
leaq -0x68(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x3752
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x36ee
leaq 0x53e7(%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 0x2c7b
movups (%rcx), %xmm0
leaq -0x3e0(%rbp), %rdx
movups %xmm0, (%rdx)
jmp 0x2c8c
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 0x2cd0
movq -0x3e0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2ce9
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2d02
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xb0(%rbp), %rdi
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x2070
leaq 0x52fa(%rip), %rdx      # 0x8014
leaq -0x68(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x3752
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x36ee
leaq 0x52f4(%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 0x2d7a
movups (%rcx), %xmm0
leaq -0x3e0(%rbp), %rdx
movups %xmm0, (%rdx)
jmp 0x2d8b
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 0x2dcf
movq -0x3e0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2de8
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2e01
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xb0(%rbp), %rdi
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x2070
callq 0x20a0
cmpl $-0x1, %eax
jne 0x2e21
callq 0x2430
testl %eax, %eax
jne 0x30fd
movq -0xd0(%rbp), %rdi
callq 0x2320
leaq 0x51da(%rip), %rdx      # 0x8016
leaq -0x3f0(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3752
leaq -0xb0(%rbp), %rdi
movq %rbx, %rsi
callq 0x22b0
movq (%rbx), %rdi
leaq -0x3e0(%rbp), %rax
cmpq %rax, %rdi
je 0x2e7c
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 0x9116(%rip), %rdi      # 0xbfd0
leaq 0x51ab(%rip), %rsi      # 0x806c
movl $0x16, %edx
callq 0x2280
movq 0x90fe(%rip), %rdi      # 0xbfd0
callq 0x2150
leaq 0x513d(%rip), %rdx      # 0x801b
leaq -0x48(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3752
leaq 0x512f(%rip), %rdx      # 0x8024
leaq -0x68(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3752
leaq 0x512d(%rip), %rdx      # 0x8039
leaq -0xf0(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3752
leaq 0x5107(%rip), %rdx      # 0x802d
leaq -0x1d0(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3752
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 0x37b2
leaq -0x140(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
addq %rsi, %rdx
leaq -0x150(%rbp), %rdi
callq 0x37b2
leaq -0x120(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x130(%rbp), %rdi
callq 0x37b2
leaq -0x100(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x1d0(%rbp), %rsi
movq -0x1c8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x110(%rbp), %rdi
callq 0x37b2
leaq -0x170(%rbp), %rsi
leaq -0x150(%rbp), %rdx
leaq -0x130(%rbp), %rcx
leaq -0x110(%rbp), %r8
movq -0x70(%rbp), %rdi
callq 0x476c
movq -0x110(%rbp), %rdi
leaq -0x100(%rbp), %rax
cmpq %rax, %rdi
je 0x3022
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
je 0x3044
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0x3066
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x170(%rbp), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
je 0x3088
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x70(%rbp), %rdi
callq 0x5130
movq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x4882
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 0x4f9c(%rip), %rdi      # 0x8083
callq 0x2320
movq -0xd0(%rbp), %rdi
callq 0x2110
jmp 0x33a4
movq 0x8ecc(%rip), %rdi      # 0xbfd0
leaq 0x4f49(%rip), %rsi      # 0x8054
movl $0x17, %edx
callq 0x2280
movq 0x8eb4(%rip), %rdi      # 0xbfd0
callq 0x2150
leaq 0x4eec(%rip), %rdx      # 0x8014
leaq -0x68(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x3752
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x36ee
leaq 0x4ec8(%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 0x3188
movups (%rcx), %xmm0
leaq -0x3e0(%rbp), %rdx
movups %xmm0, (%rdx)
jmp 0x3199
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 0x31cc
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x31e5
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
leaq 0x4e28(%rip), %rdx      # 0x8014
leaq -0xf0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x3752
leaq -0x68(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x36ee
leaq 0x4e07(%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 0x3249
movups (%rcx), %xmm0
leaq -0x38(%rbp), %rdx
movups %xmm0, (%rdx)
jmp 0x3254
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 0x3284
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0xe0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x32a3
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 0x37b2
leaq -0x180(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0x190(%rbp), %rdi
callq 0x37b2
leaq -0x1b0(%rbp), %rsi
leaq -0x190(%rbp), %rdx
movq -0x70(%rbp), %rdi
callq 0x384c
movq -0x190(%rbp), %rdi
leaq -0x180(%rbp), %rax
cmpq %rax, %rdi
je 0x3334
movq -0x180(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x1b0(%rbp), %rdi
leaq -0x1a0(%rbp), %rax
cmpq %rax, %rdi
je 0x3356
movq -0x1a0(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x1f0(%rbp), %rbx
movq 0x8c7c(%rip), %rdi      # 0xbfe0
movq %rbx, %rsi
callq 0x2090
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x2, 0x20(%rax,%rcx)
jne 0x338b
movq -0x70(%rbp), %rdi
movq %rbx, %rsi
callq 0x4368
cmpl $-0x1, %eax
jne 0x335d
movq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x38a8
movl $0x8, %esi
movq %rbx, %rdi
callq 0x2230
xorl %edi, %edi
callq 0x22a0
movq %rax, %rbx
movq -0x110(%rbp), %rdi
leaq -0x100(%rbp), %rax
cmpq %rax, %rdi
je 0x33d5
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x33d5
movq %rax, %rbx
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
je 0x33fc
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x33fc
movq %rax, %rbx
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0x3428
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x3428
jmp 0x3517
movq %rax, %rbx
movq -0x170(%rbp), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
je 0x3476
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x3476
movq %rax, %rbx
movq -0x190(%rbp), %rdi
leaq -0x180(%rbp), %rax
cmpq %rax, %rdi
je 0x348e
movq -0x180(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x348e
movq %rax, %rbx
movl $0x38, %esi
movq -0x70(%rbp), %rdi
callq 0x2230
jmp 0x34b5
jmp 0x3609
movq %rax, %rbx
movq -0x1b0(%rbp), %rdi
leaq -0x1a0(%rbp), %rax
cmpq %rax, %rdi
je 0x34de
movq -0x1a0(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x34de
movq %rax, %rbx
leaq -0x1c0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x34f1
movq -0x1c0(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x34f1
jmp 0x3629
movq %rax, %rbx
movl $0x8, %esi
movq -0x70(%rbp), %rdi
callq 0x2230
jmp 0x351a
movq %rax, %rbx
leaq -0xe0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3534
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x3534
jmp 0x367a
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x35c3
movq -0x38(%rbp), %rsi
jmp 0x35af
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x3575
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x3575
jmp 0x3609
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x3598
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x3598
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x35fb
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x35fb
jmp 0x3629
movq %rax, %rbx
leaq -0xe0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x35c3
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x35c3
jmp 0x35f8
jmp 0x367a
movq %rax, %rbx
movq -0x3f0(%rbp), %rdi
leaq -0x3e0(%rbp), %rax
cmpq %rax, %rdi
je 0x367d
movq -0x3e0(%rbp), %rsi
jmp 0x366c
jmp 0x3609
jmp 0x3609
jmp 0x3629
jmp 0x3629
jmp 0x367a
jmp 0x367a
movq %rax, %rbx
leaq -0x3f0(%rbp), %rdi
callq 0x2330
jmp 0x367d
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x362c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x362c
jmp 0x367a
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
jmp 0x3663
jmp 0x367a
jmp 0x367a
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x365b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x365b
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x367d
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2230
jmp 0x367d
jmp 0x367a
jmp 0x367a
movq %rax, %rbx
movq -0x1f0(%rbp), %rdi
cmpq %r15, %rdi
je 0x3698
movq -0x1e0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x36b0
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xb0(%rbp), %rdi
cmpq %r13, %rdi
je 0x36cb
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xd0(%rbp), %rdi
cmpq %r12, %rdi
je 0x36e6
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x23c0