// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_query_request_payload
int
kmip_decode_query_request_payload(KMIP *ctx, QueryRequestPayload *value)
{
    CHECK_DECODE_ARGS(ctx, value);
    CHECK_BUFFER_FULL(ctx, 8);

    int result = 0;
    int32 tag_type = 0;
    uint32 length = 0;

    result = kmip_decode_int32_be(ctx, &tag_type);
    CHECK_RESULT(ctx, result);
    CHECK_TAG_TYPE(ctx, tag_type, KMIP_TAG_QUERY_FUNCTION, KMIP_TYPE_STRUCTURE);

    result = kmip_decode_int32_be(ctx, &length);
    CHECK_RESULT(ctx, result);
    CHECK_BUFFER_FULL(ctx, length);

    if(kmip_is_tag_next(ctx, KMIP_TAG_QUERY_FUNCTION))
    {
        value->functions = ctx->calloc_func(ctx->state, 1, sizeof(Functions));
        CHECK_NEW_MEMORY(ctx, value->functions, sizeof(Functions), "Functions");

        result = kmip_decode_query_functions(ctx, value->functions);
        CHECK_RESULT(ctx, result);
    }

    return(KMIP_OK);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x1f3be
cmpq $0x0, -0x18(%rbp)
jne 0x1f3ca
movl $0xffffffef, -0x4(%rbp) # imm = 0xFFFFFFEF
jmp 0x1f608
jmp 0x1f3cc
jmp 0x1f3ce
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 0x1f412
movq -0x10(%rbp), %rdi
leaq 0x6df8(%rip), %rsi      # 0x261f4
movl $0x2b50, %edx           # imm = 0x2B50
callq 0x6f20
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x1f608
jmp 0x1f414
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x6b10
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1f45f
movq -0x10(%rbp), %rdi
leaq 0x6daa(%rip), %rsi      # 0x261f4
movl $0x2b57, %edx           # imm = 0x2B57
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1f608
jmp 0x1f461
jmp 0x1f463
movl -0x20(%rbp), %eax
sarl $0x8, %eax
cmpl $0x420074, %eax         # imm = 0x420074
je 0x1f491
movq -0x10(%rbp), %rdi
leaq 0x6d79(%rip), %rsi      # 0x261f4
movl $0x2b58, %edx           # imm = 0x2B58
callq 0x6f20
movl $0xfffffffc, -0x4(%rbp) # imm = 0xFFFFFFFC
jmp 0x1f608
movl -0x20(%rbp), %eax
andl $0xff, %eax
cmpl $0x1, %eax
je 0x1f4bf
movq -0x10(%rbp), %rdi
leaq 0x6d4b(%rip), %rsi      # 0x261f4
movl $0x2b58, %edx           # imm = 0x2B58
callq 0x6f20
movl $0xfffffffb, -0x4(%rbp) # imm = 0xFFFFFFFB
jmp 0x1f608
jmp 0x1f4c1
jmp 0x1f4c3
movq -0x10(%rbp), %rdi
leaq -0x24(%rbp), %rsi
callq 0x6b10
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1f4f9
movq -0x10(%rbp), %rdi
leaq 0x6d10(%rip), %rsi      # 0x261f4
movl $0x2b5b, %edx           # imm = 0x2B5B
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1f608
jmp 0x1f4fb
jmp 0x1f4fd
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 0x1f543
movq -0x10(%rbp), %rdi
leaq 0x6cc7(%rip), %rsi      # 0x261f4
movl $0x2b5c, %edx           # imm = 0x2B5C
callq 0x6f20
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x1f608
jmp 0x1f545
movq -0x10(%rbp), %rdi
movl $0x420074, %esi         # imm = 0x420074
callq 0x6300
cmpl $0x0, %eax
je 0x1f601
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 0x1f5c5
movq -0x10(%rbp), %rdi
movl $0x8, %esi
leaq 0x6c74(%rip), %rdx      # 0x26216
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x6c42(%rip), %rsi      # 0x261f4
movl $0x2b61, %edx           # imm = 0x2B61
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x1f608
jmp 0x1f5c7
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rsi
callq 0x6cc0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1f5fd
movq -0x10(%rbp), %rdi
leaq 0x6c09(%rip), %rsi      # 0x261f4
movl $0x2b64, %edx           # imm = 0x2B64
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1f608
jmp 0x1f5ff
jmp 0x1f601
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)