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

    /* KMIP 1.1 Test Suite - Test 3.1.1.0b */
    uint8 expected[200] = {
        0x42, 0x00, 0x7B, 0x01, 0x00, 0x00, 0x00, 0xC0, 
        0x42, 0x00, 0x7A, 0x01, 0x00, 0x00, 0x00, 0x48, 
        0x42, 0x00, 0x69, 0x01, 0x00, 0x00, 0x00, 0x20, 
        0x42, 0x00, 0x6A, 0x02, 0x00, 0x00, 0x00, 0x04, 
        0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 
        0x42, 0x00, 0x6B, 0x02, 0x00, 0x00, 0x00, 0x04, 
        0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 
        0x42, 0x00, 0x92, 0x09, 0x00, 0x00, 0x00, 0x08, 
        0x00, 0x00, 0x00, 0x00, 0x4F, 0x9A, 0x54, 0xE5, 
        0x42, 0x00, 0x0D, 0x02, 0x00, 0x00, 0x00, 0x04, 
        0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 
        0x42, 0x00, 0x0F, 0x01, 0x00, 0x00, 0x00, 0x68, 
        0x42, 0x00, 0x5C, 0x05, 0x00, 0x00, 0x00, 0x04, 
        0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 
        0x42, 0x00, 0x7F, 0x05, 0x00, 0x00, 0x00, 0x04, 
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x7C, 0x01, 0x00, 0x00, 0x00, 0x40, 
        0x42, 0x00, 0x57, 0x05, 0x00, 0x00, 0x00, 0x04, 
        0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 
        0x42, 0x00, 0x94, 0x07, 0x00, 0x00, 0x00, 0x24, 
        0x66, 0x62, 0x34, 0x62, 0x35, 0x62, 0x39, 0x63, 
        0x2D, 0x36, 0x31, 0x38, 0x38, 0x2D, 0x34, 0x63, 
        0x36, 0x33, 0x2D, 0x38, 0x31, 0x34, 0x32, 0x2D, 
        0x66, 0x65, 0x39, 0x63, 0x33, 0x32, 0x38, 0x31, 
        0x32, 0x39, 0x66, 0x63, 0x00, 0x00, 0x00, 0x00
    };
    
    uint8 observed[200] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_0);
    
    struct protocol_version pv = {0};
    pv.major = 1;
    pv.minor = 1;
    
    struct response_header rh = {0};
    kmip_init_response_header(&rh);
    
    rh.protocol_version = &pv;
    rh.time_stamp = 1335514341;
    rh.batch_count = 1;
    
    struct text_string uuid = {0};
    uuid.value = "fb4b5b9c-6188-4c63-8142-fe9c328129fc";
    uuid.size = 36;
    
    struct create_response_payload crp = {0};
    crp.object_type = KMIP_OBJTYPE_SYMMETRIC_KEY;
    crp.unique_identifier = &uuid;
    
    struct response_batch_item rbi = {0};
    rbi.operation = KMIP_OP_CREATE;
    rbi.result_status = KMIP_STATUS_SUCCESS;
    rbi.response_payload = &crp;
    
    struct response_message rm = {0};
    rm.response_header = &rh;
    rm.batch_items = &rbi;
    rm.batch_count = 1;
    
    int result = kmip_encode_response_message(&ctx, &rm);
    result = report_encoding_test_result(
        tracker,
        &ctx,
        expected,
        observed,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb00, %rsp            # imm = 0xB00
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0xd0(%rbp), %rdi
leaq 0x2ceb5(%rip), %rsi     # 0x46d00
movl $0xc8, %edx
callq 0x10c0
leaq -0x1a0(%rbp), %rdi
xorl %esi, %esi
movl $0xc8, %edx
callq 0x1090
leaq -0xa38(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x1a0(%rbp), %rsi
leaq -0xa38(%rbp), %rdi
movl $0xc8, %edx
xorl %ecx, %ecx
callq 0x1c6e0
leaq -0xa40(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x1090
movl $0x1, -0xa40(%rbp)
movl $0x1, -0xa3c(%rbp)
leaq -0xa88(%rbp), %rdi
xorl %esi, %esi
movl $0x48, %edx
callq 0x1090
leaq -0xa88(%rbp), %rdi
callq 0x1d570
leaq -0xa40(%rbp), %rax
movq %rax, -0xa88(%rbp)
movq $0x4f9a54e5, -0xa80(%rbp) # imm = 0x4F9A54E5
movl $0x1, -0xa78(%rbp)
leaq -0xa98(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq 0x262f3(%rip), %rax     # 0x4020b
movq %rax, -0xa98(%rbp)
movq $0x24, -0xa90(%rbp)
leaq -0xab0(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x1090
movl $0x2, -0xab0(%rbp)
leaq -0xa98(%rbp), %rax
movq %rax, -0xaa8(%rbp)
leaq -0xae0(%rbp), %rdi
xorl %esi, %esi
movl $0x30, %edx
callq 0x1090
movl $0x1, -0xae0(%rbp)
movl $0x0, -0xad0(%rbp)
leaq -0xab0(%rbp), %rax
movq %rax, -0xab8(%rbp)
leaq -0xaf8(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x1090
leaq -0xa88(%rbp), %rax
movq %rax, -0xaf8(%rbp)
leaq -0xae0(%rbp), %rax
movq %rax, -0xaf0(%rbp)
movq $0x1, -0xae8(%rbp)
leaq -0xa38(%rbp), %rdi
leaq -0xaf8(%rbp), %rsi
callq 0x2a980
movl %eax, -0xafc(%rbp)
movq -0x8(%rbp), %rdi
leaq -0xd0(%rbp), %rdx
leaq -0x1a0(%rbp), %rcx
movl -0xafc(%rbp), %r8d
leaq -0xa38(%rbp), %rsi
leaq 0x273fd(%rip), %r9      # 0x41401
callq 0x11f0
movl %eax, -0xafc(%rbp)
leaq -0xa38(%rbp), %rdi
callq 0x1cab0
movl -0xafc(%rbp), %eax
addq $0xb00, %rsp            # imm = 0xB00
popq %rbp
retq
nopw (%rax,%rax)