// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xc72d
movq -0x8(%rbp), %rdi
addq $0x8, %rdi
movq -0x8(%rbp), %rsi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movl $0x40, %ecx
callq 0x6b30
movq -0x8(%rbp), %rdi
addq $0x110, %rdi            # imm = 0x110
movq -0x8(%rbp), %rsi
addq $0x108, %rsi            # imm = 0x108
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdx
movl $0x20, %ecx
callq 0x6210
movq -0x10(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0xc638
movq -0x8(%rbp), %rdi
addq $0x190, %rdi            # imm = 0x190
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movl $0x7f, %edx
callq 0x6110
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0xc72b
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl $0x1, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x214, %rdi            # imm = 0x214
movq -0x18(%rbp), %rax
movq (%rax), %rsi
movl $0x7f, %edx
callq 0x6110
movq -0x8(%rbp), %rdi
addq $0x294, %rdi            # imm = 0x294
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
movl $0x7f, %edx
callq 0x6110
movq -0x8(%rbp), %rdi
addq $0x314, %rdi            # imm = 0x314
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
movl $0x7f, %edx
callq 0x6110
movq -0x8(%rbp), %rdi
addq $0x394, %rdi            # imm = 0x394
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rsi
movl $0x7f, %edx
callq 0x6110
movq -0x8(%rbp), %rdi
addq $0x414, %rdi            # imm = 0x414
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rsi
movl $0x7f, %edx
callq 0x6110
movq -0x8(%rbp), %rdi
addq $0x494, %rdi            # imm = 0x494
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rsi
movl $0x7f, %edx
callq 0x6110
movq -0x8(%rbp), %rdi
addq $0x514, %rdi            # imm = 0x514
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rsi
movl $0x7f, %edx
callq 0x6110
jmp 0xc72d
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)