// File: /workspace/github_c_makefile_star2_O1/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 0x19eda
cmpb $0x1, %al
jne 0x19ef5
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a10
movq 0x10(%rbx), %rcx
movq 0x8(%rbx), %rax
subq %rax, %rcx
addq (%rbx), %rcx
movl (%r15), %edx
cmpq %rdx, %rcx
jae 0x19f1b
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
testq %rbx, %rbx
je 0x19f0e
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x1a02e
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x19ebf
jmp 0x19f0e
leaq 0x85c5(%rip), %rsi      # 0x224a6
movq %rbx, %rdi
movl $0x2c29, %edx           # imm = 0x2C29
callq 0x6de0
movl $0xfffffffc, %ebp       # imm = 0xFFFFFFFC
jmp 0x19f0e
leaq 0x85aa(%rip), %rsi      # 0x224a6
movq %rbx, %rdi
movl $0x2c29, %edx           # imm = 0x2C29
callq 0x6de0
movl $0xfffffffb, %ebp       # imm = 0xFFFFFFFB
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
testq %rbx, %rbx
je 0x19f0e
cmpq $0x3, %rcx
jb 0x19fa7
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %eax
orl %edx, %eax
cmpl $0x42005c, %eax         # imm = 0x42005C
jne 0x19fa7
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x8, %edx
callq *0x868(%rbx)
movq %rax, (%r14)
testq %rax, %rax
je 0x1a17e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6be0
testl %eax, %eax
je 0x19fa7
movl %eax, %r15d
testq %rbx, %rbx
je 0x1a210
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x1a1e9
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x19f89
jmp 0x1a210
testq %rbx, %rbx
je 0x19f0e
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1a05a
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %eax
orl %edx, %eax
cmpl $0x420057, %eax         # imm = 0x420057
jne 0x1a05a
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x8, %edx
callq *0x868(%rbx)
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x1a1c1
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6730
testl %eax, %eax
je 0x1a05a
movl %eax, %r15d
leaq 0x8485(%rip), %rsi      # 0x224a6
movq %rbx, %rdi
movl $0x2c3b, %edx           # imm = 0x2C3B
jmp 0x1a0dd
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x69a1(%rip), %rsi      # 0x209e0
movl $0x63, %edx
callq 0x66f0
movl $0x2c2c, 0x9c(%rbx,%r14) # imm = 0x2C2C
jmp 0x19f0e
testq %rbx, %rbx
je 0x19f0e
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1a0e7
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %eax
orl %edx, %eax
cmpl $0x42009d, %eax         # imm = 0x42009D
jne 0x1a0e7
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x1a244
movq %rbx, %rdi
movl $0x42009d, %esi         # imm = 0x42009D
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1a0e7
movl %eax, %r15d
leaq 0x83d1(%rip), %rsi      # 0x224a6
movq %rbx, %rdi
movl $0x2c43, %edx           # imm = 0x2C43
callq 0x6de0
jmp 0x1a210
testq %rbx, %rbx
je 0x19f0e
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x19f0e
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 0x19f0e
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x48, %edx
callq *0x868(%rbx)
movq %rax, 0x18(%r14)
testq %rax, %rax
je 0x1a269
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6960
testl %eax, %eax
je 0x19f0e
movl %eax, %r14d
leaq 0x833d(%rip), %rsi      # 0x224a6
movq %rbx, %rdi
movl $0x2c4b, %edx           # imm = 0x2C4B
callq 0x6de0
movl %r14d, %ebp
jmp 0x19f0e
leaq 0x8344(%rip), %rdx      # 0x224c9
movl $0x8, %esi
movq %rbx, %rdi
callq 0x6ba0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
testq %rbx, %rbx
je 0x19f0e
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x1a218
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x1a1a7
jmp 0x19f0e
leaq 0x830c(%rip), %rdx      # 0x224d4
movl $0x8, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x82ca(%rip), %rsi      # 0x224a6
movq %rbx, %rdi
movl $0x2c39, %edx           # imm = 0x2C39
jmp 0x1a28c
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x67e6(%rip), %rsi      # 0x209e0
movl $0x63, %edx
callq 0x66f0
movl $0x2c33, 0x9c(%rbx,%r14) # imm = 0x2C33
movl %r15d, %ebp
jmp 0x19f0e
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x67b7(%rip), %rsi      # 0x209e0
movl $0x63, %edx
callq 0x66f0
movl $0x2c31, 0x9c(%rbx,%r14) # imm = 0x2C31
jmp 0x19f0e
leaq 0x8296(%rip), %rdx      # 0x224e1
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x8247(%rip), %rsi      # 0x224a6
movq %rbx, %rdi
movl $0x2c41, %edx           # imm = 0x2C41
jmp 0x1a28c
leaq 0x828f(%rip), %rdx      # 0x224ff
movl $0x48, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x8222(%rip), %rsi      # 0x224a6
movq %rbx, %rdi
movl $0x2c49, %edx           # imm = 0x2C49
callq 0x6de0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
jmp 0x19f0e