LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_encryption_key_information
int
kmip_encode_encryption_key_information(KMIP *ctx, const EncryptionKeyInformation *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_ENCRYPTION_KEY_INFORMATION, 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);
    
    if(value->cryptographic_parameters != 0)
    {
        result = kmip_encode_cryptographic_parameters(ctx, value->cryptographic_parameters);
        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 $0x42003601, %esi       # imm = 0x42003601
callq 0x60a0
testl %eax, %eax
je 0xd7fd
movl %eax, %ebp
leaq 0x12a39(%rip), %rsi     # 0x2022c
movq %rbx, %rdi
movl $0x1bb6, %edx           # imm = 0x1BB6
jmp 0xd82f
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rdx
movq %rbx, %rdi
movl $0x420094, %esi         # imm = 0x420094
callq 0x6670
testl %eax, %eax
je 0xd83f
movl %eax, %ebp
leaq 0x12a05(%rip), %rsi     # 0x2022c
movq %rbx, %rdi
movl $0x1bbc, %edx           # imm = 0x1BBC
callq 0x6de0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r14), %rsi
testq %rsi, %rsi
je 0xd867
movq %rbx, %rdi
callq 0x6c20
testl %eax, %eax
je 0xd867
movl %eax, %ebp
leaq 0x129cf(%rip), %rsi     # 0x2022c
movq %rbx, %rdi
movl $0x1bc1, %edx           # imm = 0x1BC1
jmp 0xd82f
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xd894
movl %eax, %ebp
leaq 0x129a2(%rip), %rsi     # 0x2022c
movq %rbx, %rdi
movl $0x1bc8, %edx           # imm = 0x1BC8
jmp 0xd82f
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xd834
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_mac_signature_key_information
int
kmip_encode_mac_signature_key_information(KMIP *ctx, const MACSignatureKeyInformation *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_MAC_SIGNATURE_KEY_INFORMATION, 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);
    
    if(value->cryptographic_parameters != 0)
    {
        result = kmip_encode_cryptographic_parameters(ctx, value->cryptographic_parameters);
        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 $0x42004e01, %esi       # imm = 0x42004E01
callq 0x60a0
testl %eax, %eax
je 0xd8cb
movl %eax, %ebp
leaq 0x12992(%rip), %rsi     # 0x20253
movq %rbx, %rdi
movl $0x1bd4, %edx           # imm = 0x1BD4
jmp 0xd8fd
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rdx
movq %rbx, %rdi
movl $0x420094, %esi         # imm = 0x420094
callq 0x6670
testl %eax, %eax
je 0xd90d
movl %eax, %ebp
leaq 0x1295e(%rip), %rsi     # 0x20253
movq %rbx, %rdi
movl $0x1bda, %edx           # imm = 0x1BDA
callq 0x6de0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r14), %rsi
testq %rsi, %rsi
je 0xd935
movq %rbx, %rdi
callq 0x6c20
testl %eax, %eax
je 0xd935
movl %eax, %ebp
leaq 0x12928(%rip), %rsi     # 0x20253
movq %rbx, %rdi
movl $0x1bdf, %edx           # imm = 0x1BDF
jmp 0xd8fd
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xd962
movl %eax, %ebp
leaq 0x128fb(%rip), %rsi     # 0x20253
movq %rbx, %rdi
movl $0x1be6, %edx           # imm = 0x1BE6
jmp 0xd8fd
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xd902
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_transparent_symmetric_key
int
kmip_encode_transparent_symmetric_key(KMIP *ctx, const TransparentSymmetricKey *value)
{
    int result = 0;
    
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_KEY_MATERIAL, 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_KEY, value->key);
    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 $0x42004301, %esi       # imm = 0x42004301
callq 0x60a0
testl %eax, %eax
je 0xdb26
movl %eax, %ebp
leaq 0x1277f(%rip), %rsi     # 0x2029b
movq %rbx, %rdi
movl $0x1c29, %edx           # imm = 0x1C29
jmp 0xdb85
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rdx
movq %rbx, %rdi
movl $0x42003f, %esi         # imm = 0x42003F
callq 0x6c10
testl %eax, %eax
je 0xdb5a
movl %eax, %ebp
leaq 0x1274b(%rip), %rsi     # 0x2029b
movq %rbx, %rdi
movl $0x1c2f, %edx           # imm = 0x1C2F
jmp 0xdb85
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xdb95
movl %eax, %ebp
leaq 0x1271e(%rip), %rsi     # 0x2029b
movq %rbx, %rdi
movl $0x1c35, %edx           # imm = 0x1C35
callq 0x6de0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xdb8a
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_key_value
int
kmip_encode_key_value(KMIP *ctx, enum key_format_type format, const KeyValue *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_KEY_VALUE, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    result = kmip_encode_key_material(ctx, format, value->key_material);
    CHECK_RESULT(ctx, result);
    
    for(size_t i = 0; i < value->attribute_count; i++)
    {
        result = kmip_encode_attribute(ctx, &value->attributes[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 %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
movl $0x42004501, %esi       # imm = 0x42004501
callq 0x60a0
testl %eax, %eax
je 0xdcbc
movl %eax, %ebp
leaq 0x1262b(%rip), %rsi     # 0x202da
movq %rbx, %rdi
movl $0x1ca5, %edx           # imm = 0x1CA5
jmp 0xdd5d
movq 0x8(%rbx), %r13
leaq 0x4(%r13), %r12
movq %r12, 0x8(%rbx)
movq (%r14), %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x6360
testl %eax, %eax
je 0xdced
movl %eax, %ebp
leaq 0x125f7(%rip), %rsi     # 0x202da
movq %rbx, %rdi
movl $0x1cab, %edx           # imm = 0x1CAB
jmp 0xdd5d
movq %r12, (%rsp)
cmpq $0x0, 0x10(%r14)
je 0xdd1e
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x8(%r14), %rsi
addq %r15, %rsi
movq %rbx, %rdi
callq 0x6a90
testl %eax, %eax
jne 0xdd4c
incq %r12
addq $0x10, %r15
cmpq 0x10(%r14), %r12
jb 0xdcfe
movq 0x8(%rbx), %r14
movq %r13, 0x8(%rbx)
movq %r14, %rsi
subq (%rsp), %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xdd73
movl %eax, %ebp
leaq 0x12598(%rip), %rsi     # 0x202da
movq %rbx, %rdi
movl $0x1cb7, %edx           # imm = 0x1CB7
jmp 0xdd5d
movl %eax, %ebp
leaq 0x12585(%rip), %rsi     # 0x202da
movq %rbx, %rdi
movl $0x1cb0, %edx           # imm = 0x1CB0
callq 0x6de0
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 0xdd62
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_symmetric_key
int
kmip_encode_symmetric_key(KMIP *ctx, const SymmetricKey *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_SYMMETRIC_KEY, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    result = kmip_encode_key_block(ctx, value->key_block);
    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 $0x42008f01, %esi       # imm = 0x42008F01
callq 0x60a0
testl %eax, %eax
je 0xdf4c
movl %eax, %ebp
leaq 0x123c4(%rip), %rsi     # 0x20306
movq %rbx, %rdi
movl $0x1cfd, %edx           # imm = 0x1CFD
jmp 0xdfa6
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6cf0
testl %eax, %eax
je 0xdf7b
movl %eax, %ebp
leaq 0x12395(%rip), %rsi     # 0x20306
movq %rbx, %rdi
movl $0x1d03, %edx           # imm = 0x1D03
jmp 0xdfa6
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xdfb6
movl %eax, %ebp
leaq 0x12368(%rip), %rsi     # 0x20306
movq %rbx, %rdi
movl $0x1d09, %edx           # imm = 0x1D09
callq 0x6de0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xdfab
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_private_key
int
kmip_encode_private_key(KMIP *ctx, const PrivateKey *value)
{
    int result = 0;
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_PRIVATE_KEY, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    result = kmip_encode_key_block(ctx, value->key_block);
    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 $0x42006401, %esi       # imm = 0x42006401
callq 0x60a0
testl %eax, %eax
je 0xe08e
movl %eax, %ebp
leaq 0x122b3(%rip), %rsi     # 0x20337
movq %rbx, %rdi
movl $0x1d2d, %edx           # imm = 0x1D2D
jmp 0xe0e8
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6cf0
testl %eax, %eax
je 0xe0bd
movl %eax, %ebp
leaq 0x12284(%rip), %rsi     # 0x20337
movq %rbx, %rdi
movl $0x1d33, %edx           # imm = 0x1D33
jmp 0xe0e8
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xe0f8
movl %eax, %ebp
leaq 0x12257(%rip), %rsi     # 0x20337
movq %rbx, %rdi
movl $0x1d39, %edx           # imm = 0x1D39
callq 0x6de0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xe0ed
// File: /workspace/github_c_makefile_star2_O3/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 0xe9d1
movl %eax, %ebp
leaq 0x11a45(%rip), %rsi     # 0x203fe
movq %rbx, %rdi
movl $0x1e44, %edx           # imm = 0x1E44
callq 0x6de0
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 0xea11
movq %rbx, %rdi
movl $0x420094, %esi         # imm = 0x420094
callq 0x6670
testl %eax, %eax
je 0xea0d
movl %eax, %ebp
leaq 0x119fb(%rip), %rsi     # 0x203fe
movq %rbx, %rdi
movl $0x1e4c, %edx           # imm = 0x1E4C
jmp 0xe9c1
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xea3a
movl %eax, %ebp
leaq 0x119ce(%rip), %rsi     # 0x203fe
movq %rbx, %rdi
movl $0x1e53, %edx           # imm = 0x1E53
jmp 0xe9c1
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xe9c6
// File: /workspace/github_c_makefile_star2_O3/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 0xea71
movl %eax, %ebp
leaq 0x119bb(%rip), %rsi     # 0x20422
movq %rbx, %rdi
movl $0x1e5f, %edx           # imm = 0x1E5F
jmp 0xead0
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rdx
movq %rbx, %rdi
movl $0x420094, %esi         # imm = 0x420094
callq 0x6670
testl %eax, %eax
je 0xeaa5
movl %eax, %ebp
leaq 0x11987(%rip), %rsi     # 0x20422
movq %rbx, %rdi
movl $0x1e65, %edx           # imm = 0x1E65
jmp 0xead0
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xeae0
movl %eax, %ebp
leaq 0x1195a(%rip), %rsi     # 0x20422
movq %rbx, %rdi
movl $0x1e6b, %edx           # imm = 0x1E6B
callq 0x6de0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xead5
// File: /workspace/github_c_makefile_star2_O3/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 0xeb1a
movl %eax, %ebp
leaq 0x1193a(%rip), %rsi     # 0x20447
movq %rbx, %rdi
movl $0x1e77, %edx           # imm = 0x1E77
jmp 0xeba1
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rdx
movq %rbx, %rdi
movl $0x4200c9, %esi         # imm = 0x4200C9
callq 0x6c10
testl %eax, %eax
je 0xeb4e
movl %eax, %ebp
leaq 0x11903(%rip), %rsi     # 0x20447
movq %rbx, %rdi
movl $0x1e7d, %edx           # imm = 0x1E7D
jmp 0xeba1
movq 0x8(%r14), %rdx
movq %rbx, %rdi
movl $0x4200ca, %esi         # imm = 0x4200CA
callq 0x6c10
testl %eax, %eax
je 0xeb76
movl %eax, %ebp
leaq 0x118db(%rip), %rsi     # 0x20447
movq %rbx, %rdi
movl $0x1e80, %edx           # imm = 0x1E80
jmp 0xeba1
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xebb1
movl %eax, %ebp
leaq 0x118ae(%rip), %rsi     # 0x20447
movq %rbx, %rdi
movl $0x1e86, %edx           # imm = 0x1E86
callq 0x6de0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xeba6
// File: /workspace/github_c_makefile_star2_O3/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 0xebe8
movl %eax, %ebp
leaq 0x1187b(%rip), %rsi     # 0x20459
movq %rbx, %rdi
movl $0x1e92, %edx           # imm = 0x1E92
jmp 0xec1a
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rdx
movq %rbx, %rdi
movl $0x420099, %esi         # imm = 0x420099
callq 0x6670
testl %eax, %eax
je 0xec2a
movl %eax, %ebp
leaq 0x11847(%rip), %rsi     # 0x20459
movq %rbx, %rdi
movl $0x1e98, %edx           # imm = 0x1E98
callq 0x6de0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r14), %rdx
testq %rdx, %rdx
je 0xec57
movq %rbx, %rdi
movl $0x4200a1, %esi         # imm = 0x4200A1
callq 0x6670
testl %eax, %eax
je 0xec57
movl %eax, %ebp
leaq 0x1180c(%rip), %rsi     # 0x20459
movq %rbx, %rdi
movl $0x1e9d, %edx           # imm = 0x1E9D
jmp 0xec1a
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xec84
movl %eax, %ebp
leaq 0x117df(%rip), %rsi     # 0x20459
movq %rbx, %rdi
movl $0x1ea4, %edx           # imm = 0x1EA4
jmp 0xec1a
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xec1f
// File: /workspace/github_c_makefile_star2_O3/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 0xee59
movl %eax, %ebp
leaq 0x11651(%rip), %rsi     # 0x204a0
movq %rbx, %rdi
movl $0x1ee9, %edx           # imm = 0x1EE9
jmp 0xeeae
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6170
testl %eax, %eax
je 0xee88
movl %eax, %ebp
leaq 0x11622(%rip), %rsi     # 0x204a0
movq %rbx, %rdi
movl $0x1eef, %edx           # imm = 0x1EEF
jmp 0xeeae
movl 0x8(%r14), %edx
movq %rbx, %rdi
movl $0x4200c7, %esi         # imm = 0x4200C7
callq 0x66d0
testl %eax, %eax
je 0xeebe
movl %eax, %ebp
leaq 0x115fa(%rip), %rsi     # 0x204a0
movq %rbx, %rdi
movl $0x1ef2, %edx           # imm = 0x1EF2
callq 0x6de0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%r14), %rdx
testq %rdx, %rdx
je 0xeeeb
movq %rbx, %rdi
movl $0x4200cb, %esi         # imm = 0x4200CB
callq 0x6c10
testl %eax, %eax
je 0xeeeb
movl %eax, %ebp
leaq 0x115bf(%rip), %rsi     # 0x204a0
movq %rbx, %rdi
movl $0x1ef7, %edx           # imm = 0x1EF7
jmp 0xeeae
movq 0x18(%r14), %rdx
testq %rdx, %rdx
je 0xef18
movq %rbx, %rdi
movl $0x4200cc, %esi         # imm = 0x4200CC
callq 0x6c10
testl %eax, %eax
je 0xef18
movl %eax, %ebp
leaq 0x11592(%rip), %rsi     # 0x204a0
movq %rbx, %rdi
movl $0x1efd, %edx           # imm = 0x1EFD
jmp 0xeeae
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xef48
movl %eax, %ebp
leaq 0x11565(%rip), %rsi     # 0x204a0
movq %rbx, %rdi
movl $0x1f04, %edx           # imm = 0x1F04
jmp 0xeeae
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xeeb3
// File: /workspace/github_c_makefile_star2_O3/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 0xef82
cmpl $0x2, %esi
je 0xef75
cmpl $0x1, %esi
jne 0xef9c
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x67d0
jmp 0xef8d
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x67b0
jmp 0xef8d
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x6790
movl %eax, %ebp
movl $0x1f23, %edx           # imm = 0x1F23
testl %eax, %eax
jne 0xefa6
xorl %ebp, %ebp
jmp 0xefb5
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0x1f1f, %edx           # imm = 0x1F1F
leaq 0x11516(%rip), %rsi     # 0x204c3
movq %rbx, %rdi
callq 0x6de0
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xeff0
movl %eax, %ebp
leaq 0x114fd(%rip), %rsi     # 0x204e0
movq %rbx, %rdi
movl $0x1f2d, %edx           # imm = 0x1F2D
jmp 0xf075
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movl (%r14), %edx
movq %rbx, %rdi
movl $0x420024, %esi         # imm = 0x420024
callq 0x66d0
testl %eax, %eax
je 0xf024
movl %eax, %ebp
leaq 0x114c6(%rip), %rsi     # 0x204e0
movq %rbx, %rdi
movl $0x1f33, %edx           # imm = 0x1F33
jmp 0xf075
movl (%r14), %esi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x6260
testl %eax, %eax
je 0xf04a
movl %eax, %ebp
leaq 0x114a0(%rip), %rsi     # 0x204e0
movq %rbx, %rdi
movl $0x1f36, %edx           # imm = 0x1F36
jmp 0xf075
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xf085
movl %eax, %ebp
leaq 0x11473(%rip), %rsi     # 0x204e0
movq %rbx, %rdi
movl $0x1f3c, %edx           # imm = 0x1F3C
callq 0x6de0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xf07a
// File: /workspace/github_c_makefile_star2_O3/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 0xf0bc
movl %eax, %ebp
leaq 0x11445(%rip), %rsi     # 0x204f7
movq %rbx, %rdi
movl $0x1f48, %edx           # imm = 0x1F48
jmp 0xf116
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6060
testl %eax, %eax
je 0xf0eb
movl %eax, %ebp
leaq 0x11416(%rip), %rsi     # 0x204f7
movq %rbx, %rdi
movl $0x1f4e, %edx           # imm = 0x1F4E
jmp 0xf116
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xf126
movl %eax, %ebp
leaq 0x113e9(%rip), %rsi     # 0x204f7
movq %rbx, %rdi
movl $0x1f54, %edx           # imm = 0x1F54
callq 0x6de0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xf11b
// File: /workspace/github_c_makefile_star2_O3/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 0xf869
movl %eax, %ebp
leaq 0x10d67(%rip), %rsi     # 0x205c1
movq %rbx, %rdi
movl $0x20e2, %edx           # imm = 0x20E2
callq 0x6de0
jmp 0xf8bc
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %r15, %r14
testq %rsi, %rsi
je 0xf8a4
movq %rbx, %rdi
callq 0x6300
testl %eax, %eax
je 0xf8a0
movl %eax, %ebp
leaq 0x10d2b(%rip), %rsi     # 0x205c1
movq %rbx, %rdi
movl $0x20ea, %edx           # imm = 0x20EA
jmp 0xf862
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_O3/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 0xfb13
movl %eax, %ebp
leaq 0x10a82(%rip), %rsi     # 0x20588
movq %rbx, %rdi
movl $0x2091, %edx           # imm = 0x2091
jmp 0xfbb2
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6640
testl %eax, %eax
je 0xfb42
movl %eax, %ebp
leaq 0x10a50(%rip), %rsi     # 0x20588
movq %rbx, %rdi
movl $0x2097, %edx           # imm = 0x2097
jmp 0xfbb2
movq %r15, (%rsp)
cmpq $0x0, 0x10(%r14)
je 0xfb73
xorl %r13d, %r13d
xorl %r15d, %r15d
movq 0x8(%r14), %rsi
addq %r13, %rsi
movq %rbx, %rdi
callq 0x66b0
testl %eax, %eax
jne 0xfba1
incq %r15
addq $0x20, %r13
cmpq 0x10(%r14), %r15
jb 0xfb53
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq (%rsp), %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xfbc8
movl %eax, %ebp
leaq 0x109f1(%rip), %rsi     # 0x20588
movq %rbx, %rdi
movl $0x20a3, %edx           # imm = 0x20A3
jmp 0xfbb2
movl %eax, %ebp
leaq 0x109de(%rip), %rsi     # 0x20588
movq %rbx, %rdi
movl $0x209c, %edx           # imm = 0x209C
callq 0x6de0
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 0xfbb7
// File: /workspace/github_c_makefile_star2_O3/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 0xfc05
movl %eax, %ebp
leaq 0x109ac(%rip), %rsi     # 0x205a4
movq %rbx, %rdi
movl $0x20af, %edx           # imm = 0x20AF
jmp 0xfca4
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6980
testl %eax, %eax
je 0xfc34
movl %eax, %ebp
leaq 0x1097a(%rip), %rsi     # 0x205a4
movq %rbx, %rdi
movl $0x20b5, %edx           # imm = 0x20B5
jmp 0xfca4
movq %r15, (%rsp)
cmpq $0x0, 0x10(%r14)
je 0xfc65
xorl %r13d, %r13d
xorl %r15d, %r15d
movq 0x8(%r14), %rsi
addq %r13, %rsi
movq %rbx, %rdi
callq 0x6890
testl %eax, %eax
jne 0xfc93
incq %r15
addq $0x30, %r13
cmpq 0x10(%r14), %r15
jb 0xfc45
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq (%rsp), %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xfcba
movl %eax, %ebp
leaq 0x1091b(%rip), %rsi     # 0x205a4
movq %rbx, %rdi
movl $0x20c1, %edx           # imm = 0x20C1
jmp 0xfca4
movl %eax, %ebp
leaq 0x10908(%rip), %rsi     # 0x205a4
movq %rbx, %rdi
movl $0x20ba, %edx           # imm = 0x20BA
callq 0x6de0
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 0xfca9
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
testq %rdi, %rdi
je 0xfd1e
testq %rsi, %rsi
je 0xfd1a
movq (%rsi), %r14
testq %r14, %r14
je 0xfd1a
movq %rdi, %rbx
movq (%r14), %r14
testq %r14, %r14
je 0xfd1a
movq 0x10(%r14), %rax
movl (%rax), %edx
movq %rbx, %rdi
movl $0x420074, %esi         # imm = 0x420074
callq 0x66d0
testl %eax, %eax
je 0xfcdb
movl %eax, %ebp
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xfd2a
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xfd03
jmp 0xfd23
xorl %ebp, %ebp
jmp 0xfd23
movl $0xffffffef, %ebp       # imm = 0xFFFFFFEF
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xeddd(%rip), %rsi      # 0x1eb18
movl $0x63, %edx
callq 0x66f0
movl $0x20d5, 0x9c(%rbx,%r14) # imm = 0x20D5
jmp 0xfd23
// File: /workspace/github_c_makefile_star2_O3/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:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
subq 0x8(%rdi), %rax
addq 0x10(%rdi), %rax
jne 0xfd85
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xfd9c
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xfd6e
jmp 0xfdc3
movb $0x0, (%rsi)
movq 0x8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rbx)
movb (%rax), %al
movb %al, (%rsi)
xorl %eax, %eax
jmp 0xfdc8
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xee33(%rip), %rsi      # 0x1ebe0
movl $0x63, %edx
callq 0x66f0
movl $0x2108, 0x9c(%rbx,%r14) # imm = 0x2108
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rcx
subq %rax, %rcx
addq (%rdi), %rcx
cmpq $0x3, %rcx
ja 0xfe09
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xfe59
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xfdf2
jmp 0xfe80
movl $0x0, (%rsi)
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rbx)
movzbl (%rax), %ecx
shll $0x18, %ecx
movl %ecx, (%rsi)
leaq 0x2(%rax), %rdx
movq %rdx, 0x8(%rbx)
movzbl 0x1(%rax), %edx
shll $0x10, %edx
orl %ecx, %edx
movl %edx, (%rsi)
leaq 0x3(%rax), %rcx
movq %rcx, 0x8(%rbx)
movzbl 0x2(%rax), %ecx
shll $0x8, %ecx
orl %edx, %ecx
movl %ecx, (%rsi)
leaq 0x4(%rax), %rdx
movq %rdx, 0x8(%rbx)
movzbl 0x3(%rax), %eax
orl %ecx, %eax
movl %eax, (%rsi)
xorl %eax, %eax
jmp 0xfe85
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xedda(%rip), %rsi      # 0x1ec44
movl $0x63, %edx
callq 0x66f0
movl $0x2115, 0x9c(%rbx,%r14) # imm = 0x2115
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rcx
subq %rax, %rcx
addq (%rdi), %rcx
cmpq $0x7, %rcx
ja 0xfecd
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xff7d
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xfeaf
jmp 0xffa4
movq $0x0, (%rsi)
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rbx)
movzbl (%rax), %ecx
shlq $0x38, %rcx
movq %rcx, (%rsi)
leaq 0x2(%rax), %rdx
movq %rdx, 0x8(%rbx)
movzbl 0x1(%rax), %edx
shlq $0x30, %rdx
orq %rcx, %rdx
movq %rdx, (%rsi)
leaq 0x3(%rax), %rcx
movq %rcx, 0x8(%rbx)
movzbl 0x2(%rax), %ecx
shlq $0x28, %rcx
orq %rdx, %rcx
movq %rcx, (%rsi)
leaq 0x4(%rax), %rdx
movq %rdx, 0x8(%rbx)
movzbl 0x3(%rax), %edx
shlq $0x20, %rdx
orq %rcx, %rdx
movq %rdx, (%rsi)
leaq 0x5(%rax), %rcx
movq %rcx, 0x8(%rbx)
movzbl 0x4(%rax), %ecx
shll $0x18, %ecx
orq %rdx, %rcx
movq %rcx, (%rsi)
leaq 0x6(%rax), %rdx
movq %rdx, 0x8(%rbx)
movzbl 0x5(%rax), %edx
shll $0x10, %edx
orq %rcx, %rdx
movq %rdx, (%rsi)
leaq 0x7(%rax), %rcx
movq %rcx, 0x8(%rbx)
movzbl 0x6(%rax), %ecx
shll $0x8, %ecx
orq %rdx, %rcx
movq %rcx, (%rsi)
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movzbl 0x7(%rax), %eax
orq %rcx, %rax
movq %rax, (%rsi)
xorl %eax, %eax
jmp 0xffa9
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xed1a(%rip), %rsi      # 0x1eca8
movl $0x63, %edx
callq 0x66f0
movl $0x2125, 0x9c(%rbx,%r14) # imm = 0x2125
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0x3, %rax
ja 0xffe7
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x10018
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xffd0
jmp 0x1003f
movq %rsi, %r14
movq %rbx, %rdi
callq 0x6a10
xorl %eax, %eax
cmpl $0x0, (%r14)
jns 0x10072
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x10046
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x10001
jmp 0x1006d
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xece3(%rip), %rsi      # 0x1ed0c
movl $0x63, %edx
callq 0x66f0
movl $0x2139, 0x9c(%rbx,%r14) # imm = 0x2139
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
jmp 0x10072
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xecb5(%rip), %rsi      # 0x1ed0c
movl $0x63, %edx
callq 0x66f0
movl $0x213f, 0x9c(%rbx,%r14) # imm = 0x213F
movl $0xffffffeb, %eax       # imm = 0xFFFFFFEB
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x102ea
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x10345
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x102d0
jmp 0x1036c
movq %rdx, %r14
movl %esi, %ebp
xorl %eax, %eax
leaq 0x4(%rsp), %r15
movl %eax, (%r15)
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a10
movl (%r15), %eax
movl %eax, %ecx
sarl $0x8, %ecx
cmpl %ebp, %ecx
jne 0x10376
cmpb $0x3, %al
jne 0x103c5
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64b0
cmpl $0x8, (%r15)
jne 0x10411
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6860
xorl %eax, %eax
jmp 0x1045b
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xea7e(%rip), %rsi      # 0x1edd4
movl $0x63, %edx
callq 0x66f0
movl $0x215f, 0x9c(%rbx,%r14) # imm = 0x215F
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
jmp 0x1045b
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x10394
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x1037d
jmp 0x103bb
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xea2f(%rip), %rsi      # 0x1edd4
movl $0x63, %edx
callq 0x66f0
movl $0x2165, 0x9c(%rbx,%r14) # imm = 0x2165
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jmp 0x1045b
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x103e3
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x103cc
jmp 0x1040a
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xe9e0(%rip), %rsi      # 0x1edd4
movl $0x63, %edx
callq 0x66f0
movl $0x2165, 0x9c(%rbx,%r14) # imm = 0x2165
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
jmp 0x1045b
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x1042f
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x10418
jmp 0x10456
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xe994(%rip), %rsi      # 0x1edd4
movl $0x63, %edx
callq 0x66f0
movl $0x2168, 0x9c(%rbx,%r14) # imm = 0x2168
movl $0xfffffffa, %eax       # imm = 0xFFFFFFFA
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x10e4c
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x10ea7
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x10e32
jmp 0x10ece
movq %rdx, %r14
movl %esi, %ebp
xorl %eax, %eax
leaq 0x4(%rsp), %r15
movl %eax, (%r15)
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a10
movl (%r15), %eax
movl %eax, %ecx
sarl $0x8, %ecx
cmpl %ebp, %ecx
jne 0x10ed8
cmpb $0x9, %al
jne 0x10f27
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64b0
cmpl $0x8, (%r15)
jne 0x10f73
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6860
xorl %eax, %eax
jmp 0x10fbd
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xe110(%rip), %rsi      # 0x1efc8
movl $0x63, %edx
callq 0x66f0
movl $0x21e8, 0x9c(%rbx,%r14) # imm = 0x21E8
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
jmp 0x10fbd
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x10ef6
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x10edf
jmp 0x10f1d
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xe0c1(%rip), %rsi      # 0x1efc8
movl $0x63, %edx
callq 0x66f0
movl $0x21ee, 0x9c(%rbx,%r14) # imm = 0x21EE
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jmp 0x10fbd
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x10f45
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x10f2e
jmp 0x10f6c
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xe072(%rip), %rsi      # 0x1efc8
movl $0x63, %edx
callq 0x66f0
movl $0x21ee, 0x9c(%rbx,%r14) # imm = 0x21EE
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
jmp 0x10fbd
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x10f91
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x10f7a
jmp 0x10fb8
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xe026(%rip), %rsi      # 0x1efc8
movl $0x63, %edx
callq 0x66f0
movl $0x21f1, 0x9c(%rbx,%r14) # imm = 0x21F1
movl $0xfffffffa, %eax       # imm = 0xFFFFFFFA
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq