user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0x9000(%rsp),%r11
L49:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L49
  sub    $0xe10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x9de0(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x32,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  lea    -0x9e08(%rbp),%rdx
  lea    -0x9e04(%rbp),%rax
  mov    %rax,%rsi
  lea    D37(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movl   $0x0,-0x9e00(%rbp)
  jmp    L40
L43:
  movl   $0x0,-0x9dfc(%rbp)
  jmp    L126
L113:
  lea    -0x9c50(%rbp),%rcx
  mov    -0x9dfc(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x9e00(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x2,%rax
  add    %rsi,%rax
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    %rax,%rsi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x9dfc(%rbp)
L126:
  mov    -0x9e08(%rbp),%eax
  cmp    %eax,-0x9dfc(%rbp)
  jl     L113
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x9e00(%rbp)
L40:
  mov    -0x9e04(%rbp),%eax
  cmp    %eax,-0x9e00(%rbp)
  jl     L43
  movl   $0x0,-0x9df8(%rbp)
  jmp    L131
L103:
  movl   $0x0,-0x9df4(%rbp)
  jmp    L116
L155:
  mov    -0x9df4(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x9df8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x2,%rax
  add    %rcx,%rax
  movl   $0x0,-0x9c50(%rbp,%rax,4)
  addl   $0x1,-0x9df4(%rbp)
L116:
  mov    -0x9e08(%rbp),%eax
  cmp    %eax,-0x9df4(%rbp)
  jl     L90
  cmpl   $0x63,-0x9df4(%rbp)
  jle    L155
L90:
  addl   $0x1,-0x9df8(%rbp)
L131:
  mov    -0x9e04(%rbp),%eax
  cmp    %eax,-0x9df8(%rbp)
  jl     L64
  cmpl   $0x63,-0x9df8(%rbp)
  jle    L103
L64:
  movl   $0x0,-0x9df0(%rbp)
  jmp    L51
L41:
  movl   $0x0,-0x9dec(%rbp)
  jmp    L91
L84:
  mov    -0x9df0(%rbp),%eax
  cltq
  mov    -0x9de0(%rbp,%rax,4),%ecx
  mov    -0x9dec(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x9df0(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x2,%rax
  add    %rsi,%rax
  mov    -0x9c50(%rbp,%rax,4),%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0x9df0(%rbp),%eax
  cltq
  mov    %edx,-0x9de0(%rbp,%rax,4)
  addl   $0x1,-0x9dec(%rbp)
L91:
  mov    -0x9e08(%rbp),%eax
  cmp    %eax,-0x9dec(%rbp)
  jl     L84
  addl   $0x1,-0x9df0(%rbp)
L51:
  mov    -0x9e04(%rbp),%eax
  cmp    %eax,-0x9df0(%rbp)
  jl     L41
  mov    -0x9e04(%rbp),%edx
  mov    -0x9c50(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <max_sum@plt>
  mov    %eax,-0x9de4(%rbp)
  movl   $0x0,-0x9de8(%rbp)
  jmp    L32
L4:
  mov    -0x9de8(%rbp),%eax
  cltq
  mov    -0x9de0(%rbp,%rax,4),%eax
  cmp    %eax,-0x9de4(%rbp)
  jne    L144
  mov    -0x9de8(%rbp),%eax
  mov    %eax,%esi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L144:
  addl   $0x1,-0x9de8(%rbp)
L32:
  mov    -0x9e04(%rbp),%eax
  cmp    %eax,-0x9de8(%rbp)
  jl     L4
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L157
  call   <__stack_chk_fail@plt>
L157:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D37
data_type: string
name: retrieve_data
arguments: data_label: D20
data_type: string
name: retrieve_data
arguments: data_label: D25
data_type: string

tool: D37: %d %d


tool: D20: %d 

tool: D25: 


assistant: ```c
int main() {
  int m, n, rsum[100] = {0}, max, mat[100][100];
  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 < 100); i++) {
    for (int j = 0; (j >= m) && (j < 100); j++) {
      mat[i][j] = 0;
    }
  }
  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[100], n);
  for (int k = 0; k < n; k++) {
    if (rsum[k] == max)
      printf("%d ", k);
  }
  return 0;
}
```