// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %eax, %eax
leaq 0x4(%rsp), %r15
movl %eax, (%r15)
movl %eax, (%rsp)
movq %r15, %rsi
callq 0x6a10
movl (%r15), %eax
movl %eax, %ecx
andl $0xffffff00, %ecx       # imm = 0xFFFFFF00
cmpl $0x42007c00, %ecx       # imm = 0x42007C00
jne 0x19482
cmpb $0x1, %al
jne 0x194a0
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a10
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
movl (%r15), %edx
cmpq %rdx, %rcx
jae 0x194be
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x19545
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x19464
jmp 0x1956c
leaq 0x808d(%rip), %rsi      # 0x21516
movq %rbx, %rdi
movl $0x2c29, %edx           # imm = 0x2C29
callq 0x6de0
movl $0xfffffffc, %ebp       # imm = 0xFFFFFFFC
jmp 0x19571
leaq 0x806f(%rip), %rsi      # 0x21516
movq %rbx, %rdi
movl $0x2c29, %edx           # imm = 0x2C29
callq 0x6de0
movl $0xfffffffb, %ebp       # imm = 0xFFFFFFFB
jmp 0x19571
xorl %ebp, %ebp
cmpq $0x3, %rcx
jb 0x19571
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %ecx
orl %edx, %ecx
cmpl $0x42005c, %ecx         # imm = 0x42005C
jne 0x195cd
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x8, %edx
callq *0x868(%rbx)
movq %rax, (%r14)
testq %rax, %rax
je 0x1957e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6be0
testl %eax, %eax
je 0x195b9
movl %eax, %r15d
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x19660
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x19527
jmp 0x1973c
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x64fe(%rip), %rsi      # 0x1fa54
movl $0x63, %edx
callq 0x66f0
movl $0x2c2c, 0x9c(%rbx,%r14) # imm = 0x2C2C
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7fb4(%rip), %rdx      # 0x21539
movl $0x8, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
cmpl $0x0, 0x64(%rdi,%r14)
je 0x1968c
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x1959e
jmp 0x19571
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x19571
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %ecx
orl %edx, %ecx
cmpl $0x420057, %ecx         # imm = 0x420057
jne 0x196d0
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x8, %edx
callq *0x868(%rbx)
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x19638
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6730
testl %eax, %eax
je 0x196b8
movl %eax, %r15d
leaq 0x7eeb(%rip), %rsi      # 0x21516
movq %rbx, %rdi
movl $0x2c3b, %edx           # imm = 0x2C3B
jmp 0x19737
leaq 0x7f05(%rip), %rdx      # 0x21544
movl $0x8, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x7ec3(%rip), %rsi      # 0x21516
movq %rbx, %rdi
movl $0x2c39, %edx           # imm = 0x2C39
jmp 0x19819
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x63e3(%rip), %rsi      # 0x1fa54
movl $0x63, %edx
callq 0x66f0
movl $0x2c33, 0x9c(%rbx,%r14) # imm = 0x2C33
jmp 0x1973c
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x63b7(%rip), %rsi      # 0x1fa54
movl $0x63, %edx
callq 0x66f0
movl $0x2c31, 0x9c(%rbx,%r14) # imm = 0x2C31
jmp 0x1981e
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x19571
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %ecx
orl %edx, %ecx
cmpl $0x42009d, %ecx         # imm = 0x42009D
jne 0x19784
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x19744
movq %rbx, %rdi
movl $0x42009d, %esi         # imm = 0x42009D
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1976c
movl %eax, %r15d
leaq 0x7de7(%rip), %rsi      # 0x21516
movq %rbx, %rdi
movl $0x2c43, %edx           # imm = 0x2C43
callq 0x6de0
movl %r15d, %ebp
jmp 0x19571
leaq 0x7e06(%rip), %rdx      # 0x21551
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x7db7(%rip), %rsi      # 0x21516
movq %rbx, %rdi
movl $0x2c41, %edx           # imm = 0x2C41
jmp 0x19819
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x19571
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %eax
orl %edx, %eax
cmpl $0x420088, %eax         # imm = 0x420088
jne 0x19571
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x48, %edx
callq *0x868(%rbx)
movq %rax, 0x18(%r14)
testq %rax, %rax
je 0x197f6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6960
testl %eax, %eax
je 0x19571
movl %eax, %r14d
leaq 0x7d35(%rip), %rsi      # 0x21516
movq %rbx, %rdi
movl $0x2c4b, %edx           # imm = 0x2C4B
callq 0x6de0
movl %r14d, %ebp
jmp 0x19571
leaq 0x7d72(%rip), %rdx      # 0x2156f
movl $0x48, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x7d05(%rip), %rsi      # 0x21516
movq %rbx, %rdi
movl $0x2c49, %edx           # imm = 0x2C49
callq 0x6de0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
jmp 0x19571