user: What would the C source look like for the assembly code provided here?

```asm
<FindMaxSubarray>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  mov    $0x1,%eax
  cmp    %esi,%edx
  jl     L168
  mov    %edx,%r12d
  mov    %rcx,%r15
  mov    %r8,%r13
  mov    %r9,%rbx
  jne    L454
  movslq %edx,%rax
  movsd  (%rdi,%rax,8),%xmm0
  xor    %eax,%eax
  movsd  %xmm0,(%rcx)
  mov    %edx,0x0(%r13)
  mov    %edx,(%rbx)
L168:
  mov    0x78(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L21
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L454:
  lea    (%rdx,%rsi,1),%edx
  mov    %esi,%ebp
  mov    %edx,%r11d
  shr    $0x1f,%r11d
  add    %edx,%r11d
  sar    %r11d
  cmp    %r11d,%esi
  jg     L168
  jne    L396
  movslq %esi,%rax
  mov    %esi,0x28(%rsp)
  movsd  (%rdi,%rax,8),%xmm3
  mov    %esi,0x10(%rsp)
  movsd  %xmm3,(%rsp)
L316:
  lea    0x1(%r11),%r14d
  mov    $0x1,%eax
  cmp    %r12d,%r14d
  jg     L168
  jne    L351
  movslq %r12d,%rax
  mov    %r12d,0x20(%rsp)
  mov    %r12d,%r14d
  lea    0x68(%rsp),%r10
  movsd  (%rdi,%rax,8),%xmm0
  lea    0x60(%rsp),%rax
  lea    0x70(%rsp),%r8
  mov    %rax,0x8(%rsp)
L260:
  movsd  %xmm0,0x18(%rsp)
  sub    $0x8,%rsp
  mov    %r12d,%ecx
  mov    %r11d,%edx
  push   %r10
  mov    0x18(%rsp),%r9
  mov    %ebp,%esi
  call   <FindMaxCrossingSubarray@plt>
  pop    %rdx
  pop    %rcx
  test   %eax,%eax
  jne    L168
  movsd  (%rsp),%xmm4
  movsd  0x18(%rsp),%xmm0
  movsd  0x70(%rsp),%xmm1
  comisd %xmm0,%xmm4
  jae    L412
L66:
  comisd (%rsp),%xmm0
  jb     L358
  comisd %xmm1,%xmm0
  jb     L358
  mov    0x20(%rsp),%esi
  movsd  %xmm0,(%r15)
  mov    %esi,0x0(%r13)
  mov    %r14d,(%rbx)
  jmp    L168
  nop
L396:
  lea    (%rsi,%r11,1),%edx
  mov    %edx,%r14d
  shr    $0x1f,%r14d
  add    %edx,%r14d
  sar    %r14d
  cmp    %r14d,%esi
  jg     L168
  jne    L287
  movslq %esi,%rax
  mov    %esi,0x28(%rsp)
  lea    0x68(%rsp),%r10
  lea    0x58(%rsp),%r9
  movsd  (%rdi,%rax,8),%xmm6
  lea    0x54(%rsp),%rax
  mov    %esi,0x10(%rsp)
  mov    %rax,(%rsp)
  mov    %rax,%r8
  movsd  %xmm6,0x8(%rsp)
L230:
  lea    0x1(%r14),%esi
  mov    %r10,%rcx
  mov    %r11d,%edx
  mov    %r11d,0x18(%rsp)
  mov    %rdi,(%rsp)
  call   <FindMaxSubarray>
  test   %eax,%eax
  jne    L168
  sub    $0x8,%rsp
  mov    %r14d,%edx
  mov    %ebp,%esi
  lea    0x68(%rsp),%rax
  push   %rax
  mov    0x28(%rsp),%r11d
  mov    0x10(%rsp),%rdi
  mov    %r11d,%ecx
  lea    0x6c(%rsp),%r9
  lea    0x80(%rsp),%r8
  mov    %r11d,0x30(%rsp)
  mov    %rdi,0x28(%rsp)
  call   <FindMaxCrossingSubarray@plt>
  pop    %r8
  pop    %r9
  test   %eax,%eax
  jne    L168
  movsd  0x68(%rsp),%xmm0
  movsd  0x8(%rsp),%xmm2
  movsd  0x70(%rsp),%xmm7
  mov    0x18(%rsp),%rdi
  comisd %xmm0,%xmm2
  mov    0x20(%rsp),%r11d
  movsd  %xmm7,(%rsp)
  jb     L365
  comisd %xmm7,%xmm2
  jb     L365
  movsd  %xmm2,(%rsp)
  jmp    L316
  nop
L351:
  lea    (%r14,%r12,1),%edx
  lea    0x60(%rsp),%rcx
  mov    %r14d,%esi
  mov    %r11d,0x2c(%rsp)
  mov    %edx,%eax
  lea    0x4c(%rsp),%r9
  lea    0x48(%rsp),%r8
  mov    %rcx,0x8(%rsp)
  shr    $0x1f,%eax
  mov    %rdi,0x20(%rsp)
  add    %edx,%eax
  sar    %eax
  mov    %eax,%edx
  mov    %eax,0x18(%rsp)
  call   <FindMaxSubarray>
  test   %eax,%eax
  jne    L168
  mov    0x18(%rsp),%eax
  lea    0x68(%rsp),%r10
  mov    0x20(%rsp),%rdi
  mov    %r12d,%edx
  lea    0x54(%rsp),%r9
  lea    0x50(%rsp),%r8
  mov    %r10,%rcx
  mov    %r10,0x30(%rsp)
  lea    0x1(%rax),%esi
  call   <FindMaxSubarray>
  test   %eax,%eax
  jne    L168
  lea    0x70(%rsp),%r8
  sub    $0x8,%rsp
  mov    %r14d,%esi
  mov    %r12d,%ecx
  lea    0x64(%rsp),%rax
  push   %rax
  mov    0x28(%rsp),%edx
  mov    0x30(%rsp),%rdi
  lea    0x68(%rsp),%r9
  mov    %r8,0x48(%rsp)
  mov    %rdi,0x28(%rsp)
  call   <FindMaxCrossingSubarray@plt>
  pop    %rsi
  pop    %rdi
  test   %eax,%eax
  jne    L168
  movsd  0x60(%rsp),%xmm1
  movsd  0x68(%rsp),%xmm2
  movsd  0x70(%rsp),%xmm0
  mov    0x18(%rsp),%rdi
  comisd %xmm2,%xmm1
  mov    0x38(%rsp),%r8
  mov    0x30(%rsp),%r10
  mov    0x2c(%rsp),%r11d
  jb     L30
  comisd %xmm0,%xmm1
  jb     L30
  mov    0x48(%rsp),%eax
  mov    0x4c(%rsp),%r14d
  movapd %xmm1,%xmm0
  mov    %eax,0x20(%rsp)
  jmp    L260
L287:
  lea    (%rsi,%r14,1),%edx
  lea    0x60(%rsp),%rcx
  mov    %r11d,0x28(%rsp)
  mov    %edx,%eax
  lea    0x4c(%rsp),%r9
  lea    0x48(%rsp),%r8
  mov    %rdi,0x10(%rsp)
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  mov    %eax,%edx
  mov    %eax,0x8(%rsp)
  call   <FindMaxSubarray>
  test   %eax,%eax
  jne    L168
  mov    0x8(%rsp),%eax
  lea    0x68(%rsp),%r10
  mov    0x10(%rsp),%rdi
  mov    %r14d,%edx
  lea    0x54(%rsp),%r9
  lea    0x50(%rsp),%r8
  mov    %r10,%rcx
  mov    %r10,0x18(%rsp)
  lea    0x1(%rax),%esi
  mov    %r9,(%rsp)
  call   <FindMaxSubarray>
  test   %eax,%eax
  jne    L168
  lea    0x58(%rsp),%r9
  sub    $0x8,%rsp
  mov    %r14d,%ecx
  mov    %ebp,%esi
  lea    0x64(%rsp),%rax
  push   %rax
  mov    0x18(%rsp),%edx
  mov    0x20(%rsp),%rdi
  lea    0x80(%rsp),%r8
  mov    %r9,0x30(%rsp)
  call   <FindMaxCrossingSubarray@plt>
  pop    %r10
  pop    %r11
  test   %eax,%eax
  jne    L168
  movsd  0x60(%rsp),%xmm1
  movsd  0x68(%rsp),%xmm0
  movsd  0x70(%rsp),%xmm5
  mov    0x10(%rsp),%rdi
  comisd %xmm0,%xmm1
  mov    0x20(%rsp),%r9
  mov    0x18(%rsp),%r10
  mov    0x28(%rsp),%r11d
  movsd  %xmm5,0x8(%rsp)
  jb     L381
  comisd %xmm5,%xmm1
  jb     L381
  mov    0x48(%rsp),%eax
  mov    (%rsp),%r8
  movsd  %xmm1,0x8(%rsp)
  mov    %eax,0x10(%rsp)
  mov    0x4c(%rsp),%eax
  mov    %eax,0x28(%rsp)
  jmp    L230
  nopw   0x0(%rax,%rax,1)
L412:
  comisd %xmm1,%xmm4
  jb     L66
  mov    0x10(%rsp),%esi
  movsd  %xmm4,(%r15)
  mov    %esi,0x0(%r13)
  mov    0x28(%rsp),%esi
  mov    %esi,(%rbx)
  jmp    L168
  nopw   0x0(%rax,%rax,1)
L358:
  mov    0x60(%rsp),%edx
  movsd  %xmm1,(%r15)
  mov    %edx,0x0(%r13)
  mov    0x68(%rsp),%edx
  mov    %edx,(%rbx)
  jmp    L168
L365:
  comisd 0x8(%rsp),%xmm0
  jb     L123
  comisd (%rsp),%xmm0
  jb     L123
  mov    0x54(%rsp),%eax
  movsd  %xmm0,(%rsp)
  mov    %eax,0x10(%rsp)
  mov    0x58(%rsp),%eax
  mov    %eax,0x28(%rsp)
  jmp    L316
L123:
  mov    0x5c(%rsp),%eax
  mov    %eax,0x10(%rsp)
  mov    0x60(%rsp),%eax
  mov    %eax,0x28(%rsp)
  jmp    L316
L30:
  comisd %xmm1,%xmm2
  jb     L284
  comisd %xmm0,%xmm2
  jb     L284
  mov    0x50(%rsp),%eax
  mov    0x54(%rsp),%r14d
  movapd %xmm2,%xmm0
  mov    %eax,0x20(%rsp)
  jmp    L260
L284:
  mov    0x58(%rsp),%eax
  mov    0x5c(%rsp),%r14d
  mov    %eax,0x20(%rsp)
  jmp    L260
L381:
  comisd %xmm1,%xmm0
  jb     L179
  comisd 0x8(%rsp),%xmm0
  jb     L179
  mov    0x50(%rsp),%eax
  mov    (%rsp),%r8
  movsd  %xmm0,0x8(%rsp)
  mov    %eax,0x10(%rsp)
  mov    0x54(%rsp),%eax
  mov    %eax,0x28(%rsp)
  jmp    L230
L179:
  mov    0x58(%rsp),%eax
  mov    (%rsp),%r8
  mov    %eax,0x10(%rsp)
  mov    0x5c(%rsp),%eax
  mov    %eax,0x28(%rsp)
  jmp    L230
L21:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int FindMaxSubarray(double *A, int low, int high, double *MaxSum, int *SubLow, int *SubHigh) {
  int mid = 0;
  int LeftLow;
  int LeftHigh;
  int RightLow;
  int RightHigh;
  int CrossLow;
  int CrossHigh;
  double LeftSum;
  double RightSum;
  double CrossSum;
  int ret = 0;
  if (high < low) {
    return 1;
  }
  if (high == low) {
    *MaxSum = A[low];
    *SubLow = low;
    *SubHigh = low;
  } else {
    mid = (int)((low + high) / 2);
    ret = FindMaxSubarray(A, low, mid, &LeftSum, &LeftLow, &LeftHigh);
    if (ret) {
      return ret;
    }
    ret = FindMaxSubarray(A, mid + 1, high, &RightSum, &RightLow, &RightHigh);
    if (ret) {
      return ret;
    }
    ret = FindMaxCrossingSubarray(A, low, mid, high, &CrossSum, &CrossLow, &CrossHigh);
    if (ret) {
      return ret;
    }
    if (LeftSum >= RightSum && LeftSum >= CrossSum) {
      *MaxSum = LeftSum;
      *SubLow = LeftLow;
      *SubHigh = LeftHigh;
    } else if (RightSum >= LeftSum && RightSum >= CrossSum) {
      *MaxSum = RightSum;
      *SubLow = RightLow;
      *SubHigh = RightHigh;
    } else {
      *MaxSum = CrossSum;
      *SubLow = CrossLow;
      *SubHigh = CrossHigh;
    }
  }
  return 0;
}
```