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

    enum kmip_version v = KMIP_2_0;
    enum tag t = KMIP_TAG_PROTECTION_STORAGE_MASK;

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_SOFTWARE) != KMIP_OK)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_HARDWARE) != KMIP_OK)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_ON_PROCESSOR) != KMIP_OK)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_ON_SYSTEM) != KMIP_OK)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_OFF_SYSTEM) != KMIP_OK)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_HYPERVISOR) != KMIP_OK)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_OPERATING_SYSTEM) != KMIP_OK)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_CONTAINER) != KMIP_OK)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_ON_PREMISES) != KMIP_OK)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_OFF_PREMISES) != KMIP_OK)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_SELF_MANAGED) != KMIP_OK)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_OUTSOURCED) != KMIP_OK)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_VALIDATED) != KMIP_OK)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_SAME_JURISDICTION) != KMIP_OK)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    v = KMIP_1_4;

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_SOFTWARE) != KMIP_INVALID_FOR_VERSION)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_HARDWARE) != KMIP_INVALID_FOR_VERSION)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_ON_PROCESSOR) != KMIP_INVALID_FOR_VERSION)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_ON_SYSTEM) != KMIP_INVALID_FOR_VERSION)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_OFF_SYSTEM) != KMIP_INVALID_FOR_VERSION)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_HYPERVISOR) != KMIP_INVALID_FOR_VERSION)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_OPERATING_SYSTEM) != KMIP_INVALID_FOR_VERSION)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_CONTAINER) != KMIP_INVALID_FOR_VERSION)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_ON_PREMISES) != KMIP_INVALID_FOR_VERSION)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_OFF_PREMISES) != KMIP_INVALID_FOR_VERSION)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_SELF_MANAGED) != KMIP_INVALID_FOR_VERSION)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_OUTSOURCED) != KMIP_INVALID_FOR_VERSION)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_VALIDATED) != KMIP_INVALID_FOR_VERSION)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, KMIP_PROTECT_SAME_JURISDICTION) != KMIP_INVALID_FOR_VERSION)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_check_enum_value(v, t, -1) != KMIP_ENUM_MISMATCH)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    TEST_PASSED(tracker, __func__);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
incw (%rdi)
pushq $0x5
popq %rdi
pushq $0x1
popq %rbp
movl $0x42015e, %esi         # imm = 0x42015E
movl %ebp, %edx
callq 0x123f6
testl %eax, %eax
je 0x2a1a
leaq 0x23819(%rip), %rdi     # 0x26222
leaq 0x23a98(%rip), %rsi     # 0x264a8
movl $0x3f7, %edx            # imm = 0x3F7
jmp 0x2f59
pushq $0x5
popq %rdi
pushq $0x2
popq %rdx
movl $0x42015e, %esi         # imm = 0x42015E
callq 0x123f6
testl %eax, %eax
je 0x2a46
leaq 0x237ed(%rip), %rdi     # 0x26222
leaq 0x23a6c(%rip), %rsi     # 0x264a8
movl $0x3fc, %edx            # imm = 0x3FC
jmp 0x2f59
pushq $0x5
popq %rdi
pushq $0x4
popq %rdx
movl $0x42015e, %esi         # imm = 0x42015E
callq 0x123f6
testl %eax, %eax
je 0x2a72
leaq 0x237c1(%rip), %rdi     # 0x26222
leaq 0x23a40(%rip), %rsi     # 0x264a8
movl $0x401, %edx            # imm = 0x401
jmp 0x2f59
pushq $0x5
popq %rdi
pushq $0x8
popq %rdx
movl $0x42015e, %esi         # imm = 0x42015E
callq 0x123f6
testl %eax, %eax
je 0x2a9e
leaq 0x23795(%rip), %rdi     # 0x26222
leaq 0x23a14(%rip), %rsi     # 0x264a8
movl $0x406, %edx            # imm = 0x406
jmp 0x2f59
pushq $0x5
popq %rdi
pushq $0x10
popq %rdx
movl $0x42015e, %esi         # imm = 0x42015E
callq 0x123f6
testl %eax, %eax
je 0x2aca
leaq 0x23769(%rip), %rdi     # 0x26222
leaq 0x239e8(%rip), %rsi     # 0x264a8
movl $0x40b, %edx            # imm = 0x40B
jmp 0x2f59
pushq $0x5
popq %rdi
pushq $0x20
popq %rdx
movl $0x42015e, %esi         # imm = 0x42015E
callq 0x123f6
testl %eax, %eax
je 0x2af6
leaq 0x2373d(%rip), %rdi     # 0x26222
leaq 0x239bc(%rip), %rsi     # 0x264a8
movl $0x410, %edx            # imm = 0x410
jmp 0x2f59
pushq $0x5
popq %rdi
pushq $0x40
popq %rdx
movl $0x42015e, %esi         # imm = 0x42015E
callq 0x123f6
testl %eax, %eax
je 0x2b22
leaq 0x23711(%rip), %rdi     # 0x26222
leaq 0x23990(%rip), %rsi     # 0x264a8
movl $0x415, %edx            # imm = 0x415
jmp 0x2f59
pushq $0x5
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl $0x80, %edx
callq 0x123f6
testl %eax, %eax
je 0x2b50
leaq 0x236e3(%rip), %rdi     # 0x26222
leaq 0x23962(%rip), %rsi     # 0x264a8
movl $0x41a, %edx            # imm = 0x41A
jmp 0x2f59
pushq $0x5
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl $0x100, %edx            # imm = 0x100
callq 0x123f6
testl %eax, %eax
je 0x2b7e
leaq 0x236b5(%rip), %rdi     # 0x26222
leaq 0x23934(%rip), %rsi     # 0x264a8
movl $0x41f, %edx            # imm = 0x41F
jmp 0x2f59
pushq $0x5
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl $0x200, %edx            # imm = 0x200
callq 0x123f6
testl %eax, %eax
je 0x2bac
leaq 0x23687(%rip), %rdi     # 0x26222
leaq 0x23906(%rip), %rsi     # 0x264a8
movl $0x424, %edx            # imm = 0x424
jmp 0x2f59
pushq $0x5
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl $0x400, %edx            # imm = 0x400
callq 0x123f6
testl %eax, %eax
je 0x2bda
leaq 0x23659(%rip), %rdi     # 0x26222
leaq 0x238d8(%rip), %rsi     # 0x264a8
movl $0x429, %edx            # imm = 0x429
jmp 0x2f59
pushq $0x5
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl $0x800, %edx            # imm = 0x800
callq 0x123f6
testl %eax, %eax
je 0x2c08
leaq 0x2362b(%rip), %rdi     # 0x26222
leaq 0x238aa(%rip), %rsi     # 0x264a8
movl $0x42e, %edx            # imm = 0x42E
jmp 0x2f59
pushq $0x5
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl $0x1000, %edx           # imm = 0x1000
callq 0x123f6
testl %eax, %eax
je 0x2c36
leaq 0x235fd(%rip), %rdi     # 0x26222
leaq 0x2387c(%rip), %rsi     # 0x264a8
movl $0x433, %edx            # imm = 0x433
jmp 0x2f59
pushq $0x5
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl $0x2000, %edx           # imm = 0x2000
callq 0x123f6
testl %eax, %eax
je 0x2c64
leaq 0x235cf(%rip), %rdi     # 0x26222
leaq 0x2384e(%rip), %rsi     # 0x264a8
movl $0x438, %edx            # imm = 0x438
jmp 0x2f59
pushq $0x4
popq %rdi
pushq $0x1
popq %rbp
movl $0x42015e, %esi         # imm = 0x42015E
movl %ebp, %edx
callq 0x123f6
cmpl $-0xb, %eax
jne 0x2e08
pushq $0x4
popq %rdi
pushq $0x2
popq %rdx
movl $0x42015e, %esi         # imm = 0x42015E
callq 0x123f6
cmpl $-0xb, %eax
jne 0x2e20
pushq $0x4
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl %edi, %edx
callq 0x123f6
cmpl $-0xb, %eax
jne 0x2e38
pushq $0x4
popq %rdi
pushq $0x8
popq %rdx
movl $0x42015e, %esi         # imm = 0x42015E
callq 0x123f6
cmpl $-0xb, %eax
jne 0x2e50
pushq $0x4
popq %rdi
pushq $0x10
popq %rdx
movl $0x42015e, %esi         # imm = 0x42015E
callq 0x123f6
cmpl $-0xb, %eax
jne 0x2e68
pushq $0x4
popq %rdi
pushq $0x20
popq %rdx
movl $0x42015e, %esi         # imm = 0x42015E
callq 0x123f6
cmpl $-0xb, %eax
jne 0x2e80
pushq $0x4
popq %rdi
pushq $0x40
popq %rdx
movl $0x42015e, %esi         # imm = 0x42015E
callq 0x123f6
cmpl $-0xb, %eax
jne 0x2e98
pushq $0x4
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl $0x80, %edx
callq 0x123f6
cmpl $-0xb, %eax
jne 0x2eb0
pushq $0x4
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl $0x100, %edx            # imm = 0x100
callq 0x123f6
cmpl $-0xb, %eax
jne 0x2ec8
pushq $0x4
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl $0x200, %edx            # imm = 0x200
callq 0x123f6
cmpl $-0xb, %eax
jne 0x2edd
pushq $0x4
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl $0x400, %edx            # imm = 0x400
callq 0x123f6
cmpl $-0xb, %eax
jne 0x2ef2
pushq $0x4
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl $0x800, %edx            # imm = 0x800
callq 0x123f6
cmpl $-0xb, %eax
jne 0x2f07
pushq $0x4
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl $0x1000, %edx           # imm = 0x1000
callq 0x123f6
cmpl $-0xb, %eax
jne 0x2f1c
pushq $0x4
popq %rdi
movl $0x42015e, %esi         # imm = 0x42015E
movl $0x2000, %edx           # imm = 0x2000
callq 0x123f6
cmpl $-0xb, %eax
jne 0x2f31
pushq $0x4
popq %rdi
pushq $-0x1
popq %rdx
movl $0x42015e, %esi         # imm = 0x42015E
callq 0x123f6
cmpl $-0x9, %eax
jne 0x2f46
leaq 0x23426(%rip), %rdi     # 0x26217
leaq 0x236b0(%rip), %rsi     # 0x264a8
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x1090
pushq $0x4
jmp 0x2f62
leaq 0x23413(%rip), %rdi     # 0x26222
leaq 0x23692(%rip), %rsi     # 0x264a8
movl $0x43f, %edx            # imm = 0x43F
jmp 0x2f59
leaq 0x233fb(%rip), %rdi     # 0x26222
leaq 0x2367a(%rip), %rsi     # 0x264a8
movl $0x444, %edx            # imm = 0x444
jmp 0x2f59
leaq 0x233e3(%rip), %rdi     # 0x26222
leaq 0x23662(%rip), %rsi     # 0x264a8
movl $0x449, %edx            # imm = 0x449
jmp 0x2f59
leaq 0x233cb(%rip), %rdi     # 0x26222
leaq 0x2364a(%rip), %rsi     # 0x264a8
movl $0x44e, %edx            # imm = 0x44E
jmp 0x2f59
leaq 0x233b3(%rip), %rdi     # 0x26222
leaq 0x23632(%rip), %rsi     # 0x264a8
movl $0x453, %edx            # imm = 0x453
jmp 0x2f59
leaq 0x2339b(%rip), %rdi     # 0x26222
leaq 0x2361a(%rip), %rsi     # 0x264a8
movl $0x458, %edx            # imm = 0x458
jmp 0x2f59
leaq 0x23383(%rip), %rdi     # 0x26222
leaq 0x23602(%rip), %rsi     # 0x264a8
movl $0x45d, %edx            # imm = 0x45D
jmp 0x2f59
leaq 0x2336b(%rip), %rdi     # 0x26222
leaq 0x235ea(%rip), %rsi     # 0x264a8
movl $0x462, %edx            # imm = 0x462
jmp 0x2f59
leaq 0x23353(%rip), %rdi     # 0x26222
leaq 0x235d2(%rip), %rsi     # 0x264a8
movl $0x467, %edx            # imm = 0x467
jmp 0x2f59
leaq 0x2333e(%rip), %rdi     # 0x26222
leaq 0x235bd(%rip), %rsi     # 0x264a8
movl $0x46c, %edx            # imm = 0x46C
jmp 0x2f59
leaq 0x23329(%rip), %rdi     # 0x26222
leaq 0x235a8(%rip), %rsi     # 0x264a8
movl $0x471, %edx            # imm = 0x471
jmp 0x2f59
leaq 0x23314(%rip), %rdi     # 0x26222
leaq 0x23593(%rip), %rsi     # 0x264a8
movl $0x476, %edx            # imm = 0x476
jmp 0x2f59
leaq 0x232ff(%rip), %rdi     # 0x26222
leaq 0x2357e(%rip), %rsi     # 0x264a8
movl $0x47b, %edx            # imm = 0x47B
jmp 0x2f59
leaq 0x232ea(%rip), %rdi     # 0x26222
leaq 0x23569(%rip), %rsi     # 0x264a8
movl $0x480, %edx            # imm = 0x480
jmp 0x2f59
leaq 0x232d5(%rip), %rdi     # 0x26222
leaq 0x23554(%rip), %rsi     # 0x264a8
movl $0x485, %edx            # imm = 0x485
xorl %eax, %eax
callq 0x1090
pushq $0x2
popq %rax
incw (%rbx,%rax)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq