LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_destroy_request_payload
int
kmip_encode_destroy_request_payload(KMIP *ctx, const DestroyRequestPayload *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_REQUEST_PAYLOAD, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    if(value->unique_identifier != NULL)
    {
        result = kmip_encode_text_string(ctx, KMIP_TAG_UNIQUE_IDENTIFIER, value->unique_identifier);
        CHECK_RESULT(ctx, result);
    }
    
    uint8 *curr_index = ctx->index;
    ctx->index = length_index;
    
    result = kmip_encode_length(ctx, curr_index - value_index);
    CHECK_RESULT(ctx, result);

    ctx->index = curr_index;
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl $0x42007901, %esi       # imm = 0x42007901
callq 0x60a0
testl %eax, %eax
je 0xda37
movl %eax, %ebp
leaq 0xa141(%rip), %rsi      # 0x17b60
movq %rbx, %rdi
movl $0x1e44, %edx           # imm = 0x1E44
callq 0x6e80
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rdx
movq %r15, %r14
testq %rdx, %rdx
je 0xda77
movq %rbx, %rdi
movl $0x420094, %esi         # imm = 0x420094
callq 0x66a0
testl %eax, %eax
je 0xda73
movl %eax, %ebp
leaq 0xa0f7(%rip), %rsi      # 0x17b60
movq %rbx, %rdi
movl $0x1e4c, %edx           # imm = 0x1E4C
jmp 0xda27
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6b10
testl %eax, %eax
je 0xdaa0
movl %eax, %ebp
leaq 0xa0ca(%rip), %rsi      # 0x17b60
movq %rbx, %rdi
movl $0x1e53, %edx           # imm = 0x1E53
jmp 0xda27
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xda2c
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_destroy_response_payload
int
kmip_encode_destroy_response_payload(KMIP *ctx, const DestroyResponsePayload *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_RESPONSE_PAYLOAD, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    result = kmip_encode_text_string(ctx, KMIP_TAG_UNIQUE_IDENTIFIER, value->unique_identifier);
    CHECK_RESULT(ctx, result);
    
    uint8 *curr_index = ctx->index;
    ctx->index = length_index;
    
    result = kmip_encode_length(ctx, curr_index - value_index);
    CHECK_RESULT(ctx, result);

    ctx->index = curr_index;
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl $0x42007c01, %esi       # imm = 0x42007C01
callq 0x60a0
testl %eax, %eax
je 0xdad7
movl %eax, %ebp
leaq 0xa0b7(%rip), %rsi      # 0x17b84
movq %rbx, %rdi
movl $0x1e5f, %edx           # imm = 0x1E5F
jmp 0xdb36
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rdx
movq %rbx, %rdi
movl $0x420094, %esi         # imm = 0x420094
callq 0x66a0
testl %eax, %eax
je 0xdb0b
movl %eax, %ebp
leaq 0xa083(%rip), %rsi      # 0x17b84
movq %rbx, %rdi
movl $0x1e65, %edx           # imm = 0x1E65
jmp 0xdb36
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6b10
testl %eax, %eax
je 0xdb46
movl %eax, %ebp
leaq 0xa056(%rip), %rsi      # 0x17b84
movq %rbx, %rdi
movl $0x1e6b, %edx           # imm = 0x1E6B
callq 0x6e80
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xdb3b
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_nonce
int
kmip_encode_nonce(KMIP *ctx, const Nonce *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_NONCE, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    result = kmip_encode_byte_string(ctx, KMIP_TAG_NONCE_ID, value->nonce_id);
    CHECK_RESULT(ctx, result);
    
    result = kmip_encode_byte_string(ctx, KMIP_TAG_NONCE_VALUE, value->nonce_value);
    CHECK_RESULT(ctx, result);
    
    uint8 *curr_index = ctx->index;
    ctx->index = length_index;
    
    result = kmip_encode_length(ctx, curr_index - value_index);
    CHECK_RESULT(ctx, result);

    ctx->index = curr_index;
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl $0x4200c801, %esi       # imm = 0x4200C801
callq 0x60a0
testl %eax, %eax
je 0xdb80
movl %eax, %ebp
leaq 0xa036(%rip), %rsi      # 0x17ba9
movq %rbx, %rdi
movl $0x1e77, %edx           # imm = 0x1E77
jmp 0xdc07
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rdx
movq %rbx, %rdi
movl $0x4200c9, %esi         # imm = 0x4200C9
callq 0x6cb0
testl %eax, %eax
je 0xdbb4
movl %eax, %ebp
leaq 0x9fff(%rip), %rsi      # 0x17ba9
movq %rbx, %rdi
movl $0x1e7d, %edx           # imm = 0x1E7D
jmp 0xdc07
movq 0x8(%r14), %rdx
movq %rbx, %rdi
movl $0x4200ca, %esi         # imm = 0x4200CA
callq 0x6cb0
testl %eax, %eax
je 0xdbdc
movl %eax, %ebp
leaq 0x9fd7(%rip), %rsi      # 0x17ba9
movq %rbx, %rdi
movl $0x1e80, %edx           # imm = 0x1E80
jmp 0xdc07
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6b10
testl %eax, %eax
je 0xdc17
movl %eax, %ebp
leaq 0x9faa(%rip), %rsi      # 0x17ba9
movq %rbx, %rdi
movl $0x1e86, %edx           # imm = 0x1E86
callq 0x6e80
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xdc0c
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_username_password_credential
int
kmip_encode_username_password_credential(KMIP *ctx, const UsernamePasswordCredential *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_CREDENTIAL_VALUE, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    result = kmip_encode_text_string(ctx, KMIP_TAG_USERNAME, value->username);
    CHECK_RESULT(ctx, result);
    
    if(value->password != NULL)
    {
        result = kmip_encode_text_string(ctx, KMIP_TAG_PASSWORD, value->password);
        CHECK_RESULT(ctx, result);
    }
    
    uint8 *curr_index = ctx->index;
    ctx->index = length_index;
    
    result = kmip_encode_length(ctx, curr_index - value_index);
    CHECK_RESULT(ctx, result);

    ctx->index = curr_index;
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl $0x42002501, %esi       # imm = 0x42002501
callq 0x60a0
testl %eax, %eax
je 0xdc4e
movl %eax, %ebp
leaq 0x9f77(%rip), %rsi      # 0x17bbb
movq %rbx, %rdi
movl $0x1e92, %edx           # imm = 0x1E92
jmp 0xdc80
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rdx
movq %rbx, %rdi
movl $0x420099, %esi         # imm = 0x420099
callq 0x66a0
testl %eax, %eax
je 0xdc90
movl %eax, %ebp
leaq 0x9f43(%rip), %rsi      # 0x17bbb
movq %rbx, %rdi
movl $0x1e98, %edx           # imm = 0x1E98
callq 0x6e80
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r14), %rdx
testq %rdx, %rdx
je 0xdcbd
movq %rbx, %rdi
movl $0x4200a1, %esi         # imm = 0x4200A1
callq 0x66a0
testl %eax, %eax
je 0xdcbd
movl %eax, %ebp
leaq 0x9f08(%rip), %rsi      # 0x17bbb
movq %rbx, %rdi
movl $0x1e9d, %edx           # imm = 0x1E9D
jmp 0xdc80
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6b10
testl %eax, %eax
je 0xdcea
movl %eax, %ebp
leaq 0x9edb(%rip), %rsi      # 0x17bbb
movq %rbx, %rdi
movl $0x1ea4, %edx           # imm = 0x1EA4
jmp 0xdc80
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xdc85
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_attestation_credential
int
kmip_encode_attestation_credential(KMIP *ctx, const AttestationCredential *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_CREDENTIAL_VALUE, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    result = kmip_encode_nonce(ctx, value->nonce);
    CHECK_RESULT(ctx, result);
    
    result = kmip_encode_enum(ctx, KMIP_TAG_ATTESTATION_TYPE, value->attestation_type);
    CHECK_RESULT(ctx, result);
    
    if(value->attestation_measurement != NULL)
    {
        result = kmip_encode_byte_string(ctx, KMIP_TAG_ATTESTATION_MEASUREMENT, value->attestation_measurement);
        CHECK_RESULT(ctx, result);
    }
    
    if(value->attestation_assertion != NULL)
    {
        result = kmip_encode_byte_string(ctx, KMIP_TAG_ATTESTATION_ASSERTION, value->attestation_assertion);
        CHECK_RESULT(ctx, result);
    }
    
    uint8 *curr_index = ctx->index;
    ctx->index = length_index;
    
    result = kmip_encode_length(ctx, curr_index - value_index);
    CHECK_RESULT(ctx, result);

    ctx->index = curr_index;
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl $0x42002501, %esi       # imm = 0x42002501
callq 0x60a0
testl %eax, %eax
je 0xdebf
movl %eax, %ebp
leaq 0x9d4d(%rip), %rsi      # 0x17c02
movq %rbx, %rdi
movl $0x1ee9, %edx           # imm = 0x1EE9
jmp 0xdf14
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6170
testl %eax, %eax
je 0xdeee
movl %eax, %ebp
leaq 0x9d1e(%rip), %rsi      # 0x17c02
movq %rbx, %rdi
movl $0x1eef, %edx           # imm = 0x1EEF
jmp 0xdf14
movl 0x8(%r14), %edx
movq %rbx, %rdi
movl $0x4200c7, %esi         # imm = 0x4200C7
callq 0x6700
testl %eax, %eax
je 0xdf24
movl %eax, %ebp
leaq 0x9cf6(%rip), %rsi      # 0x17c02
movq %rbx, %rdi
movl $0x1ef2, %edx           # imm = 0x1EF2
callq 0x6e80
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%r14), %rdx
testq %rdx, %rdx
je 0xdf51
movq %rbx, %rdi
movl $0x4200cb, %esi         # imm = 0x4200CB
callq 0x6cb0
testl %eax, %eax
je 0xdf51
movl %eax, %ebp
leaq 0x9cbb(%rip), %rsi      # 0x17c02
movq %rbx, %rdi
movl $0x1ef7, %edx           # imm = 0x1EF7
jmp 0xdf14
movq 0x18(%r14), %rdx
testq %rdx, %rdx
je 0xdf7e
movq %rbx, %rdi
movl $0x4200cc, %esi         # imm = 0x4200CC
callq 0x6cb0
testl %eax, %eax
je 0xdf7e
movl %eax, %ebp
leaq 0x9c8e(%rip), %rsi      # 0x17c02
movq %rbx, %rdi
movl $0x1efd, %edx           # imm = 0x1EFD
jmp 0xdf14
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6b10
testl %eax, %eax
je 0xdfae
movl %eax, %ebp
leaq 0x9c61(%rip), %rsi      # 0x17c02
movq %rbx, %rdi
movl $0x1f04, %edx           # imm = 0x1F04
jmp 0xdf14
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xdf19
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_credential_value
int
kmip_encode_credential_value(KMIP *ctx, enum credential_type type, void *value)
{
    int result = 0;
    
    switch(type)
    {
        case KMIP_CRED_USERNAME_AND_PASSWORD:
        result = kmip_encode_username_password_credential(ctx, (UsernamePasswordCredential*)value);
        break;
        
        case KMIP_CRED_DEVICE:
        result = kmip_encode_device_credential(ctx, (DeviceCredential*)value);
        break;
        
        case KMIP_CRED_ATTESTATION:
        result = kmip_encode_attestation_credential(ctx, (AttestationCredential*)value);
        break;
        
        default:
        kmip_push_error_frame(ctx, __func__, __LINE__);
        return(KMIP_NOT_IMPLEMENTED);
        break;
    }
    CHECK_RESULT(ctx, result);
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x3, %esi
je 0xdfe8
cmpl $0x2, %esi
je 0xdfdb
cmpl $0x1, %esi
jne 0xe002
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x6810
jmp 0xdff3
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x67e0
jmp 0xdff3
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x67c0
movl %eax, %ebp
movl $0x1f23, %edx           # imm = 0x1F23
testl %eax, %eax
jne 0xe00a
xorl %ebp, %ebp
jmp 0xe019
pushq $-0x1
popq %rbp
movl $0x1f1f, %edx           # imm = 0x1F1F
leaq 0x9c14(%rip), %rsi      # 0x17c25
movq %rbx, %rdi
callq 0x6e80
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_credential
int
kmip_encode_credential(KMIP *ctx, const Credential *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_CREDENTIAL, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    result = kmip_encode_enum(ctx, KMIP_TAG_CREDENTIAL_TYPE, value->credential_type);
    CHECK_RESULT(ctx, result);
    
    result = kmip_encode_credential_value(ctx, value->credential_type, value->credential_value);
    CHECK_RESULT(ctx, result);
    
    uint8 *curr_index = ctx->index;
    ctx->index = length_index;
    
    result = kmip_encode_length(ctx, curr_index - value_index);
    CHECK_RESULT(ctx, result);

    ctx->index = curr_index;
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl $0x42002301, %esi       # imm = 0x42002301
callq 0x60a0
testl %eax, %eax
je 0xe054
movl %eax, %ebp
leaq 0x9bfb(%rip), %rsi      # 0x17c42
movq %rbx, %rdi
movl $0x1f2d, %edx           # imm = 0x1F2D
jmp 0xe0d9
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movl (%r14), %edx
movq %rbx, %rdi
movl $0x420024, %esi         # imm = 0x420024
callq 0x6700
testl %eax, %eax
je 0xe088
movl %eax, %ebp
leaq 0x9bc4(%rip), %rsi      # 0x17c42
movq %rbx, %rdi
movl $0x1f33, %edx           # imm = 0x1F33
jmp 0xe0d9
movl (%r14), %esi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x6270
testl %eax, %eax
je 0xe0ae
movl %eax, %ebp
leaq 0x9b9e(%rip), %rsi      # 0x17c42
movq %rbx, %rdi
movl $0x1f36, %edx           # imm = 0x1F36
jmp 0xe0d9
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6b10
testl %eax, %eax
je 0xe0e9
movl %eax, %ebp
leaq 0x9b71(%rip), %rsi      # 0x17c42
movq %rbx, %rdi
movl $0x1f3c, %edx           # imm = 0x1F3C
callq 0x6e80
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xe0de
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_authentication
int
kmip_encode_authentication(KMIP *ctx, const Authentication *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_AUTHENTICATION, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    result = kmip_encode_credential(ctx, value->credential);
    CHECK_RESULT(ctx, result);
    
    uint8 *curr_index = ctx->index;
    ctx->index = length_index;
    
    result = kmip_encode_length(ctx, curr_index - value_index);
    CHECK_RESULT(ctx, result);

    ctx->index = curr_index;
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl $0x42000c01, %esi       # imm = 0x42000C01
callq 0x60a0
testl %eax, %eax
je 0xe120
movl %eax, %ebp
leaq 0x9b43(%rip), %rsi      # 0x17c59
movq %rbx, %rdi
movl $0x1f48, %edx           # imm = 0x1F48
jmp 0xe17a
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6060
testl %eax, %eax
je 0xe14f
movl %eax, %ebp
leaq 0x9b14(%rip), %rsi      # 0x17c59
movq %rbx, %rdi
movl $0x1f4e, %edx           # imm = 0x1F4E
jmp 0xe17a
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6b10
testl %eax, %eax
je 0xe18a
movl %eax, %ebp
leaq 0x9ae7(%rip), %rsi      # 0x17c59
movq %rbx, %rdi
movl $0x1f54, %edx           # imm = 0x1F54
callq 0x6e80
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xe17f
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_query_request_payload
int
kmip_encode_query_request_payload(KMIP *ctx, const QueryRequestPayload *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_REQUEST_PAYLOAD, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);

    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;

    if(value->functions != NULL)
    {
        result = kmip_encode_query_functions(ctx, value->functions);
        CHECK_RESULT(ctx, result);
    }

    uint8 *curr_index = ctx->index;
    ctx->index = length_index;

    kmip_encode_int32_be(ctx, curr_index - value_index);

    ctx->index = curr_index;

    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl $0x42007901, %esi       # imm = 0x42007901
callq 0x60a0
testl %eax, %eax
je 0xe83c
movl %eax, %ebp
leaq 0x9512(%rip), %rsi      # 0x17d3f
movq %rbx, %rdi
movl $0x20e2, %edx           # imm = 0x20E2
callq 0x6e80
jmp 0xe88f
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %r15, %r14
testq %rsi, %rsi
je 0xe877
movq %rbx, %rdi
callq 0x6320
testl %eax, %eax
je 0xe873
movl %eax, %ebp
leaq 0x94d6(%rip), %rsi      # 0x17d3f
movq %rbx, %rdi
movl $0x20ea, %edx           # imm = 0x20EA
jmp 0xe835
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movl %r14d, %esi
subl %r15d, %esi
movq %rbx, %rdi
callq 0x60a0
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_request_message
int
kmip_encode_request_message(KMIP *ctx, const RequestMessage *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_REQUEST_MESSAGE, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    result = kmip_encode_request_header(ctx, value->request_header);
    CHECK_RESULT(ctx, result);
    
    for(size_t i = 0; i < value->batch_count; i++)
    {
        result = kmip_encode_request_batch_item(ctx, &value->batch_items[i]);
        CHECK_RESULT(ctx, result);
    }
    
    uint8 *curr_index = ctx->index;
    ctx->index = length_index;
    
    result = kmip_encode_length(ctx, curr_index - value_index);
    CHECK_RESULT(ctx, result);

    ctx->index = curr_index;
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0x42007801, %esi       # imm = 0x42007801
callq 0x60a0
testl %eax, %eax
je 0xeadb
movl %eax, %ebp
leaq 0x921c(%rip), %rsi      # 0x17cea
movq %rbx, %rdi
movl $0x2091, %edx           # imm = 0x2091
jmp 0xeb73
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6670
testl %eax, %eax
je 0xeb0a
movl %eax, %ebp
leaq 0x91ea(%rip), %rsi      # 0x17cea
movq %rbx, %rdi
movl $0x2097, %edx           # imm = 0x2097
jmp 0xeb73
movq %r15, (%rsp)
pushq $-0x1
popq %r13
xorl %esi, %esi
incq %r13
cmpq 0x10(%r14), %r13
jae 0xeb47
leaq 0x20(%rsi), %r15
addq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x66e0
movq %r15, %rsi
testl %eax, %eax
je 0xeb14
movl %eax, %ebp
leaq 0x91ad(%rip), %rsi      # 0x17cea
movq %rbx, %rdi
movl $0x209c, %edx           # imm = 0x209C
jmp 0xeb73
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq (%rsp), %rsi
movq %rbx, %rdi
callq 0x6b10
testl %eax, %eax
je 0xeb89
movl %eax, %ebp
leaq 0x917f(%rip), %rsi      # 0x17cea
movq %rbx, %rdi
movl $0x20a3, %edx           # imm = 0x20A3
callq 0x6e80
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xeb78
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_response_message
int
kmip_encode_response_message(KMIP *ctx, const ResponseMessage *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_RESPONSE_MESSAGE, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    result = kmip_encode_response_header(ctx, value->response_header);
    CHECK_RESULT(ctx, result);
    
    for(size_t i = 0; i < value->batch_count; i++)
    {
        result = kmip_encode_response_batch_item(ctx, &value->batch_items[i]);
        CHECK_RESULT(ctx, result);
    }
    
    uint8 *curr_index = ctx->index;
    ctx->index = length_index;
    
    result = kmip_encode_length(ctx, curr_index - value_index);
    CHECK_RESULT(ctx, result);

    ctx->index = curr_index;
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0x42007b01, %esi       # imm = 0x42007B01
callq 0x60a0
testl %eax, %eax
je 0xebc6
movl %eax, %ebp
leaq 0x914d(%rip), %rsi      # 0x17d06
movq %rbx, %rdi
movl $0x20af, %edx           # imm = 0x20AF
jmp 0xec5e
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x69f0
testl %eax, %eax
je 0xebf5
movl %eax, %ebp
leaq 0x911b(%rip), %rsi      # 0x17d06
movq %rbx, %rdi
movl $0x20b5, %edx           # imm = 0x20B5
jmp 0xec5e
movq %r15, (%rsp)
pushq $-0x1
popq %r13
xorl %esi, %esi
incq %r13
cmpq 0x10(%r14), %r13
jae 0xec32
leaq 0x30(%rsi), %r15
addq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x68d0
movq %r15, %rsi
testl %eax, %eax
je 0xebff
movl %eax, %ebp
leaq 0x90de(%rip), %rsi      # 0x17d06
movq %rbx, %rdi
movl $0x20ba, %edx           # imm = 0x20BA
jmp 0xec5e
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq (%rsp), %rsi
movq %rbx, %rdi
callq 0x6b10
testl %eax, %eax
je 0xec74
movl %eax, %ebp
leaq 0x90b0(%rip), %rsi      # 0x17d06
movq %rbx, %rdi
movl $0x20c1, %edx           # imm = 0x20C1
callq 0x6e80
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xec63
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_query_functions
int
kmip_encode_query_functions(KMIP *ctx, const Functions* value)
{
    CHECK_ENCODE_ARGS(ctx, value);

    int result = 0;

    if(value->function_list != NULL)
    {
        LinkedListItem *curr = value->function_list->head;
        while(curr != NULL)
        {
            result = kmip_encode_enum(ctx, KMIP_TAG_QUERY_FUNCTION, *(int32 *)curr->data);
            CHECK_RESULT(ctx, result);

            curr = curr->next;
        }
    }

    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xecd3
xorl %ebx, %ebx
testq %rsi, %rsi
je 0xecd6
movq (%rsi), %r15
testq %r15, %r15
je 0xecd6
movq %rdi, %r14
movq (%r15), %r15
testq %r15, %r15
je 0xecd6
movq 0x10(%r15), %rax
movl (%rax), %edx
movq %r14, %rdi
movl $0x420074, %esi         # imm = 0x420074
callq 0x6700
testl %eax, %eax
je 0xec9a
movl %eax, %ebp
leaq 0x9061(%rip), %rsi      # 0x17d23
movq %r14, %rdi
movl $0x20d5, %edx           # imm = 0x20D5
callq 0x6e80
movl %ebp, %ebx
jmp 0xecd6
pushq $-0x11
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_int8_be
int
kmip_decode_int8_be(KMIP *ctx, void *value)
{
    CHECK_BUFFER_FULL(ctx, sizeof(int8));
    
    int8 *i = (int8*)value;
    
    *i = 0;
    *i = *ctx->index++;
    
    return(KMIP_OK);
}

// Assembly:
movq (%rdi), %rax
subq 0x8(%rdi), %rax
addq 0x10(%rdi), %rax
jne 0xed0a
pushq %rax
leaq 0x9069(%rip), %rsi      # 0x17d61
movl $0x2108, %edx           # imm = 0x2108
callq 0x6e80
pushq $-0x2
popq %rax
addq $0x8, %rsp
retq
movb $0x0, (%rsi)
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movb (%rax), %al
movb %al, (%rsi)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_int32_be
int
kmip_decode_int32_be(KMIP *ctx, void *value)
{
    CHECK_BUFFER_FULL(ctx, sizeof(int32));
    
    int32 *i = (int32*)value;
    
    *i = 0;
    *i |= ((int32)*ctx->index++ << 24);
    *i |= ((int32)*ctx->index++ << 16);
    *i |= ((int32)*ctx->index++ << 8);
    *i |= ((int32)*ctx->index++ << 0);
    
    return(KMIP_OK);
}

// Assembly:
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rcx
subq %rax, %rcx
addq (%rdi), %rcx
cmpq $0x3, %rcx
ja 0xed4e
pushq %rax
leaq 0x9039(%rip), %rsi      # 0x17d75
movl $0x2115, %edx           # imm = 0x2115
callq 0x6e80
pushq $-0x2
popq %rax
addq $0x8, %rsp
retq
andl $0x0, (%rsi)
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %ecx
shll $0x18, %ecx
movl %ecx, (%rsi)
leaq 0x2(%rax), %rdx
movq %rdx, 0x8(%rdi)
movzbl 0x1(%rax), %edx
shll $0x10, %edx
orl %ecx, %edx
movl %edx, (%rsi)
leaq 0x3(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl 0x2(%rax), %ecx
shll $0x8, %ecx
orl %edx, %ecx
movl %ecx, (%rsi)
leaq 0x4(%rax), %rdx
movq %rdx, 0x8(%rdi)
movzbl 0x3(%rax), %eax
orl %ecx, %eax
movl %eax, (%rsi)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_int64_be
int
kmip_decode_int64_be(KMIP *ctx, void *value)
{
    CHECK_BUFFER_FULL(ctx, sizeof(int64));
    
    int64 *i = (int64*)value;
    
    *i = 0;
    *i |= ((int64)*ctx->index++ << 56);
    *i |= ((int64)*ctx->index++ << 48);
    *i |= ((int64)*ctx->index++ << 40);
    *i |= ((int64)*ctx->index++ << 32);
    *i |= ((int64)*ctx->index++ << 24);
    *i |= ((int64)*ctx->index++ << 16);
    *i |= ((int64)*ctx->index++ << 8);
    *i |= ((int64)*ctx->index++ << 0);
    
    return(KMIP_OK);
}

// Assembly:
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rcx
subq %rax, %rcx
addq (%rdi), %rcx
cmpq $0x7, %rcx
ja 0xedc8
pushq %rax
leaq 0x8fd4(%rip), %rsi      # 0x17d8a
movl $0x2125, %edx           # imm = 0x2125
callq 0x6e80
pushq $-0x2
popq %rax
addq $0x8, %rsp
retq
andq $0x0, (%rsi)
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %ecx
shlq $0x38, %rcx
movq %rcx, (%rsi)
leaq 0x2(%rax), %rdx
movq %rdx, 0x8(%rdi)
movzbl 0x1(%rax), %edx
shlq $0x30, %rdx
orq %rcx, %rdx
movq %rdx, (%rsi)
leaq 0x3(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl 0x2(%rax), %ecx
shlq $0x28, %rcx
orq %rdx, %rcx
movq %rcx, (%rsi)
leaq 0x4(%rax), %rdx
movq %rdx, 0x8(%rdi)
movzbl 0x3(%rax), %edx
shlq $0x20, %rdx
orq %rcx, %rdx
movq %rdx, (%rsi)
leaq 0x5(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl 0x4(%rax), %ecx
shll $0x18, %ecx
orq %rdx, %rcx
movq %rcx, (%rsi)
leaq 0x6(%rax), %rdx
movq %rdx, 0x8(%rdi)
movzbl 0x5(%rax), %edx
shll $0x10, %edx
orq %rcx, %rdx
movq %rdx, (%rsi)
leaq 0x7(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl 0x6(%rax), %ecx
shll $0x8, %ecx
orq %rdx, %rcx
movq %rcx, (%rsi)
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movzbl 0x7(%rax), %eax
orq %rcx, %rax
movq %rax, (%rsi)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_length
int
kmip_decode_length(KMIP *ctx, uint32 *value)
{
    CHECK_BUFFER_FULL(ctx, 4);

    kmip_decode_int32_be(ctx, value);

    if(*value > INT_MAX)
    {
        HANDLE_FAILURE(ctx, KMIP_INVALID_LENGTH);
    }

    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0x4, %rax
jae 0xee96
pushq $-0x2
popq %rbp
movl $0x2139, %edx           # imm = 0x2139
jmp 0xeeb1
movq %rsi, %r14
movq %rbx, %rdi
callq 0x6a80
xorl %ebp, %ebp
cmpl $0x0, (%r14)
jns 0xeec0
pushq $-0x15
popq %rbp
movl $0x213f, %edx           # imm = 0x213F
leaq 0x8ee7(%rip), %rsi      # 0x17d9f
movq %rbx, %rdi
callq 0x6e80
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_integer
int
kmip_decode_integer(KMIP *ctx, enum tag t, int32 *value)
{
    CHECK_BUFFER_FULL(ctx, 16);
    
    int32 tag_type = 0;
    uint32 length = 0;
    int32 padding = 0;
    
    kmip_decode_int32_be(ctx, &tag_type);
    CHECK_TAG_TYPE(ctx, tag_type, t, KMIP_TYPE_INTEGER);

    kmip_decode_length(ctx, &length);
    CHECK_LENGTH(ctx, length, 4);
    
    kmip_decode_int32_be(ctx, value);
    
    kmip_decode_int32_be(ctx, &padding);
    CHECK_PADDING(ctx, padding);
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0xf, %rax
ja 0xef01
leaq 0x8ec6(%rip), %rsi      # 0x17db2
movq %rbx, %rdi
movl $0x2148, %edx           # imm = 0x2148
callq 0x6e80
pushq $-0x2
popq %rbp
jmp 0xef90
movq %rdx, %r14
movl %esi, %ebp
leaq 0x14(%rsp), %r15
andl $0x0, (%r15)
andl $0x0, 0x10(%rsp)
andl $0x0, 0xc(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a80
movl (%r15), %eax
movl %eax, %ecx
sarl $0x8, %ecx
movl $0x214f, %edx           # imm = 0x214F
cmpl %ebp, %ecx
jne 0xef7a
cmpb $0x2, %al
jne 0xef7e
leaq 0x10(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64d0
cmpl $0x4, (%r15)
jne 0xef9d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6a80
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6a80
cmpl $0x0, (%r14)
je 0xefa7
pushq $-0x7
popq %rbp
movl $0x2157, %edx           # imm = 0x2157
jmp 0xef81
pushq $-0x4
jmp 0xef80
pushq $-0x5
popq %rbp
leaq 0x8e2a(%rip), %rsi      # 0x17db2
movq %rbx, %rdi
callq 0x6e80
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x6
popq %rbp
movl $0x2152, %edx           # imm = 0x2152
jmp 0xef81
xorl %ebp, %ebp
jmp 0xef90
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_long
int
kmip_decode_long(KMIP *ctx, enum tag t, int64 *value)
{
    CHECK_BUFFER_FULL(ctx, 16);
    
    int32 tag_type = 0;
    uint32 length = 0;
    
    kmip_decode_int32_be(ctx, &tag_type);
    CHECK_TAG_TYPE(ctx, tag_type, t, KMIP_TYPE_LONG_INTEGER);

    kmip_decode_length(ctx, &length);
    CHECK_LENGTH(ctx, length, 8);
    
    kmip_decode_int64_be(ctx, value);
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0xf, %rax
ja 0xefe1
leaq 0x8df9(%rip), %rsi      # 0x17dc6
movq %rbx, %rdi
movl $0x215f, %edx           # imm = 0x215F
callq 0x6e80
pushq $-0x2
jmp 0xf077
movq %rdx, %r14
movl %esi, %ebp
leaq 0x4(%rsp), %r15
andl $0x0, (%r15)
andl $0x0, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a80
movl (%r15), %eax
movl %eax, %ecx
sarl $0x8, %ecx
cmpl %ebp, %ecx
jne 0xf031
cmpb $0x3, %al
jne 0xf049
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64d0
cmpl $0x8, (%r15)
jne 0xf061
movq %rbx, %rdi
movq %r14, %rsi
callq 0x68a0
xorl %eax, %eax
jmp 0xf078
leaq 0x8d8e(%rip), %rsi      # 0x17dc6
movq %rbx, %rdi
movl $0x2165, %edx           # imm = 0x2165
callq 0x6e80
pushq $-0x4
jmp 0xf077
leaq 0x8d76(%rip), %rsi      # 0x17dc6
movq %rbx, %rdi
movl $0x2165, %edx           # imm = 0x2165
callq 0x6e80
pushq $-0x5
jmp 0xf077
leaq 0x8d5e(%rip), %rsi      # 0x17dc6
movq %rbx, %rdi
movl $0x2168, %edx           # imm = 0x2168
callq 0x6e80
pushq $-0x6
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_enum
int
kmip_decode_enum(KMIP *ctx, enum tag t, void *value)
{
    CHECK_BUFFER_FULL(ctx, 16);
    
    int32 tag_type = 0;
    uint32 length = 0;
    int32 *v = (int32*)value;
    int32 padding = 0;
    
    kmip_decode_int32_be(ctx, &tag_type);
    CHECK_TAG_TYPE(ctx, tag_type, t, KMIP_TYPE_ENUMERATION);
    
    kmip_decode_length(ctx, &length);
    CHECK_LENGTH(ctx, length, 4);
    
    kmip_decode_int32_be(ctx, v);
    
    kmip_decode_int32_be(ctx, &padding);
    CHECK_PADDING(ctx, padding);
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0xf, %rax
ja 0xf0bd
leaq 0x8d2f(%rip), %rsi      # 0x17dd7
movq %rbx, %rdi
movl $0x2172, %edx           # imm = 0x2172
callq 0x6e80
pushq $-0x2
popq %rbp
jmp 0xf14c
movq %rdx, %r14
movl %esi, %ebp
leaq 0x14(%rsp), %r15
andl $0x0, (%r15)
andl $0x0, 0x10(%rsp)
andl $0x0, 0xc(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a80
movl (%r15), %eax
movl %eax, %ecx
sarl $0x8, %ecx
movl $0x217a, %edx           # imm = 0x217A
cmpl %ebp, %ecx
jne 0xf136
cmpb $0x5, %al
jne 0xf13a
leaq 0x10(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64d0
cmpl $0x4, (%r15)
jne 0xf159
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6a80
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6a80
cmpl $0x0, (%r14)
je 0xf163
pushq $-0x7
popq %rbp
movl $0x2182, %edx           # imm = 0x2182
jmp 0xf13d
pushq $-0x4
jmp 0xf13c
pushq $-0x5
popq %rbp
leaq 0x8c93(%rip), %rsi      # 0x17dd7
movq %rbx, %rdi
callq 0x6e80
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x6
popq %rbp
movl $0x217d, %edx           # imm = 0x217D
jmp 0xf13d
xorl %ebp, %ebp
jmp 0xf14c
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_bool
int
kmip_decode_bool(KMIP *ctx, enum tag t, bool32 *value)
{
    CHECK_BUFFER_FULL(ctx, 16);
    
    int32 tag_type = 0;
    uint32 length = 0;
    int32 padding = 0;
    
    kmip_decode_int32_be(ctx, &tag_type);
    CHECK_TAG_TYPE(ctx, tag_type, t, KMIP_TYPE_BOOLEAN);
    
    kmip_decode_length(ctx, &length);
    CHECK_LENGTH(ctx, length, 8);
    
    kmip_decode_int32_be(ctx, &padding);
    CHECK_PADDING(ctx, padding);
    
    kmip_decode_int32_be(ctx, value);
    CHECK_BOOLEAN(ctx, *value);
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0xf, %rax
ja 0xf1a1
leaq 0x8c5c(%rip), %rsi      # 0x17de8
movq %rbx, %rdi
movl $0x218a, %edx           # imm = 0x218A
callq 0x6e80
pushq $-0x2
popq %rbp
jmp 0xf225
movq %rdx, %r14
movl %esi, %ebp
leaq 0x14(%rsp), %r15
andl $0x0, (%r15)
andl $0x0, 0x10(%rsp)
andl $0x0, 0xc(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a80
movl (%r15), %eax
movl %eax, %ecx
sarl $0x8, %ecx
movl $0x2191, %edx           # imm = 0x2191
cmpl %ebp, %ecx
jne 0xf20f
cmpb $0x6, %al
jne 0xf213
leaq 0x10(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64d0
cmpl $0x8, (%r15)
jne 0xf232
leaq 0xc(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a80
cmpl $0x0, (%r15)
je 0xf23c
pushq $-0x7
popq %rbp
movl $0x2197, %edx           # imm = 0x2197
jmp 0xf216
pushq $-0x4
jmp 0xf215
pushq $-0x5
popq %rbp
leaq 0x8bcb(%rip), %rsi      # 0x17de8
movq %rbx, %rdi
callq 0x6e80
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x6
popq %rbp
movl $0x2194, %edx           # imm = 0x2194
jmp 0xf216
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6a80
xorl %ebp, %ebp
cmpl $0x2, (%r14)
jb 0xf225
pushq $-0x8
popq %rbp
movl $0x219a, %edx           # imm = 0x219A
jmp 0xf216
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_text_string
int
kmip_decode_text_string(KMIP *ctx, enum tag t, TextString *value)
{
    CHECK_BUFFER_FULL(ctx, 8);
    
    int32 tag_type = 0;
    uint32 length = 0;
    uint8 padding = 0;
    int8 spacer = 0;
    
    kmip_decode_int32_be(ctx, &tag_type);
    CHECK_TAG_TYPE(ctx, tag_type, t, KMIP_TYPE_TEXT_STRING);
    
    kmip_decode_length(ctx, &length);
    padding = CALCULATE_PADDING(length);
    CHECK_BUFFER_FULL(ctx, length + padding);
    
    value->value = ctx->calloc_func(ctx->state, 1, length);
    value->size = length;
    
    char *index = value->value;
    
    for(uint32 i = 0; i < length; i++)
    {
        kmip_decode_int8_be(ctx, (int8*)index++);
    }
    for(uint8 i = 0; i < padding; i++)
    {
        kmip_decode_int8_be(ctx, &spacer);
        CHECK_PADDING(ctx, spacer);
    }
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0x7, %rax
ja 0xf295
leaq 0x8b79(%rip), %rsi      # 0x17df9
movq %rbx, %rdi
movl $0x21a2, %edx           # imm = 0x21A2
callq 0x6e80
pushq $-0x2
popq %rbp
jmp 0xf31e
movq %rdx, %r14
movl %esi, %ebp
leaq 0xc(%rsp), %r15
andl $0x0, (%r15)
andl $0x0, 0x8(%rsp)
movb $0x0, 0x7(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a80
movl (%r15), %eax
movl %eax, %ecx
sarl $0x8, %ecx
movl $0x21aa, %edx           # imm = 0x21AA
cmpl %ebp, %ecx
jne 0xf308
cmpb $0x7, %al
jne 0xf30c
leaq 0x8(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64d0
movl (%r15), %r15d
movl %r15d, %r12d
negl %r12d
andl $0x7, %r12d
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
addq (%rbx), %rax
leal (%r12,%r15), %ecx
cmpq %rcx, %rax
jae 0xf32d
pushq $-0x2
popq %rbp
movl $0x21ae, %edx           # imm = 0x21AE
jmp 0xf30f
pushq $-0x4
jmp 0xf30e
pushq $-0x5
popq %rbp
leaq 0x8ae3(%rip), %rsi      # 0x17df9
movq %rbx, %rdi
callq 0x6e80
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x890(%rbx), %rdi
pushq $0x1
popq %rsi
movq %r15, %rdx
callq *0x868(%rbx)
movq %rax, %rsi
movq %rax, (%r14)
movq %r15, 0x8(%r14)
subl $0x1, %r15d
jb 0xf361
leaq 0x1(%rsi), %r14
movq %rbx, %rdi
callq 0x67d0
movq %r14, %rsi
jmp 0xf34a
movb $-0x1, %r15b
leaq 0x7(%rsp), %r14
pushq $-0x7
popq %rbp
incb %r15b
cmpb %r12b, %r15b
jae 0xf38d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x67d0
cmpb $0x0, 0x7(%rsp)
je 0xf36c
movl $0x21bc, %edx           # imm = 0x21BC
jmp 0xf30f
xorl %ebp, %ebp
jmp 0xf31e
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_byte_string
int
kmip_decode_byte_string(KMIP *ctx, enum tag t, ByteString *value)
{
    CHECK_BUFFER_FULL(ctx, 8);
    
    int32 tag_type = 0;
    uint32 length = 0;
    uint8 padding = 0;
    int8 spacer = 0;
    
    kmip_decode_int32_be(ctx, &tag_type);
    CHECK_TAG_TYPE(ctx, tag_type, t, KMIP_TYPE_BYTE_STRING);

    kmip_decode_length(ctx, &length);
    padding = CALCULATE_PADDING(length);
    CHECK_BUFFER_FULL(ctx, length + padding);
    
    value->value = ctx->calloc_func(ctx->state, 1, length);
    value->size = length;
    
    uint8 *index = value->value;
    
    for(uint32 i = 0; i < length; i++)
    {
        kmip_decode_int8_be(ctx, index++);
    }
    for(uint8 i = 0; i < padding; i++)
    {
        kmip_decode_int8_be(ctx, &spacer);
        CHECK_PADDING(ctx, spacer);
    }
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0x7, %rax
ja 0xf3cd
leaq 0x8a59(%rip), %rsi      # 0x17e11
movq %rbx, %rdi
movl $0x21c5, %edx           # imm = 0x21C5
callq 0x6e80
pushq $-0x2
popq %rbp
jmp 0xf456
movq %rdx, %r14
movl %esi, %ebp
leaq 0xc(%rsp), %r15
andl $0x0, (%r15)
andl $0x0, 0x8(%rsp)
movb $0x0, 0x7(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a80
movl (%r15), %eax
movl %eax, %ecx
sarl $0x8, %ecx
movl $0x21cd, %edx           # imm = 0x21CD
cmpl %ebp, %ecx
jne 0xf440
cmpb $0x8, %al
jne 0xf444
leaq 0x8(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64d0
movl (%r15), %r15d
movl %r15d, %r12d
negl %r12d
andl $0x7, %r12d
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
addq (%rbx), %rax
leal (%r12,%r15), %ecx
cmpq %rcx, %rax
jae 0xf465
pushq $-0x2
popq %rbp
movl $0x21d1, %edx           # imm = 0x21D1
jmp 0xf447
pushq $-0x4
jmp 0xf446
pushq $-0x5
popq %rbp
leaq 0x89c3(%rip), %rsi      # 0x17e11
movq %rbx, %rdi
callq 0x6e80
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x890(%rbx), %rdi
pushq $0x1
popq %rsi
movq %r15, %rdx
callq *0x868(%rbx)
movq %rax, %rsi
movq %rax, (%r14)
movq %r15, 0x8(%r14)
subl $0x1, %r15d
jb 0xf499
leaq 0x1(%rsi), %r14
movq %rbx, %rdi
callq 0x67d0
movq %r14, %rsi
jmp 0xf482
movb $-0x1, %r15b
leaq 0x7(%rsp), %r14
pushq $-0x7
popq %rbp
incb %r15b
cmpb %r12b, %r15b
jae 0xf4c5
movq %rbx, %rdi
movq %r14, %rsi
callq 0x67d0
cmpb $0x0, 0x7(%rsp)
je 0xf4a4
movl $0x21df, %edx           # imm = 0x21DF
jmp 0xf447
xorl %ebp, %ebp
jmp 0xf456
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_date_time
int
kmip_decode_date_time(KMIP *ctx, enum tag t, int64 *value)
{
    CHECK_BUFFER_FULL(ctx, 16);
    
    int32 tag_type = 0;
    uint32 length = 0;
    
    kmip_decode_int32_be(ctx, &tag_type);
    CHECK_TAG_TYPE(ctx, tag_type, t, KMIP_TYPE_DATE_TIME);
    
    kmip_decode_length(ctx, &length);
    CHECK_LENGTH(ctx, length, 8);
    
    kmip_decode_int64_be(ctx, value);
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0xf, %rax
ja 0xf4ff
leaq 0x893e(%rip), %rsi      # 0x17e29
movq %rbx, %rdi
movl $0x21e8, %edx           # imm = 0x21E8
callq 0x6e80
pushq $-0x2
jmp 0xf595
movq %rdx, %r14
movl %esi, %ebp
leaq 0x4(%rsp), %r15
andl $0x0, (%r15)
andl $0x0, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a80
movl (%r15), %eax
movl %eax, %ecx
sarl $0x8, %ecx
cmpl %ebp, %ecx
jne 0xf54f
cmpb $0x9, %al
jne 0xf567
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64d0
cmpl $0x8, (%r15)
jne 0xf57f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x68a0
xorl %eax, %eax
jmp 0xf596
leaq 0x88d3(%rip), %rsi      # 0x17e29
movq %rbx, %rdi
movl $0x21ee, %edx           # imm = 0x21EE
callq 0x6e80
pushq $-0x4
jmp 0xf595
leaq 0x88bb(%rip), %rsi      # 0x17e29
movq %rbx, %rdi
movl $0x21ee, %edx           # imm = 0x21EE
callq 0x6e80
pushq $-0x5
jmp 0xf595
leaq 0x88a3(%rip), %rsi      # 0x17e29
movq %rbx, %rdi
movl $0x21f1, %edx           # imm = 0x21F1
callq 0x6e80
pushq $-0x6
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_interval
int
kmip_decode_interval(KMIP *ctx, enum tag t, uint32 *value)
{
    CHECK_BUFFER_FULL(ctx, 16);
    
    int32 tag_type = 0;
    uint32 length = 0;
    int32 padding = 0;
    
    kmip_decode_int32_be(ctx, &tag_type);
    CHECK_TAG_TYPE(ctx, tag_type, t, KMIP_TYPE_INTERVAL);
    
    kmip_decode_length(ctx, &length);
    CHECK_LENGTH(ctx, length, 4);
    
    kmip_decode_int32_be(ctx, value);
    
    kmip_decode_int32_be(ctx, &padding);
    CHECK_PADDING(ctx, padding);
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0xf, %rax
ja 0xf5db
leaq 0x8879(%rip), %rsi      # 0x17e3f
movq %rbx, %rdi
movl $0x21fb, %edx           # imm = 0x21FB
callq 0x6e80
pushq $-0x2
popq %rbp
jmp 0xf66a
movq %rdx, %r14
movl %esi, %ebp
leaq 0x14(%rsp), %r15
andl $0x0, (%r15)
andl $0x0, 0x10(%rsp)
andl $0x0, 0xc(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a80
movl (%r15), %eax
movl %eax, %ecx
sarl $0x8, %ecx
movl $0x2202, %edx           # imm = 0x2202
cmpl %ebp, %ecx
jne 0xf654
cmpb $0xa, %al
jne 0xf658
leaq 0x10(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64d0
cmpl $0x4, (%r15)
jne 0xf677
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6a80
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6a80
cmpl $0x0, (%r14)
je 0xf681
pushq $-0x7
popq %rbp
movl $0x220a, %edx           # imm = 0x220A
jmp 0xf65b
pushq $-0x4
jmp 0xf65a
pushq $-0x5
popq %rbp
leaq 0x87dd(%rip), %rsi      # 0x17e3f
movq %rbx, %rdi
callq 0x6e80
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x6
popq %rbp
movl $0x2205, %edx           # imm = 0x2205
jmp 0xf65b
xorl %ebp, %ebp
jmp 0xf66a
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_name
int
kmip_decode_name(KMIP *ctx, Name *value)
{
    CHECK_BUFFER_FULL(ctx, 8);
    
    int result = 0;
    int32 tag_type = 0;
    uint32 length = 0;
    
    kmip_decode_int32_be(ctx, &tag_type);
    CHECK_TAG_TYPE(ctx, tag_type, KMIP_TAG_NAME, KMIP_TYPE_STRUCTURE);
    
    kmip_decode_length(ctx, &length);
    CHECK_BUFFER_FULL(ctx, length);
    
    value->value = ctx->calloc_func(ctx->state, 1, sizeof(TextString));
    
    result = kmip_decode_text_string(ctx, KMIP_TAG_NAME_VALUE, value->value);
    CHECK_RESULT(ctx, result);
    
    result = kmip_decode_enum(ctx, KMIP_TAG_NAME_TYPE, (int32*)&value->type);
    CHECK_RESULT(ctx, result);
    CHECK_ENUM(ctx, KMIP_TAG_NAME_TYPE, value->type);
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0x7, %rax
ja 0xf6b9
leaq 0x87ad(%rip), %rsi      # 0x17e54
movq %rbx, %rdi
movl $0x2212, %edx           # imm = 0x2212
callq 0x6e80
pushq $-0x2
popq %rbp
jmp 0xf731
movq %rsi, %r14
leaq 0x4(%rsp), %r15
andl $0x0, (%r15)
andl $0x0, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a80
movl (%r15), %eax
movl %eax, %ecx
andl $0xffffff00, %ecx       # imm = 0xFFFFFF00
movl $0x2219, %edx           # imm = 0x2219
cmpl $0x42005300, %ecx       # imm = 0x42005300
jne 0xf71b
cmpb $0x1, %al
jne 0xf71f
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64d0
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
addq (%rbx), %rax
movl (%r15), %ecx
cmpq %rcx, %rax
jae 0xf73e
pushq $-0x2
popq %rbp
movl $0x221c, %edx           # imm = 0x221C
jmp 0xf722
pushq $-0x4
jmp 0xf721
pushq $-0x5
popq %rbp
leaq 0x872b(%rip), %rsi      # 0x17e54
movq %rbx, %rdi
callq 0x6e80
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x890(%rbx), %rdi
pushq $0x1
popq %rsi
pushq $0x10
popq %rdx
callq *0x868(%rbx)
movq %rax, (%r14)
movq %rbx, %rdi
movl $0x420055, %esi         # imm = 0x420055
movq %rax, %rdx
callq 0x6560
testl %eax, %eax
je 0xf771
movl %eax, %ebp
movl $0x2221, %edx           # imm = 0x2221
jmp 0xf722
addq $0x8, %r14
movq %rbx, %rdi
movl $0x420054, %esi         # imm = 0x420054
movq %r14, %rdx
callq 0x6b70
testl %eax, %eax
je 0xf792
movl %eax, %ebp
movl $0x2224, %edx           # imm = 0x2224
jmp 0xf722
movl (%r14), %edx
leal -0x1(%rdx), %eax
xorl %ebp, %ebp
cmpl $0x2, %eax
jb 0xf731
pushq $-0x9
popq %rbp
movq %rbx, %rdi
movl $0x420054, %esi         # imm = 0x420054
movl %ebp, %ecx
callq 0x6120
movl $0x2225, %edx           # imm = 0x2225
jmp 0xf722