user: Demonstrate the C code that generates the assembly output below:

```asm
<DoFormatting>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %edi,-0x44(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %rcx,-0x60(%rbp)
  mov    %r8,-0x68(%rbp)
  mov    %r9,-0x70(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x78(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x2c(%rbp)
  mov    -0x70(%rbp),%rax
  mov    (%rax),%edx
  lea    -0x26(%rbp),%rax
  lea    D29(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    -0x78(%rbp),%rax
  mov    (%rax),%ecx
  mov    -0x70(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%edx
  lea    -0x12(%rbp),%rax
  lea    D4(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    -0x78(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%ecx
  mov    -0x70(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%edx
  lea    -0x1c(%rbp),%rax
  lea    D8(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  movl   $0x0,-0x34(%rbp)
  jmp    L92
L32:
  mov    -0x34(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  movslq %eax,%rcx
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    -0x58(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rdx,(%rax)
  movl   $0x0,-0x2c(%rbp)
  movl   $0x0,-0x30(%rbp)
  jmp    L133
L124:
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  js     L54
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x34(%rbp)
  jne    L165
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    -0x26(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  movl   $0x1,-0x2c(%rbp)
  jmp    L103
L165:
  addl   $0x1,-0x30(%rbp)
L133:
  mov    -0x30(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L124
  jmp    L103
L54:
  nop
L103:
  cmpl   $0x1,-0x2c(%rbp)
  je     L22
  movl   $0x0,-0x2c(%rbp)
  movl   $0x0,-0x30(%rbp)
  jmp    L13
L91:
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  js     L53
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x34(%rbp)
  jne    L189
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    -0x1c(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  movl   $0x1,-0x2c(%rbp)
  jmp    L114
L189:
  addl   $0x1,-0x30(%rbp)
L13:
  mov    -0x30(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L91
  jmp    L114
L53:
  nop
L114:
  cmpl   $0x1,-0x2c(%rbp)
  je     L65
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    -0x12(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  jmp    L130
L22:
  nop
  jmp    L130
L65:
  nop
L130:
  addl   $0x1,-0x34(%rbp)
L92:
  mov    -0x34(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L32
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L169
  call   <__stack_chk_fail@plt>
L169:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D29
type_infered: string
name: read_data
arguments: data_tag: D4
type_infered: string
name: read_data
arguments: data_tag: D8
type_infered: string

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

tool: D4: %%-%d.%dlf

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