// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_linked_list_push
int
test_linked_list_push(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    LinkedList list = {0};

    LinkedListItem a = {0};
    LinkedListItem b = {0};
    LinkedListItem c = {0};

    if(list.head != NULL || list.tail != NULL || list.size != 0)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    kmip_linked_list_push(&list, &a);

    if(list.head != &a || list.tail != &a || list.size != 1)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    kmip_linked_list_push(&list, &b);

    if(list.head != &b || list.tail != &a || list.size != 2)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    kmip_linked_list_push(&list, &c);

    if(list.head != &c || list.tail != &a || list.size != 3)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    LinkedListItem *curr = list.head;
    if(curr != &c || curr->next != &b || curr->prev != NULL)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }
    curr = curr->next;
    if(curr != &b || curr->next != &a || curr->prev != &c)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }
    curr = curr->next;
    if(curr != &a || curr->next != NULL || curr->prev != &b)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    TEST_PASSED(tracker, __func__);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0x28(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x1090
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x1090
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x1090
leaq -0x70(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x1090
cmpq $0x0, -0x28(%rbp)
jne 0x1582
cmpq $0x0, -0x20(%rbp)
jne 0x1582
cmpq $0x0, -0x18(%rbp)
je 0x15ba
jmp 0x1584
leaq 0x3db2a(%rip), %rdi     # 0x3f0b5
leaq 0x3db34(%rip), %rsi     # 0x3f0c6
movl $0x94, %edx
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x1834
leaq -0x28(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x1b5d0
leaq -0x40(%rbp), %rax
cmpq %rax, -0x28(%rbp)
jne 0x15e2
leaq -0x40(%rbp), %rax
cmpq %rax, -0x20(%rbp)
jne 0x15e2
cmpq $0x1, -0x18(%rbp)
je 0x161a
jmp 0x15e4
leaq 0x3daca(%rip), %rdi     # 0x3f0b5
leaq 0x3dad4(%rip), %rsi     # 0x3f0c6
movl $0x9b, %edx
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x1834
leaq -0x28(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x1b5d0
leaq -0x58(%rbp), %rax
cmpq %rax, -0x28(%rbp)
jne 0x1642
leaq -0x40(%rbp), %rax
cmpq %rax, -0x20(%rbp)
jne 0x1642
cmpq $0x2, -0x18(%rbp)
je 0x167a
jmp 0x1644
leaq 0x3da6a(%rip), %rdi     # 0x3f0b5
leaq 0x3da74(%rip), %rsi     # 0x3f0c6
movl $0xa2, %edx
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x1834
leaq -0x28(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x1b5d0
leaq -0x70(%rbp), %rax
cmpq %rax, -0x28(%rbp)
jne 0x16a2
leaq -0x40(%rbp), %rax
cmpq %rax, -0x20(%rbp)
jne 0x16a2
cmpq $0x3, -0x18(%rbp)
je 0x16da
jmp 0x16a4
leaq 0x3da0a(%rip), %rdi     # 0x3f0b5
leaq 0x3da14(%rip), %rsi     # 0x3f0c6
movl $0xa9, %edx
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x1834
movq -0x28(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq -0x70(%rbp), %rax
cmpq %rax, -0x78(%rbp)
jne 0x1704
movq -0x78(%rbp), %rax
leaq -0x58(%rbp), %rcx
cmpq %rcx, (%rax)
jne 0x1704
movq -0x78(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x173c
jmp 0x1706
leaq 0x3d9a8(%rip), %rdi     # 0x3f0b5
leaq 0x3d9b2(%rip), %rsi     # 0x3f0c6
movl $0xaf, %edx
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x1834
movq -0x78(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x78(%rbp)
leaq -0x58(%rbp), %rax
cmpq %rax, -0x78(%rbp)
jne 0x176c
movq -0x78(%rbp), %rax
leaq -0x40(%rbp), %rcx
cmpq %rcx, (%rax)
jne 0x176c
movq -0x78(%rbp), %rax
leaq -0x70(%rbp), %rcx
cmpq %rcx, 0x8(%rax)
je 0x17a4
jmp 0x176e
leaq 0x3d940(%rip), %rdi     # 0x3f0b5
leaq 0x3d94a(%rip), %rsi     # 0x3f0c6
movl $0xb4, %edx
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x1834
movq -0x78(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x78(%rbp)
leaq -0x40(%rbp), %rax
cmpq %rax, -0x78(%rbp)
jne 0x17d1
movq -0x78(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x17d1
movq -0x78(%rbp), %rax
leaq -0x58(%rbp), %rcx
cmpq %rcx, 0x8(%rax)
je 0x1806
jmp 0x17d3
leaq 0x3d8db(%rip), %rdi     # 0x3f0b5
leaq 0x3d8e5(%rip), %rsi     # 0x3f0c6
movl $0xb9, %edx
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x1834
jmp 0x1808
leaq 0x3d83c(%rip), %rdi     # 0x3f04b
leaq 0x3d8b0(%rip), %rsi     # 0x3f0c6
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x4(%rax), %cx
addw $0x1, %cx
movw %cx, 0x4(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq