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

```asm
<maxSumIn>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  movslq %esi,%r13
  push   %r12
  mov    %r13,%r14
  mov    %rdi,%r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    0xf(,%r13,4),%rax
  mov    %rsp,%rcx
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L90
L165:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L165
L90:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L56
L60:
  lea    0x3(%rsp),%rbx
  lea    0x0(,%r14,4),%edx
  xor    %esi,%esi
  mov    %rbx,%r8
  and    $0xfffffffffffffffc,%rbx
  shr    $0x2,%r8
  mov    %rbx,%rdi
  mov    %rbx,%r15
  mov    %r8,-0x48(%rbp)
  call   <memset@plt>
  mov    (%r12),%eax
  mov    -0x48(%rbp),%r8
  mov    %eax,0x0(,%r8,4)
  cmp    $0x1,%r14d
  jle    L72
  mov    $0x1,%edx
  nopl   0x0(%rax)
L57:
  mov    (%r12,%rdx,4),%ecx
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L96:
  cmp    (%r12,%rax,4),%ecx
  jle    L59
  mov    (%rbx,%rax,4),%esi
  add    %ecx,%esi
  cmp    %esi,(%rbx,%rdx,4)
  jge    L59
  mov    %esi,(%rbx,%rdx,4)
L59:
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L96
  lea    0x1(%rax),%rdx
  cmp    %r13,%rdx
  jne    L57
  test   %r14d,%r14d
  mov    $0x1,%ecx
  cmovg  %r14d,%ecx
  cmp    $0x3,%r14d
  jle    L25
  mov    %ecx,%edx
  pxor   %xmm2,%xmm2
  mov    %rbx,%rax
  shr    $0x2,%edx
  shl    $0x4,%rdx
  add    %rbx,%rdx
  xchg   %ax,%ax
L113:
  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    %rdx,%rax
  jne    L113
  movdqa %xmm2,%xmm0
  mov    %ecx,%edx
  psrldq $0x8,%xmm0
  and    $0xfffffffc,%edx
  and    $0x3,%ecx
  movdqa %xmm0,%xmm1
  pcmpgtd %xmm2,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  por    %xmm0,%xmm1
  movdqa %xmm1,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm0
  pcmpgtd %xmm1,%xmm0
  pand   %xmm0,%xmm2
  pandn  %xmm1,%xmm0
  por    %xmm2,%xmm0
  movd   %xmm0,%eax
  je     L121
  movslq %edx,%rcx
  lea    (%rbx,%rcx,4),%r15
  mov    (%r15),%ecx
  cmp    %ecx,%eax
  cmovl  %ecx,%eax
  add    $0x1,%edx
  cmp    %edx,%r14d
  jle    L121
L4:
  mov    0x4(%r15),%ecx
  cmp    %ecx,%eax
  cmovl  %ecx,%eax
  add    $0x1,%edx
  cmp    %edx,%r14d
  jle    L121
  mov    0x8(%r15),%edx
  cmp    %edx,%eax
  cmovl  %edx,%eax
L121:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L54
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L56:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L60
L72:
  je     L8
  xor    %eax,%eax
  jmp    L121
L25:
  mov    0x0(,%r8,4),%eax
  xor    %edx,%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  mov    $0x1,%edx
  jmp    L4
L8:
  xor    %edx,%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  jmp    L121
L54:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int maxSumIn(int a[], int len) {
  int msis[len];
  memset(msis, 0, sizeof(msis));
  msis[0] = a[0];
  for (int i = 1; i < len; i++) {
    for (int j = 0; j < i; j++) {
      if (a[i] > a[j] && msis[i] < msis[j] + a[i]) {
        msis[i] = msis[j] + a[i];
      }
    }
  }
  int max = 0;
  for (int i = 0; i < len; i++) {
    if (msis[i] > max) {
      max = msis[i];
    }
  }
  return max;
}
```