// File: /workspace/github_c_makefile_star2_O0/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
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 -0x8a0(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x8a0(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
xorl %ecx, %ecx
movq %rdx, %rsi
callq 0x1c6e0
leaq -0x8b8(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x1090
leaq -0x8d0(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x1090
movl $0x1, -0x8d4(%rbp)
leaq -0x8d4(%rbp), %rax
movq %rax, -0x8c0(%rbp)
leaq -0x8f0(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x1090
movl $0x3, -0x8f4(%rbp)
leaq -0x8f4(%rbp), %rax
movq %rax, -0x8e0(%rbp)
leaq -0x8b8(%rbp), %rdi
leaq -0x8d0(%rbp), %rsi
callq 0x1b660
leaq -0x8b8(%rbp), %rdi
leaq -0x8f0(%rbp), %rsi
callq 0x1b660
leaq -0x900(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x1090
leaq -0x8b8(%rbp), %rax
movq %rax, -0x900(%rbp)
leaq -0x918(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x1090
leaq -0x930(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x1090
movl $0x1, -0x934(%rbp)
leaq -0x934(%rbp), %rax
movq %rax, -0x920(%rbp)
leaq -0x950(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x1090
movl $0x3, -0x954(%rbp)
leaq -0x954(%rbp), %rax
movq %rax, -0x940(%rbp)
leaq -0x918(%rbp), %rdi
leaq -0x930(%rbp), %rsi
callq 0x1b660
leaq -0x918(%rbp), %rdi
leaq -0x950(%rbp), %rsi
callq 0x1b660
leaq -0x960(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x1090
leaq -0x918(%rbp), %rax
movq %rax, -0x960(%rbp)
leaq -0x900(%rbp), %rdi
leaq -0x960(%rbp), %rsi
callq 0x245a0
movl %eax, -0x964(%rbp)
movq -0x8(%rbp), %rdi
movl -0x964(%rbp), %edx
leaq -0x8a0(%rbp), %rsi
xorl %ecx, %ecx
leaq 0x286f5(%rip), %r8      # 0x412bd
callq 0x13a0
movl %eax, -0x968(%rbp)
leaq -0x8a0(%rbp), %rdi
callq 0x1cab0
movl -0x968(%rbp), %eax
addq $0x970, %rsp            # imm = 0x970
popq %rbp
retq
nop