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    -0x9000(%rsp),%r11
L218:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L218
  sub    $0xe08,%rsp
  mov    $0x32,%ecx
  mov    %fs:0x28,%rax
  mov    %rax,0x9df8(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rdi
  lea    0x1c(%rsp),%rdx
  mov    %rdi,0x8(%rsp)
  mov    %rdi,%r15
  lea    0x18(%rsp),%rsi
  rep stos %rax,%es:(%rdi)
  lea    D21(%rip),%rdi
  call   <scanf@plt>
  mov    0x18(%rsp),%edx
  test   %edx,%edx
  jle    L20
  mov    0x1c(%rsp),%eax
  xor    %r12d,%r12d
  xor    %ebp,%ebp
  lea    D19(%rip),%r13
  movl   $0x0,0x4(%rsp)
  test   %eax,%eax
  jle    L91
  nopl   0x0(%rax)
L212:
  lea    0x1b0(%rsp),%rbx
  xor    %r14d,%r14d
  sub    %rbp,%rbx
  cs nopw 0x0(%rax,%rax,1)
L55:
  mov    %rbx,%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%r14d
  call   <scanf@plt>
  lea    (%rbx,%rbp,1),%rax
  add    $0x4,%rbx
  mov    (%rax,%r12,1),%eax
  add    %eax,(%r15)
  mov    0x1c(%rsp),%eax
  cmp    %r14d,%eax
  jg     L55
  addl   $0x1,0x4(%rsp)
  mov    0x18(%rsp),%edx
  mov    0x4(%rsp),%ecx
  cmp    %edx,%ecx
  jge    L50
  add    $0x4,%r15
  sub    $0x190,%rbp
  add    $0x190,%r12
  test   %eax,%eax
  jg     L212
L91:
  mov    0x4(%rsp),%r14d
  add    $0x1,%r14d
  cmp    %edx,%r14d
  jge    L50
  mov    0x24(%rsp),%ebp
  mov    0x20(%rsp),%eax
  cmp    %eax,%ebp
  cmovl  %eax,%ebp
  cmp    $0x2,%edx
  jle    L217
L190:
  lea    -0x2(%rdx),%esi
  cmp    $0x2,%edx
  mov    $0x1,%eax
  cmovle %eax,%esi
  cmp    $0x5,%edx
  jle    L171
  movd   %ebp,%xmm3
  lea    0x28(%rsp),%rax
  mov    %esi,%ecx
  shr    $0x2,%ecx
  pshufd $0x0,%xmm3,%xmm2
  sub    $0x1,%ecx
  shl    $0x4,%rcx
  lea    0x38(%rsp,%rcx,1),%rcx
  nopw   0x0(%rax,%rax,1)
L118:
  movdqu (%rax),%xmm0
  add    $0x10,%rax
  movdqa %xmm0,%xmm1
  pcmpgtd %xmm2,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  movdqa %xmm1,%xmm2
  por    %xmm0,%xmm2
  cmp    %rax,%rcx
  jne    L118
  movdqa %xmm2,%xmm1
  mov    %esi,%ecx
  psrldq $0x8,%xmm1
  and    $0xfffffffc,%ecx
  movdqa %xmm1,%xmm0
  lea    0x2(%rcx),%eax
  pcmpgtd %xmm2,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm2,%xmm0
  por    %xmm1,%xmm0
  movdqa %xmm0,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm2
  pandn  %xmm0,%xmm1
  por    %xmm2,%xmm1
  movd   %xmm1,%ebp
  cmp    %esi,%ecx
  je     L217
L38:
  movslq %eax,%rcx
  mov    0x20(%rsp,%rcx,4),%ecx
  cmp    %ecx,%ebp
  cmovl  %ecx,%ebp
  lea    0x1(%rax),%ecx
  cmp    %edx,%ecx
  jge    L217
  movslq %ecx,%rcx
  mov    0x20(%rsp,%rcx,4),%ecx
  cmp    %ecx,%ebp
  cmovl  %ecx,%ebp
  add    $0x2,%eax
  cmp    %edx,%eax
  jge    L217
  cltq
  mov    0x20(%rsp,%rax,4),%eax
  cmp    %eax,%ebp
  cmovl  %eax,%ebp
L217:
  xor    %ebx,%ebx
  lea    D10(%rip),%r12
  nopl   0x0(%rax)
L102:
  mov    0x8(%rsp),%rax
  mov    %ebx,%esi
  cmp    %ebp,(%rax,%rbx,4)
  je     L151
  add    $0x1,%rbx
  cmp    %ebx,%edx
  jg     L102
L20:
  mov    0x9df8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L61
  add    $0x9e08,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L151:
  mov    %r12,%rdi
  add    $0x1,%rbx
  call   <printf@plt>
  mov    0x18(%rsp),%edx
  cmp    %ebx,%edx
  jg     L102
  jmp    L20
L171:
  mov    $0x2,%eax
  jmp    L38
L50:
  mov    0x20(%rsp),%ebp
  mov    0x24(%rsp),%eax
  cmp    %eax,%ebp
  cmovl  %eax,%ebp
  cmp    $0x2,%edx
  jg     L190
  test   %edx,%edx
  jle    L20
  jmp    L217
L61:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D21
type: string
name: disassemble_data
arguments: data_label: D19
type: string
name: disassemble_data
arguments: data_label: D10
type: string

tool: D21: %d %d

tool: D19: %d

tool: D10: %d 

assistant: ```c
int main() {
  int a[100][100], i, j, n, m;
  int sum[100];
  for (int k = 0; k < 100; k++)
    sum[k] = 0;
  scanf("%d %d", &n, &m);
  for (i = 0; i < n; i++) {
    for (j = 0; j < m; j++) {
      scanf("%d", &a[i][j]);
      sum[i] = sum[i] + a[i][j];
    }
  }
  int max;
  if (sum[0] >= sum[1])
    max = sum[0];
  else
    max = sum[1];
  for (i = 2; i < n; i++) {
    if (sum[i] >= max)
      max = sum[i];
  }
  for (i = 0; i < n; i++) {
    if (sum[i] == max)
      printf("%d ", i);
  }
  return 0;
}
```