// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x900, %rsp            # imm = 0x900
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
movq 0x3294c(%rip), %rax     # 0x472a0
movq %rax, -0x30(%rbp)
movq 0x32949(%rip), %rax     # 0x472a8
movq %rax, -0x28(%rbp)
movq 0x32946(%rip), %rax     # 0x472b0
movq %rax, -0x20(%rbp)
movq 0x32943(%rip), %rax     # 0x472b8
movq %rax, -0x18(%rbp)
leaq -0x8c8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x30(%rbp), %rsi
leaq -0x8c8(%rbp), %rdi
movl $0x20, %edx
movl $0x5, %ecx
callq 0x1c6e0
leaq -0x8d8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8d8(%rbp), %rdi
callq 0x1d330
leaq -0x8e8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq 0x2b138(%rip), %rax     # 0x3fb17
movq %rax, -0x8e8(%rbp)
movq $0x13, -0x8e0(%rbp)
movl $0x9, -0x8d8(%rbp)
leaq -0x8e8(%rbp), %rax
movq %rax, -0x8d0(%rbp)
leaq -0x8f8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq -0x8c8(%rbp), %rdi
leaq -0x8f8(%rbp), %rsi
callq 0x2e350
movl %eax, -0x8fc(%rbp)
leaq -0x8d8(%rbp), %rdi
leaq -0x8f8(%rbp), %rsi
callq 0x20f80
movl %eax, -0x900(%rbp)
cmpl $0x0, -0x900(%rbp)
jne 0x14a8d
movq 0x3f59a(%rip), %rax     # 0x53ff8
movq (%rax), %rdi
movl $0x1, %esi
leaq -0x8d8(%rbp), %rdx
callq 0x3c210
movq 0x3f57f(%rip), %rax     # 0x53ff8
movq (%rax), %rdi
movl $0x1, %esi
leaq -0x8f8(%rbp), %rdx
callq 0x3c210
movq -0x8(%rbp), %rdi
movl -0x900(%rbp), %edx
movl -0x8fc(%rbp), %ecx
leaq -0x8c8(%rbp), %rsi
leaq 0x2c261(%rip), %r8      # 0x40d0c
callq 0x13a0
movl %eax, -0x8fc(%rbp)
leaq -0x8c8(%rbp), %rdi
leaq -0x8f8(%rbp), %rsi
callq 0x1d8e0
leaq -0x8c8(%rbp), %rdi
callq 0x1cab0
movl -0x8fc(%rbp), %eax
addq $0x900, %rsp            # imm = 0x900
popq %rbp
retq
nopw %cs:(%rax,%rax)