// File: /workspace/github_c_makefile_star2_O2/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
pushq $-0x1
popq %rbp
testq %rax, %rax
je 0x5810
movq %rax, %r14
movq %rbx, %rdi
callq 0x3650
leaq 0xb8(%rbx), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x36c0
movl 0x78(%rbx), %r12d
testl %r12d, %r12d
je 0x4f3d
movq 0x58(%rbx), %rdx
testq %rdx, %rdx
jne 0x4e68
pushq $0x8
popq %rdi
callq 0x35d0
movq %rax, 0x58(%rbx)
testq %rax, %rax
je 0x4f3d
movq %rax, %rdx
movabsq $0x312e312f50545448, %rax # imm = 0x312E312F50545448
movq %rax, (%rdx)
movb $0x0, 0x8(%rdx)
cmpl $0x65, %r12d
je 0x5293
cmpl $0x1f7, %r12d           # imm = 0x1F7
je 0x4fdb
cmpl $0xcc, %r12d
je 0x5632
cmpl $0x12d, %r12d           # imm = 0x12D
je 0x55a1
cmpl $0x12e, %r12d           # imm = 0x12E
je 0x5202
cmpl $0x130, %r12d           # imm = 0x130
je 0x5087
cmpl $0x190, %r12d           # imm = 0x190
je 0x4f4a
cmpl $0x194, %r12d           # imm = 0x194
je 0x506c
cmpl $0x195, %r12d           # imm = 0x195
je 0x5510
cmpl $0x19d, %r12d           # imm = 0x19D
je 0x53ee
cmpl $0x1a1, %r12d           # imm = 0x1A1
je 0x5171
cmpl $0x1f4, %r12d           # imm = 0x1F4
je 0x50e0
cmpl $0x1f5, %r12d           # imm = 0x1F5
je 0x547f
cmpl $0xc8, %r12d
jne 0x56c4
leaq 0x5653(%rip), %rsi      # 0xa575
leaq 0x5657(%rip), %r8       # 0xa580
movq %r14, %rdi
movl $0xc8, %ecx
xorl %eax, %eax
callq 0x32a0
jmp 0x56c4
movq %rbx, %rdi
callq 0x3320
jmp 0x5810
leaq 0x5624(%rip), %rsi      # 0xa575
leaq 0x5d0a(%rip), %r8       # 0xac62
movq %r14, %rdi
movl $0x190, %ecx            # imm = 0x190
xorl %eax, %eax
callq 0x32a0
cmpq $0x0, 0x88(%rbx)
jne 0x56c4
leaq 0x567a(%rip), %rsi      # 0xa5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x5683(%rip), %rsi      # 0xa610
movq %r14, %rdi
movl $0x1f3, %edx            # imm = 0x1F3
xorl %eax, %eax
callq 0x32a0
leaq 0xb4d5(%rip), %rax      # 0x10478
movq (%rax), %rcx
leaq 0x562a(%rip), %rsi      # 0xa5d7
leaq 0x52b7(%rip), %rdx      # 0xa26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x6cdf(%rip), %rsi      # 0xbca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x5c98(%rip), %rsi      # 0xac6e
jmp 0x56ba
leaq 0x5593(%rip), %rsi      # 0xa575
leaq 0x68a5(%rip), %r8       # 0xb88e
movq %r14, %rdi
movl $0x1f7, %ecx            # imm = 0x1F7
xorl %eax, %eax
callq 0x32a0
cmpq $0x0, 0x88(%rbx)
jne 0x56c4
leaq 0x55e9(%rip), %rsi      # 0xa5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x55f2(%rip), %rsi      # 0xa610
movq %r14, %rdi
movl $0x1f8, %edx            # imm = 0x1F8
xorl %eax, %eax
callq 0x32a0
leaq 0xb444(%rip), %rax      # 0x10478
movq (%rax), %rcx
leaq 0x5599(%rip), %rsi      # 0xa5d7
leaq 0x5226(%rip), %rdx      # 0xa26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x6c4e(%rip), %rsi      # 0xbca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x683b(%rip), %rsi      # 0xb8a2
jmp 0x56ba
leaq 0x5502(%rip), %rsi      # 0xa575
leaq 0x5de8(%rip), %r8       # 0xae62
movq %r14, %rdi
movl $0x194, %ecx            # imm = 0x194
jmp 0x5495
leaq 0x54e7(%rip), %rsi      # 0xa575
leaq 0x5bc0(%rip), %r8       # 0xac55
movq %r14, %rdi
movl $0x130, %ecx            # imm = 0x130
xorl %eax, %eax
callq 0x32a0
cmpq $0x0, 0x88(%rbx)
jne 0x56c4
leaq 0xb3bf(%rip), %rax      # 0x10478
movq (%rax), %rcx
leaq 0x5514(%rip), %rsi      # 0xa5d7
leaq 0x51a1(%rip), %rdx      # 0xa26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x6bc9(%rip), %rsi      # 0xbca4
jmp 0x56ba
leaq 0x548e(%rip), %rsi      # 0xa575
leaq 0x6582(%rip), %r8       # 0xb670
movq %r14, %rdi
movl $0x1f4, %ecx            # imm = 0x1F4
xorl %eax, %eax
callq 0x32a0
cmpq $0x0, 0x88(%rbx)
jne 0x56c4
leaq 0x54e4(%rip), %rsi      # 0xa5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x54ed(%rip), %rsi      # 0xa610
movq %r14, %rdi
movl $0x1f7, %edx            # imm = 0x1F7
xorl %eax, %eax
callq 0x32a0
leaq 0xb33f(%rip), %rax      # 0x10478
movq (%rax), %rcx
leaq 0x5494(%rip), %rsi      # 0xa5d7
leaq 0x5121(%rip), %rdx      # 0xa26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x6b49(%rip), %rsi      # 0xbca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x651a(%rip), %rsi      # 0xb686
jmp 0x56ba
leaq 0x53fd(%rip), %rsi      # 0xa575
leaq 0x62ec(%rip), %r8       # 0xb46b
movq %r14, %rdi
movl $0x1a1, %ecx            # imm = 0x1A1
xorl %eax, %eax
callq 0x32a0
cmpq $0x0, 0x88(%rbx)
jne 0x56c4
leaq 0x5453(%rip), %rsi      # 0xa5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x545c(%rip), %rsi      # 0xa610
movq %r14, %rdi
movl $0x1f1, %edx            # imm = 0x1F1
xorl %eax, %eax
callq 0x32a0
leaq 0xb2ae(%rip), %rax      # 0x10478
movq (%rax), %rcx
leaq 0x5403(%rip), %rsi      # 0xa5d7
leaq 0x5090(%rip), %rdx      # 0xa26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x6ab8(%rip), %rsi      # 0xbca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x6281(%rip), %rsi      # 0xb47e
jmp 0x56ba
leaq 0x536c(%rip), %rsi      # 0xa575
leaq 0x5c56(%rip), %r8       # 0xae66
movq %r14, %rdi
movl $0x12e, %ecx            # imm = 0x12E
xorl %eax, %eax
callq 0x32a0
cmpq $0x0, 0x88(%rbx)
jne 0x56c4
leaq 0x53c2(%rip), %rsi      # 0xa5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x53cb(%rip), %rsi      # 0xa610
movq %r14, %rdi
movl $0x1fd, %edx            # imm = 0x1FD
xorl %eax, %eax
callq 0x32a0
leaq 0xb21d(%rip), %rax      # 0x10478
movq (%rax), %rcx
leaq 0x5372(%rip), %rsi      # 0xa5d7
leaq 0x4fff(%rip), %rdx      # 0xa26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x6a27(%rip), %rsi      # 0xbca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x57c9(%rip), %rsi      # 0xaa57
jmp 0x56ba
leaq 0x52db(%rip), %rsi      # 0xa575
leaq 0x52e2(%rip), %r8       # 0xa583
pushq $0x65
popq %rcx
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x52e2(%rip), %rsi      # 0xa597
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x52e6(%rip), %rsi      # 0xa5ac
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
movq 0x80(%rbx), %r15
leaq 0x52e4(%rip), %rsi      # 0xa5c2
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x73f2
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x7734
movq %rax, %r15
leaq 0x10(%rsp), %rdi
callq 0x3200
movq 0x80(%rbx), %rax
addq $0x8, %rax
cmpq %rax, %r15
je 0x588b
movq 0x20(%r15), %rdx
movq 0x40(%r15), %rcx
leaq 0x52ad(%rip), %rsi      # 0xa5d7
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
movq 0x80(%rbx), %rdi
movq %r15, %rsi
callq 0x7854
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, 0x20(%r15)
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
andw $0x0, 0x30(%r15)
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x33e0
movq %r12, %rdi
callq 0x3310
leaq 0x4ec4(%rip), %rdx      # 0xa23f
pushq $0x32
popq %rsi
movq %r15, %rdi
movq %rax, %rcx
callq 0x3350
leaq 0x5250(%rip), %rsi      # 0xa5e0
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x32a0
leaq 0x6900(%rip), %rsi      # 0xbca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
movl $0x5, 0x38(%rbx)
pushq $0x10
popq %rdi
callq 0x35d0
movq %rax, %r15
movq %rbx, (%rax)
movl $0x2, 0x8(%rax)
movq 0x28(%rbx), %rax
movq 0x60(%rax), %rdi
callq 0x7c78
leaq 0x4d8(%rip), %rsi       # 0x58b6
movq %rax, %rdi
movq %r15, %rdx
callq 0x8979
jmp 0x57cb
leaq 0x5180(%rip), %rsi      # 0xa575
leaq 0x5e64(%rip), %r8       # 0xb260
movq %r14, %rdi
movl $0x19d, %ecx            # imm = 0x19D
xorl %eax, %eax
callq 0x32a0
cmpq $0x0, 0x88(%rbx)
jne 0x56c4
leaq 0x51d6(%rip), %rsi      # 0xa5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x51df(%rip), %rsi      # 0xa610
movq %r14, %rdi
movl $0x1f1, %edx            # imm = 0x1F1
xorl %eax, %eax
callq 0x32a0
leaq 0xb031(%rip), %rax      # 0x10478
movq (%rax), %rcx
leaq 0x5186(%rip), %rsi      # 0xa5d7
leaq 0x4e13(%rip), %rdx      # 0xa26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x683b(%rip), %rsi      # 0xbca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x5dff(%rip), %rsi      # 0xb279
jmp 0x56ba
leaq 0x50ef(%rip), %rsi      # 0xa575
leaq 0x63f1(%rip), %r8       # 0xb87e
movq %r14, %rdi
movl $0x1f5, %ecx            # imm = 0x1F5
xorl %eax, %eax
callq 0x32a0
cmpq $0x0, 0x88(%rbx)
jne 0x56c4
leaq 0x5145(%rip), %rsi      # 0xa5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x514e(%rip), %rsi      # 0xa610
movq %r14, %rdi
movl $0x1fa, %edx            # imm = 0x1FA
xorl %eax, %eax
callq 0x32a0
leaq 0xafa0(%rip), %rax      # 0x10478
movq (%rax), %rcx
leaq 0x50f5(%rip), %rsi      # 0xa5d7
leaq 0x4d82(%rip), %rdx      # 0xa26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x67aa(%rip), %rsi      # 0xbca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x5961(%rip), %rsi      # 0xae6c
jmp 0x56ba
leaq 0x505e(%rip), %rsi      # 0xa575
leaq 0x5b49(%rip), %r8       # 0xb067
movq %r14, %rdi
movl $0x195, %ecx            # imm = 0x195
xorl %eax, %eax
callq 0x32a0
cmpq $0x0, 0x88(%rbx)
jne 0x56c4
leaq 0x50b4(%rip), %rsi      # 0xa5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x50bd(%rip), %rsi      # 0xa610
movq %r14, %rdi
movl $0x1e5, %edx            # imm = 0x1E5
xorl %eax, %eax
callq 0x32a0
leaq 0xaf0f(%rip), %rax      # 0x10478
movq (%rax), %rcx
leaq 0x5064(%rip), %rsi      # 0xa5d7
leaq 0x4cf1(%rip), %rdx      # 0xa26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x6719(%rip), %rsi      # 0xbca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x5ade(%rip), %rsi      # 0xb07a
jmp 0x56ba
leaq 0x4fcd(%rip), %rsi      # 0xa575
leaq 0x5268(%rip), %r8       # 0xa817
movq %r14, %rdi
movl $0x12d, %ecx            # imm = 0x12D
xorl %eax, %eax
callq 0x32a0
cmpq $0x0, 0x88(%rbx)
jne 0x56c4
leaq 0x5023(%rip), %rsi      # 0xa5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x502c(%rip), %rsi      # 0xa610
movq %r14, %rdi
movl $0x22d, %edx            # imm = 0x22D
xorl %eax, %eax
callq 0x32a0
leaq 0xae7e(%rip), %rax      # 0x10478
movq (%rax), %rcx
leaq 0x4fd3(%rip), %rsi      # 0xa5d7
leaq 0x4c60(%rip), %rdx      # 0xa26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x6688(%rip), %rsi      # 0xbca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x51fc(%rip), %rsi      # 0xa829
jmp 0x56ba
leaq 0x4f3c(%rip), %rsi      # 0xa575
leaq 0x4fab(%rip), %r8       # 0xa5eb
movq %r14, %rdi
movl $0xcc, %ecx
xorl %eax, %eax
callq 0x32a0
cmpq $0x0, 0x88(%rbx)
jne 0x56c4
leaq 0x4f96(%rip), %rsi      # 0xa5f6
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x4f9f(%rip), %rsi      # 0xa610
movq %r14, %rdi
movl $0x1f1, %edx            # imm = 0x1F1
xorl %eax, %eax
callq 0x32a0
leaq 0xadf1(%rip), %rax      # 0x10478
movq (%rax), %rcx
leaq 0x4f46(%rip), %rsi      # 0xa5d7
leaq 0x4bd3(%rip), %rdx      # 0xa26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x65fb(%rip), %rsi      # 0xbca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x4f6b(%rip), %rsi      # 0xa625
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
movq 0x80(%rbx), %r12
testq %r12, %r12
je 0x5743
leaq 0x4b94(%rip), %rsi      # 0xa26b
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x73f2
leaq 0x10(%rsp), %rsi
movq %r12, %rdi
callq 0x7734
movq %rax, %r12
leaq 0x10(%rsp), %rdi
callq 0x3200
movq 0x80(%rbx), %rax
addq $0x8, %rax
cmpq %rax, %r12
je 0x5821
movq 0x20(%r12), %rdx
movq 0x40(%r12), %rcx
leaq 0x4eb2(%rip), %rsi      # 0xa5d7
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
movq 0x80(%rbx), %rdi
movq %r12, %rsi
callq 0x7854
jmp 0x5843
leaq 0xad2e(%rip), %rax      # 0x10478
movq (%rax), %rcx
leaq 0x4e83(%rip), %rsi      # 0xa5d7
leaq 0x4b10(%rip), %rdx      # 0xa26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
leaq 0x6538(%rip), %rsi      # 0xbca4
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
cmpq $0x0, 0x88(%rbx)
je 0x57cb
xorl %r12d, %r12d
pushq $0x1
popq %r13
leaq 0xacda(%rip), %rbp      # 0x10468
movq 0x88(%rbx), %rsi
addq %r12, %rsi
movq %r14, %rdi
movq %r13, %rdx
callq 0x3430
testl %eax, %eax
jne 0x57cb
incq %r12
movl %r12d, %eax
xorl %edx, %edx
divl (%rbp)
testl %edx, %edx
jne 0x57c0
movq %r15, %rdi
xorl %esi, %esi
callq 0x36c0
movl 0x90(%rbx), %eax
cmpq %rax, %r12
jb 0x578e
cmpl $0x5, 0x38(%rbx)
je 0x57d8
movl $0x4, 0x38(%rbx)
movq 0x30(%rbx), %rdi
callq 0x3640
movq 0x30(%rbx), %rdi
callq 0x3190
movq %rax, %rdi
movq %r14, %rsi
callq 0x37e0
movq 0x30(%rbx), %rdi
callq 0x3710
movq %rbx, %rdi
callq 0x3320
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
leaq 0xac50(%rip), %rax      # 0x10478
movq (%rax), %rcx
leaq 0x4da5(%rip), %rsi      # 0xa5d7
leaq 0x4a32(%rip), %rdx      # 0xa26b
movq %r14, %rdi
xorl %eax, %eax
callq 0x32a0
movq 0x80(%rbx), %rax
movq 0x18(%rax), %r13
leaq 0x4d82(%rip), %r12      # 0xa5d7
addq $0x8, %rax
cmpq %rax, %r13
je 0x5765
movq 0x20(%r13), %rdx
movq 0x40(%r13), %rcx
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x32a0
movq %r13, %rdi
callq 0x32d0
movq %rax, %r13
movq 0x80(%rbx), %rax
jmp 0x5855
movq %r14, %rdi
callq 0x31a0
jmp 0x5810
jmp 0x589c
jmp 0x58ab
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x3200
jmp 0x58ae
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3770