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

    uint8 expected[152] = {
        0x42, 0x00, 0x78, 0x01, 0x00, 0x00, 0x00, 0x90, 
        0x42, 0x00, 0x77, 0x01, 0x00, 0x00, 0x00, 0x38, 
        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, 0x00, 0x00, 0x00, 0x00, 0x00, 
        0x42, 0x00, 0x0D, 0x02, 0x00, 0x00, 0x00, 0x04, 
        0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 
        0x42, 0x00, 0x0F, 0x01, 0x00, 0x00, 0x00, 0x48, 
        0x42, 0x00, 0x5C, 0x05, 0x00, 0x00, 0x00, 0x04, 
        0x00, 0x00, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x00, 
        0x42, 0x00, 0x79, 0x01, 0x00, 0x00, 0x00, 0x30, 
        0x42, 0x00, 0x94, 0x07, 0x00, 0x00, 0x00, 0x24, 
        0x34, 0x39, 0x61, 0x31, 0x63, 0x61, 0x38, 0x38, 
        0x2D, 0x36, 0x62, 0x65, 0x61, 0x2D, 0x34, 0x66, 
        0x62, 0x32, 0x2D, 0x62, 0x34, 0x35, 0x30, 0x2D, 
        0x37, 0x65, 0x35, 0x38, 0x38, 0x30, 0x32, 0x63, 
        0x33, 0x30, 0x33, 0x38, 0x00, 0x00, 0x00, 0x00
    };
    
    uint8 observed[152] = {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 = 0;
    
    struct request_header rh = {0};
    kmip_init_request_header(&rh);
    
    rh.protocol_version = &pv;
    rh.batch_count = 1;
    
    struct text_string uuid = {0};
    uuid.value = "49a1ca88-6bea-4fb2-b450-7e58802c3038";
    uuid.size = 36;
    
    struct get_request_payload grp = {0};
    grp.unique_identifier = &uuid;
    
    struct request_batch_item rbi = {0};
    kmip_init_request_batch_item(&rbi);
    rbi.operation = KMIP_OP_GET;
    rbi.request_payload = &grp;
    
    struct request_message rm = {0};
    rm.request_header = &rh;
    rm.batch_items = &rbi;
    rm.batch_count = 1;
    
    int result = kmip_encode_request_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 $0xaa0, %rsp            # imm = 0xAA0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
leaq -0xa0(%rbp), %rdi
leaq 0x33ce5(%rip), %rsi     # 0x45230
movl $0x98, %edx
callq 0x10c0
leaq -0x140(%rbp), %rdi
xorl %esi, %esi
movl $0x98, %edx
callq 0x1090
leaq -0x9d8(%rbp), %rdi
xorl %esi, %esi
movl $0x898, %edx            # imm = 0x898
callq 0x1090
leaq -0x140(%rbp), %rsi
leaq -0x9d8(%rbp), %rdi
movl $0x98, %edx
xorl %ecx, %ecx
callq 0x1c6e0
leaq -0x9e0(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x1090
movl $0x1, -0x9e0(%rbp)
movl $0x0, -0x9dc(%rbp)
leaq -0xa30(%rbp), %rdi
xorl %esi, %esi
movl $0x50, %edx
callq 0x1090
leaq -0xa30(%rbp), %rdi
callq 0x1d4c0
leaq -0x9e0(%rbp), %rax
movq %rax, -0xa30(%rbp)
movl $0x1, -0xa08(%rbp)
leaq -0xa40(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1090
leaq 0x2df42(%rip), %rax     # 0x3f54f
movq %rax, -0xa40(%rbp)
movq $0x24, -0xa38(%rbp)
leaq -0xa60(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x1090
leaq -0xa40(%rbp), %rax
movq %rax, -0xa60(%rbp)
leaq -0xa80(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x1090
leaq -0xa80(%rbp), %rdi
callq 0x1d5f0
movl $0xa, -0xa80(%rbp)
leaq -0xa60(%rbp), %rax
movq %rax, -0xa70(%rbp)
leaq -0xa98(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x1090
leaq -0xa30(%rbp), %rax
movq %rax, -0xa98(%rbp)
leaq -0xa80(%rbp), %rax
movq %rax, -0xa90(%rbp)
movq $0x1, -0xa88(%rbp)
leaq -0x9d8(%rbp), %rdi
leaq -0xa98(%rbp), %rsi
callq 0x2a7f0
movl %eax, -0xa9c(%rbp)
movq -0x8(%rbp), %rdi
leaq -0xa0(%rbp), %rdx
leaq -0x140(%rbp), %rcx
movl -0xa9c(%rbp), %r8d
leaq -0x9d8(%rbp), %rsi
leaq 0x2f094(%rip), %r9      # 0x40785
callq 0x11f0
movl %eax, -0xa9c(%rbp)
leaq -0x9d8(%rbp), %rdi
callq 0x1cab0
movl -0xa9c(%rbp), %eax
addq $0xaa0, %rsp            # imm = 0xAA0
popq %rbp
retq
nopw (%rax,%rax)