// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/src/kmip_bio.c
// Function: kmip_bio_get_symmetric_key_with_context
int kmip_bio_get_symmetric_key_with_context(KMIP *ctx, BIO *bio,
                                            char *uuid, int uuid_size,
                                            char **key, int *key_size)
{
    if(ctx == NULL || bio == NULL || uuid == NULL || uuid_size <= 0 || key == NULL || key_size == NULL)
    {
        return(KMIP_ARG_INVALID);
    }
    
    /* Set up the initial encoding buffer. */
    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)
    {
        return(KMIP_MEMORY_ALLOC_FAILED);
    }
    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;
    
    TextString id = {0};
    id.value = uuid;
    id.size = uuid_size;
    
    GetRequestPayload grp = {0};
    grp.unique_identifier = &id;
    
    RequestBatchItem rbi = {0};
    kmip_init_request_batch_item(&rbi);
    rbi.operation = KMIP_OP_GET;
    rbi.request_payload = &grp;
    
    RequestMessage rm = {0};
    rm.request_header = &rh;
    rm.batch_items = &rbi;
    rm.batch_count = 1;
    
    /* Add the context credential to the request message if it exists. */
    /* TODO (ph) Update this to add multiple credentials. */
    Authentication auth = {0};
    if(ctx->credential_list != NULL)
    {
        LinkedListItem *item = ctx->credential_list->head;
        if(item != NULL)
        {
            auth.credential = (Credential *)item->data;
            rh.authentication = &auth;
        }
    }
    
    /* 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)
        {
            return(KMIP_MEMORY_ALLOC_FAILED);
        }
        
        kmip_set_buffer(
            ctx,
            encoding,
            buffer_total_size);
        encode_result = kmip_encode_request_message(ctx, &rm);
    }
    
    if(encode_result != KMIP_OK)
    {
        kmip_free_buffer(ctx, encoding, buffer_total_size);
        encoding = NULL;
        return(encode_result);
    }
    
    int sent = BIO_write(bio, ctx->buffer, ctx->index - ctx->buffer);
    if(sent != ctx->index - ctx->buffer)
    {
        kmip_free_buffer(ctx, encoding, buffer_total_size);
        encoding = NULL;
        return(KMIP_IO_FAILURE);
    }
    
    kmip_free_buffer(ctx, encoding, buffer_total_size);
    encoding = NULL;
    
    /* Read the response message. Dynamically resize the encoding buffer  */
    /* to align with the message size advertised by the message encoding. */
    /* Reject the message if the message size is too large.               */
    buffer_blocks = 1;
    buffer_block_size = 8;
    buffer_total_size = buffer_blocks * buffer_block_size;
    
    encoding = ctx->calloc_func(ctx->state, buffer_blocks, buffer_block_size);
    if(encoding == NULL)
    {
        return(KMIP_MEMORY_ALLOC_FAILED);
    }
    
    int recv = BIO_read(bio, encoding, buffer_total_size);
    if((size_t)recv != buffer_total_size)
    {
        kmip_free_buffer(ctx, encoding, buffer_total_size);
        encoding = NULL;
        return(KMIP_IO_FAILURE);
    }
    
    kmip_set_buffer(ctx, encoding, buffer_total_size);
    ctx->index += 4;
    int length = 0;
    
    kmip_decode_int32_be(ctx, &length);
    kmip_rewind(ctx);
    if(length > ctx->max_message_size)
    {
        kmip_free_buffer(ctx, encoding, buffer_total_size);
        encoding = NULL;
        return(KMIP_EXCEED_MAX_MESSAGE_SIZE);
    }
    
    kmip_set_buffer(ctx, NULL, 0);
    uint8 *extended = ctx->realloc_func(
        ctx->state,
        encoding,
        buffer_total_size + length);
    if(encoding != extended)
    {
        encoding = extended;
    }
    ctx->memset_func(encoding + buffer_total_size, 0, length);
    
    buffer_block_size += length;
    buffer_total_size = buffer_blocks * buffer_block_size;
    
    recv = BIO_read(bio, encoding + 8, length);
    if(recv != length)
    {
        kmip_free_buffer(ctx, encoding, buffer_total_size);
        encoding = NULL;
        return(KMIP_IO_FAILURE);
    }
    
    kmip_set_buffer(ctx, encoding, buffer_block_size);
    
    /* Decode the response message and retrieve the operation result status. */
    ResponseMessage resp_m = {0};
    int decode_result = kmip_decode_response_message(ctx, &resp_m);
    if(decode_result != KMIP_OK)
    {
        kmip_free_response_message(ctx, &resp_m);
        kmip_free_buffer(ctx, encoding, buffer_total_size);
        encoding = NULL;
        return(decode_result);
    }
    
    kmip_free_buffer(ctx, encoding, buffer_total_size);
    encoding = NULL;

    if(resp_m.batch_count != 1 || resp_m.batch_items == NULL)
    {
        kmip_free_response_message(ctx, &resp_m);
        kmip_set_buffer(ctx, NULL, 0);
        return(KMIP_MALFORMED_RESPONSE);
    }
    
    ResponseBatchItem resp_item = resp_m.batch_items[0];
    enum result_status result = resp_item.result_status;
    
    kmip_set_last_result(&resp_item);
    
    if(result != KMIP_STATUS_SUCCESS)
    {
        kmip_free_response_message(ctx, &resp_m);
        kmip_set_buffer(ctx, NULL, 0);
        return(result);
    }
    
    GetResponsePayload *pld = (GetResponsePayload *)resp_item.response_payload;
    
    if(pld->object_type != KMIP_OBJTYPE_SYMMETRIC_KEY)
    {
        kmip_free_response_message(ctx, &resp_m);
        kmip_set_buffer(ctx, NULL, 0);
        return(KMIP_OBJECT_MISMATCH);
    }
    
    SymmetricKey *symmetric_key = (SymmetricKey *)pld->object;
    KeyBlock *block = symmetric_key->key_block;
    if((block->key_format_type != KMIP_KEYFORMAT_RAW) || 
       (block->key_wrapping_data != NULL))
    {
        kmip_free_response_message(ctx, &resp_m);
        kmip_set_buffer(ctx, NULL, 0);
        return(KMIP_OBJECT_MISMATCH);
    }
    
    KeyValue *block_value = block->key_value;
    ByteString *material = (ByteString *)block_value->key_material;
    
    char *result_key = ctx->calloc_func(ctx->state, 1, material->size);
    *key_size = material->size;
    for(int i = 0; i < *key_size; i++)
    {
        result_key[i] = material->value[i];
    }
    *key = result_key;
    
    /* Clean up the response message, the encoding buffer, and the KMIP */
    /* context. */
    kmip_free_response_message(ctx, &resp_m);
    kmip_free_buffer(ctx, encoding, buffer_total_size);
    encoding = NULL;
    kmip_set_buffer(ctx, NULL, 0);
    
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1d0, %rsp            # imm = 0x1D0
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x2888b
cmpq $0x0, -0x18(%rbp)
je 0x2888b
cmpq $0x0, -0x20(%rbp)
je 0x2888b
cmpl $0x0, -0x24(%rbp)
jle 0x2888b
cmpq $0x0, -0x30(%rbp)
je 0x2888b
cmpq $0x0, -0x38(%rbp)
jne 0x28897
movl $0xffffffef, -0x4(%rbp) # imm = 0xFFFFFFEF
jmp 0x290e4
movq $0x1, -0x40(%rbp)
movq $0x400, -0x48(%rbp)     # imm = 0x400
movq -0x40(%rbp), %rax
imulq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movq -0x40(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq *%rax
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
jne 0x288eb
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x290e4
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x48f0
leaq -0x60(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x20e0
movq -0x10(%rbp), %rax
movl 0x18(%rax), %esi
leaq -0x60(%rbp), %rdi
callq 0x50f0
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
movl $0x50, %edx
callq 0x20e0
leaq -0xb0(%rbp), %rdi
callq 0x5350
leaq -0x60(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0xa8(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x2130
movq %rax, -0x90(%rbp)
movl $0x1, -0x88(%rbp)
leaq -0xc0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x20e0
movq -0x20(%rbp), %rax
movq %rax, -0xc0(%rbp)
movslq -0x24(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0xe0(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x20e0
leaq -0xc0(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq -0x100(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x20e0
leaq -0x100(%rbp), %rdi
callq 0x5480
movl $0xa, -0x100(%rbp)
leaq -0xe0(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq -0x118(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x20e0
leaq -0xb0(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq -0x100(%rbp), %rax
movq %rax, -0x110(%rbp)
movq $0x1, -0x108(%rbp)
leaq -0x120(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x20e0
movq -0x10(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x28a84
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq (%rax), %rax
movq %rax, -0x128(%rbp)
cmpq $0x0, -0x128(%rbp)
je 0x28a82
movq -0x128(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x120(%rbp)
leaq -0x120(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0x28a84
movq -0x10(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x12680
movl %eax, -0x12c(%rbp)
cmpl $-0x2, -0x12c(%rbp)
jne 0x28b48
movq -0x10(%rbp), %rdi
callq 0x4850
movq -0x10(%rbp), %rax
movq 0x878(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movq -0x58(%rbp), %rsi
callq *%rax
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
imulq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movq -0x40(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq *%rax
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
jne 0x28b1c
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x290e4
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x48f0
movq -0x10(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x12680
movl %eax, -0x12c(%rbp)
jmp 0x28a9a
cmpl $0x0, -0x12c(%rbp)
je 0x28b78
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x54c0
movq $0x0, -0x58(%rbp)
movl -0x12c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x290e4
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movl %eax, %edx
callq 0x2150
movl %eax, -0x130(%rbp)
movslq -0x130(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq -0x10(%rbp), %rdx
movq (%rdx), %rdx
subq %rdx, %rcx
cmpq %rcx, %rax
je 0x28be5
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x54c0
movq $0x0, -0x58(%rbp)
movl $0xfffffff3, -0x4(%rbp) # imm = 0xFFFFFFF3
jmp 0x290e4
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x54c0
movq $0x0, -0x58(%rbp)
movq $0x1, -0x40(%rbp)
movq $0x8, -0x48(%rbp)
movq -0x40(%rbp), %rax
imulq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movq -0x40(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq *%rax
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
jne 0x28c52
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x290e4
movq -0x18(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rax
movl %eax, %edx
callq 0x2170
movl %eax, -0x134(%rbp)
movslq -0x134(%rbp), %rax
cmpq -0x50(%rbp), %rax
je 0x28c9d
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x54c0
movq $0x0, -0x58(%rbp)
movl $0xfffffff3, -0x4(%rbp) # imm = 0xFFFFFFF3
jmp 0x290e4
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x48f0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
addq $0x4, %rcx
movq %rcx, 0x8(%rax)
movl $0x0, -0x138(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x12af0
movq -0x10(%rbp), %rdi
callq 0x48b0
movl -0x138(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x1c(%rcx), %eax
jle 0x28d15
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x54c0
movq $0x0, -0x58(%rbp)
movl $0xfffffff2, -0x4(%rbp) # imm = 0xFFFFFFF2
jmp 0x290e4
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x48f0
movq -0x10(%rbp), %rax
movq 0x870(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
movslq -0x138(%rbp), %rcx
addq %rcx, %rdx
callq *%rax
movq %rax, -0x140(%rbp)
movq -0x58(%rbp), %rax
cmpq -0x140(%rbp), %rax
je 0x28d6e
movq -0x140(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq 0x888(%rax), %rax
movq -0x58(%rbp), %rdi
addq -0x50(%rbp), %rdi
movslq -0x138(%rbp), %rdx
xorl %esi, %esi
callq *%rax
movslq -0x138(%rbp), %rax
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
imulq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rdi
movq -0x58(%rbp), %rsi
addq $0x8, %rsi
movl -0x138(%rbp), %edx
callq 0x2170
movl %eax, -0x134(%rbp)
movl -0x134(%rbp), %eax
cmpl -0x138(%rbp), %eax
je 0x28df8
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x54c0
movq $0x0, -0x58(%rbp)
movl $0xfffffff3, -0x4(%rbp) # imm = 0xFFFFFFF3
jmp 0x290e4
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x48f0
leaq -0x158(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x20e0
movq -0x10(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x1ed90
movl %eax, -0x15c(%rbp)
cmpl $0x0, -0x15c(%rbp)
je 0x28e72
movq -0x10(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x7820
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x54c0
movq $0x0, -0x58(%rbp)
movl -0x15c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x290e4
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x54c0
movq $0x0, -0x58(%rbp)
cmpq $0x1, -0x148(%rbp)
jne 0x28e9f
cmpq $0x0, -0x150(%rbp)
jne 0x28ecb
movq -0x10(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x7820
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x48f0
movl $0xfffffff1, -0x4(%rbp) # imm = 0xFFFFFFF1
jmp 0x290e4
movq -0x150(%rbp), %rsi
leaq -0x190(%rbp), %rdi
movl $0x30, %edx
callq 0x2100
movl -0x180(%rbp), %eax
movl %eax, -0x194(%rbp)
leaq -0x190(%rbp), %rdi
callq 0x27f00
cmpl $0x0, -0x194(%rbp)
je 0x28f32
movq -0x10(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x7820
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x48f0
movl -0x194(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x290e4
movq -0x168(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rax
cmpl $0x2, (%rax)
je 0x28f78
movq -0x10(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x7820
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x48f0
movl $0xfffffff0, -0x4(%rbp) # imm = 0xFFFFFFF0
jmp 0x290e4
movq -0x1a0(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x1a8(%rbp)
movq -0x1a8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rax
cmpl $0x1, (%rax)
jne 0x28fb5
movq -0x1b0(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x28fe1
movq -0x10(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x7820
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x48f0
movl $0xfffffff0, -0x4(%rbp) # imm = 0xFFFFFFF0
jmp 0x290e4
movq -0x1b0(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x1b8(%rbp)
movq -0x1b8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x1c0(%rbp)
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movq -0x1c0(%rbp), %rcx
movq 0x8(%rcx), %rdx
movl $0x1, %esi
callq *%rax
movq %rax, -0x1c8(%rbp)
movq -0x1c0(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, (%rax)
movl $0x0, -0x1cc(%rbp)
movl -0x1cc(%rbp), %eax
movq -0x38(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x29094
movq -0x1c0(%rbp), %rax
movq (%rax), %rax
movslq -0x1cc(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x1c8(%rbp), %rax
movslq -0x1cc(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x1cc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1cc(%rbp)
jmp 0x29050
movq -0x1c8(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x7820
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x54c0
movq $0x0, -0x58(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x48f0
movl -0x194(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x1d0, %rsp            # imm = 0x1D0
popq %rbp
retq