// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_get_request_payload
int
kmip_decode_get_request_payload(KMIP *ctx, GetRequestPayload *value)
{
    CHECK_BUFFER_FULL(ctx, 8);
    
    int result = 0;
    int32 tag_type = 0;
    uint32 length = 0;
    
    kmip_decode_int32_be(ctx, &tag_type);
    CHECK_TAG_TYPE(ctx, tag_type, KMIP_TAG_REQUEST_PAYLOAD, KMIP_TYPE_STRUCTURE);
    
    kmip_decode_length(ctx, &length);
    CHECK_BUFFER_FULL(ctx, length);

    if(kmip_is_tag_next(ctx, KMIP_TAG_UNIQUE_IDENTIFIER))
    {
        value->unique_identifier = ctx->calloc_func(ctx->state, 1, sizeof(TextString));
        CHECK_NEW_MEMORY(ctx, value->unique_identifier, sizeof(TextString), "UniqueIdentifier text string");
        result = kmip_decode_text_string(ctx, KMIP_TAG_UNIQUE_IDENTIFIER, value->unique_identifier);
        CHECK_RESULT(ctx, result);
    }
    
    if(kmip_is_tag_next(ctx, KMIP_TAG_KEY_FORMAT_TYPE))
    {
        result = kmip_decode_enum(ctx, KMIP_TAG_KEY_FORMAT_TYPE, &value->key_format_type);
        CHECK_RESULT(ctx, result);
        CHECK_ENUM(ctx, KMIP_TAG_KEY_FORMAT_TYPE, value->key_format_type);
    }
    
    if(ctx->version >= KMIP_1_4)
    {
        if(kmip_is_tag_next(ctx, KMIP_TAG_KEY_WRAP_TYPE))
        {
            result = kmip_decode_enum(ctx, KMIP_TAG_KEY_WRAP_TYPE, &value->key_wrap_type);
            CHECK_RESULT(ctx, result);
            CHECK_ENUM(ctx, KMIP_TAG_KEY_WRAP_TYPE, value->key_wrap_type);
        }
    }
    
    if(kmip_is_tag_next(ctx, KMIP_TAG_KEY_COMPRESSION_TYPE))
    {
        result = kmip_decode_enum(ctx, KMIP_TAG_KEY_COMPRESSION_TYPE, &value->key_compression_type);
        CHECK_RESULT(ctx, result);
        CHECK_ENUM(ctx, KMIP_TAG_KEY_COMPRESSION_TYPE, value->key_compression_type);
    }
    
    if(kmip_is_tag_next(ctx, KMIP_TAG_KEY_WRAPPING_SPECIFICATION))
    {
        value->key_wrapping_spec = ctx->calloc_func(ctx->state, 1, sizeof(KeyWrappingSpecification));
        CHECK_NEW_MEMORY(ctx, value->key_wrapping_spec, sizeof(KeyWrappingSpecification), "KeyWrappingSpecification structure");
        result = kmip_decode_key_wrapping_specification(ctx, value->key_wrapping_spec);
        CHECK_RESULT(ctx, result);
    }
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq -0x10(%rbp), %rdx
movq (%rdx), %rdx
subq %rdx, %rcx
subq %rcx, %rax
cmpq $0x8, %rax
jae 0x1e074
movq -0x10(%rbp), %rdi
leaq 0x7af8(%rip), %rsi      # 0x25b56
movl $0x27c6, %edx           # imm = 0x27C6
callq 0x6f20
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x1e50f
jmp 0x1e076
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x6b10
movl -0x20(%rbp), %eax
sarl $0x8, %eax
cmpl $0x420079, %eax         # imm = 0x420079
je 0x1e0c6
movq -0x10(%rbp), %rdi
leaq 0x7aa6(%rip), %rsi      # 0x25b56
movl $0x27cd, %edx           # imm = 0x27CD
callq 0x6f20
movl $0xfffffffc, -0x4(%rbp) # imm = 0xFFFFFFFC
jmp 0x1e50f
movl -0x20(%rbp), %eax
andl $0xff, %eax
cmpl $0x1, %eax
je 0x1e0f4
movq -0x10(%rbp), %rdi
leaq 0x7a78(%rip), %rsi      # 0x25b56
movl $0x27cd, %edx           # imm = 0x27CD
callq 0x6f20
movl $0xfffffffb, -0x4(%rbp) # imm = 0xFFFFFFFB
jmp 0x1e50f
jmp 0x1e0f6
jmp 0x1e0f8
movq -0x10(%rbp), %rdi
leaq -0x24(%rbp), %rsi
callq 0x6520
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq -0x10(%rbp), %rdx
movq (%rdx), %rdx
subq %rdx, %rcx
subq %rcx, %rax
movl -0x24(%rbp), %ecx
cmpq %rcx, %rax
jae 0x1e14b
movq -0x10(%rbp), %rdi
leaq 0x7a21(%rip), %rsi      # 0x25b56
movl $0x27d0, %edx           # imm = 0x27D0
callq 0x6f20
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x1e50f
jmp 0x1e14d
movq -0x10(%rbp), %rdi
movl $0x420094, %esi         # imm = 0x420094
callq 0x6300
cmpl $0x0, %eax
je 0x1e214
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x1e1d0
movq -0x10(%rbp), %rdi
movl $0x10, %esi
leaq 0x72d3(%rip), %rdx      # 0x2547d
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x799c(%rip), %rsi      # 0x25b56
movl $0x27d5, %edx           # imm = 0x27D5
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x1e50f
jmp 0x1e1d2
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rdx
movl $0x420094, %esi         # imm = 0x420094
callq 0x65b0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1e210
movq -0x10(%rbp), %rdi
leaq 0x795b(%rip), %rsi      # 0x25b56
movl $0x27d7, %edx           # imm = 0x27D7
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e50f
jmp 0x1e212
jmp 0x1e214
movq -0x10(%rbp), %rdi
movl $0x420042, %esi         # imm = 0x420042
callq 0x6300
cmpl $0x0, %eax
je 0x1e2cb
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x8, %rdx
movl $0x420042, %esi         # imm = 0x420042
callq 0x6c00
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1e26a
movq -0x10(%rbp), %rdi
leaq 0x7901(%rip), %rsi      # 0x25b56
movl $0x27dd, %edx           # imm = 0x27DD
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e50f
jmp 0x1e26c
jmp 0x1e26e
movq -0x10(%rbp), %rax
movl 0x18(%rax), %edi
movq -0x18(%rbp), %rax
movl 0x8(%rax), %edx
movl $0x420042, %esi         # imm = 0x420042
callq 0x63a0
movl %eax, -0x28(%rbp)
cmpl $0x0, -0x28(%rbp)
je 0x1e2c7
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0x8(%rax), %edx
movl -0x28(%rbp), %ecx
movl $0x420042, %esi         # imm = 0x420042
callq 0x6140
movq -0x10(%rbp), %rdi
leaq 0x78a4(%rip), %rsi      # 0x25b56
movl $0x27de, %edx           # imm = 0x27DE
callq 0x6f20
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e50f
jmp 0x1e2c9
jmp 0x1e2cb
movq -0x10(%rbp), %rax
cmpl $0x4, 0x18(%rax)
jb 0x1e392
movq -0x10(%rbp), %rdi
movl $0x4200f8, %esi         # imm = 0x4200F8
callq 0x6300
cmpl $0x0, %eax
je 0x1e390
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x18, %rdx
movl $0x4200f8, %esi         # imm = 0x4200F8
callq 0x6c00
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1e32f
movq -0x10(%rbp), %rdi
leaq 0x783c(%rip), %rsi      # 0x25b56
movl $0x27e6, %edx           # imm = 0x27E6
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e50f
jmp 0x1e331
jmp 0x1e333
movq -0x10(%rbp), %rax
movl 0x18(%rax), %edi
movq -0x18(%rbp), %rax
movl 0x18(%rax), %edx
movl $0x4200f8, %esi         # imm = 0x4200F8
callq 0x63a0
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
je 0x1e38c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0x18(%rax), %edx
movl -0x2c(%rbp), %ecx
movl $0x4200f8, %esi         # imm = 0x4200F8
callq 0x6140
movq -0x10(%rbp), %rdi
leaq 0x77df(%rip), %rsi      # 0x25b56
movl $0x27e7, %edx           # imm = 0x27E7
callq 0x6f20
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e50f
jmp 0x1e38e
jmp 0x1e390
jmp 0x1e392
movq -0x10(%rbp), %rdi
movl $0x420041, %esi         # imm = 0x420041
callq 0x6300
cmpl $0x0, %eax
je 0x1e449
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0xc, %rdx
movl $0x420041, %esi         # imm = 0x420041
callq 0x6c00
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1e3e8
movq -0x10(%rbp), %rdi
leaq 0x7783(%rip), %rsi      # 0x25b56
movl $0x27ee, %edx           # imm = 0x27EE
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e50f
jmp 0x1e3ea
jmp 0x1e3ec
movq -0x10(%rbp), %rax
movl 0x18(%rax), %edi
movq -0x18(%rbp), %rax
movl 0xc(%rax), %edx
movl $0x420041, %esi         # imm = 0x420041
callq 0x63a0
movl %eax, -0x30(%rbp)
cmpl $0x0, -0x30(%rbp)
je 0x1e445
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0xc(%rax), %edx
movl -0x30(%rbp), %ecx
movl $0x420041, %esi         # imm = 0x420041
callq 0x6140
movq -0x10(%rbp), %rdi
leaq 0x7726(%rip), %rsi      # 0x25b56
movl $0x27ef, %edx           # imm = 0x27EF
callq 0x6f20
movl -0x30(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e50f
jmp 0x1e447
jmp 0x1e449
movq -0x10(%rbp), %rdi
movl $0x420047, %esi         # imm = 0x420047
callq 0x6300
cmpl $0x0, %eax
je 0x1e508
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x30, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x1e4cb
movq -0x10(%rbp), %rdi
movl $0x30, %esi
leaq 0x76ce(%rip), %rdx      # 0x25b76
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x769e(%rip), %rsi      # 0x25b56
movl $0x27f5, %edx           # imm = 0x27F5
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x1e50f
jmp 0x1e4cd
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x6820
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1e504
movq -0x10(%rbp), %rdi
leaq 0x7664(%rip), %rsi      # 0x25b56
movl $0x27f7, %edx           # imm = 0x27F7
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e50f
jmp 0x1e506
jmp 0x1e508
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)