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

    int32 expected = 42;
    int32 *observed = NULL;

    observed = kmip_deep_copy_int32(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_int32(&ctx, NULL);
    if(observed != NULL)
    {
        kmip_destroy(&ctx);
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    observed = kmip_deep_copy_int32(&ctx, &expected);
    if(observed == NULL)
    {
        kmip_destroy(&ctx);
        TEST_FAILED(tracker, __func__, __LINE__);
    }
    if(*observed != expected)
    {
        kmip_print_integer(stderr, expected);
        kmip_print_integer(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)
movl $0x2a, -0x14(%rbp)
movq $0x0, -0x20(%rbp)
xorl %eax, %eax
movl %eax, %esi
movq %rsi, %rdi
callq 0x1fd80
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x4a0b
jmp 0x49d5
leaq 0x3a6d9(%rip), %rdi     # 0x3f0b5
leaq 0x3aa99(%rip), %rsi     # 0x3f47c
movl $0x521, %edx            # imm = 0x521
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 0x4bb2
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 0x1fd80
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x4a90
leaq -0x8b8(%rbp), %rdi
callq 0x1cab0
leaq 0x3a654(%rip), %rdi     # 0x3f0b5
leaq 0x3aa14(%rip), %rsi     # 0x3f47c
movl $0x52a, %edx            # imm = 0x52A
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 0x4bb2
leaq -0x8b8(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0x1fd80
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x4aed
leaq -0x8b8(%rbp), %rdi
callq 0x1cab0
leaq 0x3a5f7(%rip), %rdi     # 0x3f0b5
leaq 0x3a9b7(%rip), %rsi     # 0x3f47c
movl $0x531, %edx            # imm = 0x531
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 0x4bb2
movq -0x20(%rbp), %rax
movl (%rax), %eax
cmpl -0x14(%rbp), %eax
je 0x4b6c
movq 0x4f4f9(%rip), %rax     # 0x53ff8
movq (%rax), %rdi
movl -0x14(%rbp), %esi
callq 0x3b400
movq 0x4f4e7(%rip), %rax     # 0x53ff8
movq (%rax), %rdi
movq -0x20(%rbp), %rax
movl (%rax), %esi
callq 0x3b400
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq *%rax
leaq -0x8b8(%rbp), %rdi
callq 0x1cab0
leaq 0x3a575(%rip), %rdi     # 0x3f0b5
leaq 0x3a935(%rip), %rsi     # 0x3f47c
movl $0x539, %edx            # imm = 0x539
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 0x4bb2
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq *%rax
leaq -0x8b8(%rbp), %rdi
callq 0x1cab0
leaq 0x3a4be(%rip), %rdi     # 0x3f04b
leaq 0x3a8e8(%rip), %rsi     # 0x3f47c
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
nop