user: 下面的汇编指令对应的C源代码是什么：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  lea    -0x68(%rbp),%rax
  mov    %rax,%rsi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L46:
  cmp    %rdx,%rsp
  je     L38
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L46
L38:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L24
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L24:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x40(%rbp)
  movq   $0x0,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x60(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %eax,-0x64(%rbp)
  jmp    L73
L48:
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x40(%rbp),%rax
  mov    -0x64(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rax
  add    %rax,-0x60(%rbp)
  mov    -0x64(%rbp),%eax
  add    $0x1,%eax
  movslq %eax,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x64(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rax
  imul   %rcx,%rax
  add    %rax,-0x58(%rbp)
  addl   $0x1,-0x64(%rbp)
L73:
  mov    -0x68(%rbp),%eax
  cmp    %eax,-0x64(%rbp)
  jl     L48
  movl   $0x0,-0x64(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  jmp    L42
L29:
  mov    -0x58(%rbp),%rax
  sub    -0x60(%rbp),%rax
  mov    %rax,%rsi
  mov    -0x68(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x64(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rax
  imul   %rcx,%rax
  add    %rsi,%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  cmp    -0x50(%rbp),%rax
  jle    L50
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x50(%rbp)
L50:
  addl   $0x1,-0x64(%rbp)
L42:
  mov    -0x68(%rbp),%eax
  cmp    %eax,-0x64(%rbp)
  jl     L29
  mov    -0x50(%rbp),%rax
  mov    %rax,%rsi
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L51
  call   <__stack_chk_fail@plt>
L51:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: tag: D9
type_guessed: string
name: parse_data
arguments: tag: D26
type_guessed: string
name: parse_data
arguments: tag: D16
type_guessed: string

tool: D9: %d

tool: D26: %lld

tool: D16: %lld


assistant: ```c
int main() {
  int n, i;
  scanf("%d", &n);
  long long int a[n], s, ws, m;
  for (i = s = ws = 0; i < n; ++i) {
    scanf("%lld", &a[i]);
    s += a[i];
    ws += (i + 1) * a[i];
  }
  for (i = 0, m = ws; i < n; ++i) {
    ws = ws - s + n * a[i];
    if (ws > m)
      m = ws;
  }
  printf("%lld\n", m);
  return 0;
}
```