user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %r13
  lea    D25(%rip),%rdi
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%r12
  call   <puts@plt>
  mov    %r12,%rdi
  call   <gets@plt>
  movzbl 0x30(%rsp),%eax
  test   %al,%al
  je     L208
  mov    %rsp,%rbp
  mov    $0x1,%r10d
  mov    %r12,%rsi
  xor    %ebx,%ebx
  movq   D59(%rip),%xmm2
  mov    %rbp,%r11
  xor    %r8d,%r8d
  sub    %r12,%r10
  jmp    L49
  nopl   (%rax)
L111:
  add    $0x1,%r8d
L163:
  lea    (%r10,%rsi,1),%rdi
  movzbl 0x1(%rsi),%eax
  add    $0x1,%rsi
  test   %al,%al
  je     L190
L49:
  sub    $0x30,%eax
  cmp    $0x9,%al
  jbe    L111
  test   %r8d,%r8d
  je     L163
  movsbl -0x1(%rsi),%r9d
  sub    $0x30,%r9d
  cmp    $0x1,%r8d
  je     L17
  mov    %rsi,%rdi
  mov    $0x1,%ecx
  nopl   0x0(%rax,%rax,1)
L74:
  cmp    $0x1,%ecx
  je     L168
  mov    %ecx,%edx
  xor    %eax,%eax
  movdqa %xmm2,%xmm0
  shr    %edx
  nopl   0x0(%rax,%rax,1)
L24:
  movdqa %xmm0,%xmm1
  add    $0x1,%eax
  pslld  $0x2,%xmm1
  paddd  %xmm1,%xmm0
  pslld  $0x1,%xmm0
  cmp    %eax,%edx
  jne    L24
  movd   %xmm0,%eax
  pshufd $0xe5,%xmm0,%xmm3
  movd   %xmm3,%edx
  imul   %edx,%eax
  test   $0x1,%cl
  je     L110
L67:
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
L110:
  movsbl -0x2(%rdi),%edx
  add    $0x1,%ecx
  sub    $0x1,%rdi
  sub    $0x30,%edx
  imul   %edx,%eax
  add    %eax,%r9d
  cmp    %r8d,%ecx
  jne    L74
L17:
  lea    (%r10,%rsi,1),%rdi
  movzbl 0x1(%rsi),%eax
  mov    %r9d,(%r11)
  add    $0x1,%rsi
  add    $0x4,%r11
  add    $0x1,%ebx
  xor    %r8d,%r8d
  test   %al,%al
  jne    L49
L190:
  test   %r8d,%r8d
  je     L229
  movsbl 0x2f(%rsp,%rdi,1),%esi
  sub    $0x30,%esi
  cmp    $0x1,%r8d
  je     L113
  mov    D59(%rip),%r9
  add    %r12,%rdi
  mov    $0x1,%ecx
  nopl   0x0(%rax,%rax,1)
L139:
  cmp    $0x1,%ecx
  je     L78
  mov    %ecx,%edx
  xor    %eax,%eax
  movq   %r9,%xmm0
  shr    %edx
  nopl   0x0(%rax)
L121:
  movdqa %xmm0,%xmm1
  add    $0x1,%eax
  pslld  $0x2,%xmm1
  paddd  %xmm1,%xmm0
  pslld  $0x1,%xmm0
  cmp    %edx,%eax
  jne    L121
  movd   %xmm0,%edx
  pshufd $0xe5,%xmm0,%xmm4
  movd   %xmm4,%eax
  imul   %edx,%eax
  test   $0x1,%cl
  je     L116
L5:
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
L116:
  movsbl -0x2(%rdi),%edx
  add    $0x1,%ecx
  sub    $0x1,%rdi
  sub    $0x30,%edx
  imul   %edx,%eax
  add    %eax,%esi
  cmp    %ecx,%r8d
  jne    L139
L113:
  mov    %esi,(%r11)
  add    $0x1,%ebx
  lea    D3(%rip),%rdi
  xor    %eax,%eax
  mov    %ebx,%esi
  call   <printf@plt>
L210:
  xor    %r12d,%r12d
  lea    D51(%rip),%r13
  nopl   0x0(%rax,%rax,1)
L53:
  mov    0x0(%rbp,%r12,4),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%r12
  call   <printf@plt>
  cmp    %r12d,%ebx
  jg     L53
L195:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L131
  add    $0x78,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nop
L168:
  mov    $0x1,%eax
  jmp    L67
L78:
  mov    $0x1,%eax
  jmp    L5
L229:
  xor    %eax,%eax
  mov    %ebx,%esi
  lea    D3(%rip),%rdi
  call   <printf@plt>
  test   %ebx,%ebx
  jne    L210
  jmp    L195
L208:
  xor    %esi,%esi
  lea    D3(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L195
L131:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D25
type: string
name: extract_symbolic_data
arguments: label: D59
type: byte[8]
name: extract_symbolic_data
arguments: label: D3
type: string
name: extract_symbolic_data
arguments: label: D51
type: string

tool: D25: input a string:

tool: {"D59": [0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00]}

tool: D3: There are %d numbers in this line.They are :


tool: D51: %d 

assistant: ```c
int main() {
  char str[50], *pstr;
  int i, j, k, m, e10, digit, ndigit, a[10], *pa;
  printf("input a string:\n");
  gets(str);
  pstr = &str[0];
  pa = &a[0];
  ndigit = 0;
  i = 0;
  j = 0;
  while (*(pstr + i) != '\0') {
    if (*(pstr + i) >= '0' && *(pstr + i) <= '9')
      j++;
    else {
      if (j > 0) {
        digit = *(pstr + i - 1) - 48;
        k = 1;
        while (k < j) {
          e10 = 1;
          for (m = 1; m <= k; m++)
            e10 = e10 * 10;
          digit = digit + (*(pstr + i - 1 - k) - 48) * e10;
          k++;
        }
        *pa = digit;
        pa++;
        ndigit++;
        j = 0;
      }
    }
    i++;
  }
  if (j > 0) {
    digit = *(pstr + i - 1) - 48;
    k = 1;
    while (k < j) {
      e10 = 1;
      for (m = 1; m <= k; m++)
        e10 = e10 * 10;
      digit = digit + (*(pstr + i - 1 - k) - 48) * e10;
      k++;
    }
    *pa = digit;
    ndigit++;
    j = 0;
  }
  printf("There are %d numbers in this line.They are :\n", ndigit);
  j = 0;
  pa = &a[0];
  for (j = 0; j < ndigit; j++)
    printf("%d ", *(pa + j));
  printf("\n");
  return 0;
}
```