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

```asm
<FindMaxSubarray>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  mov    $0x1,%eax
  cmp    %esi,%edx
  jl     L97
  mov    %edx,%r12d
  mov    %rcx,%r14
  mov    %r8,%r13
  mov    %r9,%rbx
  jne    L65
  movslq %edx,%rax
  movsd  (%rdi,%rax,8),%xmm0
  xor    %eax,%eax
  movsd  %xmm0,(%rcx)
  mov    %edx,0x0(%r13)
  mov    %edx,(%rbx)
L97:
  mov    0x48(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L10
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L65:
  lea    (%rdx,%rsi,1),%eax
  lea    0x30(%rsp),%rcx
  mov    %rdi,0x8(%rsp)
  mov    %esi,%ebp
  mov    %eax,%r15d
  lea    0x1c(%rsp),%r9
  lea    0x18(%rsp),%r8
  shr    $0x1f,%r15d
  add    %eax,%r15d
  sar    %r15d
  mov    %r15d,%edx
  call   <FindMaxSubarray>
  test   %eax,%eax
  jne    L97
  mov    0x8(%rsp),%rdi
  lea    0x38(%rsp),%rcx
  lea    0x1(%r15),%esi
  mov    %r12d,%edx
  lea    0x24(%rsp),%r9
  lea    0x20(%rsp),%r8
  call   <FindMaxSubarray>
  test   %eax,%eax
  jne    L97
  sub    $0x8,%rsp
  mov    %r12d,%ecx
  mov    %r15d,%edx
  mov    %ebp,%esi
  lea    0x34(%rsp),%rax
  push   %rax
  mov    0x18(%rsp),%rdi
  lea    0x38(%rsp),%r9
  lea    0x50(%rsp),%r8
  call   <FindMaxCrossingSubarray@plt>
  pop    %rdx
  pop    %rcx
  test   %eax,%eax
  jne    L97
  movsd  0x30(%rsp),%xmm0
  movsd  0x38(%rsp),%xmm1
  movsd  0x40(%rsp),%xmm2
  comisd %xmm1,%xmm0
  jae    L37
L15:
  comisd %xmm0,%xmm1
  jb     L13
  comisd %xmm2,%xmm1
  jb     L13
  mov    0x20(%rsp),%edx
  movsd  %xmm1,(%r14)
  mov    %edx,0x0(%r13)
  mov    0x24(%rsp),%edx
  mov    %edx,(%rbx)
  jmp    L97
  nopw   0x0(%rax,%rax,1)
L37:
  comisd %xmm2,%xmm0
  jb     L15
  mov    0x18(%rsp),%edx
  movsd  %xmm0,(%r14)
  mov    %edx,0x0(%r13)
  mov    0x1c(%rsp),%edx
  mov    %edx,(%rbx)
  jmp    L97
  cs nopw 0x0(%rax,%rax,1)
L13:
  mov    0x28(%rsp),%edx
  movsd  %xmm2,(%r14)
  mov    %edx,0x0(%r13)
  mov    0x2c(%rsp),%edx
  mov    %edx,(%rbx)
  jmp    L97
L10:
  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;
}
```