LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_v2_cryptographic_algorithm
int
test_decode_attribute_v2_cryptographic_algorithm(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    /* This encoding matches the following value:
    *  Cryptographic Algorithm - AES
    */
    uint8 encoding[16] = {
        0x42, 0x00, 0x28, 0x05, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00
    };

    KMIP ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_2_0);

    Attribute expected = {0};
    kmip_init_attribute(&expected);
    enum cryptographic_algorithm algorithm = KMIP_CRYPTOALG_AES;
    expected.type = KMIP_ATTR_CRYPTOGRAPHIC_ALGORITHM;
    expected.value = &algorithm;

    Attribute observed = {0};
    int result = kmip_decode_attribute_v2(&ctx, &observed);
    int comparison = kmip_compare_attribute(&expected, &observed);
    if(!comparison)
    {
        kmip_print_attribute(stderr, 1, &expected);
        kmip_print_attribute(stderr, 1, &observed);
    }
    result = report_decoding_test_result(tracker, &ctx, comparison, result, __func__);

    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);

    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x8e0, %rsp            # imm = 0x8E0
movq %rdi, %rbx
incw (%rdi)
movaps 0x18948(%rip), %xmm0    # 0x26140
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
leaq 0x48(%rsp), %r14
movl $0x898, %edx            # imm = 0x898
movq %r14, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x10
popq %rdx
pushq $0x5
popq %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x128ed
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movq %r15, %rdi
callq 0x12e6d
pushq $0x3
popq %rax
leaq 0xc(%rsp), %rcx
movl %eax, (%rcx)
movl %eax, (%r15)
movq %rcx, 0x8(%r15)
leaq 0x10(%rsp), %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x1bfe7
movl %eax, %ebp
movq %r15, %rdi
movq %r12, %rsi
callq 0x14d69
movl %eax, %r14d
testl %eax, %eax
jne 0xd8a4
movq 0x3077a(%rip), %r12     # 0x3dff8
movq (%r12), %rdi
pushq $0x1
popq %r15
leaq 0x20(%rsp), %rdx
movl %r15d, %esi
callq 0x23eff
movq (%r12), %rdi
leaq 0x10(%rsp), %rdx
movl %r15d, %esi
callq 0x23eff
leaq 0x1a469(%rip), %r8      # 0x27d14
leaq 0x48(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
callq 0x134d
movl %eax, %ebx
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x1309a
movq %r15, %rdi
callq 0x12ade
movl %ebx, %eax
addq $0x8e0, %rsp            # imm = 0x8E0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_v2_cryptographic_length
int
test_decode_attribute_v2_cryptographic_length(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    /* This encoding matches the following value:
    *  Cryptographic Length - 128
    */
    uint8 encoding[16] = {
        0x42, 0x00, 0x2A, 0x02, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00
    };

    KMIP ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_2_0);

    Attribute expected = {0};
    kmip_init_attribute(&expected);
    int32 length = 128;
    expected.type = KMIP_ATTR_CRYPTOGRAPHIC_LENGTH;
    expected.value = &length;

    Attribute observed = {0};
    int result = kmip_decode_attribute_v2(&ctx, &observed);
    int comparison = kmip_compare_attribute(&expected, &observed);
    if(!comparison)
    {
        kmip_print_attribute(stderr, 1, &expected);
        kmip_print_attribute(stderr, 1, &observed);
    }
    result = report_decoding_test_result(tracker, &ctx, comparison, result, __func__);

    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);

    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x8e0, %rsp            # imm = 0x8E0
movq %rdi, %rbx
incw (%rdi)
movaps 0x1884b(%rip), %xmm0    # 0x26150
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
leaq 0x48(%rsp), %r14
movl $0x898, %edx            # imm = 0x898
movq %r14, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x10
popq %rdx
pushq $0x5
popq %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x128ed
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movq %r15, %rdi
callq 0x12e6d
leaq 0xc(%rsp), %rax
movl $0x80, (%rax)
movl $0x4, (%r15)
movq %rax, 0x8(%r15)
leaq 0x10(%rsp), %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x1bfe7
movl %eax, %ebp
movq %r15, %rdi
movq %r12, %rsi
callq 0x14d69
movl %eax, %r14d
testl %eax, %eax
jne 0xd9b6
movq 0x30668(%rip), %r12     # 0x3dff8
movq (%r12), %rdi
pushq $0x1
popq %r15
leaq 0x20(%rsp), %rdx
movl %r15d, %esi
callq 0x23eff
movq (%r12), %rdi
leaq 0x10(%rsp), %rdx
movl %r15d, %esi
callq 0x23eff
leaq 0x1a388(%rip), %r8      # 0x27d45
leaq 0x48(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
callq 0x134d
movl %eax, %ebx
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x1309a
movq %r15, %rdi
callq 0x12ade
movl %ebx, %eax
addq $0x8e0, %rsp            # imm = 0x8E0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_v2_cryptographic_usage_mask
int
test_decode_attribute_v2_cryptographic_usage_mask(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    /* This encoding matches the following value:
    *  Cryptographic Usage Mask - Encrypt | Decrypt
    */
    uint8 encoding[16] = {
        0x42, 0x00, 0x2C, 0x02, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x00
    };

    KMIP ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_2_0);

    Attribute expected = {0};
    kmip_init_attribute(&expected);
    int32 mask = KMIP_CRYPTOMASK_ENCRYPT | KMIP_CRYPTOMASK_DECRYPT;
    expected.type = KMIP_ATTR_CRYPTOGRAPHIC_USAGE_MASK;
    expected.value = &mask;

    Attribute observed = {0};
    int result = kmip_decode_attribute_v2(&ctx, &observed);
    int comparison = kmip_compare_attribute(&expected, &observed);
    if(!comparison)
    {
        kmip_print_attribute(stderr, 1, &expected);
        kmip_print_attribute(stderr, 1, &observed);
    }
    result = report_decoding_test_result(tracker, &ctx, comparison, result, __func__);

    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);

    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x8e0, %rsp            # imm = 0x8E0
movq %rdi, %rbx
incw (%rdi)
movaps 0x18749(%rip), %xmm0    # 0x26160
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
leaq 0x48(%rsp), %r14
movl $0x898, %edx            # imm = 0x898
movq %r14, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x10
popq %rdx
pushq $0x5
popq %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x128ed
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movq %r15, %rdi
callq 0x12e6d
leaq 0xc(%rsp), %rax
movl $0xc, (%rax)
movl $0x6, (%r15)
movq %rax, 0x8(%r15)
leaq 0x10(%rsp), %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x1bfe7
movl %eax, %ebp
movq %r15, %rdi
movq %r12, %rsi
callq 0x14d69
movl %eax, %r14d
testl %eax, %eax
jne 0xdac8
movq 0x30556(%rip), %r12     # 0x3dff8
movq (%r12), %rdi
pushq $0x1
popq %r15
leaq 0x20(%rsp), %rdx
movl %r15d, %esi
callq 0x23eff
movq (%r12), %rdi
leaq 0x10(%rsp), %rdx
movl %r15d, %esi
callq 0x23eff
leaq 0x1a2a4(%rip), %r8      # 0x27d73
leaq 0x48(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
callq 0x134d
movl %eax, %ebx
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x1309a
movq %r15, %rdi
callq 0x12ade
movl %ebx, %eax
addq $0x8e0, %rsp            # imm = 0x8E0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_v2_state
int
test_decode_attribute_v2_state(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    /* This encoding matches the following value:
    *  State - Active
    */
    uint8 encoding[16] = {
        0x42, 0x00, 0x8D, 0x05, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00
    };

    KMIP ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_2_0);

    Attribute expected = {0};
    kmip_init_attribute(&expected);
    enum state state = KMIP_STATE_ACTIVE;
    expected.type = KMIP_ATTR_STATE;
    expected.value = &state;

    Attribute observed = {0};
    int result = kmip_decode_attribute_v2(&ctx, &observed);
    int comparison = kmip_compare_attribute(&expected, &observed);
    if(!comparison)
    {
        kmip_print_attribute(stderr, 1, &expected);
        kmip_print_attribute(stderr, 1, &observed);
    }
    result = report_decoding_test_result(tracker, &ctx, comparison, result, __func__);

    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);

    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x8e0, %rsp            # imm = 0x8E0
movq %rdi, %rbx
incw (%rdi)
movaps 0x18647(%rip), %xmm0    # 0x26170
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
leaq 0x48(%rsp), %r14
movl $0x898, %edx            # imm = 0x898
movq %r14, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x10
popq %rdx
pushq $0x5
popq %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x128ed
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movq %r15, %rdi
callq 0x12e6d
leaq 0xc(%rsp), %rax
movl $0x2, (%rax)
movl $0x7, (%r15)
movq %rax, 0x8(%r15)
leaq 0x10(%rsp), %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x1bfe7
movl %eax, %ebp
movq %r15, %rdi
movq %r12, %rsi
callq 0x14d69
movl %eax, %r14d
testl %eax, %eax
jne 0xdbda
movq 0x30444(%rip), %r12     # 0x3dff8
movq (%r12), %rdi
pushq $0x1
popq %r15
leaq 0x20(%rsp), %rdx
movl %r15d, %esi
callq 0x23eff
movq (%r12), %rdi
leaq 0x10(%rsp), %rdx
movl %r15d, %esi
callq 0x23eff
leaq 0x1a1c4(%rip), %r8      # 0x27da5
leaq 0x48(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
callq 0x134d
movl %eax, %ebx
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x1309a
movq %r15, %rdi
callq 0x12ade
movl %ebx, %eax
addq $0x8e0, %rsp            # imm = 0x8E0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_v2_object_group
int
test_decode_attribute_v2_object_group(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    /* This encoding matches the following value:
    *  Object Group - RoundRobinTestGroup
    */
    uint8 encoding[32] = {
        0x42, 0x00, 0x56, 0x07, 0x00, 0x00, 0x00, 0x13,
        0x52, 0x6F, 0x75, 0x6E, 0x64, 0x52, 0x6F, 0x62,
        0x69, 0x6E, 0x54, 0x65, 0x73, 0x74, 0x47, 0x72,
        0x6F, 0x75, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00
    };

    KMIP ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_2_0);

    Attribute expected = {0};
    kmip_init_attribute(&expected);
    TextString object_group = {0};
    object_group.value = "RoundRobinTestGroup";
    object_group.size = 19;
    expected.type = KMIP_ATTR_OBJECT_GROUP;
    expected.value = &object_group;

    Attribute observed = {0};
    int result = kmip_decode_attribute_v2(&ctx, &observed);
    int comparison = kmip_compare_attribute(&expected, &observed);
    if(!comparison)
    {
        kmip_print_attribute(stderr, 1, &expected);
        kmip_print_attribute(stderr, 1, &observed);
    }
    result = report_decoding_test_result(tracker, &ctx, comparison, result, __func__);

    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);

    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x8f0, %rsp            # imm = 0x8F0
movq %rdi, %rbx
incw (%rdi)
movaps 0x1df85(%rip), %xmm0    # 0x2bbc0
leaq 0x30(%rsp), %r15
movaps %xmm0, 0x10(%r15)
movaps 0x1df64(%rip), %xmm0    # 0x2bbb0
movaps %xmm0, (%r15)
leaq 0x58(%rsp), %r14
movl $0x898, %edx            # imm = 0x898
movq %r14, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x20
popq %rdx
pushq $0x5
popq %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x128ed
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, (%r15)
movq %r15, %rdi
callq 0x12e6d
leaq 0x18f3f(%rip), %rax     # 0x26bcf
leaq 0x20(%rsp), %rcx
movq %rax, (%rcx)
movq $0x13, 0x8(%rcx)
movl $0x9, (%r15)
movq %rcx, 0x8(%r15)
movq %rsp, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x1bfe7
movl %eax, %ebp
movq %r15, %rdi
movq %r12, %rsi
callq 0x14d69
movl %eax, %r14d
testl %eax, %eax
jne 0xdd00
movq 0x3031c(%rip), %r12     # 0x3dff8
movq (%r12), %rdi
pushq $0x1
popq %r15
leaq 0x10(%rsp), %rdx
movl %r15d, %esi
callq 0x23eff
movq (%r12), %rdi
movq %rsp, %rdx
movl %r15d, %esi
callq 0x23eff
leaq 0x1a0bd(%rip), %r8      # 0x27dc4
leaq 0x58(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
callq 0x134d
movl %eax, %ebx
movq %rsp, %rsi
movq %r15, %rdi
callq 0x1309a
movq %r15, %rdi
callq 0x12ade
movl %ebx, %eax
addq $0x8f0, %rsp            # imm = 0x8F0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_v2_activation_date
int
test_decode_attribute_v2_activation_date(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    /* This encoding matches the following values:
    *  Activation Date - 2 (Thu Jan 01 01:00:02 UST 1970)
    */
    uint8 encoding[16] = {
        0x42, 0x00, 0x01, 0x09, 0x00, 0x00, 0x00, 0x08,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02
    };

    KMIP ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_2_0);

    int64 date_time = 2;

    Attribute expected = {0};
    kmip_init_attribute(&expected);

    expected.type = KMIP_ATTR_ACTIVATION_DATE;
    expected.value = &date_time;

    Attribute observed = {0};
    int result = kmip_decode_attribute_v2(&ctx, &observed);
    int comparison = kmip_compare_attribute(&expected, &observed);
    if(!comparison)
    {
        kmip_print_attribute(stderr, 1, &expected);
        kmip_print_attribute(stderr, 1, &observed);
    }
    result = report_decoding_test_result(tracker, &ctx, comparison, result, __func__);

    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);

    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x8e0, %rsp            # imm = 0x8E0
movq %rdi, %rbx
incw (%rdi)
movaps 0x18421(%rip), %xmm0    # 0x26180
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
leaq 0x48(%rsp), %r14
movl $0x898, %edx            # imm = 0x898
movq %r14, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x10
popq %rdx
pushq $0x5
popq %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x128ed
leaq 0x28(%rsp), %r12
movq $0x2, (%r12)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, (%r15)
movq %r15, %rdi
callq 0x12e6d
movl $0xa, (%r15)
movq %r12, 0x8(%r15)
movq %rsp, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x1bfe7
movl %eax, %ebp
movq %r15, %rdi
movq %r12, %rsi
callq 0x14d69
movl %eax, %r14d
testl %eax, %eax
jne 0xde0e
movq 0x3020e(%rip), %r12     # 0x3dff8
movq (%r12), %rdi
pushq $0x1
popq %r15
leaq 0x10(%rsp), %rdx
movl %r15d, %esi
callq 0x23eff
movq (%r12), %rdi
movq %rsp, %rdx
movl %r15d, %esi
callq 0x23eff
leaq 0x19fd5(%rip), %r8      # 0x27dea
leaq 0x48(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
callq 0x134d
movl %eax, %ebx
movq %rsp, %rsi
movq %r15, %rdi
callq 0x1309a
movq %r15, %rdi
callq 0x12ade
movl %ebx, %eax
addq $0x8e0, %rsp            # imm = 0x8E0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_v2_deactivation_date
int
test_decode_attribute_v2_deactivation_date(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    /* This encoding matches the following values:
    *  Deactivation Date - 1335514467 (Fri Apr 27 10:14:27 CEST 2012)
    */
    uint8 encoding[16] = {
        0x42, 0x00, 0x2F, 0x09, 0x00, 0x00, 0x00, 0x08,
        0x00, 0x00, 0x00, 0x00, 0x4F, 0x9A, 0x55, 0x63
    };

    KMIP ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_2_0);

    int64 date_time = 1335514467;

    Attribute expected = {0};
    kmip_init_attribute(&expected);

    expected.type = KMIP_ATTR_DEACTIVATION_DATE;
    expected.value = &date_time;

    Attribute observed = {0};
    int result = kmip_decode_attribute_v2(&ctx, &observed);
    int comparison = kmip_compare_attribute(&expected, &observed);
    if(!comparison)
    {
        kmip_print_attribute(stderr, 1, &expected);
        kmip_print_attribute(stderr, 1, &observed);
    }
    result = report_decoding_test_result(tracker, &ctx, comparison, result, __func__);

    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);

    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x8e0, %rsp            # imm = 0x8E0
movq %rdi, %rbx
incw (%rdi)
movaps 0x18323(%rip), %xmm0    # 0x26190
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
leaq 0x48(%rsp), %r14
movl $0x898, %edx            # imm = 0x898
movq %r14, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x10
popq %rdx
pushq $0x5
popq %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x128ed
leaq 0x28(%rsp), %r12
movq $0x4f9a5563, (%r12)     # imm = 0x4F9A5563
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, (%r15)
movq %r15, %rdi
callq 0x12e6d
movl $0xb, (%r15)
movq %r12, 0x8(%r15)
movq %rsp, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x1bfe7
movl %eax, %ebp
movq %r15, %rdi
movq %r12, %rsi
callq 0x14d69
movl %eax, %r14d
testl %eax, %eax
jne 0xdf1c
movq 0x30100(%rip), %r12     # 0x3dff8
movq (%r12), %rdi
pushq $0x1
popq %r15
leaq 0x10(%rsp), %rdx
movl %r15d, %esi
callq 0x23eff
movq (%r12), %rdi
movq %rsp, %rdx
movl %r15d, %esi
callq 0x23eff
leaq 0x19ef0(%rip), %r8      # 0x27e13
leaq 0x48(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
callq 0x134d
movl %eax, %ebx
movq %rsp, %rsi
movq %r15, %rdi
callq 0x1309a
movq %r15, %rdi
callq 0x12ade
movl %ebx, %eax
addq $0x8e0, %rsp            # imm = 0x8E0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_v2_process_start_date
int
test_decode_attribute_v2_process_start_date(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    /* This encoding matches the following values:
    *  Process Start Date - 1136113200 (Sun Jan 01 12:00:00 CET 2006)
    */
    uint8 encoding[16] = {
        0x42, 0x00, 0x67, 0x09, 0x00, 0x00, 0x00, 0x08,
        0x00, 0x00, 0x00, 0x00, 0x43, 0xB7, 0xB6, 0x30
    };

    KMIP ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_2_0);

    int64 date_time = 1136113200;

    Attribute expected = {0};
    kmip_init_attribute(&expected);

    expected.type = KMIP_ATTR_PROCESS_START_DATE;
    expected.value = &date_time;

    Attribute observed = {0};
    int result = kmip_decode_attribute_v2(&ctx, &observed);
    int comparison = kmip_compare_attribute(&expected, &observed);
    if(!comparison)
    {
        kmip_print_attribute(stderr, 1, &expected);
        kmip_print_attribute(stderr, 1, &observed);
    }
    result = report_decoding_test_result(tracker, &ctx, comparison, result, __func__);

    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);

    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x8e0, %rsp            # imm = 0x8E0
movq %rdi, %rbx
incw (%rdi)
movaps 0x18225(%rip), %xmm0    # 0x261a0
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
leaq 0x48(%rsp), %r14
movl $0x898, %edx            # imm = 0x898
movq %r14, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x10
popq %rdx
pushq $0x5
popq %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x128ed
leaq 0x28(%rsp), %r12
movq $0x43b7b630, (%r12)     # imm = 0x43B7B630
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, (%r15)
movq %r15, %rdi
callq 0x12e6d
movl $0xc, (%r15)
movq %r12, 0x8(%r15)
movq %rsp, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x1bfe7
movl %eax, %ebp
movq %r15, %rdi
movq %r12, %rsi
callq 0x14d69
movl %eax, %r14d
testl %eax, %eax
jne 0xe02a
movq 0x2fff2(%rip), %r12     # 0x3dff8
movq (%r12), %rdi
pushq $0x1
popq %r15
leaq 0x10(%rsp), %rdx
movl %r15d, %esi
callq 0x23eff
movq (%r12), %rdi
movq %rsp, %rdx
movl %r15d, %esi
callq 0x23eff
leaq 0x19e0d(%rip), %r8      # 0x27e3e
leaq 0x48(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
callq 0x134d
movl %eax, %ebx
movq %rsp, %rsi
movq %r15, %rdi
callq 0x1309a
movq %r15, %rdi
callq 0x12ade
movl %ebx, %eax
addq $0x8e0, %rsp            # imm = 0x8E0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_v2_protect_stop_date
int
test_decode_attribute_v2_protect_stop_date(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    /* This encoding matches the following values:
    *  Protect Stop Date - 1335514945 (Fri Apr 27 10:22:25 CEST 2012)
    */
    uint8 encoding[16] = {
        0x42, 0x00, 0x68, 0x09, 0x00, 0x00, 0x00, 0x08,
        0x00, 0x00, 0x00, 0x00, 0x4F, 0x9A, 0x57, 0x41
    };

    KMIP ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_2_0);

    int64 date_time = 1335514945;

    Attribute expected = {0};
    kmip_init_attribute(&expected);

    expected.type = KMIP_ATTR_PROTECT_STOP_DATE;
    expected.value = &date_time;

    Attribute observed = {0};
    int result = kmip_decode_attribute_v2(&ctx, &observed);
    int comparison = kmip_compare_attribute(&expected, &observed);
    if(!comparison)
    {
        kmip_print_attribute(stderr, 1, &expected);
        kmip_print_attribute(stderr, 1, &observed);
    }
    result = report_decoding_test_result(tracker, &ctx, comparison, result, __func__);

    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);

    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x8e0, %rsp            # imm = 0x8E0
movq %rdi, %rbx
incw (%rdi)
movaps 0x18127(%rip), %xmm0    # 0x261b0
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
leaq 0x48(%rsp), %r14
movl $0x898, %edx            # imm = 0x898
movq %r14, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x10
popq %rdx
pushq $0x5
popq %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x128ed
leaq 0x28(%rsp), %r12
movq $0x4f9a5741, (%r12)     # imm = 0x4F9A5741
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, (%r15)
movq %r15, %rdi
callq 0x12e6d
movl $0xd, (%r15)
movq %r12, 0x8(%r15)
movq %rsp, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x1bfe7
movl %eax, %ebp
movq %r15, %rdi
movq %r12, %rsi
callq 0x14d69
movl %eax, %r14d
testl %eax, %eax
jne 0xe138
movq 0x2fee4(%rip), %r12     # 0x3dff8
movq (%r12), %rdi
pushq $0x1
popq %r15
leaq 0x10(%rsp), %rdx
movl %r15d, %esi
callq 0x23eff
movq (%r12), %rdi
movq %rsp, %rdx
movl %r15d, %esi
callq 0x23eff
leaq 0x19d2b(%rip), %r8      # 0x27e6a
leaq 0x48(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
callq 0x134d
movl %eax, %ebx
movq %rsp, %rsi
movq %r15, %rdi
callq 0x1309a
movq %r15, %rdi
callq 0x12ade
movl %ebx, %eax
addq $0x8e0, %rsp            # imm = 0x8E0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_v2_unsupported_attribute
int
test_decode_attribute_v2_unsupported_attribute(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[3] = {0x42, 0x00, 0x00};

    KMIP ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_2_0);

    Attribute observed = {0};
    int result = kmip_decode_attribute_v2(&ctx, &observed);
    if(result != KMIP_ERROR_ATTR_UNSUPPORTED)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);

    TEST_PASSED(tracker, __func__);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x8b8, %rsp            # imm = 0x8B8
movq %rdi, %rbx
incw (%rdi)
leaq 0xc(%rsp), %r14
movb $0x0, 0x2(%r14)
movw $0x42, (%r14)
leaq 0x20(%rsp), %r15
xorl %ebp, %ebp
movl $0x898, %edx            # imm = 0x898
movq %r15, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x3
popq %rdx
pushq $0x5
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x128ed
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
movq %r15, %rdi
callq 0x1bfe7
cmpl $-0x3, %eax
jne 0xe37e
leaq 0x20(%rsp), %r14
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x1309a
movq %r14, %rdi
callq 0x12ade
leaq 0x17eab(%rip), %rdi     # 0x26217
leaq 0x19b54(%rip), %rsi     # 0x27ec7
xorl %eax, %eax
callq 0x1090
pushq $0x4
jmp 0xe39d
leaq 0x17e9d(%rip), %rdi     # 0x26222
leaq 0x19b3b(%rip), %rsi     # 0x27ec7
movl $0x26e8, %edx           # imm = 0x26E8
xorl %eax, %eax
callq 0x1090
pushq $0x1
popq %rbp
pushq $0x2
popq %rax
incw (%rbx,%rax)
movl %ebp, %eax
addq $0x8b8, %rsp            # imm = 0x8B8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_encode_nonce
int
test_encode_nonce(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 expected[40] = {
        0x42, 0x00, 0xC8, 0x01, 0x00, 0x00, 0x00, 0x20,
        0x42, 0x00, 0xC9, 0x08, 0x00, 0x00, 0x00, 0x04,
        0x01, 0x02, 0x03, 0x04, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0xCA, 0x08, 0x00, 0x00, 0x00, 0x06,
        0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00
    };
    
    uint8 observed[40] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_2);
    
    uint8 id[4] = {0x01, 0x02, 0x03, 0x04};
    struct byte_string ni = {0};
    ni.value = id;
    ni.size = ARRAY_LENGTH(id);
    
    uint8 value[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
    struct byte_string nv = {0};
    nv.value = value;
    nv.size = ARRAY_LENGTH(value);
    
    struct nonce n = {0};
    n.nonce_id = &ni;
    n.nonce_value = &nv;
    
    int result = kmip_encode_nonce(&ctx, &n);
    result = report_encoding_test_result(
        tracker,
        &ctx,
        expected,
        observed,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x908, %rsp            # imm = 0x908
movq %rdi, %r14
incw (%rdi)
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %r15
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
andq $0x0, 0x20(%r15)
leaq 0x70(%rsp), %rbx
movl $0x898, %edx            # imm = 0x898
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x28
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x128ed
leaq 0x4(%rsp), %rax
movl $0x4030201, (%rax)      # imm = 0x4030201
leaq 0x8(%rsp), %rcx
orw $-0x1, 0x4(%rcx)
leaq 0x30(%rsp), %rdx
orl $-0x1, (%rcx)
movq %rax, (%rdx)
movq $0x4, 0x8(%rdx)
leaq 0x20(%rsp), %rax
movq %rcx, (%rax)
movq $0x6, 0x8(%rax)
leaq 0x10(%rsp), %rsi
movq %rdx, (%rsi)
movq %rax, 0x8(%rsi)
movq %rbx, %rdi
callq 0x18d66
leaq 0x1bf72(%rip), %rdx     # 0x2acf0
leaq 0x192d0(%rip), %r9      # 0x28055
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rcx
movl %eax, %r8d
callq 0x123c
movl %eax, %ebp
movq %rbx, %rdi
callq 0x12ade
movl %ebp, %eax
addq $0x908, %rsp            # imm = 0x908
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_nonce
int
test_decode_nonce(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[40] = {
        0x42, 0x00, 0xC8, 0x01, 0x00, 0x00, 0x00, 0x20,
        0x42, 0x00, 0xC9, 0x08, 0x00, 0x00, 0x00, 0x04,
        0x01, 0x02, 0x03, 0x04, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0xCA, 0x08, 0x00, 0x00, 0x00, 0x06,
        0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00
    };
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_2);
    
    uint8 id[4] = {0x01, 0x02, 0x03, 0x04};
    struct byte_string ni = {0};
    ni.value = id;
    ni.size = ARRAY_LENGTH(id);
    
    uint8 value[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
    struct byte_string nv = {0};
    nv.value = value;
    nv.size = ARRAY_LENGTH(value);
    
    struct nonce expected = {0};
    expected.nonce_id = &ni;
    expected.nonce_value = &nv;
    
    struct nonce observed = {0};
    
    int result = kmip_decode_nonce(&ctx, &observed);
    result = report_decoding_test_result(
        tracker,
        &ctx,
        kmip_compare_nonce(&expected, &observed),
        result,
        __func__);
    kmip_free_nonce(&ctx, &observed);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x910, %rsp            # imm = 0x910
movq %rdi, %r14
incw (%rdi)
movaps 0x1bf34(%rip), %xmm0    # 0x2ad00
leaq 0x50(%rsp), %r15
movaps %xmm0, 0x10(%r15)
movaps 0x1bf13(%rip), %xmm0    # 0x2acf0
movaps %xmm0, (%r15)
movabsq $0xffffffffffff, %rax   # imm = 0xFFFFFFFFFFFF
movq %rax, 0x20(%r15)
leaq 0x78(%rsp), %rbx
movl $0x898, %edx            # imm = 0x898
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x28
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x128ed
leaq 0x4(%rsp), %rax
movl $0x4030201, (%rax)      # imm = 0x4030201
leaq 0x40(%rsp), %rcx
movq %rax, (%rcx)
movq $0x4, 0x8(%rcx)
leaq 0x8(%rsp), %rax
orw $-0x1, 0x4(%rax)
orl $-0x1, (%rax)
leaq 0x30(%rsp), %rdx
movq %rax, (%rdx)
movq $0x6, 0x8(%rdx)
leaq 0x20(%rsp), %r15
movq %rcx, (%r15)
movq %rdx, 0x8(%r15)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r12
movaps %xmm0, (%r12)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1f7f8
movl %eax, %ebp
movq %r15, %rdi
movq %r12, %rsi
callq 0x15c4f
leaq 0x191e3(%rip), %r8      # 0x28067
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movl %ebp, %ecx
callq 0x134d
movl %eax, %ebp
movq %rbx, %rdi
movq %r12, %rsi
callq 0x13ca8
movq %rbx, %rdi
callq 0x12ade
movl %ebp, %eax
addq $0x910, %rsp            # imm = 0x910
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_encode_get_request_payload_with_wrap_type
int
test_encode_get_request_payload_with_wrap_type(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 expected[104] = {
        0x42, 0x00, 0x79, 0x01, 0x00, 0x00, 0x00, 0x60, 
        0x42, 0x00, 0x94, 0x07, 0x00, 0x00, 0x00, 0x24, 
        0x37, 0x63, 0x66, 0x35, 0x32, 0x30, 0x39, 0x62, 
        0x2D, 0x36, 0x66, 0x66, 0x36, 0x2D, 0x34, 0x34, 
        0x32, 0x36, 0x2D, 0x38, 0x39, 0x39, 0x65, 0x2D, 
        0x32, 0x32, 0x62, 0x30, 0x36, 0x37, 0x38, 0x35, 
        0x39, 0x33, 0x37, 0x32, 0x00, 0x00, 0x00, 0x00, 
        0x42, 0x00, 0x42, 0x05, 0x00, 0x00, 0x00, 0x04, 
        0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0xF8, 0x05, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x41, 0x05, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00
    };
    
    uint8 observed[104] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_4);
    
    struct text_string uuid = {0};
    uuid.value = "7cf5209b-6ff6-4426-899e-22b067859372";
    uuid.size = 36;
    
    struct get_request_payload grp = {0};
    grp.unique_identifier = &uuid;
    grp.key_format_type = KMIP_KEYFORMAT_PKCS1;
    grp.key_compression_type = KMIP_KEYCOMP_EC_PUB_UNCOMPRESSED;
    
    grp.key_wrap_type = KMIP_WRAPTYPE_NOT_WRAPPED;
    
    int result = kmip_encode_get_request_payload(&ctx, &grp);
    result = report_encoding_test_result(
        tracker,
        &ctx,
        expected,
        observed,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x930, %rsp            # imm = 0x930
movq %rdi, %rbx
incw (%rdi)
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %r14
movaps %xmm0, 0x50(%r14)
movaps %xmm0, 0x40(%r14)
movaps %xmm0, 0x30(%r14)
movaps %xmm0, 0x20(%r14)
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
andq $0x0, 0x60(%r14)
leaq 0x98(%rsp), %r15
movl $0x898, %edx            # imm = 0x898
movq %r15, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x68
popq %rdx
pushq $0x4
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x128ed
leaq 0x17937(%rip), %rax     # 0x273e8
movq %rsp, %rcx
movq %rax, (%rcx)
movq $0x24, 0x8(%rcx)
leaq 0x10(%rsp), %rsi
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsi)
movq %rcx, (%rsi)
movabsq $0x100000003, %rax      # imm = 0x100000003
movq %rax, 0x8(%rsi)
movl $0x1, 0x18(%rsi)
movq %r15, %rdi
callq 0x18934
leaq 0x1b66e(%rip), %rdx     # 0x2b160
leaq 0x18756(%rip), %r9      # 0x2824f
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rcx
movl %eax, %r8d
callq 0x123c
movl %eax, %ebx
movq %r15, %rdi
callq 0x12ade
movl %ebx, %eax
addq $0x930, %rsp            # imm = 0x930
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_compare_query_functions
int
test_compare_query_functions(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    KMIP ctx = {0};
    kmip_init(&ctx, NULL, 0, KMIP_1_0);

    LinkedList list_1 = {0};
    LinkedListItem item_1 = {0};
    int32 funct_1 = KMIP_QUERY_OPERATIONS;
    item_1.data = &funct_1;

    LinkedListItem item_2 = {0};
    int32 funct_2 = KMIP_QUERY_SERVER_INFORMATION;
    item_2.data = &funct_2;

    kmip_linked_list_enqueue(&list_1, &item_1);
    kmip_linked_list_enqueue(&list_1, &item_2);

    Functions expected = {0};
    expected.function_list = &list_1;

    LinkedList list_2 = {0};
    LinkedListItem item_3 = {0};
    int32 funct_3 = KMIP_QUERY_OPERATIONS;
    item_3.data = &funct_3;

    LinkedListItem item_4 = {0};
    int32 funct_4 = KMIP_QUERY_SERVER_INFORMATION;
    item_4.data = &funct_4;

    kmip_linked_list_enqueue(&list_2, &item_3);
    kmip_linked_list_enqueue(&list_2, &item_4);

    Functions observed = {0};
    observed.function_list = &list_2;

    int comparison = kmip_compare_query_functions(&expected, &observed);
    int result = report_decoding_test_result(tracker, &ctx, comparison, KMIP_OK, __func__);

    kmip_destroy(&ctx);

    return (result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x978, %rsp            # imm = 0x978
movq %rdi, %r14
incw (%rdi)
leaq 0xe0(%rsp), %rbx
movl $0x898, %edx            # imm = 0x898
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10c0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x128ed
xorps %xmm0, %xmm0
leaq 0xc0(%rsp), %r15
movaps %xmm0, (%r15)
andq $0x0, 0x10(%r15)
leaq 0xa0(%rsp), %rsi
movaps %xmm0, (%rsi)
pushq $0x1
popq %rbp
leaq 0xc(%rsp), %rax
movl %ebp, (%rax)
movq %rax, 0x10(%rsi)
leaq 0x80(%rsp), %r12
movaps %xmm0, (%r12)
pushq $0x3
popq %rbx
leaq 0x8(%rsp), %rax
movl %ebx, (%rax)
movq %rax, 0x10(%r12)
movq %r15, %rdi
callq 0x12233
movq %r15, %rdi
movq %r12, %rsi
callq 0x12233
leaq 0x18(%rsp), %r12
leaq 0x60(%rsp), %r13
andq $0x0, 0x10(%r13)
movq %r15, (%r12)
xorps %xmm0, %xmm0
movaps %xmm0, (%r13)
leaq 0x40(%rsp), %rsi
movaps %xmm0, (%rsi)
leaq 0x4(%rsp), %rax
movl %ebp, (%rax)
movq %rax, 0x10(%rsi)
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movq %rsp, %rax
movl %ebx, (%rax)
movq %rax, 0x10(%r15)
movq %r13, %rdi
callq 0x12233
movq %r13, %rdi
movq %r15, %rsi
callq 0x12233
leaq 0x10(%rsp), %rsi
movq %r13, (%rsi)
movq %r12, %rdi
callq 0x164d0
leaq 0x17df0(%rip), %r8      # 0x28375
movq %r14, %rdi
leaq 0xe0(%rsp), %rbx
movq %rbx, %rsi
movl %eax, %edx
xorl %ecx, %ecx
callq 0x134d
movl %eax, %ebp
movq %rbx, %rdi
callq 0x12ade
movl %ebp, %eax
addq $0x978, %rsp            # imm = 0x978
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_encode_query_functions
int
test_encode_query_functions(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    /* This encoding matches the following set of values:
    *  Query Functions
          Query Operations
          Query Objects
    */
    uint8 expected[32] = {
        0x42, 0x00, 0x74, 0x05, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x74, 0x05, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00
    };

    uint8 observed[32] = {0};
    KMIP ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_0);

    LinkedList list = {0};
    LinkedListItem item_1 = {0};
    int32 funct_1 = KMIP_QUERY_OPERATIONS;
    item_1.data = &funct_1;

    LinkedListItem item_2 = {0};
    int32 funct_2 = KMIP_QUERY_OBJECTS;
    item_2.data = &funct_2;

    kmip_linked_list_enqueue(&list, &item_1);
    kmip_linked_list_enqueue(&list, &item_2);

    Functions qf = {0};
    qf.function_list = &list;

    int result = kmip_encode_query_functions(&ctx, &qf);
    result = report_encoding_test_result(tracker, &ctx, expected, observed, result, __func__);

    kmip_destroy(&ctx);

    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x928, %rsp            # imm = 0x928
movq %rdi, %r14
incw (%rdi)
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %r15
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
leaq 0x90(%rsp), %rbx
movl $0x898, %edx            # imm = 0x898
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x20
popq %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x128ed
leaq 0x50(%rsp), %r12
andq $0x0, 0x10(%r12)
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
leaq 0x30(%rsp), %rsi
movaps %xmm0, (%rsi)
leaq 0x4(%rsp), %rax
movl $0x1, (%rax)
movq %rax, 0x10(%rsi)
leaq 0x10(%rsp), %r13
movaps %xmm0, (%r13)
movq %rsp, %rax
movl $0x2, (%rax)
movq %rax, 0x10(%r13)
movq %r12, %rdi
callq 0x12233
movq %r12, %rdi
movq %r13, %rsi
callq 0x12233
leaq 0x8(%rsp), %rsi
movq %r12, (%rsi)
movq %rbx, %rdi
callq 0x19e94
leaq 0x1b57c(%rip), %rdx     # 0x2bbf0
leaq 0x17d17(%rip), %r9      # 0x28392
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rcx
movl %eax, %r8d
callq 0x123c
movl %eax, %ebp
movq %rbx, %rdi
callq 0x12ade
movl %ebp, %eax
addq $0x928, %rsp            # imm = 0x928
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: print_help
void
print_help(const char *app)
{
    printf("Usage: %s [flag] ...\n\n", app);
    printf("Flags:\n");
    printf("-h : print this help info\n");
    printf("-i : run the test suite forever\n");
}

// Assembly:
pushq %rax
movq %rdi, %rsi
leaq 0x164e9(%rip), %rdi     # 0x2859b
xorl %eax, %eax
callq 0x1090
leaq 0x166eb(%rip), %rdi     # 0x287ab
callq 0x1070
leaq 0x166e6(%rip), %rdi     # 0x287b2
callq 0x1070
leaq 0x166f4(%rip), %rdi     # 0x287cc
popq %rax
jmp 0x1070
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: parse_arguments
int
parse_arguments(int argc,
                char **argv,
                int *print_usage,
                int *run_forever)
{
    for(int i = 1; i < argc; i++)
    {
        if(strncmp(argv[i], "-h", 2) == 0)
        {
            *print_usage = 1;
        }
        else if(strncmp(argv[i], "-i", 2) == 0)
        {
            *run_forever = 1;
        }
        else
        {
            printf("Invalid option: '%s'\n", argv[i]);
            print_help(argv[0]);
            return(-1);
        }
    }
    
    return(0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movslq %edi, %r14
pushq $0x1
popq %r15
cmpq %r14, %r15
jge 0x1212e
movq (%rbx,%r15,8), %rsi
cmpb $0x2d, (%rsi)
jne 0x12118
cmpb $0x68, 0x1(%rsi)
movq %rdx, %rax
je 0x1210d
cmpb $0x69, 0x1(%rsi)
movq %rcx, %rax
jne 0x12118
movl $0x1, (%rax)
incq %r15
jmp 0x120ed
leaq 0x16493(%rip), %rdi     # 0x285b2
xorl %eax, %eax
callq 0x1090
movq (%rbx), %rdi
callq 0x120a7
xorl %eax, %eax
cmpq %r14, %r15
setl %al
negl %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/yugecin[P]evilwm/client.c
// Function: client_raise
void client_raise(Client *c) {
	XRaiseWindow(dpy, c->parent);
	clients_stacking_order = list_to_tail(clients_stacking_order, c);
#ifdef ABOVE
	do_above();
#endif
	ewmh_set_net_client_list_stacking(c->screen);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x9fb7(%rip), %rax      # 0xd8e0
movq (%rax), %rdi
movq 0x8(%rbx), %rsi
callq 0x36d0
leaq 0x9f1c(%rip), %r14      # 0xd858
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x5950
movq %rax, (%r14)
callq 0x395f
movq 0x10(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x55b4
// File: /workspace/github_c_makefile_star2_O2/yugecin[P]evilwm/client.c
// Function: do_above
void do_above(void) {
	if (doabove) {
		// this may get heavy
		struct list *iter;
		for (iter = clients_stacking_order; iter; iter = iter->next) {
			Client *cur = iter->data;
			if (cur->isabove) {
				XRaiseWindow(dpy, cur->parent);
			}
		}
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x9a82(%rip), %rax      # 0xd3ec
cmpl $0x0, (%rax)
je 0x39a0
leaq 0x9ee2(%rip), %rbx      # 0xd858
leaq 0x9f63(%rip), %r14      # 0xd8e0
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x39a0
movq 0x8(%rbx), %rax
cmpl $0x0, 0x84(%rax)
je 0x397d
movq (%r14), %rdi
movq 0x8(%rax), %rsi
callq 0x36d0
jmp 0x397d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/yugecin[P]evilwm/ewmh.c
// Function: ewmh_set_net_wm_state
void ewmh_set_net_wm_state(Client *c) {
	Atom state[3];
	int i = 0;
	if (c->oldh)
		state[i++] = xa_net_wm_state_maximized_vert;
	if (c->oldw)
		state[i++] = xa_net_wm_state_maximized_horz;
#ifndef NOMAXIMISE
	if (c->oldh && c->oldw)
		state[i++] = xa_net_wm_state_fullscreen;
#endif
	XChangeProperty(dpy, c->window, xa_net_wm_state,
			XA_ATOM, 32, PropModeReplace,
			(unsigned char *)&state, i);
}

// Assembly:
subq $0x18, %rsp
cmpl $0x0, 0x48(%rdi)
je 0x57fb
movq 0x7fc7(%rip), %rax      # 0xd7b8
movq %rax, (%rsp)
pushq $0x1
popq %r10
jmp 0x57fe
xorl %r10d, %r10d
cmpl $0x0, 0x44(%rdi)
je 0x5815
movq 0x7fb5(%rip), %rax      # 0xd7c0
movl %r10d, %ecx
incl %r10d
movq %rax, (%rsp,%rcx,8)
leaq 0x80c4(%rip), %rax      # 0xd8e0
movq (%rax), %rax
movq (%rdi), %rsi
movq 0x7f87(%rip), %rdx      # 0xd7b0
movq %rsp, %r11
pushq $0x4
popq %rcx
pushq $0x20
popq %r8
movq %rax, %rdi
xorl %r9d, %r9d
pushq %r10
pushq %r11
callq 0x3460
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/yugecin[P]evilwm/main.c
// Function: set_gaps
static void set_gaps(const char *arg) {
	unsigned int gapidx;

	opt_numgaps = 0;
	gapidx = 0;
	while (*arg) {
		opt_gaps[gapidx] = atoi(arg);
		++gapidx;
		if (gapidx >= sizeof(opt_gaps)/sizeof(opt_gaps[0])) {
			printf("toobig\n");
			return;
		}
		if ((gapidx % 4) == 0) {
			opt_numgaps++;
		}
		while (*arg) {
			if (*(arg++) == ',') {
				break;
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
andl $0x0, 0x768e(%rip)      # 0xd870
movq %rdi, %rbx
xorl %r14d, %r14d
leaq 0x7691(%rip), %r15      # 0xd880
xorl %ebp, %ebp
cmpb $0x0, (%rbx)
je 0x6228
movq %rbx, %rdi
callq 0x3620
movl %eax, (%r15,%r14,4)
cmpq $0xf, %r14
je 0x6233
incq %r14
testb $0x3, %r14b
jne 0x6219
incl %ebp
movl %ebp, 0x7657(%rip)      # 0xd870
movb (%rbx), %al
testb %al, %al
je 0x61f1
incq %rbx
cmpb $0x2c, %al
jne 0x6219
jmp 0x61f1
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3591(%rip), %rdi      # 0x97cb
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3130
// File: /workspace/github_c_makefile_star2_O2/gadget114514[P]fatfs-example/rf.c
// Function: main
void main()
{
  FIL f;
  int w;
  FATFS fs;
  char buf[1024];
  FCHK(f_mount(&fs, "", 1)); 
  if (f_open(&f, "/abc/a.txt", FA_OPEN_EXISTING|FA_READ) == FR_OK) {
    FCHK(f_read(&f, buf, 9, &w));
    printf("open & write %d %s\n", w, buf);
    FCHK(f_close(&f));
  } else {
    printf("open error\n");
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x8b8, %rsp            # imm = 0x8B8
leaq 0x42d9(%rip), %rsi      # 0x5490
leaq -0x4d8(%rbp), %rdi
pushq $0x1
popq %rbx
movl %ebx, %edx
callq 0x1434
movl %eax, %r14d
movl %eax, %edi
callq 0x12b0
leaq 0x3e2b(%rip), %rdi      # 0x5004
leaq 0x3e37(%rip), %rsi      # 0x5017
movl %r14d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1050
leaq 0x3e37(%rip), %rsi      # 0x502b
leaq -0x280(%rbp), %rdi
movl %ebx, %edx
callq 0x17e3
testl %eax, %eax
je 0x1217
leaq 0x41e7(%rip), %rdi      # 0x53f4
callq 0x1030
jmp 0x129e
leaq -0x280(%rbp), %rbx
leaq -0x8e0(%rbp), %r14
pushq $0x9
popq %rdx
leaq -0x2c(%rbp), %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rcx
callq 0x20a4
movl %eax, %r13d
movl %eax, %edi
callq 0x12b0
leaq 0x3db9(%rip), %r15      # 0x5004
leaq 0x3de4(%rip), %rsi      # 0x5036
movq %r15, %rdi
movl %r13d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1050
movl (%r12), %esi
leaq 0x3de0(%rip), %rdi      # 0x504d
movq %r14, %rdx
xorl %eax, %eax
callq 0x1050
movq %rbx, %rdi
callq 0x291b
movl %eax, %ebx
movl %eax, %edi
callq 0x12b0
leaq 0x3dd2(%rip), %rsi      # 0x5061
movq %r15, %rdi
movl %ebx, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1050
addq $0x8b8, %rsp            # imm = 0x8B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ShonFrazier[P]lib6502/run6502.c
// Function: fail
void fail(const char *fmt, ...)
{
  va_list ap;
  fflush(stdout);
  va_start(ap, fmt);
  vfprintf(stderr, fmt, ap);
  va_end(ap);
  fprintf(stderr, "\n");
  exit(1);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
leaq 0x20(%rsp), %r14
movq %rsi, 0x8(%r14)
movq %rdx, 0x10(%r14)
movq %rcx, 0x18(%r14)
movq %r8, 0x20(%r14)
movq %r9, 0x28(%r14)
testb %al, %al
je 0x333d
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq 0xcc8c(%rip), %rax      # 0xffd0
movq (%rax), %rdi
callq 0x3150
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rsp, %rdx
movq %rax, (%rdx)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%rdx)
movq %r14, 0x10(%rdx)
movq 0xcc85(%rip), %r14      # 0xfff8
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x3190
movq (%r14), %rsi
pushq $0xa
popq %rdi
callq 0x30d0
pushq $0x1
popq %rdi
callq 0x31b0