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

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x1f40,%edi
  push   %r14
  lea    D9(%rip),%r14
  push   %r13
  push   %r12
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  sub    $0x128,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r12
  call   <malloc@plt>
  mov    %r12,%rdi
  movq   $0x3e8,0x8(%rsp)
  mov    %rax,%r13
  call   <gets@plt>
  test   %rax,%rax
  je     L125
  nopl   (%rax)
L12:
  movzbl 0x10(%rsp),%eax
  test   %al,%al
  je     L95
  mov    %r12,%rbx
  cmp    $0x3a,%al
  je     L95
  nopl   0x0(%rax,%rax,1)
L103:
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbx
  test   %al,%al
  je     L34
  cmp    $0x3a,%al
  jne    L103
L34:
  movb   $0x0,(%rbx)
  mov    %r12,%rdi
  call   <atol@plt>
  lea    0x1(%rbx),%rdi
  mov    %rax,%r15
  movzbl 0x1(%rbx),%eax
  mov    %rdi,%rbx
  cmp    $0x3a,%al
  je     L154
  test   %al,%al
  je     L154
  nopl   0x0(%rax)
L129:
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbx
  test   %al,%al
  je     L154
  cmp    $0x3a,%al
  jne    L129
L154:
  movb   $0x0,(%rbx)
  add    $0x1,%rbx
  call   <atol@plt>
  lea    0x0(,%r15,8),%r8
  cmp    %rax,%r15
  je     L148
  mov    0x0(%r13,%r15,8),%rsi
  mov    %rbp,%rdx
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
L84:
  mov    %rbx,%rdi
  add    $0x1,%rbp
  call   <puts@plt>
  mov    %r12,%rdi
  call   <gets@plt>
  test   %rax,%rax
  jne    L12
L125:
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L18
  add    $0x128,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L148:
  xor    %eax,%eax
  mov    %rbp,%rdx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  mov    %r8,(%rsp)
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  mov    (%rsp),%r8
  sub    $0x1,%rax
  cmp    %r15,%rax
  jb     L67
L159:
  mov    %rbp,0x0(%r13,%r15,8)
  jmp    L84
  nopl   (%rax)
L67:
  lea    0x1(%r15),%rax
  mov    %r13,%rdi
  lea    0x8(%r8),%rsi
  mov    %rax,0x8(%rsp)
  call   <realloc@plt>
  mov    %rax,%r13
  jmp    L159
  nopw   0x0(%rax,%rax,1)
L95:
  mov    %r12,%rbx
  jmp    L34
L18:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D9
datatype: string

tool: D9: %d:%d:

assistant: ```c
main() {
  unsigned long *clusterID;
  unsigned long nClusters = 1000;
  unsigned long ruid = 0;
  unsigned long clusterIdVal, recordIdVal;
  char line[255];
  register char *ptr, *ptr2;
  clusterID = (unsigned long *)malloc(nClusters * sizeof(unsigned long));
  while (gets(line)) {
    ptr = line;
    while (*ptr && *ptr != ':')
      ptr++;
    *ptr = '\0';
    clusterIdVal = atol(line);
    ptr2 = ++ptr;
    while (*ptr2 && *ptr2 != ':')
      ptr2++;
    *ptr2 = '\0';
    recordIdVal = atol(ptr);
    ptr2++;
    if (clusterIdVal == recordIdVal) {
      printf("%d:%d:", ruid, ruid);
      if (clusterIdVal > nClusters - 1) {
        nClusters = clusterIdVal + 1;
        clusterID = (unsigned long *)realloc(clusterID, nClusters * sizeof(unsigned long));
      }
      clusterID[clusterIdVal] = ruid;
    } else
      printf("%d:%d:", clusterID[clusterIdVal], ruid);
    printf("%s\n", ptr2);
    ruid++;
  }
}
```