// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/demos/demo_query.c
// Function: use_low_level_api
int use_low_level_api(KMIP *ctx, BIO *bio, enum query_function queries[], size_t query_count, QueryResponse* query_result)
{
    if (ctx == NULL || bio == NULL || queries == NULL || query_count == 0 || query_result == NULL)
    {
        return(KMIP_ARG_INVALID);
    }

    printf("bio query start \n");

    size_t buffer_blocks = 1;
    size_t buffer_block_size = 1024;
    size_t buffer_total_size = buffer_blocks * buffer_block_size;

    uint8 *encoding = ctx->calloc_func(ctx->state, buffer_blocks, buffer_block_size);
    if(encoding == NULL)
    {
        kmip_destroy(ctx);
        return(KMIP_MEMORY_ALLOC_FAILED);
    }
    printf("encoding = %p\n", encoding);
    kmip_set_buffer(ctx, encoding, buffer_total_size);

    /* Build the request message. */
    ProtocolVersion pv = {0};
    kmip_init_protocol_version(&pv, ctx->version);

    RequestHeader rh = {0};
    kmip_init_request_header(&rh);

    rh.protocol_version = &pv;
    rh.maximum_response_size = ctx->max_message_size;
    rh.time_stamp = time(NULL);
    rh.batch_count = 1;

    LinkedList *list_1 = ctx->calloc_func(ctx->state, 1, sizeof(LinkedList));
    for(size_t i = 0; i < query_count; i++)
    {
        LinkedListItem *item = ctx->calloc_func(ctx->state, 1, sizeof(LinkedListItem));
        item->data = &queries[i];
        kmip_linked_list_enqueue(list_1, item);
    }
    Functions functions = {0};
    functions.function_list = list_1;

    QueryRequestPayload qrp = {0};
    qrp.functions = &functions;

    RequestBatchItem rbi = {0};
    kmip_init_request_batch_item(&rbi);
    rbi.operation = KMIP_OP_QUERY;
    rbi.request_payload = &qrp;

    RequestMessage rm = {0};
    rm.request_header = &rh;
    rm.batch_items = &rbi;
    rm.batch_count = 1;

    /* Encode the request message. Dynamically resize the encoding buffer */
    /* if it's not big enough. Once encoding succeeds, send the request   */
    /* message.                                                           */
    int encode_result = kmip_encode_request_message(ctx, &rm);
    while(encode_result == KMIP_ERROR_BUFFER_FULL)
    {
        kmip_reset(ctx);
        ctx->free_func(ctx->state, encoding);

        buffer_blocks += 1;
        buffer_total_size = buffer_blocks * buffer_block_size;

        encoding = ctx->calloc_func(ctx->state, buffer_blocks, buffer_block_size);
        if(encoding == NULL)
        {
            printf("Failure: Could not automatically enlarge the encoding ");
            printf("buffer for the Query request.\n");

            kmip_destroy(ctx);
            return(KMIP_MEMORY_ALLOC_FAILED);
        }
        printf("encoding = %p\n", encoding);

        kmip_set_buffer(ctx, encoding, buffer_total_size);
        encode_result = kmip_encode_request_message(ctx, &rm);
    }

    if(encode_result != KMIP_OK)
    {
        printf("An error occurred while encoding the Query request.\n");
        printf("Error Code: %d\n", encode_result);
        printf("Error Name: ");
        kmip_print_error_string(stdout, encode_result);
        printf("\n");
        printf("Context Error: %s\n", ctx->error_message);
        printf("Stack trace:\n");
        kmip_print_stack_trace(stdout, ctx);

        kmip_free_buffer(ctx, encoding, buffer_total_size);
        encoding = NULL;
        kmip_set_buffer(ctx, NULL, 0);
        kmip_destroy(ctx);
        return(encode_result);
    }

    kmip_print_request_message(stdout, &rm);
    printf("\n");

    char *response = NULL;
    int response_size = 0;

    printf("bio query send request\n");

    int result = kmip_bio_send_request_encoding(ctx, bio, (char *)encoding,
                                                ctx->index - ctx->buffer,
                                                &response, &response_size);

    printf("bio query response = %p\n", response);

    printf("\n");
    if(result < 0)
    {
        printf("An error occurred in query request.\n");
        printf("Error Code: %d\n", result);
        printf("Error Name: ");
        kmip_print_error_string(stderr, result);
        printf("\n");
        printf("Context Error: %s\n", ctx->error_message);
        printf("Stack trace:\n");
        kmip_print_stack_trace(stderr, ctx);

        kmip_free_buffer(ctx, encoding, buffer_total_size);
        kmip_free_buffer(ctx, response, response_size);
        encoding = NULL;
        response = NULL;
        kmip_set_buffer(ctx, NULL, 0);
        kmip_destroy(ctx);
        return(result);
    }

    kmip_free_query_request_payload(ctx, &qrp);

    if (response)
    {
        FILE* out = fopen( "/tmp/kmip_query.dat", "w" );
        if (out)
        {
            if (fwrite( response, response_size, 1, out ) != 1 )
                fprintf(stderr, "failed writing dat file\n");
            fclose(out);
        }
        kmip_print_buffer(stdout, response, response_size);
    }

    printf("bio query free encoding =  %p\n", encoding);
    kmip_free_buffer(ctx, encoding, buffer_total_size);
    encoding = NULL;
    kmip_set_buffer(ctx, response, response_size);

    /* Decode the response message and retrieve the operation results. */
    ResponseMessage resp_m = {0};
    int decode_result = kmip_decode_response_message(ctx, &resp_m);
    if(decode_result != KMIP_OK)
    {
        printf("An error occurred while decoding the Query response.\n");
        printf("Error Code: %d\n", decode_result);
        printf("Error Name: ");
        kmip_print_error_string(stderr, decode_result);
        printf("\n");
        printf("Context Error: %s\n", ctx->error_message);
        printf("Stack trace:\n");
        kmip_print_stack_trace(stderr, ctx);

        kmip_free_response_message(ctx, &resp_m);
        kmip_free_buffer(ctx, response, response_size);
        response = NULL;
        kmip_set_buffer(ctx, NULL, 0);
        kmip_destroy(ctx);
        return(decode_result);
    }

    kmip_print_response_message(stdout, &resp_m);
    printf("\n");

    if(resp_m.batch_count != 1 || resp_m.batch_items == NULL)
    {
        printf("Expected to find one batch item in the Query response.\n");
        kmip_free_response_message(ctx, &resp_m);
        kmip_free_buffer(ctx, response, response_size);
        response = NULL;
        kmip_set_buffer(ctx, NULL, 0);
        kmip_destroy(ctx);
        return(KMIP_MALFORMED_RESPONSE);
    }

    ResponseBatchItem req = resp_m.batch_items[0];
    enum result_status result_status = req.result_status;

    printf("The KMIP operation was executed with no errors.\n");
    printf("Result: ");
    kmip_print_result_status_enum(stdout, result);
    printf(" (%d)\n\n", result);

    if(result == KMIP_STATUS_SUCCESS)
    {
        kmip_copy_query_result(query_result, (QueryResponsePayload*) req.response_payload);
    }

    /* Clean up the response message, the response buffer, and the KMIP */
    /* context.                                                         */
    kmip_free_response_message(ctx, &resp_m);
    kmip_free_buffer(ctx, response, response_size);
    response = NULL;

    kmip_set_buffer(ctx, NULL, 0);
    kmip_destroy(ctx);

    printf("bio query done \n");

    return(result_status);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x2702
cmpq $0x0, -0x18(%rbp)
je 0x2702
cmpq $0x0, -0x20(%rbp)
je 0x2702
cmpq $0x0, -0x28(%rbp)
je 0x2702
cmpq $0x0, -0x30(%rbp)
jne 0x270e
movl $0xffffffef, -0x4(%rbp) # imm = 0xFFFFFFEF
jmp 0x305c
leaq 0x28adf(%rip), %rdi     # 0x2b1f4
movb $0x0, %al
callq 0x2040
movq $0x1, -0x38(%rbp)
movq $0x400, -0x40(%rbp)     # imm = 0x400
movq -0x38(%rbp), %rax
imulq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq *%rax
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0x2779
movq -0x10(%rbp), %rdi
callq 0x4c90
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x305c
movq -0x50(%rbp), %rsi
leaq 0x28a82(%rip), %rdi     # 0x2b206
movb $0x0, %al
callq 0x2040
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x4c40
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x20e0
movq -0x10(%rbp), %rax
movl 0x18(%rax), %esi
leaq -0x58(%rbp), %rdi
callq 0x5440
leaq -0xa8(%rbp), %rdi
xorl %esi, %esi
movl $0x50, %edx
callq 0x20e0
leaq -0xa8(%rbp), %rdi
callq 0x56a0
leaq -0x58(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0xa0(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x2130
movq %rax, -0x88(%rbp)
movl $0x1, -0x80(%rbp)
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x18, %edx
callq *%rax
movq %rax, -0xb0(%rbp)
movq $0x0, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x28b8
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x18, %edx
callq *%rax
movq %rax, -0xc0(%rbp)
movq -0x20(%rbp), %rcx
movq -0xb8(%rbp), %rax
shlq $0x2, %rax
addq %rax, %rcx
movq -0xc0(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0xb0(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0x3840
movq -0xb8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xb8(%rbp)
jmp 0x283e
leaq -0xc8(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x20e0
movq -0xb0(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq -0xd0(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x20e0
leaq -0xc8(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq -0xf0(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x20e0
leaq -0xf0(%rbp), %rdi
callq 0x57d0
movl $0x18, -0xf0(%rbp)
leaq -0xd0(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq -0x108(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x20e0
leaq -0xa8(%rbp), %rax
movq %rax, -0x108(%rbp)
leaq -0xf0(%rbp), %rax
movq %rax, -0x100(%rbp)
movq $0x1, -0xf8(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0x129d0
movl %eax, -0x10c(%rbp)
cmpl $-0x2, -0x10c(%rbp)
jne 0x2a66
movq -0x10(%rbp), %rdi
callq 0x4ba0
movq -0x10(%rbp), %rax
movq 0x878(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movq -0x50(%rbp), %rsi
callq *%rax
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
imulq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq *%rax
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0x2a28
leaq 0x28817(%rip), %rdi     # 0x2b215
movb $0x0, %al
callq 0x2040
leaq 0x28840(%rip), %rdi     # 0x2b24c
movb $0x0, %al
callq 0x2040
movq -0x10(%rbp), %rdi
callq 0x4c90
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x305c
movq -0x50(%rbp), %rsi
leaq 0x287d3(%rip), %rdi     # 0x2b206
movb $0x0, %al
callq 0x2040
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x4c40
movq -0x10(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0x129d0
movl %eax, -0x10c(%rbp)
jmp 0x2981
cmpl $0x0, -0x10c(%rbp)
je 0x2b3d
leaq 0x287f1(%rip), %rdi     # 0x2b26b
movb $0x0, %al
callq 0x2040
movl -0x10c(%rbp), %esi
leaq 0x28812(%rip), %rdi     # 0x2b2a0
movb $0x0, %al
callq 0x2040
leaq 0x28814(%rip), %rdi     # 0x2b2b0
movb $0x0, %al
callq 0x2040
movq 0x3351e(%rip), %rax     # 0x35fc8
movq (%rax), %rdi
movl -0x10c(%rbp), %esi
callq 0x20550
leaq 0x2896f(%rip), %rdi     # 0x2b42e
movb $0x0, %al
callq 0x2040
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
leaq 0x287e8(%rip), %rdi     # 0x2b2bd
movb $0x0, %al
callq 0x2040
leaq 0x287ed(%rip), %rdi     # 0x2b2d0
movb $0x0, %al
callq 0x2040
movq 0x334d7(%rip), %rax     # 0x35fc8
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x204e0
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x5810
movq $0x0, -0x50(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x4c40
movq -0x10(%rbp), %rdi
callq 0x4c90
movl -0x10c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x305c
movq 0x33484(%rip), %rax     # 0x35fc8
movq (%rax), %rdi
leaq -0x108(%rbp), %rsi
callq 0x25d60
leaq 0x288d4(%rip), %rdi     # 0x2b42e
movb $0x0, %al
callq 0x2040
movq $0x0, -0x118(%rbp)
movl $0x0, -0x11c(%rbp)
leaq 0x28761(%rip), %rdi     # 0x2b2de
movb $0x0, %al
callq 0x2040
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movl %eax, %ecx
leaq -0x118(%rbp), %r8
leaq -0x11c(%rbp), %r9
callq 0x29b90
movl %eax, -0x120(%rbp)
movq -0x118(%rbp), %rsi
leaq 0x2872b(%rip), %rdi     # 0x2b2f6
movb $0x0, %al
callq 0x2040
leaq 0x28855(%rip), %rdi     # 0x2b42e
movb $0x0, %al
callq 0x2040
cmpl $0x0, -0x120(%rbp)
jge 0x2cd9
leaq 0x2871b(%rip), %rdi     # 0x2b30f
movb $0x0, %al
callq 0x2040
movl -0x120(%rbp), %esi
leaq 0x28698(%rip), %rdi     # 0x2b2a0
movb $0x0, %al
callq 0x2040
leaq 0x2869a(%rip), %rdi     # 0x2b2b0
movb $0x0, %al
callq 0x2040
movq 0x333bc(%rip), %rax     # 0x35fe0
movq (%rax), %rdi
movl -0x120(%rbp), %esi
callq 0x20550
leaq 0x287f5(%rip), %rdi     # 0x2b42e
movb $0x0, %al
callq 0x2040
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
leaq 0x2866e(%rip), %rdi     # 0x2b2bd
movb $0x0, %al
callq 0x2040
leaq 0x28673(%rip), %rdi     # 0x2b2d0
movb $0x0, %al
callq 0x2040
movq 0x33375(%rip), %rax     # 0x35fe0
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x204e0
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x5810
movq -0x10(%rbp), %rdi
movq -0x118(%rbp), %rsi
movslq -0x11c(%rbp), %rdx
callq 0x5810
movq $0x0, -0x50(%rbp)
movq $0x0, -0x118(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x4c40
movq -0x10(%rbp), %rdi
callq 0x4c90
movl -0x120(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x305c
movq -0x10(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x6d80
cmpq $0x0, -0x118(%rbp)
je 0x2d80
leaq 0x28636(%rip), %rdi     # 0x2b334
leaq 0x2c1b9(%rip), %rsi     # 0x2eebe
callq 0x2180
movq %rax, -0x128(%rbp)
cmpq $0x0, -0x128(%rbp)
je 0x2d64
movq -0x118(%rbp), %rdi
movslq -0x11c(%rbp), %rsi
movq -0x128(%rbp), %rcx
movl $0x1, %edx
callq 0x2200
cmpq $0x1, %rax
je 0x2d58
movq 0x33299(%rip), %rax     # 0x35fe0
movq (%rax), %rdi
leaq 0x285f7(%rip), %rsi     # 0x2b348
movb $0x0, %al
callq 0x21d0
movq -0x128(%rbp), %rdi
callq 0x2140
movq 0x3325d(%rip), %rax     # 0x35fc8
movq (%rax), %rdi
movq -0x118(%rbp), %rsi
movl -0x11c(%rbp), %edx
callq 0x20450
movq -0x50(%rbp), %rsi
leaq 0x285d6(%rip), %rdi     # 0x2b361
movb $0x0, %al
callq 0x2040
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x5810
movq $0x0, -0x50(%rbp)
movq -0x10(%rbp), %rdi
movq -0x118(%rbp), %rsi
movslq -0x11c(%rbp), %rdx
callq 0x4c40
leaq -0x140(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x20e0
movq -0x10(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x1f0e0
movl %eax, -0x144(%rbp)
cmpl $0x0, -0x144(%rbp)
je 0x2edb
leaq 0x28581(%rip), %rdi     # 0x2b380
movb $0x0, %al
callq 0x2040
movl -0x144(%rbp), %esi
leaq 0x2848d(%rip), %rdi     # 0x2b2a0
movb $0x0, %al
callq 0x2040
leaq 0x2848f(%rip), %rdi     # 0x2b2b0
movb $0x0, %al
callq 0x2040
movq 0x331b1(%rip), %rax     # 0x35fe0
movq (%rax), %rdi
movl -0x144(%rbp), %esi
callq 0x20550
leaq 0x285ea(%rip), %rdi     # 0x2b42e
movb $0x0, %al
callq 0x2040
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
leaq 0x28463(%rip), %rdi     # 0x2b2bd
movb $0x0, %al
callq 0x2040
leaq 0x28468(%rip), %rdi     # 0x2b2d0
movb $0x0, %al
callq 0x2040
movq 0x3316a(%rip), %rax     # 0x35fe0
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x204e0
movq -0x10(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x7b70
movq -0x10(%rbp), %rdi
movq -0x118(%rbp), %rsi
movslq -0x11c(%rbp), %rdx
callq 0x5810
movq $0x0, -0x118(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x4c40
movq -0x10(%rbp), %rdi
callq 0x4c90
movl -0x144(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x305c
movq 0x330e6(%rip), %rax     # 0x35fc8
movq (%rax), %rdi
leaq -0x140(%rbp), %rsi
callq 0x25e20
leaq 0x28536(%rip), %rdi     # 0x2b42e
movb $0x0, %al
callq 0x2040
cmpq $0x1, -0x130(%rbp)
jne 0x2f13
cmpq $0x0, -0x138(%rbp)
jne 0x2f78
leaq 0x2849c(%rip), %rdi     # 0x2b3b6
movb $0x0, %al
callq 0x2040
movq -0x10(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x7b70
movq -0x10(%rbp), %rdi
movq -0x118(%rbp), %rsi
movslq -0x11c(%rbp), %rdx
callq 0x5810
movq $0x0, -0x118(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x4c40
movq -0x10(%rbp), %rdi
callq 0x4c90
movl $0xfffffff1, -0x4(%rbp) # imm = 0xFFFFFFF1
jmp 0x305c
movq -0x138(%rbp), %rsi
leaq -0x178(%rbp), %rdi
movl $0x30, %edx
callq 0x2100
movl -0x168(%rbp), %eax
movl %eax, -0x17c(%rbp)
leaq 0x2844b(%rip), %rdi     # 0x2b3ee
movb $0x0, %al
callq 0x2040
leaq 0x2846e(%rip), %rdi     # 0x2b41f
movb $0x0, %al
callq 0x2040
movq 0x33009(%rip), %rax     # 0x35fc8
movq (%rax), %rdi
movl -0x120(%rbp), %esi
callq 0x20db0
movl -0x120(%rbp), %esi
leaq 0x2844e(%rip), %rdi     # 0x2b428
movb $0x0, %al
callq 0x2040
cmpl $0x0, -0x120(%rbp)
jne 0x2ffa
movq -0x30(%rbp), %rdi
movq -0x150(%rbp), %rsi
callq 0x8bf0
movq -0x10(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x7b70
movq -0x10(%rbp), %rdi
movq -0x118(%rbp), %rsi
movslq -0x11c(%rbp), %rdx
callq 0x5810
movq $0x0, -0x118(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x4c40
movq -0x10(%rbp), %rdi
callq 0x4c90
leaq 0x283e4(%rip), %rdi     # 0x2b430
movb $0x0, %al
callq 0x2040
movl -0x17c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
nopl (%rax,%rax)