// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_get_response_payload
int
kmip_decode_get_response_payload(KMIP *ctx, GetResponsePayload *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_RESPONSE_PAYLOAD, KMIP_TYPE_STRUCTURE);
    
    kmip_decode_length(ctx, &length);
    CHECK_BUFFER_FULL(ctx, length);
    
    result = kmip_decode_enum(ctx, KMIP_TAG_OBJECT_TYPE, &value->object_type);
    CHECK_RESULT(ctx, result);
    CHECK_ENUM(ctx, KMIP_TAG_OBJECT_TYPE, value->object_type);
    
    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);
    
    switch(value->object_type)
    {
        case KMIP_OBJTYPE_SYMMETRIC_KEY:
        value->object = ctx->calloc_func(ctx->state, 1, sizeof(SymmetricKey));
        CHECK_NEW_MEMORY(ctx, value->object, sizeof(SymmetricKey), "SymmetricKey structure");
        result = kmip_decode_symmetric_key(ctx, (SymmetricKey*)value->object);
        CHECK_RESULT(ctx, result);
        break;
        
        case KMIP_OBJTYPE_PUBLIC_KEY:
        value->object = ctx->calloc_func(ctx->state, 1, sizeof(PublicKey));
        CHECK_NEW_MEMORY(ctx, value->object, sizeof(PublicKey), "PublicKey structure");
        result = kmip_decode_public_key(ctx, (PublicKey*)value->object);
        CHECK_RESULT(ctx, result);
        break;
        
        case KMIP_OBJTYPE_PRIVATE_KEY:
        value->object = ctx->calloc_func(ctx->state, 1, sizeof(PrivateKey));
        CHECK_NEW_MEMORY(ctx, value->object, sizeof(PrivateKey), "PrivateKey structure");
        result = kmip_decode_private_key(ctx, (PrivateKey*)value->object);
        CHECK_RESULT(ctx, result);
        break;
        
        default:
        kmip_push_error_frame(ctx, __func__, __LINE__);
        return(KMIP_NOT_IMPLEMENTED);
        break;
    };
    
    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 0x1e574
movq -0x10(%rbp), %rdi
leaq 0x763b(%rip), %rsi      # 0x25b99
movl $0x2800, %edx           # imm = 0x2800
callq 0x6f20
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x1e9f4
jmp 0x1e576
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 $0x42007c, %eax         # imm = 0x42007C
je 0x1e5c6
movq -0x10(%rbp), %rdi
leaq 0x75e9(%rip), %rsi      # 0x25b99
movl $0x2807, %edx           # imm = 0x2807
callq 0x6f20
movl $0xfffffffc, -0x4(%rbp) # imm = 0xFFFFFFFC
jmp 0x1e9f4
movl -0x20(%rbp), %eax
andl $0xff, %eax
cmpl $0x1, %eax
je 0x1e5f4
movq -0x10(%rbp), %rdi
leaq 0x75bb(%rip), %rsi      # 0x25b99
movl $0x2807, %edx           # imm = 0x2807
callq 0x6f20
movl $0xfffffffb, -0x4(%rbp) # imm = 0xFFFFFFFB
jmp 0x1e9f4
jmp 0x1e5f6
jmp 0x1e5f8
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 0x1e64b
movq -0x10(%rbp), %rdi
leaq 0x7564(%rip), %rsi      # 0x25b99
movl $0x280a, %edx           # imm = 0x280A
callq 0x6f20
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x1e9f4
jmp 0x1e64d
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
movl $0x420057, %esi         # imm = 0x420057
callq 0x6c00
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1e688
movq -0x10(%rbp), %rdi
leaq 0x7526(%rip), %rsi      # 0x25b99
movl $0x280d, %edx           # imm = 0x280D
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e9f4
jmp 0x1e68a
jmp 0x1e68c
movq -0x10(%rbp), %rax
movl 0x18(%rax), %edi
movq -0x18(%rbp), %rax
movl (%rax), %edx
movl $0x420057, %esi         # imm = 0x420057
callq 0x63a0
movl %eax, -0x28(%rbp)
cmpl $0x0, -0x28(%rbp)
je 0x1e6e3
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movl (%rax), %edx
movl -0x28(%rbp), %ecx
movl $0x420057, %esi         # imm = 0x420057
callq 0x6140
movq -0x10(%rbp), %rdi
leaq 0x74cb(%rip), %rsi      # 0x25b99
movl $0x280e, %edx           # imm = 0x280E
callq 0x6f20
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e9f4
jmp 0x1e6e5
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, 0x8(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x1e753
movq -0x10(%rbp), %rdi
movl $0x10, %esi
leaq 0x6d50(%rip), %rdx      # 0x2547d
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x745c(%rip), %rsi      # 0x25b99
movl $0x2811, %edx           # imm = 0x2811
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x1e9f4
jmp 0x1e755
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdx
movl $0x420094, %esi         # imm = 0x420094
callq 0x65b0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1e794
movq -0x10(%rbp), %rdi
leaq 0x741a(%rip), %rsi      # 0x25b99
movl $0x2814, %edx           # imm = 0x2814
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e9f4
jmp 0x1e796
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
subl $0x2, %eax
je 0x1e7c5
jmp 0x1e7a6
movl -0x2c(%rbp), %eax
subl $0x3, %eax
je 0x1e876
jmp 0x1e7b4
movl -0x2c(%rbp), %eax
subl $0x4, %eax
je 0x1e927
jmp 0x1e9cf
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x8, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x1e833
movq -0x10(%rbp), %rdi
movl $0x8, %esi
leaq 0x6f23(%rip), %rdx      # 0x25730
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x737c(%rip), %rsi      # 0x25b99
movl $0x281a, %edx           # imm = 0x281A
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x1e9f4
jmp 0x1e835
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x6970
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1e86f
movq -0x10(%rbp), %rdi
leaq 0x733f(%rip), %rsi      # 0x25b99
movl $0x281c, %edx           # imm = 0x281C
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e9f4
jmp 0x1e871
jmp 0x1e9ed
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x8, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x1e8e4
movq -0x10(%rbp), %rdi
movl $0x8, %esi
leaq 0x72fc(%rip), %rdx      # 0x25bba
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x72cb(%rip), %rsi      # 0x25b99
movl $0x2821, %edx           # imm = 0x2821
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x1e9f4
jmp 0x1e8e6
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x6270
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1e920
movq -0x10(%rbp), %rdi
leaq 0x728e(%rip), %rsi      # 0x25b99
movl $0x2823, %edx           # imm = 0x2823
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e9f4
jmp 0x1e922
jmp 0x1e9ed
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x8, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x1e992
movq -0x10(%rbp), %rdi
movl $0x8, %esi
leaq 0x725f(%rip), %rdx      # 0x25bce
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x721a(%rip), %rsi      # 0x25b99
movl $0x2828, %edx           # imm = 0x2828
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x1e9f4
jmp 0x1e994
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x6a20
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1e9cb
movq -0x10(%rbp), %rdi
leaq 0x71e0(%rip), %rsi      # 0x25b99
movl $0x282a, %edx           # imm = 0x282A
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e9f4
jmp 0x1e9cd
jmp 0x1e9ed
movq -0x10(%rbp), %rdi
leaq 0x71bf(%rip), %rsi      # 0x25b99
movl $0x282e, %edx           # imm = 0x282E
callq 0x6f20
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x1e9f4
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)