// File: /workspace/github_c_makefile_star2_O1/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 0x6309
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 0x5929
cmpq $0x0, 0x58(%rbx)
jne 0x5853
movl $0x8, %edi
callq 0x35a0
movq %rax, 0x58(%rbx)
testq %rax, %rax
je 0x5929
movabsq $0x312e312f50545448, %rcx # imm = 0x312E312F50545448
movq %rcx, (%rax)
movb $0x0, 0x8(%rax)
cmpl $0x193, %r12d           # imm = 0x193
jg 0x5936
cmpl $0x12c, %r12d           # imm = 0x12C
jle 0x59ff
cmpl $0x12f, %r12d           # imm = 0x12F
jg 0x5b74
cmpl $0x12d, %r12d           # imm = 0x12D
je 0x5cd2
cmpl $0x12e, %r12d           # imm = 0x12E
jne 0x6141
movq 0x58(%rbx), %rdx
leaq 0x5cd6(%rip), %rsi      # 0xb575
leaq 0x65c0(%rip), %r8       # 0xbe66
movq %r14, %rdi
movl $0x12e, %ecx            # imm = 0x12E
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x6141
leaq 0x5d2c(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5d35(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1fd, %edx            # imm = 0x1FD
xorl %eax, %eax
callq 0x3290
leaq 0xbb6f(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5cdc(%rip), %rsi      # 0xb5d7
leaq 0x5969(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x7394(%rip), %rsi      # 0xcca7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6133(%rip), %rsi      # 0xba57
jmp 0x6137
movq %rbx, %rdi
callq 0x3310
jmp 0x6309
cmpl $0x1a0, %r12d           # imm = 0x1A0
jle 0x5ab8
cmpl $0x1f4, %r12d           # imm = 0x1F4
jg 0x5c23
cmpl $0x1a1, %r12d           # imm = 0x1A1
je 0x5d67
cmpl $0x1f4, %r12d           # imm = 0x1F4
jne 0x6141
movq 0x58(%rbx), %rdx
leaq 0x5c00(%rip), %rsi      # 0xb575
leaq 0x6cf4(%rip), %r8       # 0xc670
movq %r14, %rdi
movl $0x1f4, %ecx            # imm = 0x1F4
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x6141
leaq 0x5c56(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5c5f(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1f7, %edx            # imm = 0x1F7
xorl %eax, %eax
callq 0x3290
leaq 0xba99(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5c06(%rip), %rsi      # 0xb5d7
leaq 0x5893(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x72be(%rip), %rsi      # 0xcca7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6c8c(%rip), %rsi      # 0xc686
jmp 0x6137
cmpl $0x65, %r12d
je 0x5e78
cmpl $0xc8, %r12d
je 0x6085
cmpl $0xcc, %r12d
jne 0x6141
movq 0x58(%rbx), %rdx
leaq 0x5b47(%rip), %rsi      # 0xb575
leaq 0x5bb6(%rip), %r8       # 0xb5eb
movq %r14, %rdi
movl $0xcc, %ecx
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x6141
leaq 0x5b9d(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5ba6(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1f1, %edx            # imm = 0x1F1
xorl %eax, %eax
callq 0x3290
leaq 0xb9e0(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5b4d(%rip), %rsi      # 0xb5d7
leaq 0x57da(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x7205(%rip), %rsi      # 0xcca7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5b72(%rip), %rsi      # 0xb625
jmp 0x6137
cmpl $0x194, %r12d           # imm = 0x194
je 0x5ff0
cmpl $0x195, %r12d           # imm = 0x195
je 0x60ab
cmpl $0x19d, %r12d           # imm = 0x19D
jne 0x6141
movq 0x58(%rbx), %rdx
leaq 0x5a8b(%rip), %rsi      # 0xb575
leaq 0x676f(%rip), %r8       # 0xc260
movq %r14, %rdi
movl $0x19d, %ecx            # imm = 0x19D
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x6141
leaq 0x5ae1(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5aea(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1f1, %edx            # imm = 0x1F1
xorl %eax, %eax
callq 0x3290
leaq 0xb924(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5a91(%rip), %rsi      # 0xb5d7
leaq 0x571e(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x7149(%rip), %rsi      # 0xcca7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x670a(%rip), %rsi      # 0xc279
jmp 0x6137
cmpl $0x130, %r12d           # imm = 0x130
je 0x5dfc
cmpl $0x190, %r12d           # imm = 0x190
jne 0x6141
movq 0x58(%rbx), %rdx
leaq 0x59dc(%rip), %rsi      # 0xb575
leaq 0x60c2(%rip), %r8       # 0xbc62
movq %r14, %rdi
movl $0x190, %ecx            # imm = 0x190
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x6141
leaq 0x5a32(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5a3b(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1f3, %edx            # imm = 0x1F3
xorl %eax, %eax
callq 0x3290
leaq 0xb875(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x59e2(%rip), %rsi      # 0xb5d7
leaq 0x566f(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x709a(%rip), %rsi      # 0xcca7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6050(%rip), %rsi      # 0xbc6e
jmp 0x6137
cmpl $0x1f5, %r12d           # imm = 0x1F5
je 0x5e59
cmpl $0x1f7, %r12d           # imm = 0x1F7
jne 0x6141
movq 0x58(%rbx), %rdx
leaq 0x592d(%rip), %rsi      # 0xb575
leaq 0x6c3f(%rip), %r8       # 0xc88e
movq %r14, %rdi
movl $0x1f7, %ecx            # imm = 0x1F7
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x6141
leaq 0x5983(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x598c(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1f8, %edx            # imm = 0x1F8
xorl %eax, %eax
callq 0x3290
leaq 0xb7c6(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5933(%rip), %rsi      # 0xb5d7
leaq 0x55c0(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6feb(%rip), %rsi      # 0xcca7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6bd5(%rip), %rsi      # 0xc8a2
jmp 0x6137
movq 0x58(%rbx), %rdx
leaq 0x5898(%rip), %rsi      # 0xb575
leaq 0x5b33(%rip), %r8       # 0xb817
movq %r14, %rdi
movl $0x12d, %ecx            # imm = 0x12D
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x6141
leaq 0x58ee(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x58f7(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x22d, %edx            # imm = 0x22D
xorl %eax, %eax
callq 0x3290
leaq 0xb731(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x589e(%rip), %rsi      # 0xb5d7
leaq 0x552b(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6f56(%rip), %rsi      # 0xcca7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5ac7(%rip), %rsi      # 0xb829
jmp 0x6137
movq 0x58(%rbx), %rdx
leaq 0x5803(%rip), %rsi      # 0xb575
leaq 0x66f2(%rip), %r8       # 0xc46b
movq %r14, %rdi
movl $0x1a1, %ecx            # imm = 0x1A1
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x6141
leaq 0x5859(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5862(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1f1, %edx            # imm = 0x1F1
xorl %eax, %eax
callq 0x3290
leaq 0xb69c(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5809(%rip), %rsi      # 0xb5d7
leaq 0x5496(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6ec1(%rip), %rsi      # 0xcca7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6687(%rip), %rsi      # 0xc47e
jmp 0x6137
movq 0x58(%rbx), %rdx
leaq 0x576e(%rip), %rsi      # 0xb575
leaq 0x5e47(%rip), %r8       # 0xbc55
movq %r14, %rdi
movl $0x130, %ecx            # imm = 0x130
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x6141
leaq 0xb62e(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x579b(%rip), %rsi      # 0xb5d7
leaq 0x5428(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6e53(%rip), %rsi      # 0xcca7
jmp 0x6137
movq 0x58(%rbx), %rdx
leaq 0x5711(%rip), %rsi      # 0xb575
leaq 0x6a13(%rip), %r8       # 0xc87e
movq %r14, %rdi
movl $0x1f5, %ecx            # imm = 0x1F5
jmp 0x600a
movq 0x58(%rbx), %rdx
leaq 0x56f2(%rip), %rsi      # 0xb575
leaq 0x56f9(%rip), %r8       # 0xb583
movq %r14, %rdi
movl $0x65, %ecx
xorl %eax, %eax
callq 0x3290
leaq 0x56f7(%rip), %rsi      # 0xb597
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x56fb(%rip), %rsi      # 0xb5ac
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
movq 0x80(%rbx), %r15
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x56ef(%rip), %rsi      # 0xb5c2
leaq 0x56fc(%rip), %rdx      # 0xb5d6
movq %rsp, %rdi
callq 0x819a
movq %rsp, %rsi
movq %r15, %rdi
callq 0x8110
movq %rax, %r15
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x5f06
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3460
movq 0x80(%rbx), %rax
addq $0x8, %rax
cmpq %rax, %r15
je 0x631a
movq 0x20(%r15), %rdx
movq 0x40(%r15), %rcx
leaq 0x56ae(%rip), %rsi      # 0xb5d7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
movq 0x80(%rbx), %rdi
movq %r15, %rsi
callq 0x822a
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 0x52c6(%rip), %rdx      # 0xb23f
movl $0x32, %esi
movq %r15, %rdi
movq %rax, %rcx
callq 0x3340
leaq 0x5650(%rip), %rsi      # 0xb5e0
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3290
leaq 0x6d03(%rip), %rsi      # 0xcca7
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 0x85bc
leaq 0x37a(%rip), %rsi       # 0x635a
movq %rax, %rdi
movq %r15, %rdx
callq 0x920d
jmp 0x62c4
movq 0x58(%rbx), %rdx
leaq 0x557a(%rip), %rsi      # 0xb575
leaq 0x5e60(%rip), %r8       # 0xbe62
movq %r14, %rdi
movl $0x194, %ecx            # imm = 0x194
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x6141
leaq 0x55d0(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x55d9(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1fa, %edx            # imm = 0x1FA
xorl %eax, %eax
callq 0x3290
leaq 0xb413(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x5580(%rip), %rsi      # 0xb5d7
leaq 0x520d(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6c38(%rip), %rsi      # 0xcca7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5dec(%rip), %rsi      # 0xbe6c
jmp 0x6137
movq 0x58(%rbx), %rdx
leaq 0x54e5(%rip), %rsi      # 0xb575
leaq 0x54e9(%rip), %r8       # 0xb580
movq %r14, %rdi
movl $0xc8, %ecx
xorl %eax, %eax
callq 0x3290
jmp 0x6141
movq 0x58(%rbx), %rdx
leaq 0x54bf(%rip), %rsi      # 0xb575
leaq 0x5faa(%rip), %r8       # 0xc067
movq %r14, %rdi
movl $0x195, %ecx            # imm = 0x195
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
jne 0x6141
leaq 0x5519(%rip), %rsi      # 0xb5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5522(%rip), %rsi      # 0xb610
movq %r14, %rdi
movl $0x1e5, %edx            # imm = 0x1E5
xorl %eax, %eax
callq 0x3290
leaq 0xb35c(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x54c9(%rip), %rsi      # 0xb5d7
leaq 0x5156(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x6b81(%rip), %rsi      # 0xcca7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
leaq 0x5f43(%rip), %rsi      # 0xc07a
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
movq 0x80(%rbx), %r12
testq %r12, %r12
je 0x61cc
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x510e(%rip), %rsi      # 0xb26b
leaq 0x510d(%rip), %rdx      # 0xb271
movq %rsp, %rdi
callq 0x819a
movq %rsp, %rsi
movq %r12, %rdi
callq 0x8110
movq %rax, %r12
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6190
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3460
movq 0x80(%rbx), %rax
addq $0x8, %rax
cmpq %rax, %r12
je 0x61f0
movq 0x20(%r12), %rdx
movq 0x40(%r12), %rcx
leaq 0x5426(%rip), %rsi      # 0xb5d7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
movq 0x80(%rbx), %rdi
movq %r12, %rsi
callq 0x822a
jmp 0x6212
leaq 0xb28d(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x53fa(%rip), %rsi      # 0xb5d7
leaq 0x5087(%rip), %rdx      # 0xb26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
jmp 0x625f
leaq 0xb269(%rip), %rax      # 0x11460
movq (%rax), %rcx
leaq 0x53d6(%rip), %rsi      # 0xb5d7
leaq 0x5063(%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 0x625f
leaq 0x53aa(%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 0x622d
leaq 0x6a41(%rip), %rsi      # 0xcca7
movq %r14, %rdi
xorl %eax, %eax
callq 0x3290
cmpq $0x0, 0x88(%rbx)
je 0x62c4
xorl %r12d, %r12d
leaq 0xb1cc(%rip), %r13      # 0x11450
movq 0x88(%rbx), %rsi
addq %r12, %rsi
movl $0x1, %edx
movq %r14, %rdi
callq 0x3420
testl %eax, %eax
jne 0x62c4
incq %r12
movl %r12d, %eax
xorl %edx, %edx
divl (%r13)
testl %edx, %edx
jne 0x62b9
movq %r15, %rdi
xorl %esi, %esi
callq 0x3690
movl 0x90(%rbx), %eax
cmpq %rax, %r12
jb 0x6284
cmpl $0x5, 0x38(%rbx)
je 0x62d1
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 0x6309
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
jne 0x6340
jmp 0x6352
jmp 0x634f
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6352
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3460
jmp 0x6352
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3740