// File: /workspace/github_c_makefile_star2_O3/sszllzss[P]webSocket_Libevent_ThreadPool/ev_httpd.cpp
// Function: resqonse(httpChilent_t*)
int resqonse(struct httpChilent_t *client)
{
    struct evbuffer * evbuff = evbuffer_new();
    HeadParameterMap::iterator v;
    if(evbuff == NULL)
    {
        return -1;
    }
    pthread_mutex_lock(&client->lock);
    gettimeofday(&client->final_optime, NULL);
    do{
        if(client->resqonse.resqonseCode == 0)
        {
            pthread_mutex_unlock(&client->lock);
            return -1;
        }
        if(client->request.http_version == NULL)
        {
            client->request.http_version = (char *)malloc(strlen("HTTP/1.1"));
            if(client->request.http_version == NULL)
            {
                pthread_mutex_unlock(&client->lock);
                return -1;
            }
            strcpy(client->request.http_version,"HTTP/1.1");
        }
        if(client->resqonse.resqonseCode ==  HTTP_OK )
        {
            evbuffer_add_printf(evbuff, "%s %d %s\r\n", client->request.http_version, HTTP_OK, HTTP_OK_VALUE);
        }
        else if(client->resqonse.resqonseCode == HTTP_SWITCHING_PROTOCOLS)
        {
            evbuffer_add_printf(evbuff, "%s %d %s\r\n", client->request.http_version, HTTP_SWITCHING_PROTOCOLS, HTTP_SWITCHING_PROTOCOLS_VALUE);
            evbuffer_add_printf(evbuff, "Upgrade: websocket\r\n");
            evbuffer_add_printf(evbuff, "Connection: Upgrade\r\n");
            v = client->resqonse.HeadParameter->find("Sec-WebSocket-Accept");
            if(v == client->resqonse.HeadParameter->end())
            {
                evbuffer_free(evbuff);
                return -1;
            }
            evbuffer_add_printf(evbuff, "%s: %s\r\n", v->first.c_str(),v->second.c_str());
            client->resqonse.HeadParameter->erase(v);
            time_t now;
            struct tm *tm_now;
            char timeStr[50] = {0};
            time(&now);
            tm_now = localtime(&now);
            strftime(timeStr, sizeof(timeStr), "%a, %d %b %Y %T %Z", tm_now);
            evbuffer_add_printf(evbuff, "Date: %s\r\n", timeStr);
            evbuffer_add_printf(evbuff, "\r\n");
            client->stat = HTTP_WS_DATA;
            WebddSocket_Thread_Cb_arg_t * cb_arg = (WebddSocket_Thread_Cb_arg_t *)malloc(sizeof(WebddSocket_Thread_Cb_arg_t));
            cb_arg->client = client;
            cb_arg->type = Ws_Cb_Type_connect;
            threadpool_add(evbase_threadpool_get_threadpool(client->httpServer->evb_thpool), webSocke_thread_cb, cb_arg);
            break;
        }
        else
        {
            switch(client->resqonse.resqonseCode)
            {
            case HTTP_NOCONTENT:
                evbuffer_add_printf(evbuff, "%s %d %s\r\n", client->request.http_version,
                                    HTTP_NOCONTENT, HTTP_NOCONTENT_VALUE);
                if(client->resqonse.resqonse_data == NULL)
                {
                    evbuffer_add_printf(evbuff, "Content-Type: text/html\r\n");
                    evbuffer_add_printf(evbuff, "Content-Length: %d\r\n", (int)strlen(HTTP_NOCONTENT_CONTENT));
                    evbuffer_add_printf(evbuff, "%s: %s\r\n", "Server", SERVER_STRING);
                    evbuffer_add_printf(evbuff, "\r\n");
                    evbuffer_add_printf(evbuff, HTTP_NOCONTENT_CONTENT);
                }
                break;
            case HTTP_MOVEPERM:
                evbuffer_add_printf(evbuff, "%s %d %s\r\n", client->request.http_version,
                                    HTTP_MOVEPERM, HTTP_MOVEPERM_VALUE);
                if(client->resqonse.resqonse_data == NULL)
                {
                    evbuffer_add_printf(evbuff, "Content-Type: text/html\r\n");
                    evbuffer_add_printf(evbuff, "Content-Length: %d\r\n", (int)strlen(HTTP_MOVEPERM_CONTENT));
                    evbuffer_add_printf(evbuff, "%s: %s\r\n", "Server", SERVER_STRING);
                    evbuffer_add_printf(evbuff, "\r\n");
                    evbuffer_add_printf(evbuff, HTTP_MOVEPERM_CONTENT);
                }
                break;
            case HTTP_MOVETEMP:
                evbuffer_add_printf(evbuff, "%s %d %s\r\n", client->request.http_version,
                                    HTTP_MOVETEMP, HTTP_MOVETEMP_VALUE);
                if(client->resqonse.resqonse_data == NULL)
                {
                    evbuffer_add_printf(evbuff, "Content-Type: text/html\r\n");
                    evbuffer_add_printf(evbuff, "Content-Length: %d\r\n", (int)strlen(HTTP_MOVETEMP_CONTENT));
                    evbuffer_add_printf(evbuff, "%s: %s\r\n", "Server", SERVER_STRING);
                    evbuffer_add_printf(evbuff, "\r\n");
                    evbuffer_add_printf(evbuff, HTTP_MOVETEMP_CONTENT);
                }
                break;
            case HTTP_NOTMODIFIED:
                evbuffer_add_printf(evbuff, "%s %d %s\r\n", client->request.http_version,
                                    HTTP_NOTMODIFIED, HTTP_NOTMODIFIED_VALUE);
                if(client->resqonse.resqonse_data == NULL)
                {
                    evbuffer_add_printf(evbuff, "%s: %s\r\n", "Server", SERVER_STRING);
                    evbuffer_add_printf(evbuff, "\r\n");
                }
                break;
            case HTTP_BADREQUEST:
                evbuffer_add_printf(evbuff, "%s %d %s\r\n", client->request.http_version,
                                    HTTP_BADREQUEST, HTTP_BADREQUEST_VALUE);
                if(client->resqonse.resqonse_data == NULL)
                {
                    evbuffer_add_printf(evbuff, "Content-Type: text/html\r\n");
                    evbuffer_add_printf(evbuff, "Content-Length: %d\r\n", (int)strlen(HTTP_BADREQUEST_CONTENT));
                    evbuffer_add_printf(evbuff, "%s: %s\r\n", "Server", SERVER_STRING);
                    evbuffer_add_printf(evbuff, "\r\n");
                    evbuffer_add_printf(evbuff, HTTP_BADREQUEST_CONTENT);
                }
                break;
            case HTTP_NOTFOUND:
                evbuffer_add_printf(evbuff, "%s %d %s\r\n", client->request.http_version,
                                    HTTP_NOTFOUND, HTTP_NOTFOUND_VALUE);
                if(client->resqonse.resqonse_data == NULL)
                {
                    evbuffer_add_printf(evbuff, "Content-Type: text/html\r\n");
                    evbuffer_add_printf(evbuff, "Content-Length: %d\r\n", (int)strlen(HTTP_NOTFOUND_CONTENT));
                    evbuffer_add_printf(evbuff, "%s: %s\r\n", "Server", SERVER_STRING);
                    evbuffer_add_printf(evbuff, "\r\n");
                    evbuffer_add_printf(evbuff, HTTP_NOTFOUND_CONTENT);
                }
                break;
            case HTTP_BADMETHOD:
                evbuffer_add_printf(evbuff, "%s %d %s\r\n", client->request.http_version,
                                    HTTP_BADMETHOD, HTTP_BADMETHOD_VALUE);
                if(client->resqonse.resqonse_data == NULL)
                {
                    evbuffer_add_printf(evbuff, "Content-Type: text/html\r\n");
                    evbuffer_add_printf(evbuff, "Content-Length: %d\r\n", (int)strlen(HTTP_BADMETHOD_CONTENT));
                    evbuffer_add_printf(evbuff, "%s: %s\r\n", "Server", SERVER_STRING);
                    evbuffer_add_printf(evbuff, "\r\n");
                    evbuffer_add_printf(evbuff, HTTP_BADMETHOD_CONTENT);
                }
                break;
            case HTTP_ENTITYTOOLARGE:
                evbuffer_add_printf(evbuff, "%s %d %s\r\n", client->request.http_version,
                                    HTTP_ENTITYTOOLARGE, HTTP_ENTITYTOOLARGE_VALUE);
                if(client->resqonse.resqonse_data == NULL)
                {
                    evbuffer_add_printf(evbuff, "Content-Type: text/html\r\n");
                    evbuffer_add_printf(evbuff, "Content-Length: %d\r\n", (int)strlen(HTTP_ENTITYTOOLARGE_CONTENT));
                    evbuffer_add_printf(evbuff, "%s: %s\r\n", "Server", SERVER_STRING);
                    evbuffer_add_printf(evbuff, "\r\n");
                    evbuffer_add_printf(evbuff, HTTP_ENTITYTOOLARGE_CONTENT);
                }
                break;
            case HTTP_EXPECTATIONFAILED:
                evbuffer_add_printf(evbuff, "%s %d %s\r\n", client->request.http_version,
                                    HTTP_EXPECTATIONFAILED, HTTP_EXPECTATIONFAILED_VALUE);
                if(client->resqonse.resqonse_data == NULL)
                {
                    evbuffer_add_printf(evbuff, "Content-Type: text/html\r\n");
                    evbuffer_add_printf(evbuff, "Content-Length: %d\r\n", (int)strlen(HTTP_EXPECTATIONFAILED_CONTENT));
                    evbuffer_add_printf(evbuff, "%s: %s\r\n", "Server", SERVER_STRING);
                    evbuffer_add_printf(evbuff, "\r\n");
                    evbuffer_add_printf(evbuff, HTTP_EXPECTATIONFAILED_CONTENT);
                }
                break;
            case HTTP_INTERNAL:
                evbuffer_add_printf(evbuff, "%s %d %s\r\n", client->request.http_version,
                                    HTTP_INTERNAL, HTTP_INTERNAL_VALUE);
                if(client->resqonse.resqonse_data == NULL)
                {
                    evbuffer_add_printf(evbuff, "Content-Type: text/html\r\n");
                    evbuffer_add_printf(evbuff, "Content-Length: %d\r\n", (int)strlen(HTTP_INTERNAL_CONTENT));
                    evbuffer_add_printf(evbuff, "%s: %s\r\n", "Server", SERVER_STRING);
                    evbuffer_add_printf(evbuff, "\r\n");
                    evbuffer_add_printf(evbuff, HTTP_INTERNAL_CONTENT);
                }
                break;
            case HTTP_NOTIMPLEMENTED:
                evbuffer_add_printf(evbuff, "%s %d %s\r\n", client->request.http_version,
                                    HTTP_NOTIMPLEMENTED, HTTP_NOTIMPLEMENTED_VALUE);
                if(client->resqonse.resqonse_data == NULL)
                {
                    evbuffer_add_printf(evbuff, "Content-Type: text/html\r\n");
                    evbuffer_add_printf(evbuff, "Content-Length: %d\r\n", (int)strlen(HTTP_NOTFOUND_CONTENT));
                    evbuffer_add_printf(evbuff, "%s: %s\r\n", "Server", SERVER_STRING);
                    evbuffer_add_printf(evbuff, "\r\n");
                    evbuffer_add_printf(evbuff, HTTP_NOTFOUND_CONTENT);
                }
                break;
            case HTTP_SERVUNAVAIL:
                evbuffer_add_printf(evbuff, "%s %d %s\r\n", client->request.http_version,
                                    HTTP_SERVUNAVAIL, HTTP_SERVUNAVAIL_VALUE);
                if(client->resqonse.resqonse_data == NULL)
                {
                    evbuffer_add_printf(evbuff, "Content-Type: text/html\r\n");
                    evbuffer_add_printf(evbuff, "Content-Length: %d\r\n", (int)strlen(HTTP_SERVUNAVAIL_CONTENT));
                    evbuffer_add_printf(evbuff, "%s: %s\r\n", "Server", SERVER_STRING);
                    evbuffer_add_printf(evbuff, "\r\n");
                    evbuffer_add_printf(evbuff, HTTP_SERVUNAVAIL_CONTENT);
                }
                break;
            }
        }
        if(client->resqonse.HeadParameter == NULL)
        {
            evbuffer_add_printf(evbuff, "%s: %s\r\n", "Server", SERVER_STRING);
        }
        else
        {
            v  =  client->resqonse.HeadParameter->find("Server");
            if(v != client->resqonse.HeadParameter->end())
            {
                evbuffer_add_printf(evbuff, "%s: %s\r\n", v->first.c_str(), v->second.c_str());
                client->resqonse.HeadParameter->erase(v);
            }
            else
            {
                evbuffer_add_printf(evbuff, "%s: %s\r\n", "Server", SERVER_STRING);
            }
            v = client->resqonse.HeadParameter->begin();
            while(v != client->resqonse.HeadParameter->end())
            {
                evbuffer_add_printf(evbuff, "%s: %s\r\n", v->first.c_str(), v->second.c_str());
                v++;
            }
        }
        evbuffer_add_printf(evbuff, "\r\n");

        if(client->resqonse.resqonse_data != NULL)
        {
            unsigned add_len = 0;
            while((evbuffer_add(evbuff, client->resqonse.resqonse_data + add_len, 1)) == 0)
            {
                add_len++;
                if((add_len % HTTPSERVER_RECEIVE_BUFF_CHUNK_SIZE ) == 0)
                    gettimeofday(&client->final_optime, NULL);
                if(add_len >= client->resqonse.Resqonse_data_len)
                    break;
            }
                
        }
    }while(0);
    if(client->stat != HTTP_WS_DATA)
        client->stat = HTTP_RESQONSE;
    bufferevent_lock(client->bev);
    evbuffer_add_buffer(bufferevent_get_output(client->bev), evbuff);
    bufferevent_unlock(client->bev);

    pthread_mutex_unlock(&client->lock);
    evbuffer_free(evbuff);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
callq 0x3060
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x637a
movq %rax, %r14
movq %rbx, %rdi
callq 0x3620
leaq 0xb8(%rbx), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x3690
movl 0x78(%rbx), %r12d
testl %r12d, %r12d
je 0x59ce
movq 0x58(%rbx), %rdx
testq %rdx, %rdx
jne 0x58fc
movl $0x8, %edi
callq 0x35a0
movq %rax, 0x58(%rbx)
testq %rax, %rax
je 0x59ce
movq %rax, %rdx
movabsq $0x312e312f50545448, %rax # imm = 0x312E312F50545448
movq %rax, (%rdx)
movb $0x0, 0x8(%rdx)
cmpl $0x193, %r12d           # imm = 0x193
jg 0x59db
cmpl $0x12c, %r12d           # imm = 0x12C
jle 0x5aa0
cmpl $0x12f, %r12d           # imm = 0x12F
jg 0x5c0d
cmpl $0x12d, %r12d           # imm = 0x12D
je 0x5d63
cmpl $0x12e, %r12d           # imm = 0x12E
jne 0x61b2
leaq 0x5c31(%rip), %rsi      # 0xb575
leaq 0x651b(%rip), %r8       # 0xbe66
movq %r14, %rdi
movl $0x12e, %ecx            # imm = 0x12E
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x61b2
leaq 0x5c87(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5c90(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1fd, %edx            # imm = 0x1FD
xorl %eax, %eax
callq 0x3290
leaq 0xbaca(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5c37(%rip), %rsi      # 0xb5d7
leaq 0x58c4(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x72ec(%rip), %rsi      # 0xcca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x608e(%rip), %rsi      # 0xba57
jmp 0x61a8
movq %rbx, %rdi
callq 0x3310
jmp 0x637a
cmpl $0x1a0, %r12d           # imm = 0x1A0
jle 0x5b55
cmpl $0x1f4, %r12d           # imm = 0x1F4
jg 0x5cb8
cmpl $0x1a1, %r12d           # imm = 0x1A1
je 0x5df4
cmpl $0x1f4, %r12d           # imm = 0x1F4
jne 0x61b2
leaq 0x5b5f(%rip), %rsi      # 0xb575
leaq 0x6c53(%rip), %r8       # 0xc670
movq %r14, %rdi
movl $0x1f4, %ecx            # imm = 0x1F4
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x61b2
leaq 0x5bb5(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5bbe(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1f7, %edx            # imm = 0x1F7
xorl %eax, %eax
callq 0x3290
leaq 0xb9f8(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5b65(%rip), %rsi      # 0xb5d7
leaq 0x57f2(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x721a(%rip), %rsi      # 0xcca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6beb(%rip), %rsi      # 0xc686
jmp 0x61a8
cmpl $0x65, %r12d
je 0x5ef9
cmpl $0xc8, %r12d
je 0x60fe
cmpl $0xcc, %r12d
jne 0x61b2
leaq 0x5aaa(%rip), %rsi      # 0xb575
leaq 0x5b19(%rip), %r8       # 0xb5eb
movq %r14, %rdi
movl $0xcc, %ecx
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x61b2
leaq 0x5b00(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5b09(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1f1, %edx            # imm = 0x1F1
xorl %eax, %eax
callq 0x3290
leaq 0xb943(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5ab0(%rip), %rsi      # 0xb5d7
leaq 0x573d(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x7165(%rip), %rsi      # 0xcca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5ad5(%rip), %rsi      # 0xb625
jmp 0x61a8
cmpl $0x194, %r12d           # imm = 0x194
je 0x606d
cmpl $0x195, %r12d           # imm = 0x195
je 0x6120
cmpl $0x19d, %r12d           # imm = 0x19D
jne 0x61b2
leaq 0x59f2(%rip), %rsi      # 0xb575
leaq 0x66d6(%rip), %r8       # 0xc260
movq %r14, %rdi
movl $0x19d, %ecx            # imm = 0x19D
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x61b2
leaq 0x5a48(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5a51(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1f1, %edx            # imm = 0x1F1
xorl %eax, %eax
callq 0x3290
leaq 0xb88b(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x59f8(%rip), %rsi      # 0xb5d7
leaq 0x5685(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x70ad(%rip), %rsi      # 0xcca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6671(%rip), %rsi      # 0xc279
jmp 0x61a8
cmpl $0x130, %r12d           # imm = 0x130
je 0x5e85
cmpl $0x190, %r12d           # imm = 0x190
jne 0x61b2
leaq 0x5947(%rip), %rsi      # 0xb575
leaq 0x602d(%rip), %r8       # 0xbc62
movq %r14, %rdi
movl $0x190, %ecx            # imm = 0x190
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x61b2
leaq 0x599d(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x59a6(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1f3, %edx            # imm = 0x1F3
xorl %eax, %eax
callq 0x3290
leaq 0xb7e0(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x594d(%rip), %rsi      # 0xb5d7
leaq 0x55da(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x7002(%rip), %rsi      # 0xcca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5fbb(%rip), %rsi      # 0xbc6e
jmp 0x61a8
cmpl $0x1f5, %r12d           # imm = 0x1F5
je 0x5ede
cmpl $0x1f7, %r12d           # imm = 0x1F7
jne 0x61b2
leaq 0x589c(%rip), %rsi      # 0xb575
leaq 0x6bae(%rip), %r8       # 0xc88e
movq %r14, %rdi
movl $0x1f7, %ecx            # imm = 0x1F7
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x61b2
leaq 0x58f2(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x58fb(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1f8, %edx            # imm = 0x1F8
xorl %eax, %eax
callq 0x3290
leaq 0xb735(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x58a2(%rip), %rsi      # 0xb5d7
leaq 0x552f(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6f57(%rip), %rsi      # 0xcca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6b44(%rip), %rsi      # 0xc8a2
jmp 0x61a8
leaq 0x580b(%rip), %rsi      # 0xb575
leaq 0x5aa6(%rip), %r8       # 0xb817
movq %r14, %rdi
movl $0x12d, %ecx            # imm = 0x12D
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x61b2
leaq 0x5861(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x586a(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x22d, %edx            # imm = 0x22D
xorl %eax, %eax
callq 0x3290
leaq 0xb6a4(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5811(%rip), %rsi      # 0xb5d7
leaq 0x549e(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6ec6(%rip), %rsi      # 0xcca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5a3a(%rip), %rsi      # 0xb829
jmp 0x61a8
leaq 0x577a(%rip), %rsi      # 0xb575
leaq 0x6669(%rip), %r8       # 0xc46b
movq %r14, %rdi
movl $0x1a1, %ecx            # imm = 0x1A1
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x61b2
leaq 0x57d0(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x57d9(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1f1, %edx            # imm = 0x1F1
xorl %eax, %eax
callq 0x3290
leaq 0xb613(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5780(%rip), %rsi      # 0xb5d7
leaq 0x540d(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6e35(%rip), %rsi      # 0xcca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x65fe(%rip), %rsi      # 0xc47e
jmp 0x61a8
leaq 0x56e9(%rip), %rsi      # 0xb575
leaq 0x5dc2(%rip), %r8       # 0xbc55
movq %r14, %rdi
movl $0x130, %ecx            # imm = 0x130
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x61b2
leaq 0xb5a9(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5716(%rip), %rsi      # 0xb5d7
leaq 0x53a3(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6dcb(%rip), %rsi      # 0xcca4
jmp 0x61a8
leaq 0x5690(%rip), %rsi      # 0xb575
leaq 0x6992(%rip), %r8       # 0xc87e
movq %r14, %rdi
movl $0x1f5, %ecx            # imm = 0x1F5
jmp 0x6083
leaq 0x5675(%rip), %rsi      # 0xb575
leaq 0x567c(%rip), %r8       # 0xb583
movq %r14, %rdi
movl $0x65, %ecx
xorl %eax, %eax
callq 0x3290
leaq 0x567a(%rip), %rsi      # 0xb597
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x567e(%rip), %rsi      # 0xb5ac
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
movq 0x80(%rbx), %r15
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x5672(%rip), %rsi      # 0xb5c2
leaq 0x567f(%rip), %rdx      # 0xb5d6
movq %rsp, %rdi
callq 0x8130
movq %rsp, %rsi
movq %r15, %rdi
callq 0x80a6
movq %rax, %r15
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x5f83
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3460
movq 0x80(%rbx), %rax
addq $0x8, %rax
cmpq %rax, %r15
je 0x638b
movq 0x20(%r15), %rdx
movq 0x40(%r15), %rcx
leaq 0x5631(%rip), %rsi      # 0xb5d7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
movq 0x80(%rbx), %rdi
movq %r15, %rsi
callq 0x81c6
xorps %xmm0, %xmm0
movq %rsp, %r15
movaps %xmm0, 0x20(%r15)
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
movw $0x0, 0x30(%r15)
leaq 0x40(%rsp), %r12
movq %r12, %rdi
callq 0x33d0
movq %r12, %rdi
callq 0x3300
leaq 0x5249(%rip), %rdx      # 0xb23f
movl $0x32, %esi
movq %r15, %rdi
movq %rax, %rcx
callq 0x3340
leaq 0x55d3(%rip), %rsi      # 0xb5e0
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3290
leaq 0x6c83(%rip), %rsi      # 0xcca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
movl $0x5, 0x38(%rbx)
movl $0x10, %edi
callq 0x35a0
movq %rax, %r15
movq %rbx, (%rax)
movl $0x2, 0x8(%rax)
movq 0x28(%rbx), %rax
movq 0x60(%rax), %rdi
callq 0x855c
leaq 0x36e(%rip), %rsi       # 0x63cb
movq %rax, %rdi
movq %r15, %rdx
callq 0x9179
jmp 0x6335
leaq 0x5501(%rip), %rsi      # 0xb575
leaq 0x5de7(%rip), %r8       # 0xbe62
movq %r14, %rdi
movl $0x194, %ecx            # imm = 0x194
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x61b2
leaq 0x5557(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5560(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1fa, %edx            # imm = 0x1FA
xorl %eax, %eax
callq 0x3290
leaq 0xb39a(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5507(%rip), %rsi      # 0xb5d7
leaq 0x5194(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6bbc(%rip), %rsi      # 0xcca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5d73(%rip), %rsi      # 0xbe6c
jmp 0x61a8
leaq 0x5470(%rip), %rsi      # 0xb575
leaq 0x5474(%rip), %r8       # 0xb580
movq %r14, %rdi
movl $0xc8, %ecx
xorl %eax, %eax
callq 0x3290
jmp 0x61b2
leaq 0x544e(%rip), %rsi      # 0xb575
leaq 0x5f39(%rip), %r8       # 0xc067
movq %r14, %rdi
movl $0x195, %ecx            # imm = 0x195
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x61b2
leaq 0x54a8(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x54b1(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1e5, %edx            # imm = 0x1E5
xorl %eax, %eax
callq 0x3290
leaq 0xb2eb(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5458(%rip), %rsi      # 0xb5d7
leaq 0x50e5(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6b0d(%rip), %rsi      # 0xcca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5ed2(%rip), %rsi      # 0xc07a
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
movq 0x80(%rbx), %r12
testq %r12, %r12
je 0x623d
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x509d(%rip), %rsi      # 0xb26b
leaq 0x509c(%rip), %rdx      # 0xb271
movq %rsp, %rdi
callq 0x8130
movq %rsp, %rsi
movq %r12, %rdi
callq 0x80a6
movq %rax, %r12
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6201
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3460
movq 0x80(%rbx), %rax
addq $0x8, %rax
cmpq %rax, %r12
je 0x6261
movq 0x20(%r12), %rdx
movq 0x40(%r12), %rcx
leaq 0x53b5(%rip), %rsi      # 0xb5d7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
movq 0x80(%rbx), %rdi
movq %r12, %rsi
callq 0x81c6
jmp 0x6283
leaq 0xb21c(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5389(%rip), %rsi      # 0xb5d7
leaq 0x5016(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
jmp 0x62d0
leaq 0xb1f8(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5365(%rip), %rsi      # 0xb5d7
leaq 0x4ff2(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
movq 0x80(%rbx), %rax
movq 0x18(%rax), %r12
addq $0x8, %rax
cmpq %rax, %r12
je 0x62d0
leaq 0x5339(%rip), %r13      # 0xb5d7
movq 0x20(%r12), %rdx
movq 0x40(%r12), %rcx
movq %r14, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x3290
movq %r12, %rdi
callq 0x32c0
movq %rax, %r12
movq 0x80(%rbx), %rax
addq $0x8, %rax
cmpq %rax, %r12
jne 0x629e
leaq 0x69cd(%rip), %rsi      # 0xcca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
je 0x6335
xorl %r12d, %r12d
leaq 0xb15b(%rip), %r13      # 0x11450
movq 0x88(%rbx), %rsi
addq %r12, %rsi
movl $0x1, %edx
movq %r14, %rdi
callq 0x3420
testl %eax, %eax
jne 0x6335
incq %r12
movl %r12d, %eax
xorl %edx, %edx
divl (%r13)
testl %edx, %edx
jne 0x632a
movq %r15, %rdi
xorl %esi, %esi
callq 0x3690
movl 0x90(%rbx), %eax
cmpq %rax, %r12
jb 0x62f5
cmpl $0x5, 0x38(%rbx)
je 0x6342
movl $0x4, 0x38(%rbx)
movq 0x30(%rbx), %rdi
callq 0x3610
movq 0x30(%rbx), %rdi
callq 0x3190
movq %rax, %rdi
movq %r14, %rsi
callq 0x37b0
movq 0x30(%rbx), %rdi
callq 0x36e0
movq %rbx, %rdi
callq 0x3310
movq %r14, %rdi
callq 0x31a0
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x31a0
jmp 0x637a
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
jne 0x63b1
jmp 0x63c3
jmp 0x63c0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x63c3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3460
jmp 0x63c3
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3740