user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x9000(%rsp),%r11
L70:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L70
  sub    $0xe08,%rsp
  mov    $0x32,%ecx
  mov    $0x9c40,%edx
  xor    %esi,%esi
  xor    %r13d,%r13d
  lea    D38(%rip),%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x9df8(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rbp
  lea    0x1b0(%rsp),%r14
  mov    %rbp,%rdi
  rep stos %rax,%es:(%rdi)
  mov    %r14,%rdi
  call   <memset@plt>
  lea    0x1c(%rsp),%rsi
  lea    0x18(%rsp),%rdx
  xor    %eax,%eax
  lea    D20(%rip),%rdi
  call   <scanf@plt>
  mov    0x1c(%rsp),%esi
  movl   $0x0,0xc(%rsp)
  test   %esi,%esi
  jle    L18
L33:
  mov    0x18(%rsp),%edx
  lea    (%r14,%r13,4),%r12
  xor    %r15d,%r15d
  test   %edx,%edx
  jle    L54
L109:
  mov    %r12,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x1,%r15d
  call   <scanf@plt>
  add    $0x4,%r12
  cmp    %r15d,0x18(%rsp)
  jg     L109
L54:
  lea    D21(%rip),%rdi
  xor    %eax,%eax
  add    $0x64,%r13
  call   <scanf@plt>
  addl   $0x1,0xc(%rsp)
  mov    0x1c(%rsp),%esi
  mov    0xc(%rsp),%eax
  cmp    %eax,%esi
  jg     L33
  test   %esi,%esi
  jle    L18
  mov    0x18(%rsp),%r9d
  lea    -0x1(%rsi),%edx
  mov    $0xfffffffffffffffc,%r8
  mov    %rbp,%rdi
  lea    0x24(%rsp,%rdx,4),%r10
  lea    -0x1(%r9),%eax
  shl    $0x2,%rax
  lea    0x1b4(%rsp,%rax,1),%rcx
  sub    %rax,%r8
L101:
  test   %r9d,%r9d
  jle    L74
  mov    (%rdi),%edx
  lea    (%r8,%rcx,1),%rax
L66:
  add    (%rax),%edx
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L66
  mov    %edx,(%rdi)
L74:
  add    $0x4,%rdi
  add    $0x190,%rcx
  cmp    %r10,%rdi
  jne    L101
L18:
  mov    %rbp,%rdi
  xor    %ebx,%ebx
  lea    D38(%rip),%r13
  call   <max_sum@plt>
  mov    %eax,%r12d
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  jg     L52
  jmp    L56
L98:
  add    $0x1,%rbx
  cmp    %ebx,0x1c(%rsp)
  jle    L56
L52:
  mov    %ebx,%esi
  cmp    %r12d,0x0(%rbp,%rbx,4)
  jne    L98
  mov    %r13,%rdi
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,0x1c(%rsp)
  jg     L52
L56:
  mov    0x9df8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L139
  add    $0x9e08,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L139:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D38
data_type: string
name: disassemble_data
arguments: tag: D20
data_type: string
name: disassemble_data
arguments: tag: D21
data_type: string

tool: D38: %d 

tool: D20: %d %d


tool: D21: 


assistant: ```c
int main() {
  int m, n, max;
  int mat[100][100];
  int rsum[100] = {0};
  for (int i = 0; i < 100; i++) {
    for (int j = 0; j < 100; j++) {
      mat[i][j] = 0;
    }
  }
  scanf("%d %d\n", &n, &m);
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      scanf("%d ", &mat[i][j]);
    }
    scanf("\n");
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      rsum[i] = rsum[i] + mat[i][j];
    }
  }
  max = max_sum(rsum, n);
  for (int k = 0; k < n; k++) {
    if (rsum[k] == max)
      printf("%d ", k);
  }
  return 0;
}
```