user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x5000(%rsp),%r11
L140:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L140
  sub    $0xde8,%rsp
  lea    D25(%rip),%rsi
  lea    D14(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x5dd8(%rsp)
  xor    %eax,%eax
  lea    0xfb0(%rsp),%r15
  lea    0x1078(%rsp),%rbp
  call   <fopen@plt>
  lea    0x5e98(%rsp),%r14
  lea    0xf(%rsp),%r13
  mov    %rax,%r12
  nopl   0x0(%rax)
L121:
  lea    -0xc8(%rbp),%rbx
  nop
L97:
  mov    %r12,%rdi
  add    $0x4,%rbx
  call   <fgetc@plt>
  mov    %r13,%rdi
  mov    %al,0xf(%rsp)
  call   <atoi@plt>
  mov    %eax,-0x4(%rbx)
  cmp    %rbp,%rbx
  jne    L97
  mov    %r12,%rdi
  lea    0xc8(%rbx),%rbp
  call   <fgetc@plt>
  cmp    %r14,%rbp
  jne    L121
  lea    0x10(%rsp),%rbx
  lea    0x4ee4(%r15),%rcx
  xor    %edx,%edx
  add    $0x4e1c,%r15
  mov    %rbx,%rdi
L22:
  lea    -0x4e20(%rcx),%rax
  nopl   0x0(%rax,%rax,1)
L126:
  add    (%rax),%edx
  add    $0xc8,%rax
  cmp    %rcx,%rax
  jne    L126
  movslq %edx,%rcx
  mov    %edx,%esi
  add    $0x4,%rdi
  imul   $0x66666667,%rcx,%rcx
  sar    $0x1f,%esi
  sar    $0x22,%rcx
  sub    %esi,%ecx
  lea    (%rcx,%rcx,4),%esi
  mov    %edx,%ecx
  add    %esi,%esi
  sub    %esi,%ecx
  mov    %edx,%esi
  sub    %ecx,%esi
  mov    %ecx,-0x4(%rdi)
  lea    -0x4(%rax),%rcx
  movslq %esi,%rdx
  sar    $0x1f,%esi
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  sub    %esi,%edx
  cmp    %rcx,%r15
  jne    L22
  movslq %edx,%rax
  mov    %edx,%ecx
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%ecx
  sar    $0x22,%rax
  sub    %ecx,%eax
  lea    (%rax,%rax,4),%ecx
  mov    %edx,%eax
  add    %ecx,%ecx
  sub    %ecx,%eax
  mov    %eax,0xd8(%rsp)
  sub    %eax,%edx
  je     L136
  lea    0xdc(%rsp),%rsi
L155:
  movslq %edx,%rcx
  sar    $0x1f,%edx
  add    $0x4,%rsi
  imul   $0x66666667,%rcx,%rcx
  sar    $0x22,%rcx
  sub    %edx,%ecx
  movslq %ecx,%rax
  mov    %ecx,%edx
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  lea    (%rax,%rax,4),%edx
  mov    %ecx,%eax
  add    %edx,%edx
  sub    %edx,%eax
  mov    %ecx,%edx
  mov    %eax,-0x4(%rsi)
  sub    %eax,%edx
  jne    L155
L136:
  mov    0xfac(%rsp),%esi
  mov    $0x3e7,%eax
  test   %esi,%esi
  je     L43
  lea    D5(%rip),%r12
  mov    %r12,%rdi
  call   <printf@plt>
  mov    $0x3e6,%eax
L118:
  movslq %eax,%rdx
  mov    0x10(%rsp,%rdx,4),%esi
  jmp    L94
L113:
  sub    $0x1,%rbp
  mov    0x4(%rbx,%rbp,4),%esi
  test   %esi,%esi
  jne    L47
L94:
  sub    $0x1,%eax
  movslq %eax,%rbp
L47:
  mov    %r12,%rdi
  call   <printf@plt>
  mov    %ebp,%eax
  cmp    $0xffffffff,%ebp
  jne    L113
L19:
  mov    0x5dd8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L151
  add    $0x5de8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L43:
  mov    %eax,%ebp
  test   %rax,%rax
  je     L19
  sub    $0x1,%rax
  mov    (%rbx,%rax,4),%esi
  test   %esi,%esi
  je     L43
  lea    D5(%rip),%r12
  mov    %r12,%rdi
  call   <printf@plt>
  lea    -0x2(%rbp),%eax
  cmp    $0x1,%ebp
  jne    L118
  jmp    L19
L151:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D25
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D14
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D5
type_guessed: string

tool: D25: r

tool: D14: numbers.txt

tool: D5: %d

assistant: ```c
int main() {
  FILE *p_file = fopen("numbers.txt", "r");
  int numbers[100][50];
  int i;
  int j;
  for (i = 0; i < 100; i++) {
    for (j = 0; j < 50; j++) {
      char c = fgetc(p_file);
      numbers[i][j] = atoi(&c);
    }
    fgetc(p_file);
  }
  int result[1000];
  int counter = 0;
  int64_t sum = 0;
  for (j = 49; j >= 0; j--) {
    for (i = 0; i < 100; i++) {
      sum += numbers[i][j];
    }
    result[counter++] = sum % 10;
    sum -= sum % 10;
    sum /= 10;
  }
  while (1) {
    result[counter++] = sum % 10;
    sum -= sum % 10;
    if (sum != 0) {
      sum /= 10;
    } else {
      break;
    }
  }
  bool read = false;
  for (i = 999; i >= 0; i--) {
    if (result[i] != 0 && read == false) {
      printf("%d", result[i]);
      read = true;
    } else if (read) {
      printf("%d", result[i]);
    }
  }
  return 0;
}
```