LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_protocol_version
int
kmip_encode_protocol_version(KMIP *ctx, const ProtocolVersion *value)
{
    CHECK_BUFFER_FULL(ctx, 40);
    
    kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_PROTOCOL_VERSION, KMIP_TYPE_STRUCTURE));
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    kmip_encode_integer(ctx, KMIP_TAG_PROTOCOL_VERSION_MAJOR, value->major);
    kmip_encode_integer(ctx, KMIP_TAG_PROTOCOL_VERSION_MINOR, value->minor);
    
    uint8 *curr_index = ctx->index;
    ctx->index = length_index;
    
    kmip_encode_length(ctx, curr_index - value_index);

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

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0x27, %rax
ja 0xda19
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xda74
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xd9ff
jmp 0xda9b
movq %rsi, %r14
movq %rbx, %rdi
movl $0x42006901, %esi       # imm = 0x42006901
callq 0x60a0
movq 0x8(%rbx), %r15
leaq 0x4(%r15), %r12
movq %r12, 0x8(%rbx)
movl (%r14), %edx
movq %rbx, %rdi
movl $0x42006a, %esi         # imm = 0x42006A
callq 0x63d0
movl 0x4(%r14), %edx
movq %rbx, %rdi
movl $0x42006b, %esi         # imm = 0x42006B
callq 0x63d0
movq 0x8(%rbx), %r14
movq %r15, 0x8(%rbx)
movq %r14, %rsi
subq %r12, %rsi
movq %rbx, %rdi
callq 0x6a80
movq %r14, 0x8(%rbx)
xorl %eax, %eax
jmp 0xdaa0
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x11f57(%rip), %rsi     # 0x1f9dc
movl $0x63, %edx
callq 0x66f0
movl $0x1ae6, 0x9c(%rbx,%r14) # imm = 0x1AE6
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xdadb
movl %eax, %ebp
leaq 0x136eb(%rip), %rsi     # 0x211bc
movq %rbx, %rdi
movl $0x1bb6, %edx           # imm = 0x1BB6
jmp 0xdb0d
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 0xdb1d
movl %eax, %ebp
leaq 0x136b7(%rip), %rsi     # 0x211bc
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 0xdb45
movq %rbx, %rdi
callq 0x6c20
testl %eax, %eax
je 0xdb45
movl %eax, %ebp
leaq 0x13681(%rip), %rsi     # 0x211bc
movq %rbx, %rdi
movl $0x1bc1, %edx           # imm = 0x1BC1
jmp 0xdb0d
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xdb72
movl %eax, %ebp
leaq 0x13654(%rip), %rsi     # 0x211bc
movq %rbx, %rdi
movl $0x1bc8, %edx           # imm = 0x1BC8
jmp 0xdb0d
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xdb12
// File: /workspace/github_c_makefile_star2_O1/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 0xdba9
movl %eax, %ebp
leaq 0x13644(%rip), %rsi     # 0x211e3
movq %rbx, %rdi
movl $0x1bd4, %edx           # imm = 0x1BD4
jmp 0xdbdb
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 0xdbeb
movl %eax, %ebp
leaq 0x13610(%rip), %rsi     # 0x211e3
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 0xdc13
movq %rbx, %rdi
callq 0x6c20
testl %eax, %eax
je 0xdc13
movl %eax, %ebp
leaq 0x135da(%rip), %rsi     # 0x211e3
movq %rbx, %rdi
movl $0x1bdf, %edx           # imm = 0x1BDF
jmp 0xdbdb
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xdc40
movl %eax, %ebp
leaq 0x135ad(%rip), %rsi     # 0x211e3
movq %rbx, %rdi
movl $0x1be6, %edx           # imm = 0x1BE6
jmp 0xdbdb
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xdbe0
// File: /workspace/github_c_makefile_star2_O1/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 0xde04
movl %eax, %ebp
leaq 0x13431(%rip), %rsi     # 0x2122b
movq %rbx, %rdi
movl $0x1c29, %edx           # imm = 0x1C29
jmp 0xde63
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 0xde38
movl %eax, %ebp
leaq 0x133fd(%rip), %rsi     # 0x2122b
movq %rbx, %rdi
movl $0x1c2f, %edx           # imm = 0x1C2F
jmp 0xde63
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xde73
movl %eax, %ebp
leaq 0x133d0(%rip), %rsi     # 0x2122b
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 0xde68
// File: /workspace/github_c_makefile_star2_O1/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
subq $0x18, %rsp
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
movl $0x42004501, %esi       # imm = 0x42004501
callq 0x60a0
testl %eax, %eax
je 0xdf9a
movl %eax, %ebp
leaq 0x132da(%rip), %rsi     # 0x2126a
movq %rbx, %rdi
movl $0x1ca5, %edx           # imm = 0x1CA5
jmp 0xdfc9
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 0xdfdf
movl %eax, %ebp
leaq 0x132a9(%rip), %rsi     # 0x2126a
movq %rbx, %rdi
movl $0x1cab, %edx           # imm = 0x1CAB
callq 0x6de0
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, 0x10(%rsp)
cmpq $0x0, 0x10(%r14)
setne %r15b
je 0xe003
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x6a90
testl %eax, %eax
je 0xe005
movl %eax, %ebp
jmp 0xe03d
jmp 0xe051
movq %r12, 0x8(%rsp)
movl $0x10, %esi
xorl %r12d, %r12d
incq %r12
cmpq 0x10(%r14), %r12
setb %r15b
jae 0xe09a
leaq 0x10(%rsi), %r13
addq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x6a90
movq %r13, %rsi
testl %eax, %eax
je 0xe012
movl %eax, %ebp
movq 0x8(%rsp), %r12
leaq 0x13226(%rip), %rsi     # 0x2126a
movq %rbx, %rdi
movl $0x1cb0, %edx           # imm = 0x1CB0
callq 0x6de0
testb %r15b, %r15b
movq 0x10(%rsp), %rax
jne 0xdfce
movq 0x8(%rbx), %r14
movq %rax, 0x8(%rbx)
movq %r14, %rsi
subq %r12, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xe08f
movl %eax, %ebp
leaq 0x131e8(%rip), %rsi     # 0x2126a
movq %rbx, %rdi
movl $0x1cb7, %edx           # imm = 0x1CB7
jmp 0xdfc9
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xdfce
movq 0x8(%rsp), %r12
jmp 0xe051
// File: /workspace/github_c_makefile_star2_O1/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 0xe272
movl %eax, %ebp
leaq 0x1302e(%rip), %rsi     # 0x21296
movq %rbx, %rdi
movl $0x1cfd, %edx           # imm = 0x1CFD
jmp 0xe2cc
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6cf0
testl %eax, %eax
je 0xe2a1
movl %eax, %ebp
leaq 0x12fff(%rip), %rsi     # 0x21296
movq %rbx, %rdi
movl $0x1d03, %edx           # imm = 0x1D03
jmp 0xe2cc
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xe2dc
movl %eax, %ebp
leaq 0x12fd2(%rip), %rsi     # 0x21296
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 0xe2d1
// File: /workspace/github_c_makefile_star2_O1/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 0xe3b4
movl %eax, %ebp
leaq 0x12f1d(%rip), %rsi     # 0x212c7
movq %rbx, %rdi
movl $0x1d2d, %edx           # imm = 0x1D2D
jmp 0xe40e
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6cf0
testl %eax, %eax
je 0xe3e3
movl %eax, %ebp
leaq 0x12eee(%rip), %rsi     # 0x212c7
movq %rbx, %rdi
movl $0x1d33, %edx           # imm = 0x1D33
jmp 0xe40e
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xe41e
movl %eax, %ebp
leaq 0x12ec1(%rip), %rsi     # 0x212c7
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 0xe413
// File: /workspace/github_c_makefile_star2_O1/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 0xed42
movl %eax, %ebp
leaq 0x12664(%rip), %rsi     # 0x2138e
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
testq %rdx, %rdx
je 0xed7b
movq %rbx, %rdi
movl $0x420094, %esi         # imm = 0x420094
callq 0x6670
testl %eax, %eax
je 0xed7b
movl %eax, %ebp
leaq 0x1261d(%rip), %rsi     # 0x2138e
movq %rbx, %rdi
movl $0x1e4c, %edx           # imm = 0x1E4C
jmp 0xed32
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xeda8
movl %eax, %ebp
leaq 0x125f0(%rip), %rsi     # 0x2138e
movq %rbx, %rdi
movl $0x1e53, %edx           # imm = 0x1E53
jmp 0xed32
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xed37
// File: /workspace/github_c_makefile_star2_O1/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 0xeddf
movl %eax, %ebp
leaq 0x125dd(%rip), %rsi     # 0x213b2
movq %rbx, %rdi
movl $0x1e5f, %edx           # imm = 0x1E5F
jmp 0xee3e
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 0xee13
movl %eax, %ebp
leaq 0x125a9(%rip), %rsi     # 0x213b2
movq %rbx, %rdi
movl $0x1e65, %edx           # imm = 0x1E65
jmp 0xee3e
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xee4e
movl %eax, %ebp
leaq 0x1257c(%rip), %rsi     # 0x213b2
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 0xee43
// File: /workspace/github_c_makefile_star2_O1/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 0xee88
movl %eax, %ebp
leaq 0x1255c(%rip), %rsi     # 0x213d7
movq %rbx, %rdi
movl $0x1e77, %edx           # imm = 0x1E77
jmp 0xef0f
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 0xeebc
movl %eax, %ebp
leaq 0x12525(%rip), %rsi     # 0x213d7
movq %rbx, %rdi
movl $0x1e7d, %edx           # imm = 0x1E7D
jmp 0xef0f
movq 0x8(%r14), %rdx
movq %rbx, %rdi
movl $0x4200ca, %esi         # imm = 0x4200CA
callq 0x6c10
testl %eax, %eax
je 0xeee4
movl %eax, %ebp
leaq 0x124fd(%rip), %rsi     # 0x213d7
movq %rbx, %rdi
movl $0x1e80, %edx           # imm = 0x1E80
jmp 0xef0f
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xef1f
movl %eax, %ebp
leaq 0x124d0(%rip), %rsi     # 0x213d7
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 0xef14
// File: /workspace/github_c_makefile_star2_O1/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 0xef56
movl %eax, %ebp
leaq 0x1249d(%rip), %rsi     # 0x213e9
movq %rbx, %rdi
movl $0x1e92, %edx           # imm = 0x1E92
jmp 0xef88
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 0xef98
movl %eax, %ebp
leaq 0x12469(%rip), %rsi     # 0x213e9
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 0xefc5
movq %rbx, %rdi
movl $0x4200a1, %esi         # imm = 0x4200A1
callq 0x6670
testl %eax, %eax
je 0xefc5
movl %eax, %ebp
leaq 0x1242e(%rip), %rsi     # 0x213e9
movq %rbx, %rdi
movl $0x1e9d, %edx           # imm = 0x1E9D
jmp 0xef88
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xeff2
movl %eax, %ebp
leaq 0x12401(%rip), %rsi     # 0x213e9
movq %rbx, %rdi
movl $0x1ea4, %edx           # imm = 0x1EA4
jmp 0xef88
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xef8d
// File: /workspace/github_c_makefile_star2_O1/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 0xf1c7
movl %eax, %ebp
leaq 0x12273(%rip), %rsi     # 0x21430
movq %rbx, %rdi
movl $0x1ee9, %edx           # imm = 0x1EE9
jmp 0xf21c
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6170
testl %eax, %eax
je 0xf1f6
movl %eax, %ebp
leaq 0x12244(%rip), %rsi     # 0x21430
movq %rbx, %rdi
movl $0x1eef, %edx           # imm = 0x1EEF
jmp 0xf21c
movl 0x8(%r14), %edx
movq %rbx, %rdi
movl $0x4200c7, %esi         # imm = 0x4200C7
callq 0x66d0
testl %eax, %eax
je 0xf22c
movl %eax, %ebp
leaq 0x1221c(%rip), %rsi     # 0x21430
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 0xf259
movq %rbx, %rdi
movl $0x4200cb, %esi         # imm = 0x4200CB
callq 0x6c10
testl %eax, %eax
je 0xf259
movl %eax, %ebp
leaq 0x121e1(%rip), %rsi     # 0x21430
movq %rbx, %rdi
movl $0x1ef7, %edx           # imm = 0x1EF7
jmp 0xf21c
movq 0x18(%r14), %rdx
testq %rdx, %rdx
je 0xf286
movq %rbx, %rdi
movl $0x4200cc, %esi         # imm = 0x4200CC
callq 0x6c10
testl %eax, %eax
je 0xf286
movl %eax, %ebp
leaq 0x121b4(%rip), %rsi     # 0x21430
movq %rbx, %rdi
movl $0x1efd, %edx           # imm = 0x1EFD
jmp 0xf21c
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xf2b6
movl %eax, %ebp
leaq 0x12187(%rip), %rsi     # 0x21430
movq %rbx, %rdi
movl $0x1f04, %edx           # imm = 0x1F04
jmp 0xf21c
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xf221
// File: /workspace/github_c_makefile_star2_O1/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 0xf2f0
cmpl $0x2, %esi
je 0xf2e3
cmpl $0x1, %esi
jne 0xf30a
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x67d0
jmp 0xf2fb
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x67b0
jmp 0xf2fb
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x6790
movl %eax, %ebp
movl $0x1f23, %edx           # imm = 0x1F23
testl %eax, %eax
jne 0xf314
xorl %ebp, %ebp
jmp 0xf323
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0x1f1f, %edx           # imm = 0x1F1F
leaq 0x12138(%rip), %rsi     # 0x21453
movq %rbx, %rdi
callq 0x6de0
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xf35e
movl %eax, %ebp
leaq 0x1211f(%rip), %rsi     # 0x21470
movq %rbx, %rdi
movl $0x1f2d, %edx           # imm = 0x1F2D
jmp 0xf3e3
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 0xf392
movl %eax, %ebp
leaq 0x120e8(%rip), %rsi     # 0x21470
movq %rbx, %rdi
movl $0x1f33, %edx           # imm = 0x1F33
jmp 0xf3e3
movl (%r14), %esi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x6260
testl %eax, %eax
je 0xf3b8
movl %eax, %ebp
leaq 0x120c2(%rip), %rsi     # 0x21470
movq %rbx, %rdi
movl $0x1f36, %edx           # imm = 0x1F36
jmp 0xf3e3
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xf3f3
movl %eax, %ebp
leaq 0x12095(%rip), %rsi     # 0x21470
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 0xf3e8
// File: /workspace/github_c_makefile_star2_O1/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 0xf42a
movl %eax, %ebp
leaq 0x12067(%rip), %rsi     # 0x21487
movq %rbx, %rdi
movl $0x1f48, %edx           # imm = 0x1F48
jmp 0xf484
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6060
testl %eax, %eax
je 0xf459
movl %eax, %ebp
leaq 0x12038(%rip), %rsi     # 0x21487
movq %rbx, %rdi
movl $0x1f4e, %edx           # imm = 0x1F4E
jmp 0xf484
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xf494
movl %eax, %ebp
leaq 0x1200b(%rip), %rsi     # 0x21487
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 0xf489
// File: /workspace/github_c_makefile_star2_O1/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 0xfc5d
movl %eax, %ebp
leaq 0x11903(%rip), %rsi     # 0x21551
movq %rbx, %rdi
movl $0x20e2, %edx           # imm = 0x20E2
callq 0x6de0
jmp 0xfcad
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
testq %rsi, %rsi
je 0xfc91
movq %rbx, %rdi
callq 0x6300
testl %eax, %eax
je 0xfc91
movl %eax, %ebp
leaq 0x118ca(%rip), %rsi     # 0x21551
movq %rbx, %rdi
movl $0x20ea, %edx           # imm = 0x20EA
jmp 0xfc56
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_O1/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
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl $0x42007801, %esi       # imm = 0x42007801
callq 0x60a0
testl %eax, %eax
je 0xff04
movl %eax, %ebp
leaq 0x1161e(%rip), %rsi     # 0x21518
movq %rbx, %rdi
movl $0x2091, %edx           # imm = 0x2091
jmp 0xff31
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6640
testl %eax, %eax
je 0xff47
movl %eax, %ebp
leaq 0x115ef(%rip), %rsi     # 0x21518
movq %rbx, %rdi
movl $0x2097, %edx           # imm = 0x2097
callq 0x6de0
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, 0x10(%rsp)
cmpq $0x0, 0x10(%r14)
setne %r13b
je 0xff6b
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x66b0
testl %eax, %eax
je 0xff6d
movl %eax, %ebp
jmp 0xffa5
jmp 0xffb9
movq %r15, 0x8(%rsp)
movl $0x20, %esi
xorl %r15d, %r15d
incq %r15
cmpq 0x10(%r14), %r15
setb %r13b
jae 0x10002
leaq 0x20(%rsi), %r12
addq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x66b0
movq %r12, %rsi
testl %eax, %eax
je 0xff7a
movl %eax, %ebp
movq 0x8(%rsp), %r15
leaq 0x1156c(%rip), %rsi     # 0x21518
movq %rbx, %rdi
movl $0x209c, %edx           # imm = 0x209C
callq 0x6de0
testb %r13b, %r13b
jne 0xff36
movq 0x8(%rbx), %r14
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xfff7
movl %eax, %ebp
leaq 0x1152e(%rip), %rsi     # 0x21518
movq %rbx, %rdi
movl $0x20a3, %edx           # imm = 0x20A3
jmp 0xff31
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xff36
movq 0x8(%rsp), %r15
jmp 0xffb9
// File: /workspace/github_c_makefile_star2_O1/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
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl $0x42007b01, %esi       # imm = 0x42007B01
callq 0x60a0
testl %eax, %eax
je 0x1003e
movl %eax, %ebp
leaq 0x11500(%rip), %rsi     # 0x21534
movq %rbx, %rdi
movl $0x20af, %edx           # imm = 0x20AF
jmp 0x1006b
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6980
testl %eax, %eax
je 0x10081
movl %eax, %ebp
leaq 0x114d1(%rip), %rsi     # 0x21534
movq %rbx, %rdi
movl $0x20b5, %edx           # imm = 0x20B5
callq 0x6de0
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, 0x10(%rsp)
cmpq $0x0, 0x10(%r14)
setne %r13b
je 0x100a5
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x6890
testl %eax, %eax
je 0x100a7
movl %eax, %ebp
jmp 0x100df
jmp 0x100f3
movq %r15, 0x8(%rsp)
movl $0x30, %esi
xorl %r15d, %r15d
incq %r15
cmpq 0x10(%r14), %r15
setb %r13b
jae 0x1013c
leaq 0x30(%rsi), %r12
addq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x6890
movq %r12, %rsi
testl %eax, %eax
je 0x100b4
movl %eax, %ebp
movq 0x8(%rsp), %r15
leaq 0x1144e(%rip), %rsi     # 0x21534
movq %rbx, %rdi
movl $0x20ba, %edx           # imm = 0x20BA
callq 0x6de0
testb %r13b, %r13b
jne 0x10070
movq 0x8(%rbx), %r14
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0x10131
movl %eax, %ebp
leaq 0x11410(%rip), %rsi     # 0x21534
movq %rbx, %rdi
movl $0x20c1, %edx           # imm = 0x20C1
jmp 0x1006b
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0x10070
movq 0x8(%rsp), %r15
jmp 0x100f3
// File: /workspace/github_c_makefile_star2_O1/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 0x101a0
xorl %ebp, %ebp
testq %rsi, %rsi
je 0x101d5
movq (%rsi), %r14
testq %r14, %r14
je 0x101d3
movq %rdi, %rbx
movq (%r14), %r14
testq %r14, %r14
je 0x101ce
movq 0x10(%r14), %rax
movl (%rax), %edx
movq %rbx, %rdi
movl $0x420074, %esi         # imm = 0x420074
callq 0x66d0
testl %eax, %eax
je 0x10161
movl %eax, %ebp
leaq 0x38(%rbx), %rdi
xorl %r15d, %r15d
cmpl $0x0, 0x64(%rdi,%r15)
je 0x101a7
addq $0x68, %r15
cmpq $0x820, %r15            # imm = 0x820
jne 0x10189
jmp 0x101ce
movl $0xffffffef, %ebp       # imm = 0xFFFFFFEF
jmp 0x101d5
addq %r15, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xf8ec(%rip), %rsi      # 0x1faa4
movl $0x63, %edx
callq 0x66f0
movl $0x20d5, 0x9c(%rbx,%r15) # imm = 0x20D5
testq %r14, %r14
jne 0x101d5
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x10214
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x1022b
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x101fd
jmp 0x10252
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 0x10257
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xf930(%rip), %rsi      # 0x1fb6c
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_O1/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 0x10298
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x102e8
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x10281
jmp 0x1030f
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 0x10314
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xf8d7(%rip), %rsi      # 0x1fbd0
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_O1/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 0x1035c
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x1040c
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x1033e
jmp 0x10433
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 0x10438
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xf817(%rip), %rsi      # 0x1fc34
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_O1/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 0x10476
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x104a7
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x1045f
jmp 0x104ce
movq %rsi, %r14
movq %rbx, %rdi
callq 0x6a10
xorl %eax, %eax
cmpl $0x0, (%r14)
jns 0x10501
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x104d5
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x10490
jmp 0x104fc
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xf7e0(%rip), %rsi      # 0x1fc98
movl $0x63, %edx
callq 0x66f0
movl $0x2139, 0x9c(%rbx,%r14) # imm = 0x2139
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
jmp 0x10501
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xf7b2(%rip), %rsi      # 0x1fc98
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_O1/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 0x10779
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x107d4
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x1075f
jmp 0x107fb
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 0x10805
cmpb $0x3, %al
jne 0x10854
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64b0
cmpl $0x8, (%r15)
jne 0x108a0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6860
xorl %eax, %eax
jmp 0x108ea
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xf57b(%rip), %rsi      # 0x1fd60
movl $0x63, %edx
callq 0x66f0
movl $0x215f, 0x9c(%rbx,%r14) # imm = 0x215F
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
jmp 0x108ea
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x10823
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x1080c
jmp 0x1084a
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xf52c(%rip), %rsi      # 0x1fd60
movl $0x63, %edx
callq 0x66f0
movl $0x2165, 0x9c(%rbx,%r14) # imm = 0x2165
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jmp 0x108ea
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x10872
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x1085b
jmp 0x10899
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xf4dd(%rip), %rsi      # 0x1fd60
movl $0x63, %edx
callq 0x66f0
movl $0x2165, 0x9c(%rbx,%r14) # imm = 0x2165
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
jmp 0x108ea
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x108be
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x108a7
jmp 0x108e5
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xf491(%rip), %rsi      # 0x1fd60
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