user: Please show me the C implementation that matches the assembly code listed below:

```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    D132(%rip),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movsbl -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D106(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,-0x24(%rbp)
  jne    L2
  cmpl   $0x0,-0x28(%rbp)
  jne    L2
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L17
L2:
  mov    -0x28(%rbp),%ecx
  mov    -0x24(%rbp),%edx
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D185(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L17:
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0x18(%rbp),%eax
  mov    %eax,%esi
  lea    D77(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,0x10(%rbp)
  je     L29
  mov    0x10(%rbp),%esi
  lea    D172(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L29:
  mov    -0x40(%rbp),%rax
  movq   %rax,%xmm0
  lea    D299(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ssl 0x18(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  -0x40(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  lea    D101(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D148(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,0x28(%rbp)
  je     L48
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L1
L48:
  lea    D85(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L1:
  mov    0x30(%rbp),%rax
  mov    %rax,%rsi
  lea    D312(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x38(%rbp),%rax
  mov    %rax,%rsi
  lea    D86(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D91(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    0x40(%rbp),%rax
  mov    %rax,%rsi
  lea    D128(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x48(%rbp),%rax
  mov    %rax,%rsi
  lea    D259(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x50(%rbp),%rax
  mov    %rax,%rsi
  lea    D170(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x58(%rbp),%rax
  mov    %rax,%rsi
  lea    D237(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x60(%rbp),%rax
  mov    %rax,%rsi
  lea    D168(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x68(%rbp),%rax
  mov    %rax,%rsi
  lea    D98(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D70(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D213(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D302(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D260(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D141(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D177(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D116(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D267(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  nop
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D132
type_infered: string
name: disassemble_data
arguments: label: D36
type_infered: string
name: disassemble_data
arguments: label: D106
type_infered: string
name: disassemble_data
arguments: label: D51
type_infered: string
name: disassemble_data
arguments: label: D185
type_infered: string
name: disassemble_data
arguments: label: D56
type_infered: string
name: disassemble_data
arguments: label: D23
type_infered: string
name: disassemble_data
arguments: label: D77
type_infered: string
name: disassemble_data
arguments: label: D172
type_infered: string
name: disassemble_data
arguments: label: D299
type_infered: string
name: disassemble_data
arguments: label: D101
type_infered: string
name: disassemble_data
arguments: label: D148
type_infered: string
name: disassemble_data
arguments: label: D34
type_infered: string
name: disassemble_data
arguments: label: D85
type_infered: string
name: disassemble_data
arguments: label: D312
type_infered: string
name: disassemble_data
arguments: label: D86
type_infered: string
name: disassemble_data
arguments: label: D91
type_infered: string
name: disassemble_data
arguments: label: D128
type_infered: string
name: disassemble_data
arguments: label: D259
type_infered: string
name: disassemble_data
arguments: label: D170
type_infered: string
name: disassemble_data
arguments: label: D237
type_infered: string
name: disassemble_data
arguments: label: D168
type_infered: string
name: disassemble_data
arguments: label: D98
type_infered: string
name: disassemble_data
arguments: label: D70
type_infered: string
name: disassemble_data
arguments: label: D213
type_infered: string
name: disassemble_data
arguments: label: D302
type_infered: string
name: disassemble_data
arguments: label: D260
type_infered: string
name: disassemble_data
arguments: label: D141
type_infered: string
name: disassemble_data
arguments: label: D22
type_infered: string
name: disassemble_data
arguments: label: D177
type_infered: string
name: disassemble_data
arguments: label: D116
type_infered: string
name: disassemble_data
arguments: label: D267
type_infered: string

tool: D132: 1000

tool: D36: 

 %s Benchmark Completed


tool: D106:  Class           =                        %c


tool: D51:  Size            =             %12d


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


tool: D56:  Iterations      =             %12d


tool: D23:  Time in seconds =             %12.2f


tool: D77:  Total processes =             %12d


tool: D172:  Compiled procs  =             %12d


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


tool: D101:  Mop/s/process   =             %12.2f


tool: D148:  Operation type  = %24s


tool: D34:  Verification    =               SUCCESSFUL

tool: D85:  Verification    =             UNSUCCESSFUL

tool: D312:  Version         =             %12s


tool: D86:  Compile date    =             %12s


tool: D91: 
 Compile options:

tool: D128:     MPICC        = %s


tool: D259:     CLINK        = %s


tool: D170:     CMPI_LIB     = %s


tool: D237:     CMPI_INC     = %s


tool: D168:     CFLAGS       = %s


tool: D98:     CLINKFLAGS   = %s


tool: D70: 


tool: D213:  Please send the results of this run to:


tool: D302:  NPB Development Team

tool: D260:  Internet: npb@nas.nasa.gov
 

tool: D141:  If email is not available, send this to:


tool: D22:  MS T27A-1

tool: D177:  NASA Ames Research Center

tool: D116:  Moffett Field, CA  94035-1000


tool: D267:  Fax: 650-604-3957


assistant: ```c
void c_print_results(char *name, char class, int n1, int n2, int n3, int niter, int nprocs_compiled, int nprocs_total, double t, double mops, char *optype, int passed_verification, char *npbversion, char *compiletime, char *mpicc, char *clink, char *cmpi_lib, char *cmpi_inc, char *cflags, char *clinkflags) {
  char *evalue = "1000";
  printf("\n\n %s Benchmark Completed\n", name);
  printf(" Class           =                        %c\n", class);
  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(" Time in seconds =             %12.2f\n", t);
  printf(" Total processes =             %12d\n", nprocs_total);
  if (nprocs_compiled != 0)
    printf(" Compiled procs  =             %12d\n", nprocs_compiled);
  printf(" Mop/s total     =             %12.2f\n", mops);
  printf(" Mop/s/process   =             %12.2f\n", mops / ((float)nprocs_total));
  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("    MPICC        = %s\n", mpicc);
  printf("    CLINK        = %s\n", clink);
  printf("    CMPI_LIB     = %s\n", cmpi_lib);
  printf("    CMPI_INC     = %s\n", cmpi_inc);
  printf("    CFLAGS       = %s\n", cflags);
  printf("    CLINKFLAGS   = %s\n", clinkflags);
  printf("\n\n");
  printf(" Please send the results of this run to:\n\n");
  printf(" NPB Development Team\n");
  printf(" Internet: npb@nas.nasa.gov\n \n");
  printf(" If email is not available, send this to:\n\n");
  printf(" MS T27A-1\n");
  printf(" NASA Ames Research Center\n");
  printf(" Moffett Field, CA  94035-1000\n\n");
  printf(" Fax: 650-604-3957\n\n");
}
```