user: What is the c source code of the assembly code below?

```asm
<helper>:
  endbr64
  push   %r15
  push   %r14
  mov    %ecx,%r14d
  mov    %edi,%ecx
  push   %r13
  shr    $0x1f,%ecx
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  cmp    %esi,%edi
  setg   %al
  mov    %edi,0x40(%rsp)
  or     %cl,%al
  mov    %esi,0x1c(%rsp)
  jne    L165
  cmp    %esi,%r14d
  jle    L165
  mov    D5(%rip),%rax
  mov    %rdx,%r13
  lea    -0x2(%rdi),%edx
  movslq %edi,%rbx
  mov    %edx,0x18(%rsp)
  add    $0x2,%edi
  mov    %r13,%r15
  mov    (%rax),%eax
  mov    %rbx,0x78(%rsp)
  mov    %edx,0x90(%rsp)
  mov    %eax,0x4(%rsp)
  mov    %eax,0x68(%rsp)
  mov    0x18(%rsp),%eax
  mov    %edi,0x94(%rsp)
  mov    %edi,0x20(%rsp)
  mov    %rbx,0x70(%rsp)
  cmp    %r14d,%eax
  jge    L559
L462:
  mov    0x40(%rsp),%ebx
  cmp    %ebx,%eax
  jl     L559
  mov    0x94(%rsp),%eax
  mov    0x90(%rsp),%r12d
  mov    %eax,0x8(%rsp)
  mov    0x78(%rsp),%rax
  mov    %r12d,0x10(%rsp)
  mov    %r15,%r12
  mov    %rax,0x38(%rsp)
  mov    0x4(%rsp),%eax
  mov    %eax,0x58(%rsp)
L5:
  mov    0x10(%rsp),%eax
  cmp    %eax,0x40(%rsp)
  jg     L479
  cmp    %eax,%r14d
  jle    L479
  mov    0x78(%rsp),%rax
  mov    0x94(%rsp),%r13d
  mov    0x90(%rsp),%ebp
  mov    %rax,0x28(%rsp)
  mov    0x4(%rsp),%eax
  mov    %eax,0xc(%rsp)
  mov    %r12,%rax
  mov    %r13d,%r12d
  mov    %rax,%r13
L233:
  cmp    %ebp,0x40(%rsp)
  jg     L102
  cmp    %ebp,%r14d
  jle    L102
  mov    0x4(%rsp),%r15d
  mov    0x78(%rsp),%r9
  mov    %r12d,0x24(%rsp)
  mov    %r13,%r12
  mov    %r15d,%r13d
  mov    %r9,%r15
L431:
  mov    0x40(%rsp),%edi
  lea    -0x2(%r15),%esi
  mov    %r14d,%ecx
  mov    %r12,%rdx
  call   <helper>
  lea    0x2(%r15),%edi
  mov    %r14d,%ecx
  mov    %r12,%rdx
  mov    %ebp,%esi
  mov    %eax,%ebx
  call   <helper>
  add    %ebx,%eax
  add    (%r12,%r15,4),%eax
  cmp    %eax,%r13d
  cmovl  %eax,%r13d
  add    $0x1,%r15
  cmp    %r15d,%ebp
  jge    L431
  mov    %r13d,%r15d
  mov    %r12,%r13
  mov    0x24(%rsp),%r12d
L119:
  test   %r12d,%r12d
  js     L399
  mov    0x10(%rsp),%eax
  cmp    %r12d,%eax
  jl     L399
  mov    0x4(%rsp),%r11d
  movslq %r12d,%r9
  mov    %ebp,0x30(%rsp)
  mov    %r13,%rbx
  mov    %r15d,0x44(%rsp)
  mov    %eax,%ebp
  mov    %r9,%r13
  mov    %r11d,%r15d
L127:
  lea    -0x2(%r13),%esi
  mov    %r14d,%ecx
  mov    %rbx,%rdx
  mov    %r12d,%edi
  call   <helper>
  lea    0x2(%r13),%edi
  mov    %r14d,%ecx
  mov    %rbx,%rdx
  mov    %ebp,%esi
  mov    %eax,0x24(%rsp)
  call   <helper>
  add    0x24(%rsp),%eax
  add    (%rbx,%r13,4),%eax
  cmp    %eax,%r15d
  cmovl  %eax,%r15d
  add    $0x1,%r13
  cmp    %r13d,%ebp
  jge    L127
  mov    %r15d,%r11d
  mov    0x44(%rsp),%r15d
  mov    0x30(%rsp),%ebp
  mov    %rbx,%r13
  add    %r11d,%r15d
L399:
  mov    0x28(%rsp),%rax
  mov    0xc(%rsp),%ebx
  mov    0x0(%r13,%rax,4),%r8d
  add    %r15d,%r8d
  cmp    %r8d,%ebx
  cmovge %ebx,%r8d
  add    $0x1,%rax
  add    $0x1,%ebp
  add    $0x1,%r12d
  mov    %rax,0x28(%rsp)
  mov    %r8d,0xc(%rsp)
  cmp    %eax,0x10(%rsp)
  jge    L233
  mov    %r13,%r12
L150:
  movslq 0x8(%rsp),%rax
  test   %eax,%eax
  js     L117
  cmp    %eax,0x18(%rsp)
  jl     L117
  mov    %rax,0x50(%rsp)
  mov    0x38(%rsp),%ebp
  mov    %rax,0x30(%rsp)
  mov    0x4(%rsp),%eax
  mov    %eax,0x28(%rsp)
L32:
  cmp    %ebp,%r14d
  jle    L125
  cmp    %ebp,0x8(%rsp)
  jg     L125
  mov    0x50(%rsp),%r13
  mov    %r12,%rax
  mov    0x4(%rsp),%r15d
  mov    %r13,%r12
  mov    %rax,%r13
L388:
  mov    0x8(%rsp),%edi
  lea    -0x2(%r12),%esi
  mov    %r14d,%ecx
  mov    %r13,%rdx
  call   <helper>
  lea    0x2(%r12),%edi
  mov    %r14d,%ecx
  mov    %r13,%rdx
  mov    %ebp,%esi
  mov    %eax,%ebx
  call   <helper>
  add    %ebx,%eax
  add    0x0(%r13,%r12,4),%eax
  cmp    %eax,%r15d
  cmovl  %eax,%r15d
  add    $0x1,%r12
  cmp    %r12d,%ebp
  jge    L388
  mov    %r13,%r12
L258:
  lea    0x4(%rbp),%r11d
  cmp    %r11d,0x18(%rsp)
  jl     L566
  movslq %r11d,%r13
  mov    0x4(%rsp),%r10d
  mov    %r15d,0x44(%rsp)
  mov    %r12,%rbx
  mov    %r13,%r15
  mov    0x18(%rsp),%r13d
  mov    %ebp,0x48(%rsp)
  mov    %r11d,%r12d
  mov    %r10d,%ebp
L285:
  lea    -0x2(%r15),%esi
  mov    %r14d,%ecx
  mov    %rbx,%rdx
  mov    %r12d,%edi
  call   <helper>
  lea    0x2(%r15),%edi
  mov    %r14d,%ecx
  mov    %rbx,%rdx
  mov    %r13d,%esi
  mov    %eax,0x24(%rsp)
  call   <helper>
  add    0x24(%rsp),%eax
  add    (%rbx,%r15,4),%eax
  cmp    %eax,%ebp
  cmovl  %eax,%ebp
  add    $0x1,%r15
  cmp    %r15d,%r13d
  jge    L285
  mov    0x44(%rsp),%r15d
  mov    %ebp,%r10d
  mov    0x48(%rsp),%ebp
  mov    %rbx,%r12
  add    %r10d,%r15d
L566:
  mov    0x30(%rsp),%rax
  mov    0x28(%rsp),%edx
  mov    (%r12,%rax,4),%r8d
  add    %r15d,%r8d
  cmp    %r8d,%edx
  cmovge %edx,%r8d
  add    $0x1,%rax
  add    $0x1,%ebp
  mov    %rax,0x30(%rsp)
  mov    %r8d,0x28(%rsp)
  cmp    %eax,0x18(%rsp)
  jge    L32
  add    %r8d,0xc(%rsp)
L117:
  mov    0x38(%rsp),%rdx
  mov    0x58(%rsp),%ebx
  mov    0xc(%rsp),%eax
  add    (%r12,%rdx,4),%eax
  cmp    %eax,%ebx
  cmovge %ebx,%eax
  add    $0x1,%rdx
  addl   $0x1,0x10(%rsp)
  addl   $0x1,0x8(%rsp)
  mov    %eax,0x58(%rsp)
  mov    %rdx,0x38(%rsp)
  cmp    %edx,0x18(%rsp)
  jge    L5
  mov    %r12,%r15
L221:
  movslq 0x20(%rsp),%rax
  test   %eax,%eax
  js     L322
  mov    0x1c(%rsp),%ecx
  cmp    %ecx,%eax
  jg     L322
  mov    0x18(%rsp),%ecx
  mov    0x70(%rsp),%rbx
  mov    %rax,0x50(%rsp)
  mov    %r15,%rbp
  mov    %rax,0x80(%rsp)
  mov    0x4(%rsp),%eax
  lea    0x6(%rcx),%edx
  mov    %ebx,0x98(%rsp)
  mov    %edx,0x9c(%rsp)
  mov    %edx,0x8(%rsp)
  mov    %ebx,0x38(%rsp)
  mov    %eax,0x5c(%rsp)
L270:
  mov    0x38(%rsp),%eax
  cmp    %eax,0x20(%rsp)
  jg     L461
  cmp    %eax,%r14d
  jle    L461
  mov    0x80(%rsp),%rax
  mov    0x9c(%rsp),%r8d
  mov    %rbp,%r15
  mov    0x98(%rsp),%r12d
  mov    %rax,0x10(%rsp)
  mov    0x4(%rsp),%eax
  mov    %r8d,%ebp
  mov    %eax,0x30(%rsp)
L63:
  cmp    %r12d,0x20(%rsp)
  jg     L464
  cmp    %r12d,%r14d
  jle    L464
  mov    0x80(%rsp),%r10
  mov    0x4(%rsp),%r13d
  mov    %ebp,0xc(%rsp)
  mov    %r15,%rbp
  mov    %r10,%r15
L183:
  mov    0x20(%rsp),%edi
  lea    -0x2(%r15),%esi
  mov    %r14d,%ecx
  mov    %rbp,%rdx
  call   <helper>
  lea    0x2(%r15),%edi
  mov    %r14d,%ecx
  mov    %rbp,%rdx
  mov    %r12d,%esi
  mov    %eax,%ebx
  call   <helper>
  add    %ebx,%eax
  add    0x0(%rbp,%r15,4),%eax
  cmp    %eax,%r13d
  cmovl  %eax,%r13d
  add    $0x1,%r15
  cmp    %r15d,%r12d
  jge    L183
  mov    %rbp,%r15
  mov    0xc(%rsp),%ebp
L483:
  mov    0x38(%rsp),%eax
  cmp    %ebp,%eax
  jl     L329
  test   %ebp,%ebp
  js     L329
  mov    0x4(%rsp),%r11d
  movslq %ebp,%r10
  mov    %r13d,0x24(%rsp)
  mov    %r15,%rbx
  mov    %r12d,0x28(%rsp)
  mov    %ebp,%r13d
  mov    %r10,%r15
  mov    %eax,%ebp
  mov    %r11d,%r12d
L111:
  lea    -0x2(%r15),%esi
  mov    %r14d,%ecx
  mov    %rbx,%rdx
  mov    %r13d,%edi
  call   <helper>
  lea    0x2(%r15),%edi
  mov    %r14d,%ecx
  mov    %rbx,%rdx
  mov    %ebp,%esi
  mov    %eax,0xc(%rsp)
  call   <helper>
  add    0xc(%rsp),%eax
  add    (%rbx,%r15,4),%eax
  cmp    %eax,%r12d
  cmovl  %eax,%r12d
  add    $0x1,%r15
  cmp    %r15d,%ebp
  jge    L111
  mov    %r13d,%ebp
  mov    0x24(%rsp),%r13d
  mov    %r12d,%r11d
  mov    0x28(%rsp),%r12d
  mov    %rbx,%r15
  add    %r11d,%r13d
L329:
  mov    0x10(%rsp),%rax
  mov    0x30(%rsp),%ecx
  mov    (%r15,%rax,4),%r9d
  add    %r13d,%r9d
  cmp    %r9d,%ecx
  cmovge %ecx,%r9d
  add    $0x1,%rax
  add    $0x1,%r12d
  add    $0x1,%ebp
  mov    %rax,0x10(%rsp)
  mov    %r9d,0x30(%rsp)
  cmp    %eax,0x38(%rsp)
  jge    L63
  mov    %r15,%rbp
L93:
  movslq 0x8(%rsp),%rax
  test   %eax,%eax
  js     L311
  cmp    %eax,0x1c(%rsp)
  jl     L311
  mov    0x50(%rsp),%rdx
  mov    %rax,0x60(%rsp)
  mov    %rbp,%r15
  mov    %rax,0x48(%rsp)
  mov    0x4(%rsp),%eax
  mov    %edx,0x8c(%rsp)
  mov    %edx,%r13d
  mov    %eax,0x44(%rsp)
L416:
  cmp    %r13d,%r14d
  jle    L304
  cmp    %r13d,0x8(%rsp)
  jg     L304
  mov    0x60(%rsp),%rax
  mov    %r13d,0x24(%rsp)
  mov    0x8c(%rsp),%r12d
  mov    %rax,0x28(%rsp)
  mov    0x4(%rsp),%eax
  mov    %eax,0xc(%rsp)
L31:
  cmp    %r12d,%r14d
  jle    L239
  cmp    %r12d,0x8(%rsp)
  jg     L239
  mov    0x60(%rsp),%r13
  mov    0x4(%rsp),%ebp
  mov    %r15,%rax
  mov    %ebp,%r15d
  mov    %r13,%rbp
  mov    %rax,%r13
L343:
  mov    0x8(%rsp),%edi
  lea    -0x2(%rbp),%esi
  mov    %r14d,%ecx
  mov    %r13,%rdx
  call   <helper>
  lea    0x2(%rbp),%edi
  mov    %r14d,%ecx
  mov    %r13,%rdx
  mov    %r12d,%esi
  mov    %eax,%ebx
  call   <helper>
  add    %ebx,%eax
  add    0x0(%r13,%rbp,4),%eax
  cmp    %eax,%r15d
  cmovl  %eax,%r15d
  add    $0x1,%rbp
  cmp    %ebp,%r12d
  jge    L343
  mov    %r15d,%ebp
  mov    %r13,%r15
L181:
  lea    0x4(%r12),%r11d
  cmp    %r11d,0x24(%rsp)
  jl     L354
  movslq %r11d,%r13
  mov    0x4(%rsp),%r10d
  mov    %ebp,0x6c(%rsp)
  mov    %r15,%rbx
  mov    %r12d,0x88(%rsp)
  mov    %r13,%r12
  mov    0x24(%rsp),%r13d
  mov    %r11d,%r15d
  mov    %r10d,%ebp
L348:
  lea    -0x2(%r12),%esi
  mov    %r14d,%ecx
  mov    %rbx,%rdx
  mov    %r15d,%edi
  call   <helper>
  lea    0x2(%r12),%edi
  mov    %r14d,%ecx
  mov    %rbx,%rdx
  mov    %r13d,%esi
  mov    %eax,0x10(%rsp)
  call   <helper>
  add    0x10(%rsp),%eax
  add    (%rbx,%r12,4),%eax
  cmp    %eax,%ebp
  cmovl  %eax,%ebp
  add    $0x1,%r12
  cmp    %r12d,%r13d
  jge    L348
  mov    %ebp,%r10d
  mov    0x6c(%rsp),%ebp
  mov    0x88(%rsp),%r12d
  mov    %rbx,%r15
  add    %r10d,%ebp
L354:
  mov    0x28(%rsp),%rax
  mov    0xc(%rsp),%ecx
  mov    (%r15,%rax,4),%r8d
  add    %ebp,%r8d
  cmp    %r8d,%ecx
  cmovge %ecx,%r8d
  add    $0x1,%rax
  add    $0x1,%r12d
  mov    %rax,0x28(%rsp)
  mov    %r8d,0xc(%rsp)
  cmp    %eax,0x24(%rsp)
  jge    L31
  mov    0x24(%rsp),%r13d
L307:
  lea    0x4(%r13),%r8d
  cmp    %r8d,0x1c(%rsp)
  jl     L276
  mov    0x4(%rsp),%r12d
  movslq %r8d,%rbp
  mov    %r15,%rbx
  mov    %r13d,0x24(%rsp)
  mov    %rbp,%r15
  mov    0x1c(%rsp),%ebp
  mov    %r12d,%r13d
  mov    %r8d,%r12d
L157:
  lea    -0x2(%r15),%esi
  mov    %r14d,%ecx
  mov    %rbx,%rdx
  mov    %r12d,%edi
  call   <helper>
  lea    0x2(%r15),%edi
  mov    %r14d,%ecx
  mov    %rbx,%rdx
  mov    %ebp,%esi
  mov    %eax,0x10(%rsp)
  call   <helper>
  add    0x10(%rsp),%eax
  add    (%rbx,%r15,4),%eax
  cmp    %eax,%r13d
  cmovl  %eax,%r13d
  add    $0x1,%r15
  cmp    %r15d,%ebp
  jge    L157
  mov    %r13d,%r12d
  add    %r12d,0xc(%rsp)
  mov    0x24(%rsp),%r13d
  mov    %rbx,%r15
L276:
  mov    0x48(%rsp),%rdx
  mov    0x44(%rsp),%ebx
  mov    0xc(%rsp),%eax
  add    (%r15,%rdx,4),%eax
  cmp    %eax,%ebx
  cmovge %ebx,%eax
  add    $0x1,%rdx
  add    $0x1,%r13d
  mov    %rdx,0x48(%rsp)
  mov    %eax,0x44(%rsp)
  cmp    %edx,0x1c(%rsp)
  jge    L416
  add    %eax,0x30(%rsp)
  mov    %r15,%rbp
L311:
  mov    0x50(%rsp),%rcx
  mov    0x5c(%rsp),%edx
  mov    0x30(%rsp),%eax
  add    0x0(%rbp,%rcx,4),%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  add    $0x1,%rcx
  addl   $0x1,0x38(%rsp)
  addl   $0x1,0x8(%rsp)
  mov    %eax,0x5c(%rsp)
  mov    %rcx,0x50(%rsp)
  cmp    %ecx,0x1c(%rsp)
  jge    L270
  add    %eax,0x58(%rsp)
  mov    %rbp,%r15
L322:
  mov    0x70(%rsp),%rdx
  mov    0x68(%rsp),%esi
  mov    0x58(%rsp),%eax
  add    (%r15,%rdx,4),%eax
  cmp    %eax,%esi
  cmovge %esi,%eax
  add    $0x1,%rdx
  addl   $0x1,0x18(%rsp)
  addl   $0x1,0x20(%rsp)
  mov    %eax,0x68(%rsp)
  mov    %rdx,0x70(%rsp)
  cmp    %edx,0x1c(%rsp)
  jl     L314
  mov    0x18(%rsp),%eax
  cmp    %r14d,%eax
  jl     L462
L559:
  movl   $0x0,0x58(%rsp)
  jmp    L221
  nopl   0x0(%rax)
L165:
  movl   $0x0,0x68(%rsp)
L314:
  mov    0x68(%rsp),%eax
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L239:
  xor    %ebp,%ebp
  jmp    L181
  nopw   0x0(%rax,%rax,1)
L304:
  movl   $0x0,0xc(%rsp)
  jmp    L307
  nopl   (%rax)
L464:
  xor    %r13d,%r13d
  jmp    L483
  nopl   0x0(%rax,%rax,1)
L125:
  xor    %r15d,%r15d
  jmp    L258
  nopl   0x0(%rax,%rax,1)
L102:
  xor    %r15d,%r15d
  jmp    L119
  nopl   0x0(%rax,%rax,1)
L461:
  movl   $0x0,0x30(%rsp)
  jmp    L93
  nopl   (%rax)
L479:
  movl   $0x0,0xc(%rsp)
  jmp    L150
```

assistant: ```c
int helper(int i, int j, int *nums, int n) {
  if (i < 0 || j > n - 1 || i > j)
    return 0;
  int res = INT_MIN;
  for (int k = i; k <= j; k++) {
    int tmp = helper(i, k - 2, nums, n) + helper(k + 2, j, nums, n) + nums[k];
    if (res < tmp)
      res = tmp;
  }
  return res;
}
```