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

```asm
<main>:
  endbr64
  push   %r13
  pxor   %xmm0,%xmm0
  lea    D89(%rip),%rdi
  push   %r12
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0xb8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  movaps %xmm0,(%rsp)
  lea    0x36(%rsp),%r13
  movaps %xmm0,0x10(%rsp)
  movq   $0x0,0x20(%rsp)
  call   <puts@plt>
  lea    0x40(%rsp),%rdi
  call   <gets@plt>
  movzbl 0x40(%rsp),%eax
  test   %al,%al
  jne    L166
  jmp    L84
  nopw   0x0(%rax,%rax,1)
L314:
  add    $0x1,%ebx
  movslq %ebx,%rax
  movzbl 0x40(%rsp,%rax,1),%eax
  test   %al,%al
  je     L84
L166:
  lea    -0x30(%rax),%edx
  cmp    $0x9,%dl
  ja     L314
  lea    0x1(%rbx),%edx
  mov    %al,0x36(%rsp)
  movslq %edx,%rax
  movzbl 0x40(%rsp,%rax,1),%eax
  lea    -0x30(%rax),%ecx
  cmp    $0x9,%cl
  ja     L312
  lea    0x2(%rbx),%edx
  mov    %al,0x37(%rsp)
  movslq %edx,%rax
  movzbl 0x40(%rsp,%rax,1),%eax
  lea    -0x30(%rax),%ecx
  cmp    $0x9,%cl
  ja     L147
  lea    0x3(%rbx),%edx
  mov    %al,0x38(%rsp)
  movslq %edx,%rax
  movzbl 0x40(%rsp,%rax,1),%eax
  lea    -0x30(%rax),%ecx
  cmp    $0x9,%cl
  ja     L411
  lea    0x4(%rbx),%edx
  mov    %al,0x39(%rsp)
  movslq %edx,%rax
  movzbl 0x40(%rsp,%rax,1),%eax
  lea    -0x30(%rax),%ecx
  cmp    $0x9,%cl
  ja     L260
  lea    0x5(%rbx),%edx
  mov    %al,0x3a(%rsp)
  movslq %edx,%rax
  movzbl 0x40(%rsp,%rax,1),%eax
  lea    -0x30(%rax),%ecx
  cmp    $0x9,%cl
  ja     L115
  lea    0x6(%rbx),%edx
  mov    %al,0x3b(%rsp)
  movslq %edx,%rax
  movzbl 0x40(%rsp,%rax,1),%eax
  lea    -0x30(%rax),%ecx
  cmp    $0x9,%cl
  ja     L335
  lea    0x7(%rbx),%edx
  mov    %al,0x3c(%rsp)
  movslq %edx,%rax
  movzbl 0x40(%rsp,%rax,1),%eax
  lea    -0x30(%rax),%ecx
  cmp    $0x9,%cl
  ja     L82
  lea    0x8(%rbx),%edx
  mov    %al,0x3d(%rsp)
  movslq %edx,%rax
  movzbl 0x40(%rsp,%rax,1),%eax
  lea    -0x30(%rax),%ecx
  cmp    $0x9,%cl
  ja     L421
  lea    0x9(%rbx),%edx
  mov    %al,0x3e(%rsp)
  movslq %edx,%rax
  movzbl 0x40(%rsp,%rax,1),%eax
  lea    -0x30(%rax),%ecx
  cmp    $0x9,%cl
  ja     L256
  mov    %al,0x3f(%rsp)
  add    $0xa,%ebx
  mov    $0xa,%eax
L272:
  mov    %r13,%rdi
  movb   $0x0,0x36(%rsp,%rax,1)
  add    $0x1,%ebx
  lea    0x1(%rbp),%r12d
  call   <chtoint@plt>
  mov    %eax,(%rsp,%rbp,4)
  movslq %ebx,%rax
  movslq %r12d,%rbp
  movzbl 0x40(%rsp,%rax,1),%eax
  test   %al,%al
  jne    L166
L84:
  lea    D99(%rip),%rdi
  call   <puts@plt>
  mov    (%rsp),%esi
  test   %esi,%esi
  jne    L81
L431:
  mov    0x4(%rsp),%esi
  test   %esi,%esi
  jne    L145
L1:
  mov    0x8(%rsp),%esi
  test   %esi,%esi
  jne    L317
L361:
  mov    0xc(%rsp),%esi
  test   %esi,%esi
  jne    L370
L110:
  mov    0x10(%rsp),%esi
  test   %esi,%esi
  jne    L290
L161:
  mov    0x14(%rsp),%esi
  test   %esi,%esi
  jne    L325
L403:
  mov    0x18(%rsp),%esi
  test   %esi,%esi
  jne    L129
L68:
  mov    0x1c(%rsp),%esi
  test   %esi,%esi
  jne    L120
L172:
  mov    0x20(%rsp),%esi
  test   %esi,%esi
  jne    L149
L227:
  mov    0x24(%rsp),%esi
  test   %esi,%esi
  jne    L315
L87:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L81:
  lea    D118(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L431
L315:
  lea    D118(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L87
L149:
  lea    D118(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L227
L120:
  lea    D118(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L172
L129:
  lea    D118(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L68
L325:
  lea    D118(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L403
L290:
  lea    D118(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L161
L370:
  lea    D118(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L110
L317:
  lea    D118(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L361
L145:
  lea    D118(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L1
L312:
  mov    %edx,%ebx
  mov    $0x1,%eax
  jmp    L272
L147:
  mov    %edx,%ebx
  mov    $0x2,%eax
  jmp    L272
L411:
  mov    %edx,%ebx
  mov    $0x3,%eax
  jmp    L272
L260:
  mov    %edx,%ebx
  mov    $0x4,%eax
  jmp    L272
L115:
  mov    %edx,%ebx
  mov    $0x5,%eax
  jmp    L272
L335:
  mov    %edx,%ebx
  mov    $0x6,%eax
  jmp    L272
L82:
  mov    %edx,%ebx
  mov    $0x7,%eax
  jmp    L272
L421:
  mov    %edx,%ebx
  mov    $0x8,%eax
  jmp    L272
L256:
  mov    %edx,%ebx
  mov    $0x9,%eax
  jmp    L272
L2:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D89
type_guessed: string
name: disassemble_data
arguments: data_label: D99
type_guessed: string
name: disassemble_data
arguments: data_label: D118
type_guessed: string

tool: D89: Enter the string:

tool: D99: The number is:

tool: D118: %3d 

assistant: ```c
void main() {
  char str[100], ch[10];
  int i = 0, j = 0, k = 0, a[10] = {0};
  int chtoint(char *p);
  printf("Enter the string:\n");
  gets(str);
  while (str[i]) {
    if (str[i] >= '0' && str[i] <= '9') {
      j = 0;
      while (str[i] != '\0' && str[i] >= '0' && str[i] <= '9') {
        ch[j++] = str[i];
        i++;
      }
      ch[j] = '\0';
      a[k++] = chtoint(ch);
    }
    i++;
  }
  printf("The number is:\n");
  for (i = 0; i < 10; i++) {
    if (a[i] != 0)
      printf("%3d ", a[i]);
  }
}
```