user: 请将以下的汇编代码转换成C语言代码：

```asm
<DoFormatting>:
  endbr64
  push   %r15
  mov    %r9,%r15
  push   %r14
  push   %r13
  mov    %edi,%r13d
  push   %r12
  mov    %rsi,%r12
  lea    D15(%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    D14(%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    D28(%rip),%rsi
  mov    %rdi,0x20(%rsp)
  call   <sprintf@plt>
  test   %r13d,%r13d
  jle    L60
  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
L46:
  mov    %rbp,(%r12,%r15,8)
  mov    0x8(%rsp),%rax
  jmp    L2
  nopl   0x0(%rax,%rax,1)
L47:
  add    $0x4,%rax
  cmp    %r13,%rax
  je     L33
L2:
  mov    (%rax),%edx
  test   %edx,%edx
  js     L33
  cmp    %r15d,%edx
  jne    L47
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
L50:
  add    $0x1,%r15
  add    $0xa,%rbp
  cmp    0x10(%rsp),%r15
  jne    L46
L60:
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L89
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L33:
  mov    0x18(%rsp),%rax
  jmp    L93
  nopw   0x0(%rax,%rax,1)
L124:
  add    $0x4,%rax
  cmp    %rax,%rbx
  je     L17
L93:
  mov    (%rax),%edx
  test   %edx,%edx
  js     L17
  cmp    %r15d,%edx
  jne    L124
  mov    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  jmp    L50
  nopl   0x0(%rax,%rax,1)
L17:
  mov    0x28(%rsp),%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  jmp    L50
L89:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D15
datatype: string
name: unpack_data
arguments: data_tag: D14
datatype: string
name: unpack_data
arguments: data_tag: D28
datatype: string

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

tool: D14: %%-%d.%dlf

tool: D28: %%-%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);
  }
}
```