// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_copy_query_result
void
kmip_copy_query_result(QueryResponse* query_result, QueryResponsePayload *pld)
{
    if(pld != NULL)
    {
        kmip_copy_operations(query_result->operations, &query_result->operations_size, pld->operations, MAX_QUERY_OPS);
        kmip_copy_objects(query_result->objects, &query_result->objects_size, pld->objects, MAX_QUERY_OBJS);

        if(pld->vendor_identification)
        {
            kmip_copy_textstring(query_result->vendor_identification, pld->vendor_identification, sizeof(query_result->vendor_identification)-1);
        }

        if(pld->server_information)
        {
            ServerInformation* srv = pld->server_information;
            query_result->server_information_valid = 1;
            kmip_copy_textstring(query_result->server_name, srv->server_name, MAX_QUERY_LEN-1);
            kmip_copy_textstring(query_result->server_serial_number, srv->server_serial_number, MAX_QUERY_LEN-1);
            kmip_copy_textstring(query_result->server_version, srv->server_version, MAX_QUERY_LEN-1);
            kmip_copy_textstring(query_result->server_load, srv->server_load, MAX_QUERY_LEN-1);
            kmip_copy_textstring(query_result->product_name, srv->product_name, MAX_QUERY_LEN-1);
            kmip_copy_textstring(query_result->build_level, srv->build_level, MAX_QUERY_LEN-1);
            kmip_copy_textstring(query_result->build_date, srv->build_date, MAX_QUERY_LEN-1);
        }
    }
}

// Assembly:
testq %rsi, %rsi
je 0x99c3
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
addq $0x8, %rdi
movq (%rsi), %rdx
pushq $0x40
popq %rcx
movq %rbx, %rsi
callq 0x6aa0
leaq 0x110(%rbx), %rdi
leaq 0x108(%rbx), %rsi
movq 0x8(%r15), %rdx
pushq $0x20
popq %rcx
callq 0x61e0
movq 0x10(%r15), %rax
pushq $0x7f
popq %r14
testq %rax, %rax
je 0x982a
leaq 0x190(%rbx), %r12
movq (%rax), %rsi
testq %rsi, %rsi
je 0x9825
movq 0x8(%rax), %r13
cmpq $0x7f, %r13
cmovaeq %r14, %r13
movq %r12, %rdi
movq %r13, %rdx
callq 0x6720
addq %r13, %r12
movb $0x0, (%r12)
movq 0x18(%r15), %r13
testq %r13, %r13
je 0x99ba
movl $0x1, 0x210(%rbx)
leaq 0x214(%rbx), %r15
movq (%r13), %rax
testq %rax, %rax
je 0x9873
movq (%rax), %rsi
testq %rsi, %rsi
je 0x9873
movq 0x8(%rax), %r12
cmpq $0x7f, %r12
cmovaeq %r14, %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0x6720
addq %r12, %r15
movb $0x0, (%r15)
leaq 0x294(%rbx), %r15
movq 0x8(%r13), %rax
testq %rax, %rax
je 0x98a9
movq (%rax), %rsi
testq %rsi, %rsi
je 0x98a9
movq 0x8(%rax), %r12
cmpq $0x7f, %r12
cmovaeq %r14, %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0x6720
addq %r12, %r15
movb $0x0, (%r15)
leaq 0x314(%rbx), %r15
movq 0x10(%r13), %rax
testq %rax, %rax
je 0x98df
movq (%rax), %rsi
testq %rsi, %rsi
je 0x98df
movq 0x8(%rax), %r12
cmpq $0x7f, %r12
cmovaeq %r14, %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0x6720
addq %r12, %r15
movb $0x0, (%r15)
leaq 0x394(%rbx), %r15
movq 0x18(%r13), %rax
testq %rax, %rax
je 0x9915
movq (%rax), %rsi
testq %rsi, %rsi
je 0x9915
movq 0x8(%rax), %r12
cmpq $0x7f, %r12
cmovaeq %r14, %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0x6720
addq %r12, %r15
movb $0x0, (%r15)
leaq 0x414(%rbx), %r15
movq 0x20(%r13), %rax
testq %rax, %rax
je 0x994b
movq (%rax), %rsi
testq %rsi, %rsi
je 0x994b
movq 0x8(%rax), %r12
cmpq $0x7f, %r12
cmovaeq %r14, %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0x6720
addq %r12, %r15
movb $0x0, (%r15)
leaq 0x494(%rbx), %r15
movq 0x28(%r13), %rax
testq %rax, %rax
je 0x9981
movq (%rax), %rsi
testq %rsi, %rsi
je 0x9981
movq 0x8(%rax), %r12
cmpq $0x7f, %r12
cmovaeq %r14, %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0x6720
addq %r12, %r15
movb $0x0, (%r15)
addq $0x514, %rbx            # imm = 0x514
movq 0x30(%r13), %rax
testq %rax, %rax
je 0x99b7
movq (%rax), %rsi
testq %rsi, %rsi
je 0x99b7
movq 0x8(%rax), %rax
cmpq $0x7f, %rax
cmovbq %rax, %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x6720
addq %r14, %rbx
movb $0x0, (%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq