user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<DoFormatting>:
  endbr64
  push   %r15
  mov    %r9,%r15
  push   %r14
  push   %r13
  mov    %edi,%r13d
  push   %r12
  mov    %rsi,%r12
  lea    D16(%rip),%rsi
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    (%r9),%edx
  mov    %rcx,0x8(%rsp)
  mov    0xa0(%rsp),%rbx
  lea    0x3a(%rsp),%r14
  mov    %r8,0x18(%rsp)
  mov    %r14,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    0x4(%r15),%edx
  mov    (%rbx),%ecx
  lea    0x4e(%rsp),%rdi
  lea    D20(%rip),%rsi
  xor    %eax,%eax
  mov    %rdi,0x28(%rsp)
  call   <sprintf@plt>
  mov    0x4(%rbx),%ecx
  mov    0x8(%r15),%edx
  xor    %eax,%eax
  lea    0x44(%rsp),%rdi
  lea    D26(%rip),%rsi
  mov    %rdi,0x20(%rsp)
  call   <sprintf@plt>
  test   %r13d,%r13d
  jle    L4
  mov    %r13d,%eax
  mov    0x8(%rsp),%rcx
  xor    %r15d,%r15d
  mov    %rax,0x10(%rsp)
  lea    -0x1(%r13),%eax
  shl    $0x2,%rax
  lea    0x4(%rcx,%rax,1),%r13
  mov    0x18(%rsp),%rcx
  lea    0x4(%rcx,%rax,1),%rbx
L0:
  mov    %rbp,(%r12,%r15,8)
  mov    0x8(%rsp),%rax
  jmp    L1
  nopl   0x0(%rax,%rax,1)
L125:
  add    $0x4,%rax
  cmp    %r13,%rax
  je     L114
L1:
  mov    (%rax),%edx
  test   %edx,%edx
  js     L114
  cmp    %r15d,%edx
  jne    L125
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
L54:
  add    $0x1,%r15
  add    $0xa,%rbp
  cmp    0x10(%rsp),%r15
  jne    L0
L4:
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L69
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L114:
  mov    0x18(%rsp),%rax
  jmp    L119
  nopw   0x0(%rax,%rax,1)
L128:
  add    $0x4,%rax
  cmp    %rax,%rbx
  je     L66
L119:
  mov    (%rax),%edx
  test   %edx,%edx
  js     L66
  cmp    %r15d,%edx
  jne    L128
  mov    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  jmp    L54
  nopl   0x0(%rax,%rax,1)
L66:
  mov    0x28(%rsp),%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  jmp    L54
L69:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D16
data_type: string
name: retrieve_data
arguments: data_tag: D20
data_type: string
name: retrieve_data
arguments: data_tag: D26
data_type: string

tool: D16: %%-%d.0f

tool: D20: %%-%d.%dlf

tool: D26: %%-%d.%df

assistant: ```c
void DoFormatting(int numcols, char **fmt, char *fmt_all, int *int_cols, int *accu_cols, int *space, int *prec) {
  int i, j, found = 0;
  char intstr[10], eacustr[10], otherstr[10];
  sprintf(intstr, "%%-%d.0f", space[0]);
  sprintf(otherstr, "%%-%d.%dlf", space[1], prec[0]);
  sprintf(eacustr, "%%-%d.%df", space[2], prec[1]);
  for (i = 0; i < numcols; i++) {
    fmt[i] = &fmt_all[i * 10];
    found = 0;
    for (j = 0; j < numcols; j++) {
      if (int_cols[j] < 0)
        break;
      if (i == int_cols[j]) {
        strcpy(fmt[i], intstr);
        found = 1;
        break;
      }
    }
    if (found == 1)
      continue;
    found = 0;
    for (j = 0; j < numcols; j++) {
      if (accu_cols[j] < 0)
        break;
      if (i == accu_cols[j]) {
        strcpy(fmt[i], eacustr);
        found = 1;
        break;
      }
    }
    if (found == 1)
      continue;
    strcpy(fmt[i], otherstr);
  }
}
```