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

    uint8 expected[24] = {
        0x42, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x0B,
        0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x57, 0x6F,
        0x72, 0x6C, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00
    };
    
    uint8 observed[24] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_0);

    struct text_string example = {0};
    example.value = "Hello World";
    example.size = 11;
    
    int result = kmip_encode_text_string(&ctx, KMIP_TAG_DEFAULT, &example);
    result = report_encoding_test_result(
        tracker,
        &ctx,
        expected,
        observed,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x8f0, %rsp            # imm = 0x8F0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
movq 0x3a94c(%rip), %rax     # 0x41930
movq %rax, -0x20(%rbp)
movq 0x3a949(%rip), %rax     # 0x41938
movq %rax, -0x18(%rbp)
movq 0x3a946(%rip), %rax     # 0x41940
movq %rax, -0x10(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x1090
leaq -0x8d8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x40(%rbp), %rsi
leaq -0x8d8(%rbp), %rdi
movl $0x18, %edx
xorl %ecx, %ecx
callq 0x1c6e0
leaq -0x8e8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq 0x385fe(%rip), %rax     # 0x3f650
movq %rax, -0x8e8(%rbp)
movq $0xb, -0x8e0(%rbp)
leaq -0x8d8(%rbp), %rdi
movl $0x420000, %esi         # imm = 0x420000
leaq -0x8e8(%rbp), %rdx
callq 0x25070
movl %eax, -0x8ec(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x20(%rbp), %rdx
leaq -0x40(%rbp), %rcx
movl -0x8ec(%rbp), %r8d
leaq -0x8d8(%rbp), %rsi
leaq 0x385b9(%rip), %r9      # 0x3f65c
callq 0x11f0
movl %eax, -0x8ec(%rbp)
leaq -0x8d8(%rbp), %rdi
callq 0x1cab0
movl -0x8ec(%rbp), %eax
addq $0x8f0, %rsp            # imm = 0x8F0
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_text_string
int
test_decode_text_string(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[24] = {
        0x42, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x0B,
        0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x57, 0x6F,
        0x72, 0x6C, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00
    };
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);

    struct text_string expected = {0};
    expected.value = "Hello World";
    expected.size = 11;
    struct text_string observed = {0};
    
    int result = kmip_decode_text_string(&ctx, KMIP_TAG_DEFAULT, &observed);
    result = report_decoding_test_result(
        tracker,
        &ctx,
        kmip_compare_text_string(&expected, &observed),
        result,
        __func__);
    kmip_free_text_string(&ctx, &observed);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x8f0, %rsp            # imm = 0x8F0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
movq 0x3a85c(%rip), %rax     # 0x41950
movq %rax, -0x20(%rbp)
movq 0x3a859(%rip), %rax     # 0x41958
movq %rax, -0x18(%rbp)
movq 0x3a856(%rip), %rax     # 0x41960
movq %rax, -0x10(%rbp)
leaq -0x8b8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x20(%rbp), %rsi
leaq -0x8b8(%rbp), %rdi
movl $0x18, %edx
xorl %ecx, %ecx
callq 0x1c6e0
leaq -0x8c8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq 0x384fe(%rip), %rax     # 0x3f650
movq %rax, -0x8c8(%rbp)
movq $0xb, -0x8c0(%rbp)
leaq -0x8d8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8b8(%rbp), %rdi
movl $0x420000, %esi         # imm = 0x420000
leaq -0x8d8(%rbp), %rdx
callq 0x2b530
movl %eax, -0x8dc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x8e8(%rbp)
leaq -0x8c8(%rbp), %rdi
leaq -0x8d8(%rbp), %rsi
callq 0x20ba0
movq -0x8e8(%rbp), %rdi
movl %eax, %edx
movl -0x8dc(%rbp), %ecx
leaq -0x8b8(%rbp), %rsi
leaq 0x384a4(%rip), %r8      # 0x3f674
callq 0x13a0
movl %eax, -0x8dc(%rbp)
leaq -0x8b8(%rbp), %rdi
leaq -0x8d8(%rbp), %rsi
callq 0x1d690
leaq -0x8b8(%rbp), %rdi
callq 0x1cab0
movl -0x8dc(%rbp), %eax
addq $0x8f0, %rsp            # imm = 0x8F0
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_encode_byte_string
int
test_encode_byte_string(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 expected[16] = {
        0x42, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x03,
        0x01, 0x02, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00
    };
    
    uint8 observed[16] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_0);
    uint8 str[3] = {0x01, 0x02, 0x03};
    
    struct byte_string example = {0};
    example.value = str;
    example.size = 3;
    
    int result = kmip_encode_byte_string(&ctx, KMIP_TAG_DEFAULT, &example);
    result = report_encoding_test_result(
        tracker,
        &ctx,
        expected,
        observed,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x8f0, %rsp            # imm = 0x8F0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
movq 0x3ff2c(%rip), %rax     # 0x47160
movq %rax, -0x20(%rbp)
movq 0x3ff29(%rip), %rax     # 0x47168
movq %rax, -0x18(%rbp)
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8c8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x30(%rbp), %rsi
leaq -0x8c8(%rbp), %rdi
movl $0x10, %edx
xorl %ecx, %ecx
callq 0x1c6e0
movw 0x3a6e4(%rip), %ax      # 0x41968
movw %ax, -0x8cb(%rbp)
movb 0x3a6d9(%rip), %al      # 0x4196a
movb %al, -0x8c9(%rbp)
leaq -0x8e0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8cb(%rbp), %rax
movq %rax, -0x8e0(%rbp)
movq $0x3, -0x8d8(%rbp)
leaq -0x8c8(%rbp), %rdi
movl $0x420000, %esi         # imm = 0x420000
leaq -0x8e0(%rbp), %rdx
callq 0x25190
movl %eax, -0x8e4(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x20(%rbp), %rdx
leaq -0x30(%rbp), %rcx
movl -0x8e4(%rbp), %r8d
leaq -0x8c8(%rbp), %rsi
leaq 0x3838a(%rip), %r9      # 0x3f68c
callq 0x11f0
movl %eax, -0x8e4(%rbp)
leaq -0x8c8(%rbp), %rdi
callq 0x1cab0
movl -0x8e4(%rbp), %eax
addq $0x8f0, %rsp            # imm = 0x8F0
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_byte_string
int
test_decode_byte_string(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[16] = {
        0x42, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x03,
        0x01, 0x02, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00
    };
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);

    uint8 str[3] = {0x01, 0x02, 0x03};
    
    struct byte_string expected = {0};
    expected.value = str;
    expected.size = 3;
    struct byte_string observed = {0};
    
    int result = kmip_decode_byte_string(&ctx, KMIP_TAG_DEFAULT, &observed);
    result = report_decoding_test_result(
        tracker,
        &ctx,
        kmip_compare_byte_string(&expected, &observed),
        result,
        __func__);
    kmip_free_byte_string(&ctx, &observed);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x8f0, %rsp            # imm = 0x8F0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
movq 0x3fe0c(%rip), %rax     # 0x47160
movq %rax, -0x20(%rbp)
movq 0x3fe09(%rip), %rax     # 0x47168
movq %rax, -0x18(%rbp)
leaq -0x8b8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x20(%rbp), %rsi
leaq -0x8b8(%rbp), %rdi
movl $0x10, %edx
xorl %ecx, %ecx
callq 0x1c6e0
movw 0x3a5d7(%rip), %ax      # 0x4196b
movw %ax, -0x8bb(%rbp)
movb 0x3a5cc(%rip), %al      # 0x4196d
movb %al, -0x8b9(%rbp)
leaq -0x8d0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8bb(%rbp), %rax
movq %rax, -0x8d0(%rbp)
movq $0x3, -0x8c8(%rbp)
leaq -0x8e0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8b8(%rbp), %rdi
movl $0x420000, %esi         # imm = 0x420000
leaq -0x8e0(%rbp), %rdx
callq 0x2b760
movl %eax, -0x8e4(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x8f0(%rbp)
leaq -0x8d0(%rbp), %rdi
leaq -0x8e0(%rbp), %rsi
callq 0x20c80
movq -0x8f0(%rbp), %rdi
movl %eax, %edx
movl -0x8e4(%rbp), %ecx
leaq -0x8b8(%rbp), %rsi
leaq 0x38265(%rip), %r8      # 0x3f6a4
callq 0x13a0
movl %eax, -0x8e4(%rbp)
leaq -0x8b8(%rbp), %rdi
leaq -0x8e0(%rbp), %rsi
callq 0x1d720
leaq -0x8b8(%rbp), %rdi
callq 0x1cab0
movl -0x8e4(%rbp), %eax
addq $0x8f0, %rsp            # imm = 0x8F0
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_encode_date_time
int
test_encode_date_time(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 expected[16] = {
        0x42, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x08,
        0x00, 0x00, 0x00, 0x00, 0x47, 0xDA, 0x67, 0xF8
    };
    
    uint8 observed[16] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_0);
    
    int result = kmip_encode_date_time(&ctx, KMIP_TAG_DEFAULT, 1205495800);
    result = report_encoding_test_result(
        tracker,
        &ctx,
        expected,
        observed,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x8d0, %rsp            # imm = 0x8D0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
movq 0x3fccc(%rip), %rax     # 0x47170
movq %rax, -0x20(%rbp)
movq 0x3fcc9(%rip), %rax     # 0x47178
movq %rax, -0x18(%rbp)
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8c8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x30(%rbp), %rsi
leaq -0x8c8(%rbp), %rdi
movl $0x10, %edx
xorl %ecx, %ecx
callq 0x1c6e0
leaq -0x8c8(%rbp), %rdi
movl $0x420000, %esi         # imm = 0x420000
movl $0x47da67f8, %edx       # imm = 0x47DA67F8
callq 0x252b0
movl %eax, -0x8cc(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x20(%rbp), %rdx
leaq -0x30(%rbp), %rcx
movl -0x8cc(%rbp), %r8d
leaq -0x8c8(%rbp), %rsi
leaq 0x38192(%rip), %r9      # 0x3f6bc
callq 0x11f0
movl %eax, -0x8cc(%rbp)
leaq -0x8c8(%rbp), %rdi
callq 0x1cab0
movl -0x8cc(%rbp), %eax
addq $0x8d0, %rsp            # imm = 0x8D0
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_date_time
int
test_decode_date_time(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[16] = {
        0x42, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x08,
        0x00, 0x00, 0x00, 0x00, 0x47, 0xDA, 0x67, 0xF8
    };
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);
    
    int64 expected = 1205495800;
    int64 observed = 0;
    
    int result = kmip_decode_date_time(&ctx, KMIP_TAG_DEFAULT, &observed);
    result = report_decoding_test_result(
        tracker,
        &ctx,
        observed == expected,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x8d0, %rsp            # imm = 0x8D0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
movq 0x3fbfc(%rip), %rax     # 0x47170
movq %rax, -0x20(%rbp)
movq 0x3fbf9(%rip), %rax     # 0x47178
movq %rax, -0x18(%rbp)
leaq -0x8b8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x20(%rbp), %rsi
leaq -0x8b8(%rbp), %rdi
movl $0x10, %edx
xorl %ecx, %ecx
callq 0x1c6e0
movq $0x47da67f8, -0x8c0(%rbp) # imm = 0x47DA67F8
movq $0x0, -0x8c8(%rbp)
leaq -0x8b8(%rbp), %rdi
movl $0x420000, %esi         # imm = 0x420000
leaq -0x8c8(%rbp), %rdx
callq 0x2b990
movl %eax, -0x8cc(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8c8(%rbp), %rax
cmpq -0x8c0(%rbp), %rax
sete %al
andb $0x1, %al
movzbl %al, %edx
movl -0x8cc(%rbp), %ecx
leaq -0x8b8(%rbp), %rsi
leaq 0x380c3(%rip), %r8      # 0x3f6d2
callq 0x13a0
movl %eax, -0x8cc(%rbp)
leaq -0x8b8(%rbp), %rdi
callq 0x1cab0
movl -0x8cc(%rbp), %eax
addq $0x8d0, %rsp            # imm = 0x8D0
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_encode_interval
int
test_encode_interval(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 expected[16] = {
        0x42, 0x00, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x0D, 0x2F, 0x00, 0x00, 0x00, 0x00, 0x00
    };
    
    uint8 observed[16] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_0);
    
    int result = kmip_encode_interval(&ctx, KMIP_TAG_DEFAULT, 864000);
    result = report_encoding_test_result(
        tracker,
        &ctx,
        expected,
        observed,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x8d0, %rsp            # imm = 0x8D0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
movq 0x3fb1c(%rip), %rax     # 0x47180
movq %rax, -0x20(%rbp)
movq 0x3fb19(%rip), %rax     # 0x47188
movq %rax, -0x18(%rbp)
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8c8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x30(%rbp), %rsi
leaq -0x8c8(%rbp), %rdi
movl $0x10, %edx
xorl %ecx, %ecx
callq 0x1c6e0
leaq -0x8c8(%rbp), %rdi
movl $0x420000, %esi         # imm = 0x420000
movl $0xd2f00, %edx          # imm = 0xD2F00
callq 0x25350
movl %eax, -0x8cc(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x20(%rbp), %rdx
leaq -0x30(%rbp), %rcx
movl -0x8cc(%rbp), %r8d
leaq -0x8c8(%rbp), %rsi
leaq 0x37ffe(%rip), %r9      # 0x3f6e8
callq 0x11f0
movl %eax, -0x8cc(%rbp)
leaq -0x8c8(%rbp), %rdi
callq 0x1cab0
movl -0x8cc(%rbp), %eax
addq $0x8d0, %rsp            # imm = 0x8D0
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_interval
int
test_decode_interval(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[16] = {
        0x42, 0x00, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x0D, 0x2F, 0x00, 0x00, 0x00, 0x00, 0x00
    };
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);
    
    uint32 expected = 864000;
    uint32 observed = 0;
    
    int result = kmip_decode_interval(&ctx, KMIP_TAG_DEFAULT, &observed);
    result = report_decoding_test_result(
        tracker,
        &ctx,
        observed == expected,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x8d0, %rsp            # imm = 0x8D0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
movq 0x3fa4c(%rip), %rax     # 0x47180
movq %rax, -0x20(%rbp)
movq 0x3fa49(%rip), %rax     # 0x47188
movq %rax, -0x18(%rbp)
leaq -0x8b8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x20(%rbp), %rsi
leaq -0x8b8(%rbp), %rdi
movl $0x10, %edx
xorl %ecx, %ecx
callq 0x1c6e0
movl $0xd2f00, -0x8bc(%rbp)  # imm = 0xD2F00
movl $0x0, -0x8c0(%rbp)
leaq -0x8b8(%rbp), %rdi
movl $0x420000, %esi         # imm = 0x420000
leaq -0x8c0(%rbp), %rdx
callq 0x2bab0
movl %eax, -0x8c4(%rbp)
movq -0x8(%rbp), %rdi
movl -0x8c0(%rbp), %eax
cmpl -0x8bc(%rbp), %eax
sete %al
andb $0x1, %al
movzbl %al, %edx
movl -0x8c4(%rbp), %ecx
leaq -0x8b8(%rbp), %rsi
leaq 0x37f32(%rip), %r8      # 0x3f6fd
callq 0x13a0
movl %eax, -0x8c4(%rbp)
leaq -0x8b8(%rbp), %rdi
callq 0x1cab0
movl -0x8c4(%rbp), %eax
addq $0x8d0, %rsp            # imm = 0x8D0
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_encode_name
int
test_encode_name(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 expected[48] = {
        0x42, 0x00, 0x53, 0x01, 0x00, 0x00, 0x00, 0x28,
        0x42, 0x00, 0x55, 0x07, 0x00, 0x00, 0x00, 0x09,
        0x54, 0x65, 0x6D, 0x70, 0x6C, 0x61, 0x74, 0x65,
        0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x54, 0x05, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00
    };
    
    uint8 observed[48] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_0);
    
    struct text_string value = {0};
    value.value = "Template1";
    value.size = 9;
    
    struct name n = {0};
    n.value = &value;
    n.type = KMIP_NAME_UNINTERPRETED_TEXT_STRING;
    
    int result = kmip_encode_name(&ctx, &n);
    result = report_encoding_test_result(
        tracker,
        &ctx,
        expected,
        observed,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x930, %rsp            # imm = 0x930
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0x40(%rbp), %rdi
leaq 0x3a148(%rip), %rsi     # 0x41970
movl $0x30, %edx
callq 0x10c0
leaq -0x70(%rbp), %rdi
xorl %esi, %esi
movl $0x30, %edx
callq 0x1090
leaq -0x908(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x70(%rbp), %rsi
leaq -0x908(%rbp), %rdi
movl $0x30, %edx
xorl %ecx, %ecx
callq 0x1c6e0
leaq -0x918(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq 0x37e8c(%rip), %rax     # 0x3f712
movq %rax, -0x918(%rbp)
movq $0x9, -0x910(%rbp)
leaq -0x928(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x918(%rbp), %rax
movq %rax, -0x928(%rbp)
movl $0x1, -0x920(%rbp)
leaq -0x908(%rbp), %rdi
leaq -0x928(%rbp), %rsi
callq 0x25490
movl %eax, -0x92c(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rdx
leaq -0x70(%rbp), %rcx
movl -0x92c(%rbp), %r8d
leaq -0x908(%rbp), %rsi
leaq 0x37e1f(%rip), %r9      # 0x3f71c
callq 0x11f0
movl %eax, -0x92c(%rbp)
leaq -0x908(%rbp), %rdi
callq 0x1cab0
movl -0x92c(%rbp), %eax
addq $0x930, %rsp            # imm = 0x930
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_name
int
test_decode_name(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[48] = {
        0x42, 0x00, 0x53, 0x01, 0x00, 0x00, 0x00, 0x28,
        0x42, 0x00, 0x55, 0x07, 0x00, 0x00, 0x00, 0x09,
        0x54, 0x65, 0x6D, 0x70, 0x6C, 0x61, 0x74, 0x65,
        0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x54, 0x05, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00
    };
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);
    
    struct text_string value = {0};
    value.value = "Template1";
    value.size = 9;
    
    struct name expected = {0};
    expected.value = &value;
    expected.type = KMIP_NAME_UNINTERPRETED_TEXT_STRING;
    struct name observed = {0};
    
    int result = kmip_decode_name(&ctx, &observed);
    result = report_decoding_test_result(
        tracker,
        &ctx,
        kmip_compare_name(&expected, &observed),
        result,
        __func__);
    kmip_free_name(&ctx, &observed);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x920, %rsp            # imm = 0x920
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0x40(%rbp), %rdi
leaq 0x3a048(%rip), %rsi     # 0x419a0
movl $0x30, %edx
callq 0x10c0
leaq -0x8d8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x40(%rbp), %rsi
leaq -0x8d8(%rbp), %rdi
movl $0x30, %edx
xorl %ecx, %ecx
callq 0x1c6e0
leaq -0x8e8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq 0x37d6c(%rip), %rax     # 0x3f712
movq %rax, -0x8e8(%rbp)
movq $0x9, -0x8e0(%rbp)
leaq -0x8f8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8e8(%rbp), %rax
movq %rax, -0x8f8(%rbp)
movl $0x1, -0x8f0(%rbp)
leaq -0x908(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8d8(%rbp), %rdi
leaq -0x908(%rbp), %rsi
callq 0x2bc10
movl %eax, -0x90c(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x918(%rbp)
leaq -0x8f8(%rbp), %rdi
leaq -0x908(%rbp), %rsi
callq 0x20d60
movq -0x918(%rbp), %rdi
movl %eax, %edx
movl -0x90c(%rbp), %ecx
leaq -0x8d8(%rbp), %rsi
leaq 0x37ce3(%rip), %r8      # 0x3f72d
callq 0x13a0
movl %eax, -0x90c(%rbp)
leaq -0x8d8(%rbp), %rdi
leaq -0x908(%rbp), %rsi
callq 0x1d7a0
leaq -0x8d8(%rbp), %rdi
callq 0x1cab0
movl -0x90c(%rbp), %eax
addq $0x920, %rsp            # imm = 0x920
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_encode_attribute_unique_identifier
int
test_encode_attribute_unique_identifier(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 expected[88] = {
        0x42, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x50,
        0x42, 0x00, 0x0A, 0x07, 0x00, 0x00, 0x00, 0x11,
        0x55, 0x6E, 0x69, 0x71, 0x75, 0x65, 0x20, 0x49,
        0x64, 0x65, 0x6E, 0x74, 0x69, 0x66, 0x69, 0x65,
        0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x0B, 0x07, 0x00, 0x00, 0x00, 0x24,
        0x34, 0x39, 0x61, 0x31, 0x63, 0x61, 0x38, 0x38,
        0x2D, 0x36, 0x62, 0x65, 0x61, 0x2D, 0x34, 0x66,
        0x62, 0x32, 0x2D, 0x62, 0x34, 0x35, 0x30, 0x2D,
        0x37, 0x65, 0x35, 0x38, 0x38, 0x30, 0x32, 0x63,
        0x33, 0x30, 0x33, 0x38, 0x00, 0x00, 0x00, 0x00
    };
    
    uint8 observed[88] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_0);
    
    struct text_string uuid = {0};
    uuid.value = "49a1ca88-6bea-4fb2-b450-7e58802c3038";
    uuid.size = 36;
    
    struct attribute attr = {0};
    kmip_init_attribute(&attr);
    
    attr.type = KMIP_ATTR_UNIQUE_IDENTIFIER;
    attr.value = &uuid;
    
    int result = kmip_encode_attribute(&ctx, &attr);
    result = report_encoding_test_result(
        tracker,
        &ctx,
        expected,
        observed,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x980, %rsp            # imm = 0x980
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0x60(%rbp), %rdi
leaq 0x39548(%rip), %rsi     # 0x41b90
movl $0x58, %edx
callq 0x10c0
leaq -0xc0(%rbp), %rdi
xorl %esi, %esi
movl $0x58, %edx
callq 0x1090
leaq -0x958(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0xc0(%rbp), %rsi
leaq -0x958(%rbp), %rdi
movl $0x58, %edx
xorl %ecx, %ecx
callq 0x1c6e0
leaq -0x968(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq 0x36ea3(%rip), %rax     # 0x3f54f
movq %rax, -0x968(%rbp)
movq $0x24, -0x960(%rbp)
leaq -0x978(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x978(%rbp), %rdi
callq 0x1d330
movl $0x0, -0x978(%rbp)
leaq -0x968(%rbp), %rax
movq %rax, -0x970(%rbp)
leaq -0x958(%rbp), %rdi
leaq -0x978(%rbp), %rsi
callq 0x26910
movl %eax, -0x97c(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x60(%rbp), %rdx
leaq -0xc0(%rbp), %rcx
movl -0x97c(%rbp), %r8d
leaq -0x958(%rbp), %rsi
leaq 0x3717b(%rip), %r9      # 0x3f8ad
callq 0x11f0
movl %eax, -0x97c(%rbp)
leaq -0x958(%rbp), %rdi
callq 0x1cab0
movl -0x97c(%rbp), %eax
addq $0x980, %rsp            # imm = 0x980
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_unique_identifier
int
test_decode_attribute_unique_identifier(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[88] = {
        0x42, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x50,
        0x42, 0x00, 0x0A, 0x07, 0x00, 0x00, 0x00, 0x11,
        0x55, 0x6E, 0x69, 0x71, 0x75, 0x65, 0x20, 0x49,
        0x64, 0x65, 0x6E, 0x74, 0x69, 0x66, 0x69, 0x65,
        0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x0B, 0x07, 0x00, 0x00, 0x00, 0x24,
        0x34, 0x39, 0x61, 0x31, 0x63, 0x61, 0x38, 0x38,
        0x2D, 0x36, 0x62, 0x65, 0x61, 0x2D, 0x34, 0x66,
        0x62, 0x32, 0x2D, 0x62, 0x34, 0x35, 0x30, 0x2D,
        0x37, 0x65, 0x35, 0x38, 0x38, 0x30, 0x32, 0x63,
        0x33, 0x30, 0x33, 0x38, 0x00, 0x00, 0x00, 0x00
    };
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);
    
    struct text_string uuid = {0};
    uuid.value = "49a1ca88-6bea-4fb2-b450-7e58802c3038";
    uuid.size = 36;
    
    struct attribute expected = {0};
    kmip_init_attribute(&expected);
    expected.type = KMIP_ATTR_UNIQUE_IDENTIFIER;
    expected.value = &uuid;
    struct attribute observed = {0};
    kmip_init_attribute(&observed);
    
    int result = kmip_decode_attribute(&ctx, &observed);
    result = report_decoding_test_result(
        tracker,
        &ctx,
        kmip_compare_attribute(&expected, &observed),
        result,
        __func__);
    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x940, %rsp            # imm = 0x940
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0x60(%rbp), %rdi
leaq 0x39468(%rip), %rsi     # 0x41bf0
movl $0x58, %edx
callq 0x10c0
leaq -0x8f8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x60(%rbp), %rsi
leaq -0x8f8(%rbp), %rdi
movl $0x58, %edx
xorl %ecx, %ecx
callq 0x1c6e0
leaq -0x908(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq 0x36d79(%rip), %rax     # 0x3f54f
movq %rax, -0x908(%rbp)
movq $0x24, -0x900(%rbp)
leaq -0x918(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x918(%rbp), %rdi
callq 0x1d330
movl $0x0, -0x918(%rbp)
leaq -0x908(%rbp), %rax
movq %rax, -0x910(%rbp)
leaq -0x928(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x928(%rbp), %rdi
callq 0x1d330
leaq -0x8f8(%rbp), %rdi
leaq -0x928(%rbp), %rsi
callq 0x2f0a0
movl %eax, -0x92c(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x938(%rbp)
leaq -0x918(%rbp), %rdi
leaq -0x928(%rbp), %rsi
callq 0x20f80
movq -0x938(%rbp), %rdi
movl %eax, %edx
movl -0x92c(%rbp), %ecx
leaq -0x8f8(%rbp), %rsi
leaq 0x37043(%rip), %r8      # 0x3f8d5
callq 0x13a0
movl %eax, -0x92c(%rbp)
leaq -0x8f8(%rbp), %rdi
leaq -0x928(%rbp), %rsi
callq 0x1d8e0
leaq -0x8f8(%rbp), %rdi
callq 0x1cab0
movl -0x92c(%rbp), %eax
addq $0x940, %rsp            # imm = 0x940
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_encode_attribute_name
int
test_encode_attribute_name(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 expected[72] = {
        0x42, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x40,
        0x42, 0x00, 0x0A, 0x07, 0x00, 0x00, 0x00, 0x04,
        0x4E, 0x61, 0x6D, 0x65, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x0B, 0x01, 0x00, 0x00, 0x00, 0x28,
        0x42, 0x00, 0x55, 0x07, 0x00, 0x00, 0x00, 0x09,
        0x54, 0x65, 0x6D, 0x70, 0x6C, 0x61, 0x74, 0x65,
        0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x54, 0x05, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00
    };
    
    uint8 observed[72] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_0);
    
    struct text_string value = {0};
    value.value = "Template1";
    value.size = 9;
    
    struct name n = {0};
    n.value = &value;
    n.type = KMIP_NAME_UNINTERPRETED_TEXT_STRING;
    
    struct attribute attr = {0};
    kmip_init_attribute(&attr);
    
    attr.type = KMIP_ATTR_NAME;
    attr.value = &n;
    
    int result = kmip_encode_attribute(&ctx, &attr);
    result = report_encoding_test_result(
        tracker,
        &ctx,
        expected,
        observed,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x970, %rsp            # imm = 0x970
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0x50(%rbp), %rdi
leaq 0x39358(%rip), %rsi     # 0x41c50
movl $0x48, %edx
callq 0x10c0
leaq -0xa0(%rbp), %rdi
xorl %esi, %esi
movl $0x48, %edx
callq 0x1090
leaq -0x938(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0xa0(%rbp), %rsi
leaq -0x938(%rbp), %rdi
movl $0x48, %edx
xorl %ecx, %ecx
callq 0x1c6e0
leaq -0x948(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq 0x36db6(%rip), %rax     # 0x3f712
movq %rax, -0x948(%rbp)
movq $0x9, -0x940(%rbp)
leaq -0x958(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x948(%rbp), %rax
movq %rax, -0x958(%rbp)
movl $0x1, -0x950(%rbp)
leaq -0x968(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x968(%rbp), %rdi
callq 0x1d330
movl $0x1, -0x968(%rbp)
leaq -0x958(%rbp), %rax
movq %rax, -0x960(%rbp)
leaq -0x938(%rbp), %rdi
leaq -0x968(%rbp), %rsi
callq 0x26910
movl %eax, -0x96c(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x50(%rbp), %rdx
leaq -0xa0(%rbp), %rcx
movl -0x96c(%rbp), %r8d
leaq -0x938(%rbp), %rsi
leaq 0x36ef0(%rip), %r9      # 0x3f8fd
callq 0x11f0
movl %eax, -0x96c(%rbp)
leaq -0x938(%rbp), %rdi
callq 0x1cab0
movl -0x96c(%rbp), %eax
addq $0x970, %rsp            # imm = 0x970
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_name
int
test_decode_attribute_name(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[72] = {
        0x42, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x40,
        0x42, 0x00, 0x0A, 0x07, 0x00, 0x00, 0x00, 0x04,
        0x4E, 0x61, 0x6D, 0x65, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x0B, 0x01, 0x00, 0x00, 0x00, 0x28,
        0x42, 0x00, 0x55, 0x07, 0x00, 0x00, 0x00, 0x09,
        0x54, 0x65, 0x6D, 0x70, 0x6C, 0x61, 0x74, 0x65,
        0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x54, 0x05, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00
    };
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);
    
    struct text_string value = {0};
    value.value = "Template1";
    value.size = 9;
    
    struct name n = {0};
    n.value = &value;
    n.type = KMIP_NAME_UNINTERPRETED_TEXT_STRING;
    
    struct attribute expected = {0};
    kmip_init_attribute(&expected);
    expected.type = KMIP_ATTR_NAME;
    expected.value = &n;
    struct attribute observed = {0};
    kmip_init_attribute(&observed);
    
    int result = kmip_decode_attribute(&ctx, &observed);
    result = report_decoding_test_result(
        tracker,
        &ctx,
        kmip_compare_attribute(&expected, &observed),
        result,
        __func__);
    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x940, %rsp            # imm = 0x940
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0x50(%rbp), %rdi
leaq 0x39238(%rip), %rsi     # 0x41ca0
movl $0x48, %edx
callq 0x10c0
leaq -0x8e8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x50(%rbp), %rsi
leaq -0x8e8(%rbp), %rdi
movl $0x48, %edx
xorl %ecx, %ecx
callq 0x1c6e0
leaq -0x8f8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq 0x36c5c(%rip), %rax     # 0x3f712
movq %rax, -0x8f8(%rbp)
movq $0x9, -0x8f0(%rbp)
leaq -0x908(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8f8(%rbp), %rax
movq %rax, -0x908(%rbp)
movl $0x1, -0x900(%rbp)
leaq -0x918(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x918(%rbp), %rdi
callq 0x1d330
movl $0x1, -0x918(%rbp)
leaq -0x908(%rbp), %rax
movq %rax, -0x910(%rbp)
leaq -0x928(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x928(%rbp), %rdi
callq 0x1d330
leaq -0x8e8(%rbp), %rdi
leaq -0x928(%rbp), %rsi
callq 0x2f0a0
movl %eax, -0x92c(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x938(%rbp)
leaq -0x918(%rbp), %rdi
leaq -0x928(%rbp), %rsi
callq 0x20f80
movq -0x938(%rbp), %rdi
movl %eax, %edx
movl -0x92c(%rbp), %ecx
leaq -0x8e8(%rbp), %rsi
leaq 0x36d7b(%rip), %r8      # 0x3f918
callq 0x13a0
movl %eax, -0x92c(%rbp)
leaq -0x8e8(%rbp), %rdi
leaq -0x928(%rbp), %rsi
callq 0x1d8e0
leaq -0x8e8(%rbp), %rdi
callq 0x1cab0
movl -0x92c(%rbp), %eax
addq $0x940, %rsp            # imm = 0x940
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_encode_attribute_object_type
int
test_encode_attribute_object_type(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 expected[48] = {
        0x42, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x28,
        0x42, 0x00, 0x0A, 0x07, 0x00, 0x00, 0x00, 0x0B,
        0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x54,
        0x79, 0x70, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x0B, 0x05, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00
    };
    
    uint8 observed[48] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_0);
    
    enum object_type t = KMIP_OBJTYPE_SYMMETRIC_KEY;
    struct attribute attr = {0};
    kmip_init_attribute(&attr);
    
    attr.type = KMIP_ATTR_OBJECT_TYPE;
    attr.value = &t;
    
    int result = kmip_encode_attribute(&ctx, &attr);
    result = report_encoding_test_result(
        tracker,
        &ctx,
        expected,
        observed,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x930, %rsp            # imm = 0x930
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0x40(%rbp), %rdi
leaq 0x390e8(%rip), %rsi     # 0x41cf0
movl $0x30, %edx
callq 0x10c0
leaq -0x70(%rbp), %rdi
xorl %esi, %esi
movl $0x30, %edx
callq 0x1090
leaq -0x908(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x70(%rbp), %rsi
leaq -0x908(%rbp), %rdi
movl $0x30, %edx
xorl %ecx, %ecx
callq 0x1c6e0
movl $0x2, -0x90c(%rbp)
leaq -0x920(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x920(%rbp), %rdi
callq 0x1d330
movl $0x2, -0x920(%rbp)
leaq -0x90c(%rbp), %rax
movq %rax, -0x918(%rbp)
leaq -0x908(%rbp), %rdi
leaq -0x920(%rbp), %rsi
callq 0x26910
movl %eax, -0x924(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rdx
leaq -0x70(%rbp), %rcx
movl -0x924(%rbp), %r8d
leaq -0x908(%rbp), %rsi
leaq 0x36c6c(%rip), %r9      # 0x3f933
callq 0x11f0
movl %eax, -0x924(%rbp)
leaq -0x908(%rbp), %rdi
callq 0x1cab0
movl -0x924(%rbp), %eax
addq $0x930, %rsp            # imm = 0x930
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_object_type
int
test_decode_attribute_object_type(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[48] = {
        0x42, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x28,
        0x42, 0x00, 0x0A, 0x07, 0x00, 0x00, 0x00, 0x0B,
        0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x54,
        0x79, 0x70, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x0B, 0x05, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00
    };
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);
    
    enum object_type t = KMIP_OBJTYPE_SYMMETRIC_KEY;
    struct attribute expected = {0};
    kmip_init_attribute(&expected);
    expected.type = KMIP_ATTR_OBJECT_TYPE;
    expected.value = &t;
    struct attribute observed = {0};
    kmip_init_attribute(&observed);
    
    int result = kmip_decode_attribute(&ctx, &observed);
    result = report_decoding_test_result(
        tracker,
        &ctx,
        kmip_compare_attribute(&expected, &observed),
        result,
        __func__);
    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x910, %rsp            # imm = 0x910
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0x40(%rbp), %rdi
leaq 0x39008(%rip), %rsi     # 0x41d20
movl $0x30, %edx
callq 0x10c0
leaq -0x8d8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x40(%rbp), %rsi
leaq -0x8d8(%rbp), %rdi
movl $0x30, %edx
xorl %ecx, %ecx
callq 0x1c6e0
movl $0x2, -0x8dc(%rbp)
leaq -0x8f0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8f0(%rbp), %rdi
callq 0x1d330
movl $0x2, -0x8f0(%rbp)
leaq -0x8dc(%rbp), %rax
movq %rax, -0x8e8(%rbp)
leaq -0x900(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x900(%rbp), %rdi
callq 0x1d330
leaq -0x8d8(%rbp), %rdi
leaq -0x900(%rbp), %rsi
callq 0x2f0a0
movl %eax, -0x904(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x910(%rbp)
leaq -0x8f0(%rbp), %rdi
leaq -0x900(%rbp), %rsi
callq 0x20f80
movq -0x910(%rbp), %rdi
movl %eax, %edx
movl -0x904(%rbp), %ecx
leaq -0x8d8(%rbp), %rsi
leaq 0x36b55(%rip), %r8      # 0x3f955
callq 0x13a0
movl %eax, -0x904(%rbp)
leaq -0x8d8(%rbp), %rdi
leaq -0x900(%rbp), %rsi
callq 0x1d8e0
leaq -0x8d8(%rbp), %rdi
callq 0x1cab0
movl -0x904(%rbp), %eax
addq $0x910, %rsp            # imm = 0x910
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_encode_attribute_cryptographic_algorithm
int
test_encode_attribute_cryptographic_algorithm(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 expected[56] = {
        0x42, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x30,
        0x42, 0x00, 0x0A, 0x07, 0x00, 0x00, 0x00, 0x17,
        0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72,
        0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x41, 0x6C,
        0x67, 0x6F, 0x72, 0x69, 0x74, 0x68, 0x6D, 0x00,
        0x42, 0x00, 0x0B, 0x05, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00
    };
    
    uint8 observed[56] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_0);
    
    enum cryptographic_algorithm a = KMIP_CRYPTOALG_AES;
    struct attribute attr = {0};
    kmip_init_attribute(&attr);
    
    attr.type = KMIP_ATTR_CRYPTOGRAPHIC_ALGORITHM;
    attr.value = &a;
    
    int result = kmip_encode_attribute(&ctx, &attr);
    result = report_encoding_test_result(
        tracker,
        &ctx,
        expected,
        observed,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x940, %rsp            # imm = 0x940
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0x40(%rbp), %rdi
leaq 0x38ee8(%rip), %rsi     # 0x41d50
movl $0x38, %edx
callq 0x10c0
leaq -0x80(%rbp), %rdi
xorl %esi, %esi
movl $0x38, %edx
callq 0x1090
leaq -0x918(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x80(%rbp), %rsi
leaq -0x918(%rbp), %rdi
movl $0x38, %edx
xorl %ecx, %ecx
callq 0x1c6e0
movl $0x3, -0x91c(%rbp)
leaq -0x930(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x930(%rbp), %rdi
callq 0x1d330
movl $0x3, -0x930(%rbp)
leaq -0x91c(%rbp), %rax
movq %rax, -0x928(%rbp)
leaq -0x918(%rbp), %rdi
leaq -0x930(%rbp), %rsi
callq 0x26910
movl %eax, -0x934(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rdx
leaq -0x80(%rbp), %rcx
movl -0x934(%rbp), %r8d
leaq -0x918(%rbp), %rsi
leaq 0x36a50(%rip), %r9      # 0x3f977
callq 0x11f0
movl %eax, -0x934(%rbp)
leaq -0x918(%rbp), %rdi
callq 0x1cab0
movl -0x934(%rbp), %eax
addq $0x940, %rsp            # imm = 0x940
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_cryptographic_algorithm
int
test_decode_attribute_cryptographic_algorithm(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[56] = {
        0x42, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x30,
        0x42, 0x00, 0x0A, 0x07, 0x00, 0x00, 0x00, 0x17,
        0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72,
        0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x41, 0x6C,
        0x67, 0x6F, 0x72, 0x69, 0x74, 0x68, 0x6D, 0x00,
        0x42, 0x00, 0x0B, 0x05, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00
    };
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);
    
    enum cryptographic_algorithm a = KMIP_CRYPTOALG_AES;
    struct attribute expected = {0};
    kmip_init_attribute(&expected);
    expected.type = KMIP_ATTR_CRYPTOGRAPHIC_ALGORITHM;
    expected.value = &a;
    struct attribute observed = {0};
    kmip_init_attribute(&observed);
    
    int result = kmip_decode_attribute(&ctx, &observed);
    result = report_decoding_test_result(
        tracker,
        &ctx,
        kmip_compare_attribute(&expected, &observed),
        result,
        __func__);
    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x910, %rsp            # imm = 0x910
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0x40(%rbp), %rdi
leaq 0x38e18(%rip), %rsi     # 0x41d90
movl $0x38, %edx
callq 0x10c0
leaq -0x8d8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x40(%rbp), %rsi
leaq -0x8d8(%rbp), %rdi
movl $0x38, %edx
xorl %ecx, %ecx
callq 0x1c6e0
movl $0x3, -0x8dc(%rbp)
leaq -0x8f0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8f0(%rbp), %rdi
callq 0x1d330
movl $0x3, -0x8f0(%rbp)
leaq -0x8dc(%rbp), %rax
movq %rax, -0x8e8(%rbp)
leaq -0x900(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x900(%rbp), %rdi
callq 0x1d330
leaq -0x8d8(%rbp), %rdi
leaq -0x900(%rbp), %rsi
callq 0x2f0a0
movl %eax, -0x904(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x910(%rbp)
leaq -0x8f0(%rbp), %rdi
leaq -0x900(%rbp), %rsi
callq 0x20f80
movq -0x910(%rbp), %rdi
movl %eax, %edx
movl -0x904(%rbp), %ecx
leaq -0x8d8(%rbp), %rsi
leaq 0x36945(%rip), %r8      # 0x3f9a5
callq 0x13a0
movl %eax, -0x904(%rbp)
leaq -0x8d8(%rbp), %rdi
leaq -0x900(%rbp), %rsi
callq 0x1d8e0
leaq -0x8d8(%rbp), %rdi
callq 0x1cab0
movl -0x904(%rbp), %eax
addq $0x910, %rsp            # imm = 0x910
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_encode_attribute_cryptographic_length
int
test_encode_attribute_cryptographic_length(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 expected[56] = {
        0x42, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x30,
        0x42, 0x00, 0x0A, 0x07, 0x00, 0x00, 0x00, 0x14,
        0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72,
        0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x4C, 0x65,
        0x6E, 0x67, 0x74, 0x68, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x0B, 0x02, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00
    };
    
    uint8 observed[56] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_0);
    
    int32 length = 128;
    struct attribute attr = {0};
    kmip_init_attribute(&attr);
    
    attr.type = KMIP_ATTR_CRYPTOGRAPHIC_LENGTH;
    attr.value = &length;
    
    int result = kmip_encode_attribute(&ctx, &attr);
    result = report_encoding_test_result(
        tracker,
        &ctx,
        expected,
        observed,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x940, %rsp            # imm = 0x940
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0x40(%rbp), %rdi
leaq 0x38d08(%rip), %rsi     # 0x41dd0
movl $0x38, %edx
callq 0x10c0
leaq -0x80(%rbp), %rdi
xorl %esi, %esi
movl $0x38, %edx
callq 0x1090
leaq -0x918(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x80(%rbp), %rsi
leaq -0x918(%rbp), %rdi
movl $0x38, %edx
xorl %ecx, %ecx
callq 0x1c6e0
movl $0x80, -0x91c(%rbp)
leaq -0x930(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x930(%rbp), %rdi
callq 0x1d330
movl $0x4, -0x930(%rbp)
leaq -0x91c(%rbp), %rax
movq %rax, -0x928(%rbp)
leaq -0x918(%rbp), %rdi
leaq -0x930(%rbp), %rsi
callq 0x26910
movl %eax, -0x934(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rdx
leaq -0x80(%rbp), %rcx
movl -0x934(%rbp), %r8d
leaq -0x918(%rbp), %rsi
leaq 0x3684c(%rip), %r9      # 0x3f9d3
callq 0x11f0
movl %eax, -0x934(%rbp)
leaq -0x918(%rbp), %rdi
callq 0x1cab0
movl -0x934(%rbp), %eax
addq $0x940, %rsp            # imm = 0x940
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_attribute_cryptographic_length
int
test_decode_attribute_cryptographic_length(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[56] = {
        0x42, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x30,
        0x42, 0x00, 0x0A, 0x07, 0x00, 0x00, 0x00, 0x14,
        0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72,
        0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x4C, 0x65,
        0x6E, 0x67, 0x74, 0x68, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x0B, 0x02, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00
    };
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);
    
    int32 length = 128;
    struct attribute expected = {0};
    kmip_init_attribute(&expected);
    expected.type = KMIP_ATTR_CRYPTOGRAPHIC_LENGTH;
    expected.value = &length;
    struct attribute observed = {0};
    kmip_init_attribute(&observed);
    
    int result = kmip_decode_attribute(&ctx, &observed);
    result = report_decoding_test_result(
        tracker,
        &ctx,
        kmip_compare_attribute(&expected, &observed),
        result,
        __func__);
    kmip_free_attribute(&ctx, &observed);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x910, %rsp            # imm = 0x910
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0x40(%rbp), %rdi
leaq 0x38c38(%rip), %rsi     # 0x41e10
movl $0x38, %edx
callq 0x10c0
leaq -0x8d8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x40(%rbp), %rsi
leaq -0x8d8(%rbp), %rdi
movl $0x38, %edx
xorl %ecx, %ecx
callq 0x1c6e0
movl $0x80, -0x8dc(%rbp)
leaq -0x8f0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8f0(%rbp), %rdi
callq 0x1d330
movl $0x4, -0x8f0(%rbp)
leaq -0x8dc(%rbp), %rax
movq %rax, -0x8e8(%rbp)
leaq -0x900(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x900(%rbp), %rdi
callq 0x1d330
leaq -0x8d8(%rbp), %rdi
leaq -0x900(%rbp), %rsi
callq 0x2f0a0
movl %eax, -0x904(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x910(%rbp)
leaq -0x8f0(%rbp), %rdi
leaq -0x900(%rbp), %rsi
callq 0x20f80
movq -0x910(%rbp), %rdi
movl %eax, %edx
movl -0x904(%rbp), %ecx
leaq -0x8d8(%rbp), %rsi
leaq 0x3673e(%rip), %r8      # 0x3f9fe
callq 0x13a0
movl %eax, -0x904(%rbp)
leaq -0x8d8(%rbp), %rdi
leaq -0x900(%rbp), %rsi
callq 0x1d8e0
leaq -0x8d8(%rbp), %rdi
callq 0x1cab0
movl -0x904(%rbp), %eax
addq $0x910, %rsp            # imm = 0x910
popq %rbp
retq
nopl (%rax)