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

    int64 expected = 42;
    int64 *observed = NULL;

    observed = kmip_deep_copy_int64(NULL, NULL);
    if(observed != NULL)
        TEST_FAILED(tracker, __func__, __LINE__);

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

    observed = kmip_deep_copy_int64(&ctx, NULL);
    if(observed != NULL)
    {
        kmip_destroy(&ctx);
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    observed = kmip_deep_copy_int64(&ctx, &expected);
    if(observed == NULL)
    {
        kmip_destroy(&ctx);
        TEST_FAILED(tracker, __func__, __LINE__);
    }
    if(*observed != expected)
    {
        kmip_print_date_time(stderr, expected);
        kmip_print_date_time(stderr, *observed);
        ctx.free_func(ctx.state, observed);
        kmip_destroy(&ctx);
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    ctx.free_func(ctx.state, observed);
    kmip_destroy(&ctx);

    TEST_PASSED(tracker, __func__);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x8c0, %rsp            # imm = 0x8C0
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
movq $0x2a, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
xorl %eax, %eax
movl %eax, %esi
movq %rsi, %rdi
callq 0x1fe20
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x4c3c
jmp 0x4c06
leaq 0x3a4a8(%rip), %rdi     # 0x3f0b5
leaq 0x3a87d(%rip), %rsi     # 0x3f491
movl $0x54c, %edx            # imm = 0x54C
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 0x4de7
leaq -0x8b8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x8b8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
xorl %ecx, %ecx
movq %rdx, %rsi
callq 0x1c6e0
leaq -0x8b8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1fe20
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x4cc1
leaq -0x8b8(%rbp), %rdi
callq 0x1cab0
leaq 0x3a423(%rip), %rdi     # 0x3f0b5
leaq 0x3a7f8(%rip), %rsi     # 0x3f491
movl $0x555, %edx            # imm = 0x555
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 0x4de7
leaq -0x8b8(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x1fe20
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x4d1e
leaq -0x8b8(%rbp), %rdi
callq 0x1cab0
leaq 0x3a3c6(%rip), %rdi     # 0x3f0b5
leaq 0x3a79b(%rip), %rsi     # 0x3f491
movl $0x55c, %edx            # imm = 0x55C
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 0x4de7
movq -0x20(%rbp), %rax
movq (%rax), %rax
cmpq -0x18(%rbp), %rax
je 0x4da1
movq 0x4f2c6(%rip), %rax     # 0x53ff8
movq (%rax), %rdi
movq -0x18(%rbp), %rsi
callq 0x3b630
movq 0x4f2b3(%rip), %rax     # 0x53ff8
movq (%rax), %rdi
movq -0x20(%rbp), %rax
movq (%rax), %rsi
callq 0x3b630
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq *%rax
leaq -0x8b8(%rbp), %rdi
callq 0x1cab0
leaq 0x3a340(%rip), %rdi     # 0x3f0b5
leaq 0x3a715(%rip), %rsi     # 0x3f491
movl $0x564, %edx            # imm = 0x564
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 0x4de7
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq *%rax
leaq -0x8b8(%rbp), %rdi
callq 0x1cab0
leaq 0x3a289(%rip), %rdi     # 0x3f04b
leaq 0x3a6c8(%rip), %rsi     # 0x3f491
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 $0x8c0, %rsp            # imm = 0x8C0
popq %rbp
retq
nopw %cs:(%rax,%rax)