user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<c_print_results>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,%eax
  mov    %edx,-0x20(%rbp)
  mov    %ecx,-0x24(%rbp)
  mov    %r8d,-0x28(%rbp)
  mov    %r9d,-0x2c(%rbp)
  movsd  %xmm0,-0x38(%rbp)
  movsd  %xmm1,-0x40(%rbp)
  mov    %al,-0x1c(%rbp)
  lea    D165(%rip),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D174(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movsbl -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D134(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,-0x24(%rbp)
  jne    L11
  cmpl   $0x0,-0x28(%rbp)
  jne    L11
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D186(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L15
L11:
  mov    -0x28(%rbp),%ecx
  mov    -0x24(%rbp),%edx
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D211(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L15:
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x10(%rbp),%esi
  lea    D57(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0x40(%rbp),%rax
  movq   %rax,%xmm0
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D114(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,0x20(%rbp)
  je     L34
  lea    D172(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L49
L34:
  lea    D198(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L49:
  mov    0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x30(%rbp),%rax
  mov    %rax,%rsi
  lea    D160(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    0x38(%rbp),%rax
  mov    %rax,%rsi
  lea    D131(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x40(%rbp),%rax
  mov    %rax,%rsi
  lea    D52(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x48(%rbp),%rax
  mov    %rax,%rsi
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x50(%rbp),%rax
  mov    %rax,%rsi
  lea    D142(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x58(%rbp),%rax
  mov    %rax,%rsi
  lea    D91(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x60(%rbp),%rax
  mov    %rax,%rsi
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x68(%rbp),%rax
  mov    %rax,%rsi
  lea    D129(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  nop
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D165
type: string
name: read_data
arguments: label: D174
type: string
name: read_data
arguments: label: D134
type: string
name: read_data
arguments: label: D186
type: string
name: read_data
arguments: label: D211
type: string
name: read_data
arguments: label: D45
type: string
name: read_data
arguments: label: D57
type: string
name: read_data
arguments: label: D1
type: string
name: read_data
arguments: label: D56
type: string
name: read_data
arguments: label: D114
type: string
name: read_data
arguments: label: D172
type: string
name: read_data
arguments: label: D198
type: string
name: read_data
arguments: label: D41
type: string
name: read_data
arguments: label: D160
type: string
name: read_data
arguments: label: D25
type: string
name: read_data
arguments: label: D131
type: string
name: read_data
arguments: label: D52
type: string
name: read_data
arguments: label: D4
type: string
name: read_data
arguments: label: D142
type: string
name: read_data
arguments: label: D91
type: string
name: read_data
arguments: label: D35
type: string
name: read_data
arguments: label: D129
type: string

tool: D165: 1000

tool: D174: 

 %s Benchmark Completed


tool: D134:  Class           =                        %c


tool: D186:  Size            =             %12d


tool: D211:  Size            =              %3dx%3dx%3d


tool: D45:  Iterations      =             %12d


tool: D57:  Threads         =             %12d


tool: D1:  Time in seconds =             %12.2f


tool: D56:  Mop/s total     =             %12.2f


tool: D114:  Operation type  = %24s


tool: D172:  Verification    =               SUCCESSFUL

tool: D198:  Verification    =             UNSUCCESSFUL

tool: D41:  Version         =             %12s


tool: D160:  Compile date    =             %12s


tool: D25: 
 Compile options:

tool: D131:     CC           = %s


tool: D52:     CLINK        = %s


tool: D4:     C_LIB        = %s


tool: D142:     C_INC        = %s


tool: D91:     CFLAGS       = %s


tool: D35:     CLINKFLAGS   = %s


tool: D129:     RAND         = %s


assistant: ```c
void c_print_results(char *name, char cclass, int n1, int n2, int n3, int niter, int nthreads, double t, double mops, char *optype, int passed_verification, char *npbversion, char *compiletime, char *cc, char *clink, char *c_lib, char *c_inc, char *cflags, char *clinkflags, char *rand) {
  char *evalue = "1000";
  printf("\n\n %s Benchmark Completed\n", name);
  printf(" Class           =                        %c\n", cclass);
  if (n2 == 0 && n3 == 0)
    printf(" Size            =             %12d\n", n1);
  else
    printf(" Size            =              %3dx%3dx%3d\n", n1, n2, n3);
  printf(" Iterations      =             %12d\n", niter);
  printf(" Threads         =             %12d\n", nthreads);
  printf(" Time in seconds =             %12.2f\n", t);
  printf(" Mop/s total     =             %12.2f\n", mops);
  printf(" Operation type  = %24s\n", optype);
  if (passed_verification)
    printf(" Verification    =               SUCCESSFUL\n");
  else
    printf(" Verification    =             UNSUCCESSFUL\n");
  printf(" Version         =             %12s\n", npbversion);
  printf(" Compile date    =             %12s\n", compiletime);
  printf("\n Compile options:\n");
  printf("    CC           = %s\n", cc);
  printf("    CLINK        = %s\n", clink);
  printf("    C_LIB        = %s\n", c_lib);
  printf("    C_INC        = %s\n", c_inc);
  printf("    CFLAGS       = %s\n", cflags);
  printf("    CLINKFLAGS   = %s\n", clinkflags);
  printf("    RAND         = %s\n", rand);
}
```