// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_query_response_payload
int
kmip_decode_query_response_payload(KMIP *ctx, QueryResponsePayload *value)
{
    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_int32_be(ctx, &length);
    CHECK_BUFFER_FULL(ctx, length);

    if(kmip_is_tag_next(ctx, KMIP_TAG_OPERATION))
    {
        value->operations = ctx->calloc_func(ctx->state, 1, sizeof(Operations));
        CHECK_NEW_MEMORY(ctx, value->operations, sizeof(Operations), "Operations");
        result = kmip_decode_operations(ctx, value->operations);
        CHECK_RESULT(ctx, result);
    }

    if(kmip_is_tag_next(ctx, KMIP_TAG_OBJECT_TYPE))
    {
        value->objects = ctx->calloc_func(ctx->state, 1, sizeof(ObjectTypes));
        CHECK_NEW_MEMORY(ctx, value->objects, sizeof(ObjectTypes), "Object_Types");
        result = kmip_decode_object_types(ctx, value->objects);
        CHECK_RESULT(ctx, result);
    }

    if(kmip_is_tag_next(ctx, KMIP_TAG_VENDOR_IDENTIFICATION))
    {
        value->vendor_identification = ctx->calloc_func(ctx->state, 1, sizeof(TextString));
        CHECK_NEW_MEMORY(ctx, value->vendor_identification, sizeof(TextString), "Vendor Identifier text string");
        result = kmip_decode_text_string(ctx, KMIP_TAG_VENDOR_IDENTIFICATION, (TextString*)value->vendor_identification);
        CHECK_RESULT(ctx, result);
    }

    if(kmip_is_tag_next(ctx, KMIP_TAG_SERVER_INFORMATION))
    {
        value->server_information = ctx->calloc_func(ctx->state, 1, sizeof(ServerInformation));
        CHECK_NEW_MEMORY(ctx, value->server_information, sizeof(ServerInformation), "Server Information");
        result = kmip_decode_server_information(ctx, value->server_information);
        CHECK_RESULT(ctx, result);
    }

    return(KMIP_OK);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
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 0x1fe70
movq -0x10(%rbp), %rdi
leaq 0x652f(%rip), %rsi      # 0x26389
movl $0x2c29, %edx           # imm = 0x2C29
callq 0x6f20
movl $0xfffffffc, -0x4(%rbp) # imm = 0xFFFFFFFC
jmp 0x2020e
movl -0x20(%rbp), %eax
andl $0xff, %eax
cmpl $0x1, %eax
je 0x1fe9e
movq -0x10(%rbp), %rdi
leaq 0x6501(%rip), %rsi      # 0x26389
movl $0x2c29, %edx           # imm = 0x2C29
callq 0x6f20
movl $0xfffffffb, -0x4(%rbp) # imm = 0xFFFFFFFB
jmp 0x2020e
jmp 0x1fea0
jmp 0x1fea2
movq -0x10(%rbp), %rdi
leaq -0x24(%rbp), %rsi
callq 0x6b10
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 0x1fef5
movq -0x10(%rbp), %rdi
leaq 0x64aa(%rip), %rsi      # 0x26389
movl $0x2c2c, %edx           # imm = 0x2C2C
callq 0x6f20
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x2020e
jmp 0x1fef7
movq -0x10(%rbp), %rdi
movl $0x42005c, %esi         # imm = 0x42005C
callq 0x6300
cmpl $0x0, %eax
je 0x1ffb9
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, (%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x1ff7a
movq -0x10(%rbp), %rdi
movl $0x8, %esi
leaq 0x6458(%rip), %rdx      # 0x263ac
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x6425(%rip), %rsi      # 0x26389
movl $0x2c31, %edx           # imm = 0x2C31
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x2020e
jmp 0x1ff7c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rsi
callq 0x6d10
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1ffb5
movq -0x10(%rbp), %rdi
leaq 0x63e9(%rip), %rsi      # 0x26389
movl $0x2c33, %edx           # imm = 0x2C33
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x2020e
jmp 0x1ffb7
jmp 0x1ffb9
movq -0x10(%rbp), %rdi
movl $0x420057, %esi         # imm = 0x420057
callq 0x6300
cmpl $0x0, %eax
je 0x2007e
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, 0x8(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x2003e
movq -0x10(%rbp), %rdi
movl $0x8, %esi
leaq 0x639f(%rip), %rdx      # 0x263b7
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x6361(%rip), %rsi      # 0x26389
movl $0x2c39, %edx           # imm = 0x2C39
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x2020e
jmp 0x20040
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x67d0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x2007a
movq -0x10(%rbp), %rdi
leaq 0x6324(%rip), %rsi      # 0x26389
movl $0x2c3b, %edx           # imm = 0x2C3B
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x2020e
jmp 0x2007c
jmp 0x2007e
movq -0x10(%rbp), %rdi
movl $0x42009d, %esi         # imm = 0x42009D
callq 0x6300
cmpl $0x0, %eax
je 0x20148
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, 0x10(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x20103
movq -0x10(%rbp), %rdi
movl $0x10, %esi
leaq 0x62e7(%rip), %rdx      # 0x263c4
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x629c(%rip), %rsi      # 0x26389
movl $0x2c41, %edx           # imm = 0x2C41
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x2020e
jmp 0x20105
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdx
movl $0x42009d, %esi         # imm = 0x42009D
callq 0x65b0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x20144
movq -0x10(%rbp), %rdi
leaq 0x625a(%rip), %rsi      # 0x26389
movl $0x2c43, %edx           # imm = 0x2C43
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x2020e
jmp 0x20146
jmp 0x20148
movq -0x10(%rbp), %rdi
movl $0x420088, %esi         # imm = 0x420088
callq 0x6300
cmpl $0x0, %eax
je 0x20207
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x48, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x201ca
movq -0x10(%rbp), %rdi
movl $0x48, %esi
leaq 0x623b(%rip), %rdx      # 0x263e2
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x61d2(%rip), %rsi      # 0x26389
movl $0x2c49, %edx           # imm = 0x2C49
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x2020e
jmp 0x201cc
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x6a60
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x20203
movq -0x10(%rbp), %rdi
leaq 0x6198(%rip), %rsi      # 0x26389
movl $0x2c4b, %edx           # imm = 0x2C4B
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x2020e
jmp 0x20205
jmp 0x20207
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)