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)
  movl   $0x1,-0x10(%rbp)
  movl   $0x1,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D69(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movsbl -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,-0x28(%rbp)
  jne    L40
  mov    -0x20(%rbp),%eax
  cltq
  mov    %rax,-0x8(%rbp)
  cmpl   $0x0,-0x24(%rbp)
  je     L12
  mov    -0x24(%rbp),%eax
  cltq
  mov    -0x8(%rbp),%rdx
  imul   %rdx,%rax
  mov    %rax,-0x8(%rbp)
L12:
  mov    -0x8(%rbp),%rax
  mov    %rax,%rsi
  lea    D256(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L26
L40:
  mov    -0x28(%rbp),%ecx
  mov    -0x24(%rbp),%edx
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D37(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L26:
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D88(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  lea    D155(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D239(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x10(%rbp),%eax
  mov    %eax,%esi
  lea    D273(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0xc(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  je     L25
  lea    D193(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L25:
  mov    -0x40(%rbp),%rax
  movq   %rax,%xmm0
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0xc(%rbp),%xmm1
  movsd  -0x40(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  lea    D185(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0x10(%rbp),%rsi
  lea    D173(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,0x18(%rbp)
  jns    L61
  lea    D211(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L54
L61:
  cmpl   $0x0,0x18(%rbp)
  je     L6
  lea    D194(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L54
L6:
  lea    D118(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L54:
  mov    0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D163(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D114(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    0x30(%rbp),%rax
  mov    %rax,%rsi
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x38(%rbp),%rax
  mov    %rax,%rsi
  lea    D197(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x40(%rbp),%rax
  mov    %rax,%rsi
  lea    D159(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x48(%rbp),%rax
  mov    %rax,%rsi
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x50(%rbp),%rax
  mov    %rax,%rsi
  lea    D126(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x58(%rbp),%rax
  mov    %rax,%rsi
  lea    D52(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D225(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D108(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D232(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D174(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  nop
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D69
type_guessed: string
name: unpack_data
arguments: data_tag: D13
type_guessed: string
name: unpack_data
arguments: data_tag: D256
type_guessed: string
name: unpack_data
arguments: data_tag: D37
type_guessed: string
name: unpack_data
arguments: data_tag: D88
type_guessed: string
name: unpack_data
arguments: data_tag: D155
type_guessed: string
name: unpack_data
arguments: data_tag: D239
type_guessed: string
name: unpack_data
arguments: data_tag: D273
type_guessed: string
name: unpack_data
arguments: data_tag: D193
type_guessed: string
name: unpack_data
arguments: data_tag: D135
type_guessed: string
name: unpack_data
arguments: data_tag: D185
type_guessed: string
name: unpack_data
arguments: data_tag: D173
type_guessed: string
name: unpack_data
arguments: data_tag: D211
type_guessed: string
name: unpack_data
arguments: data_tag: D194
type_guessed: string
name: unpack_data
arguments: data_tag: D118
type_guessed: string
name: unpack_data
arguments: data_tag: D163
type_guessed: string
name: unpack_data
arguments: data_tag: D114
type_guessed: string
name: unpack_data
arguments: data_tag: D29
type_guessed: string
name: unpack_data
arguments: data_tag: D41
type_guessed: string
name: unpack_data
arguments: data_tag: D197
type_guessed: string
name: unpack_data
arguments: data_tag: D159
type_guessed: string
name: unpack_data
arguments: data_tag: D64
type_guessed: string
name: unpack_data
arguments: data_tag: D126
type_guessed: string
name: unpack_data
arguments: data_tag: D52
type_guessed: string
name: unpack_data
arguments: data_tag: D225
type_guessed: string
name: unpack_data
arguments: data_tag: D108
type_guessed: string
name: unpack_data
arguments: data_tag: D232
type_guessed: string
name: unpack_data
arguments: data_tag: D174
type_guessed: string

tool: D69: 

 %s Benchmark Completed


tool: D13:  Class           =                        %c


tool: D256:  Size            =             %12ld


tool: D37:  Size            =             %4dx%4dx%4d


tool: D88:  Iterations      =             %12d


tool: D155:  Time in seconds =             %12.2f


tool: D239:  Total threads   =             %12d


tool: D273:  Avail threads   =             %12d


tool: D193:  Warning: Threads used differ from threads available

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


tool: D185:  Mop/s/thread    =             %12.2f


tool: D173:  Operation type  = %24s


tool: D211:  Verification    =            NOT PERFORMED

tool: D194:  Verification    =               SUCCESSFUL

tool: D118:  Verification    =             UNSUCCESSFUL

tool: D163:  Version         =             %12s


tool: D114:  Compile date    =             %12s


tool: D29: 
 Compile options:

tool: D41:     CC           = %s


tool: D197:     CLINK        = %s


tool: D159:     C_LIB        = %s


tool: D64:     C_INC        = %s


tool: D126:     CFLAGS       = %s


tool: D52:     CLINKFLAGS   = %s


tool: D225: 


tool: D108:  Please send all errors/feedbacks to:


tool: D232:  NPB Development Team

tool: D174:  npb@nas.nasa.gov



assistant: ```c
void c_print_results(char *name, char class, int n1, int n2, int n3, int niter, 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) {
  int num_threads, max_threads;
  max_threads = 1;
  num_threads = 1;
  printf("\n\n %s Benchmark Completed\n", name);
  printf(" Class           =                        %c\n", class);
  if (n3 == 0) {
    long nn = n1;
    if (n2 != 0)
      nn *= n2;
    printf(" Size            =             %12ld\n", nn);
  } else
    printf(" Size            =             %4dx%4dx%4d\n", n1, n2, n3);
  printf(" Iterations      =             %12d\n", niter);
  printf(" Time in seconds =             %12.2f\n", t);
  printf(" Total threads   =             %12d\n", num_threads);
  printf(" Avail threads   =             %12d\n", max_threads);
  if (num_threads != max_threads)
    printf(" Warning: Threads used differ from threads available\n");
  printf(" Mop/s total     =             %12.2f\n", mops);
  printf(" Mop/s/thread    =             %12.2f\n", mops / (double)num_threads);
  printf(" Operation type  = %24s\n", optype);
  if (passed_verification < 0)
    printf(" Verification    =            NOT PERFORMED\n");
  else 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("\n\n");
  printf(" Please send all errors/feedbacks to:\n\n");
  printf(" NPB Development Team\n");
  printf(" npb@nas.nasa.gov\n\n\n");
}
```