// File: /workspace/github_c_makefile_star2_O0/niuyuling[P]CProxy/http_request.c
// Function: request_head
char *request_head(conn_t * in, conf * configure)
{
    char *result = NULL;
    char *delim = ",";
    char *saveptr = NULL;
    char *incomplete_head = NULL;
    int incomplete_head_len = 0;
    int return_val = 0;
    struct http_request *http_request;
    http_request = (struct http_request *)malloc(sizeof(struct http_request));
    memset(http_request, 0, sizeof(struct http_request));

    parse_request_head(in->incomplete_data, http_request);

    if ((return_val = strncmp(in->incomplete_data, "CONNECT", 7)) == 0) {
        sslEncodeCode = configure->https_encode;

        char https_del_copy[configure->https_del_len + 1];

        memset(remote_host, 0, CACHE_SIZE);
        if (configure->https_port > 0) {
            remote_port = configure->https_port;
        }
        if (configure->https_ip != NULL) {
            memcpy(remote_host, configure->https_ip, configure->https_ip_len);
        }

        incomplete_head = (char *)malloc(sizeof(char) * (BUFFER_SIZE));
        if (incomplete_head == NULL) {
            free(incomplete_head);
            perror("malloc");
        }
        memset(incomplete_head, 0, sizeof(char) * (BUFFER_SIZE));
        memmove(incomplete_head, in->incomplete_data, in->incomplete_data_len);
        memmove(https_del_copy, configure->https_del, configure->https_del_len + 1);

        result = strtok_r(https_del_copy, delim, &saveptr);
        while (result != NULL) {
            delete_head(incomplete_head, &in->incomplete_data_len, result, '\n');
            result = strtok_r(NULL, delim, &saveptr);
        }

        splice_head(incomplete_head, &in->incomplete_data_len, "\n", configure->https_first, configure->https_first_len);

        incomplete_head_len = in->incomplete_data_len; // 更新HTTPS HEADER长度
        incomplete_head = conf_handle_strrep(incomplete_head, &incomplete_head_len, https_head_strrep);
        incomplete_head = conf_handle_regrep(incomplete_head, &incomplete_head_len, https_head_regrep);

        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[M]", 3, http_request->method, http_request->method_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[method]", 8, http_request->method, http_request->method_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[U]", 3, http_request->U, http_request->U_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[V]", 3, http_request->version, http_request->version_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[version]", 9, http_request->version, http_request->version_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[host]", 6, http_request->host, http_request->host_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[port]", 6, http_request->port, http_request->port_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[H]", 3, http_request->H, http_request->H_len);

        printf("%s", incomplete_head); // 打印HTTPS HEADER

        char *new_incomplete_data;
        new_incomplete_data = (char *)realloc(in->incomplete_data, incomplete_head_len + 1);
        if (new_incomplete_data == NULL) {
            free(in->incomplete_data);
            perror("realloc");
            return in->incomplete_data;
        }
        in->incomplete_data = new_incomplete_data;
        memset(in->incomplete_data, 0, incomplete_head_len + 1);                // 清空incomplete_data数据
        memmove(in->incomplete_data, incomplete_head, incomplete_head_len);     // 更新incomplete_data数据
        in->incomplete_data_len = incomplete_head_len;                          // 更新incomplete_data长度

        free(incomplete_head);                                                  // 释放incomplete_head内存
    }

    if (strncmp(in->incomplete_data, "GET", 3) == 0 || strncmp(in->incomplete_data, "POST", 4) == 0) {
        sslEncodeCode = configure->http_encode;

        char http_del_copy[configure->http_del_len + 1];

        memset(remote_host, 0, CACHE_SIZE);
        if (configure->http_port > 0) {
            remote_port = configure->http_port;
        }
        if (configure->http_ip != NULL) {
            memcpy(remote_host, configure->http_ip, configure->http_ip_len);
        }

        incomplete_head = (char *)malloc(sizeof(char) * (BUFFER_SIZE));
        if (incomplete_head == NULL) {
            perror("malloc");
            free(incomplete_head);
        }

        memset(incomplete_head, 0, sizeof(char) * (BUFFER_SIZE));
        memmove(incomplete_head, in->incomplete_data, in->incomplete_data_len);
        memmove(http_del_copy, configure->http_del, configure->http_del_len + 1);

        result = strtok_r(http_del_copy, delim, &saveptr);
        while (result != NULL) {
            delete_head(incomplete_head, &in->incomplete_data_len, result, '\n');
            result = strtok_r(NULL, delim, &saveptr);
        }

        splice_head(incomplete_head, &in->incomplete_data_len, "\n", configure->http_first, configure->http_first_len);
        incomplete_head_len = in->incomplete_data_len; // 更新HTTP HEADER长度
        incomplete_head = conf_handle_strrep(incomplete_head, &incomplete_head_len, http_head_strrep);
        incomplete_head = conf_handle_regrep(incomplete_head, &incomplete_head_len, http_head_regrep);

        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[M]", 3, http_request->method, http_request->method_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[method]", 8, http_request->method, http_request->method_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[U]", 3, http_request->U, http_request->U_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[V]", 3, http_request->version, http_request->version_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[version]", 9, http_request->version, http_request->version_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[url]", 5, http_request->url, http_request->url_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[uri]", 5, http_request->uri, http_request->uri_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[host]", 6, http_request->host, http_request->host_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[port]", 6, http_request->port, http_request->port_len);
        incomplete_head = replace(incomplete_head, &incomplete_head_len, "[H]", 3, http_request->H, http_request->H_len);

        printf("%s", incomplete_head); // 打印HTTP HEADER

        char *new_incomplete_data;
        new_incomplete_data = (char *)realloc(in->incomplete_data, incomplete_head_len + 1);
        if (new_incomplete_data == NULL) {
            free(in->incomplete_data);
            perror("realloc");
            return in->incomplete_data;
        }
        in->incomplete_data = new_incomplete_data;
        memset(in->incomplete_data, 0, incomplete_head_len + 1);                // 清空incomplete_data数据
        memmove(in->incomplete_data, incomplete_head, incomplete_head_len);     // 更新incomplete_data数据
        in->incomplete_data_len = incomplete_head_len;                          // 更新incomplete_data长度

        free(incomplete_head);                                                  // 释放incomplete_head内存
    }

    free_http_request(http_request);
    free(http_request);
    return in->incomplete_data;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
leaq 0x6342(%rip), %rax      # 0xc444
movq %rax, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movq $0x0, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x40(%rbp)
movl $0x60, %edi
callq 0x2350
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
xorl %esi, %esi
movl $0x60, %edx
callq 0x21c0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x48(%rbp), %rsi
callq 0x5b50
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x6268(%rip), %rsi      # 0xc3ca
movl $0x7, %edx
callq 0x2070
movl %eax, -0x40(%rbp)
cmpl $0x0, %eax
jne 0x6568
movq -0x18(%rbp), %rax
movl 0x7c(%rax), %ecx
leaq 0x1652e(%rip), %rax     # 0x1c6b4
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movl 0x74(%rax), %eax
incl %eax
movq %rsp, %rcx
movq %rcx, -0x50(%rbp)
movq %rax, %rdx
addq $0xf, %rdx
andq $-0x10, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x88(%rbp)
movq %rcx, %rsp
movq %rax, -0x58(%rbp)
leaq 0x163e2(%rip), %rdi     # 0x1c5a0
xorl %esi, %esi
movl $0x10e, %edx            # imm = 0x10E
callq 0x21c0
movq -0x18(%rbp), %rax
cmpl $0x0, 0x50(%rax)
jle 0x61e4
movq -0x18(%rbp), %rax
movl 0x50(%rax), %ecx
leaq 0x164ce(%rip), %rax     # 0x1c6b0
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x58(%rax)
je 0x620b
movq -0x18(%rbp), %rax
movq 0x58(%rax), %rsi
movq -0x18(%rbp), %rax
movslq 0x70(%rax), %rdx
leaq 0x1639a(%rip), %rdi     # 0x1c5a0
callq 0x2300
movl $0x2000, %edi           # imm = 0x2000
callq 0x2350
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x6235
movq -0x38(%rbp), %rdi
callq 0x2030
leaq 0x6205(%rip), %rdi      # 0xc435
callq 0x2480
movq -0x38(%rbp), %rdi
xorl %esi, %esi
movl $0x2000, %edx           # imm = 0x2000
callq 0x21c0
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x10(%rbp), %rax
movslq 0x18(%rax), %rdx
callq 0x2450
movq -0x88(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x60(%rax), %rsi
movq -0x18(%rbp), %rax
movl 0x74(%rax), %eax
addl $0x1, %eax
movslq %eax, %rdx
callq 0x2450
movq -0x88(%rbp), %rdi
movq -0x28(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x2250
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x62cf
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x18, %rsi
movq -0x20(%rbp), %rdx
movl $0xa, %ecx
callq 0x6a20
movq -0x28(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edi
leaq -0x30(%rbp), %rdx
callq 0x2250
movq %rax, -0x20(%rbp)
jmp 0x6297
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x18, %rsi
movq -0x18(%rbp), %rax
movq 0x68(%rax), %rcx
movq -0x18(%rbp), %rax
movl 0x78(%rax), %r8d
leaq 0x6120(%rip), %rdx      # 0xc412
callq 0x6ba0
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x3c(%rbp)
movq -0x38(%rbp), %rdi
leaq 0x1623c(%rip), %rax     # 0x1c548
movq (%rax), %rdx
leaq -0x3c(%rbp), %rsi
callq 0x6ce0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
leaq 0x16229(%rip), %rax     # 0x1c550
movq (%rax), %rdx
leaq -0x3c(%rbp), %rsi
callq 0x6d60
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq (%rax), %r8
movq -0x48(%rbp), %rax
movl 0x40(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x60f1(%rip), %rdx      # 0xc446
movl $0x3, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq (%rax), %r8
movq -0x48(%rbp), %rax
movl 0x40(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x60c9(%rip), %rdx      # 0xc44a
movl $0x8, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x8(%rax), %r8
movq -0x48(%rbp), %rax
movl 0x44(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x60a5(%rip), %rdx      # 0xc453
movl $0x3, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x10(%rax), %r8
movq -0x48(%rbp), %rax
movl 0x48(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x607c(%rip), %rdx      # 0xc457
movl $0x3, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x10(%rax), %r8
movq -0x48(%rbp), %rax
movl 0x48(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x6053(%rip), %rdx      # 0xc45b
movl $0x9, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x18(%rax), %r8
movq -0x48(%rbp), %rax
movl 0x4c(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x6030(%rip), %rdx      # 0xc465
movl $0x6, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x20(%rax), %r8
movq -0x48(%rbp), %rax
movl 0x50(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x600a(%rip), %rdx      # 0xc46c
movl $0x6, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x28(%rax), %r8
movq -0x48(%rbp), %rax
movl 0x54(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x5fe4(%rip), %rdx      # 0xc473
movl $0x3, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rsi
leaq 0x5ca1(%rip), %rdi      # 0xc149
movb $0x0, %al
callq 0x2180
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x23e0
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
jne 0x64fe
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2030
leaq 0x5f93(%rip), %rdi      # 0xc477
callq 0x2480
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
movl $0x1, -0x64(%rbp)
jmp 0x6551
movq -0x60(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdx
xorl %esi, %esi
callq 0x21c0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x38(%rbp), %rsi
movslq -0x3c(%rbp), %rdx
callq 0x2450
movl -0x3c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x38(%rbp), %rdi
callq 0x2030
movl $0x0, -0x64(%rbp)
movq -0x50(%rbp), %rax
movq %rax, %rsp
movl -0x64(%rbp), %eax
testl %eax, %eax
je 0x6566
jmp 0x6561
jmp 0x6a0d
jmp 0x6568
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x5e4a(%rip), %rsi      # 0xc3c1
movl $0x3, %edx
callq 0x2070
cmpl $0x0, %eax
je 0x65a8
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x5e30(%rip), %rsi      # 0xc3c5
movl $0x4, %edx
callq 0x2070
cmpl $0x0, %eax
jne 0x69ef
movq -0x18(%rbp), %rax
movl 0x4c(%rax), %ecx
leaq 0x160fe(%rip), %rax     # 0x1c6b4
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movl 0x44(%rax), %eax
incl %eax
movq %rsp, %rcx
movq %rcx, -0x70(%rbp)
movq %rax, %rdx
addq $0xf, %rdx
andq $-0x10, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x90(%rbp)
movq %rcx, %rsp
movq %rax, -0x78(%rbp)
leaq 0x15fb2(%rip), %rdi     # 0x1c5a0
xorl %esi, %esi
movl $0x10e, %edx            # imm = 0x10E
callq 0x21c0
movq -0x18(%rbp), %rax
cmpl $0x0, 0x20(%rax)
jle 0x6614
movq -0x18(%rbp), %rax
movl 0x20(%rax), %ecx
leaq 0x1609e(%rip), %rax     # 0x1c6b0
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x663b
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rsi
movq -0x18(%rbp), %rax
movslq 0x40(%rax), %rdx
leaq 0x15f6a(%rip), %rdi     # 0x1c5a0
callq 0x2300
movl $0x2000, %edi           # imm = 0x2000
callq 0x2350
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x6665
leaq 0x5dde(%rip), %rdi      # 0xc435
callq 0x2480
movq -0x38(%rbp), %rdi
callq 0x2030
movq -0x38(%rbp), %rdi
xorl %esi, %esi
movl $0x2000, %edx           # imm = 0x2000
callq 0x21c0
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x10(%rbp), %rax
movslq 0x18(%rax), %rdx
callq 0x2450
movq -0x90(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rsi
movq -0x18(%rbp), %rax
movl 0x44(%rax), %eax
addl $0x1, %eax
movslq %eax, %rdx
callq 0x2450
movq -0x90(%rbp), %rdi
movq -0x28(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x2250
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x66ff
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x18, %rsi
movq -0x20(%rbp), %rdx
movl $0xa, %ecx
callq 0x6a20
movq -0x28(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edi
leaq -0x30(%rbp), %rdx
callq 0x2250
movq %rax, -0x20(%rbp)
jmp 0x66c7
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x18, %rsi
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rcx
movq -0x18(%rbp), %rax
movl 0x48(%rax), %r8d
leaq 0x5cf0(%rip), %rdx      # 0xc412
callq 0x6ba0
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x3c(%rbp)
movq -0x38(%rbp), %rdi
leaq 0x15dfc(%rip), %rax     # 0x1c538
movq (%rax), %rdx
leaq -0x3c(%rbp), %rsi
callq 0x6ce0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
leaq 0x15de9(%rip), %rax     # 0x1c540
movq (%rax), %rdx
leaq -0x3c(%rbp), %rsi
callq 0x6d60
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq (%rax), %r8
movq -0x48(%rbp), %rax
movl 0x40(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x5cc1(%rip), %rdx      # 0xc446
movl $0x3, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq (%rax), %r8
movq -0x48(%rbp), %rax
movl 0x40(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x5c99(%rip), %rdx      # 0xc44a
movl $0x8, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x8(%rax), %r8
movq -0x48(%rbp), %rax
movl 0x44(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x5c75(%rip), %rdx      # 0xc453
movl $0x3, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x10(%rax), %r8
movq -0x48(%rbp), %rax
movl 0x48(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x5c4c(%rip), %rdx      # 0xc457
movl $0x3, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x10(%rax), %r8
movq -0x48(%rbp), %rax
movl 0x48(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x5c23(%rip), %rdx      # 0xc45b
movl $0x9, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x30(%rax), %r8
movq -0x48(%rbp), %rax
movl 0x58(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x5c1a(%rip), %rdx      # 0xc47f
movl $0x5, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x38(%rax), %r8
movq -0x48(%rbp), %rax
movl 0x5c(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x5bf3(%rip), %rdx      # 0xc485
movl $0x5, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x18(%rax), %r8
movq -0x48(%rbp), %rax
movl 0x4c(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x5ba6(%rip), %rdx      # 0xc465
movl $0x6, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x20(%rax), %r8
movq -0x48(%rbp), %rax
movl 0x50(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x5b80(%rip), %rdx      # 0xc46c
movl $0x6, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x28(%rax), %r8
movq -0x48(%rbp), %rax
movl 0x54(%rax), %r9d
leaq -0x3c(%rbp), %rsi
leaq 0x5b5a(%rip), %rdx      # 0xc473
movl $0x3, %ecx
callq 0x4d00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rsi
leaq 0x5817(%rip), %rdi      # 0xc149
movb $0x0, %al
callq 0x2180
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x23e0
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x80(%rbp)
jne 0x6988
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2030
leaq 0x5b09(%rip), %rdi      # 0xc477
callq 0x2480
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
movl $0x1, -0x64(%rbp)
jmp 0x69db
movq -0x80(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdx
xorl %esi, %esi
callq 0x21c0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x38(%rbp), %rsi
movslq -0x3c(%rbp), %rdx
callq 0x2450
movl -0x3c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x38(%rbp), %rdi
callq 0x2030
movl $0x0, -0x64(%rbp)
movq -0x70(%rbp), %rax
movq %rax, %rsp
movl -0x64(%rbp), %eax
testl %eax, %eax
je 0x69ed
jmp 0x69eb
jmp 0x6a0d
jmp 0x69ef
movq -0x48(%rbp), %rdi
callq 0x5a80
movq -0x48(%rbp), %rdi
callq 0x2030
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rbp, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)