user: What would the C source look like for the assembly code provided here:

```asm
<fillintext>:
  endbr64
  push   %r15
  push   %r14
  mov    %rsi,%r14
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  sub    $0x178,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x168(%rsp)
  xor    %eax,%eax
  mov    %rdi,0x8(%rsp)
  call   <strlen@plt>
  mov    0x8(%rsp),%rcx
  mov    %eax,%r13d
  lea    0x38(%rsp),%rax
  mov    %rax,0x10(%rsp)
  lea    0x60(%rsp),%rax
  mov    %rax,0x18(%rsp)
  jmp    L91
  nopl   0x0(%rax,%rax,1)
L99:
  movslq %r12d,%rsi
  add    $0x1,%r12d
  mov    %al,(%r14,%rsi,1)
L94:
  add    $0x1,%ebp
  cmp    %ebp,%r13d
  jle    L66
L91:
  movslq %ebp,%rsi
  movzbl (%rcx,%rsi,1),%eax
  cmp    $0x5c,%al
  jne    L99
  cmpb   $0x7b,0x1(%rcx,%rsi,1)
  jne    L99
  lea    0x2(%rbp),%ebx
  xor    %r15d,%r15d
  movslq %ebx,%rbx
  jmp    L40
  nopl   0x0(%rax)
L34:
  movslq %r15d,%rsi
  add    $0x1,%rbx
  add    $0x1,%r15d
  mov    %al,0x60(%rsp,%rsi,1)
  cmp    %ebx,%r13d
  jle    L57
L40:
  movzbl (%rcx,%rbx,1),%eax
  mov    %ebx,%ebp
  cmp    $0x7d,%al
  jne    L34
  mov    0x10(%rsp),%rsi
  mov    0x18(%rsp),%rdi
  movslq %r15d,%rax
  mov    %rcx,0x8(%rsp)
  movb   $0x0,0x60(%rsp,%rax,1)
  call   <do_calc@plt>
  mov    0x8(%rsp),%rcx
  cmp    $0xffffffff,%eax
  jne    L23
  movslq %r12d,%rax
  add    $0x1,%rbx
  add    $0x1,%r12d
  movb   $0x3f,(%r14,%rax,1)
  cmp    %ebx,%r13d
  jg     L40
  nopl   0x0(%rax)
L57:
  movslq %r12d,%rdx
  movb   $0x3f,(%r14,%rdx,1)
  movb   $0x0,0x1(%r14,%rdx,1)
L77:
  mov    0x168(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L12
  add    $0x178,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L66:
  movslq %r12d,%rdx
  movb   $0x0,(%r14,%rdx,1)
  jmp    L77
  nopw   0x0(%rax,%rax,1)
L23:
  movsd  0x38(%rsp),%xmm0
  lea    0x40(%rsp),%rbx
  lea    D7(%rip),%rsi
  xor    %r15d,%r15d
  mov    %rbx,%rdi
  call   <sprintf@plt>
  movslq %r12d,%rax
  mov    0x8(%rsp),%rcx
  mov    %rax,0x28(%rsp)
  jmp    L64
  nopl   0x0(%rax)
L90:
  mov    0x28(%rsp),%rax
  movzbl (%rbx,%r15,1),%r10d
  add    %r14,%rax
  mov    %r10b,(%rax,%r15,1)
  add    $0x1,%r15
L64:
  lea    (%r12,%r15,1),%eax
  mov    %rbx,%rdi
  mov    %rcx,0x8(%rsp)
  mov    %eax,0x24(%rsp)
  call   <strlen@plt>
  mov    0x8(%rsp),%rcx
  cmp    %r15d,%eax
  jg     L90
  mov    0x24(%rsp),%r12d
  jmp    L94
L12:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D7
data_type: string

tool: D7: %g

assistant: ```c
void fillintext(char *old, char *new) {
  int i, l = strlen(old);
  int j, m, k, ans;
  char name[256], c, c2;
  double z;
  char val[25];
  i = 0;
  j = 0;
  while (1) {
    c = old[i];
    if (c == '\\') {
      c2 = old[i + 1];
      if (c2 != '{')
        goto na;
      if (c2 == '{') {
        m = 0;
        i = i + 2;
        while (1) {
          c2 = old[i];
          if (c2 == '}') {
            name[m] = 0;
            ans = do_calc(name, &z);
            if (ans != -1) {
              sprintf(val, "%g", z);
              for (k = 0; k < strlen(val); k++) {
                new[j] = val[k];
                j++;
              }
              break;
            } else {
              new[j] = '?';
              j++;
            }
          } else {
            name[m] = c2;
            m++;
          }
          i++;
          if (i >= l) {
            new[j] = '?';
            new[j + 1] = 0;
            return;
          }
        }
      }
      goto nc;
    }
  na:
    new[j] = c;
    j++;
  nc:
    i++;
    if (i >= l)
      break;
  }
  new[j] = 0;
  return;
}
```