user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<hybridFindMaxSubarray>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    (%rdx),%r10d
  mov    (%rsi),%ebp
  mov    %rsi,0x20(%rsp)
  mov    %rdx,0x28(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  mov    %r10d,%eax
  mov    %r10d,0x50(%rsp)
  sub    %ebp,%eax
  mov    %ebp,0x54(%rsp)
  cmp    $0xa,%eax
  jle    L220
  lea    (%r10,%rbp,1),%edx
  mov    %ebp,0x5c(%rsp)
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  lea    0x1(%rax),%ecx
  mov    %eax,0xc(%rsp)
  mov    %eax,0x58(%rsp)
  sub    %ebp,%eax
  mov    %ecx,0x30(%rsp)
  cmp    $0xa,%eax
  jle    L516
  mov    0xc(%rsp),%eax
  mov    %ebp,0x64(%rsp)
  add    %ebp,%eax
  mov    %eax,%r14d
  shr    $0x1f,%r14d
  add    %eax,%r14d
  sar    %r14d
  lea    0x1(%r14),%eax
  mov    %r14d,0x60(%rsp)
  mov    %eax,0x34(%rsp)
  mov    %r14d,%eax
  sub    %ebp,%eax
  cmp    $0xa,%eax
  jle    L507
  lea    0x0(%rbp,%r14,1),%edx
  mov    %ebp,0x6c(%rsp)
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  mov    %eax,%r11d
  lea    0x1(%rax),%eax
  mov    %eax,0x38(%rsp)
  mov    %r11d,%eax
  sub    %ebp,%eax
  mov    %r11d,0x68(%rsp)
  cmp    $0xa,%eax
  jle    L38
  lea    0x0(%rbp,%r11,1),%eax
  lea    0x74(%rsp),%rdx
  mov    %r10d,0x40(%rsp)
  mov    %eax,%r15d
  lea    0x70(%rsp),%rsi
  mov    %r11d,0x7c(%rsp)
  shr    $0x1f,%r15d
  mov    %r11d,0x3c(%rsp)
  add    %eax,%r15d
  mov    %ebp,0x70(%rsp)
  sar    %r15d
  lea    0x1(%r15),%eax
  mov    %r15d,0x74(%rsp)
  mov    %eax,0x78(%rsp)
  call   <hybridFindMaxSubarray>
  lea    0x7c(%rsp),%rdx
  lea    0x78(%rsp),%rsi
  mov    %r13,%rdi
  mov    %eax,%r12d
  call   <hybridFindMaxSubarray>
  mov    0x3c(%rsp),%ecx
  mov    %r15d,%edx
  mov    %ebp,%esi
  mov    %eax,%ebx
  lea    0x80(%rsp),%rax
  lea    0x84(%rsp),%r9
  mov    %r13,%rdi
  mov    %rax,%r8
  mov    %r9,0x18(%rsp)
  mov    %rax,0x10(%rsp)
  call   <findMaxCrossingSubarray@plt>
  mov    0x3c(%rsp),%r11d
  mov    0x40(%rsp),%r10d
  cmp    %eax,%ebx
  mov    %eax,%edx
  cmovge %ebx,%edx
  cmp    %edx,%r12d
  jge    L162
  cmp    %eax,%r12d
  cmovl  %eax,%r12d
  cmp    %r12d,%ebx
  jl     L327
  mov    0x78(%rsp),%eax
  mov    %ebx,%r12d
  mov    %eax,0x3c(%rsp)
  mov    0x7c(%rsp),%eax
  mov    %eax,0x40(%rsp)
L91:
  mov    0x38(%rsp),%ebx
  mov    %r14d,%eax
  mov    %r14d,0x68(%rsp)
  sub    %ebx,%eax
  mov    %ebx,0x6c(%rsp)
  cmp    $0xa,%eax
  jle    L444
  lea    (%r14,%rbx,1),%eax
  lea    0x74(%rsp),%rdx
  mov    %r13,%rdi
  mov    %ebx,0x70(%rsp)
  mov    %eax,%r15d
  lea    0x70(%rsp),%rsi
  mov    %r11d,0x4c(%rsp)
  shr    $0x1f,%r15d
  mov    %r10d,0x48(%rsp)
  add    %eax,%r15d
  mov    %r14d,0x7c(%rsp)
  sar    %r15d
  lea    0x1(%r15),%eax
  mov    %r15d,0x74(%rsp)
  mov    %eax,0x78(%rsp)
  call   <hybridFindMaxSubarray>
  lea    0x7c(%rsp),%rdx
  lea    0x78(%rsp),%rsi
  mov    %r13,%rdi
  mov    %eax,%ebx
  call   <hybridFindMaxSubarray>
  mov    0x18(%rsp),%r9
  mov    %r14d,%ecx
  mov    %r15d,%edx
  mov    0x10(%rsp),%r8
  mov    0x38(%rsp),%esi
  mov    %r13,%rdi
  mov    %eax,0x44(%rsp)
  call   <findMaxCrossingSubarray@plt>
  mov    0x44(%rsp),%ecx
  mov    0x48(%rsp),%r10d
  mov    0x4c(%rsp),%r11d
  cmp    %eax,%ecx
  mov    %ecx,%edx
  cmovl  %eax,%edx
  cmp    %edx,%ebx
  jge    L378
  cmp    %eax,%ebx
  cmovl  %eax,%ebx
  cmp    %ebx,%ecx
  jl     L483
  mov    0x78(%rsp),%eax
  mov    0x7c(%rsp),%r15d
  mov    %ecx,%ebx
  mov    %eax,0x38(%rsp)
L210:
  mov    0x18(%rsp),%r9
  mov    0x10(%rsp),%r8
  mov    %r11d,%edx
  mov    %r14d,%ecx
  mov    %ebp,%esi
  mov    %r13,%rdi
  mov    %r10d,0x44(%rsp)
  call   <findMaxCrossingSubarray@plt>
  mov    %ebx,%edx
  mov    0x44(%rsp),%r10d
  cmp    %ebx,%eax
  cmovge %eax,%edx
  cmp    %r12d,%edx
  jle    L506
  cmp    %r12d,%eax
  cmovge %eax,%r12d
  cmp    %ebx,%r12d
  jle    L346
  mov    0x80(%rsp),%edi
  mov    0x84(%rsp),%ecx
  mov    %eax,%r12d
  mov    %edi,0x3c(%rsp)
  mov    %ecx,0x40(%rsp)
L506:
  mov    0xc(%rsp),%eax
  mov    0x34(%rsp),%ebx
  mov    %eax,0x68(%rsp)
  sub    %ebx,%eax
  mov    %ebx,0x6c(%rsp)
  cmp    $0xa,%eax
  jle    L428
  mov    0xc(%rsp),%edi
  mov    %ebx,%ecx
  lea    0x74(%rsp),%rdx
  lea    0x70(%rsp),%rsi
  mov    %r10d,0x44(%rsp)
  mov    %edi,%eax
  mov    %edi,0x7c(%rsp)
  mov    %r13,%rdi
  add    %ebx,%eax
  mov    %ecx,0x70(%rsp)
  mov    %eax,%ebx
  shr    $0x1f,%ebx
  add    %eax,%ebx
  sar    %ebx
  lea    0x1(%rbx),%eax
  mov    %ebx,0x74(%rsp)
  mov    %eax,0x78(%rsp)
  call   <hybridFindMaxSubarray>
  lea    0x7c(%rsp),%rdx
  lea    0x78(%rsp),%rsi
  mov    %r13,%rdi
  mov    %eax,%r15d
  call   <hybridFindMaxSubarray>
  mov    0x18(%rsp),%r9
  mov    0xc(%rsp),%ecx
  mov    %ebx,%edx
  mov    0x10(%rsp),%r8
  mov    0x34(%rsp),%esi
  mov    %r13,%rdi
  mov    %eax,0x38(%rsp)
  call   <findMaxCrossingSubarray@plt>
  mov    0x38(%rsp),%r11d
  mov    0x44(%rsp),%r10d
  mov    %eax,%edx
  cmp    %eax,%r11d
  cmovge %r11d,%edx
  cmp    %edx,%r15d
  jge    L479
  cmp    %eax,%r15d
  cmovl  %eax,%r15d
  cmp    %r15d,%r11d
  jl     L50
  mov    0x78(%rsp),%eax
  mov    0x7c(%rsp),%ebx
  mov    %r11d,%r15d
  mov    %eax,0x34(%rsp)
L505:
  mov    0x18(%rsp),%r9
  mov    0x10(%rsp),%r8
  mov    %r14d,%edx
  mov    %ebp,%esi
  mov    0xc(%rsp),%ecx
  mov    %r13,%rdi
  mov    %r10d,0x38(%rsp)
  call   <findMaxCrossingSubarray@plt>
  mov    %r15d,%edx
  mov    0x38(%rsp),%r10d
  cmp    %r15d,%eax
  cmovge %eax,%edx
  cmp    %r12d,%edx
  jle    L232
  cmp    %r12d,%eax
  cmovge %eax,%r12d
  cmp    %r15d,%r12d
  jle    L293
  mov    0x80(%rsp),%ebx
  mov    %eax,%r12d
  mov    %ebx,0x3c(%rsp)
  mov    0x84(%rsp),%ebx
  mov    %ebx,0x40(%rsp)
  jmp    L232
  nopw   0x0(%rax,%rax,1)
L516:
  lea    0x58(%rsp),%rdx
  lea    0x5c(%rsp),%rsi
  mov    %r10d,0x34(%rsp)
  call   <bruteFindMaxSubarray@plt>
  mov    %ebp,0x3c(%rsp)
  mov    0x34(%rsp),%r10d
  mov    %eax,%r12d
  mov    0xc(%rsp),%eax
  mov    %eax,0x40(%rsp)
  lea    0x84(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x80(%rsp),%rax
  mov    %rax,0x10(%rsp)
L232:
  mov    0x30(%rsp),%ecx
  mov    %r10d,%eax
  mov    %r10d,0x60(%rsp)
  sub    %ecx,%eax
  mov    %ecx,0x64(%rsp)
  cmp    $0xa,%eax
  jle    L415
  lea    (%r10,%rcx,1),%eax
  mov    %ecx,0x6c(%rsp)
  mov    %eax,%r14d
  shr    $0x1f,%r14d
  add    %eax,%r14d
  sar    %r14d
  lea    0x1(%r14),%eax
  mov    %r14d,0x68(%rsp)
  mov    %eax,0x34(%rsp)
  mov    %r14d,%eax
  sub    %ecx,%eax
  cmp    $0xa,%eax
  jle    L90
  lea    (%rcx,%r14,1),%eax
  lea    0x74(%rsp),%rdx
  mov    %r13,%rdi
  mov    %ecx,0x70(%rsp)
  mov    %eax,%r15d
  lea    0x70(%rsp),%rsi
  mov    %r10d,0x38(%rsp)
  shr    $0x1f,%r15d
  mov    %r14d,0x7c(%rsp)
  add    %eax,%r15d
  sar    %r15d
  lea    0x1(%r15),%eax
  mov    %r15d,0x74(%rsp)
  mov    %eax,0x78(%rsp)
  call   <hybridFindMaxSubarray>
  lea    0x7c(%rsp),%rdx
  lea    0x78(%rsp),%rsi
  mov    %r13,%rdi
  mov    %eax,%ebx
  call   <hybridFindMaxSubarray>
  mov    0x18(%rsp),%r9
  mov    %r15d,%edx
  mov    %r14d,%ecx
  mov    0x10(%rsp),%r8
  mov    0x30(%rsp),%esi
  mov    %r13,%rdi
  mov    %eax,%ebp
  call   <findMaxCrossingSubarray@plt>
  mov    0x38(%rsp),%r10d
  cmp    %eax,%ebp
  mov    %eax,%edx
  cmovge %ebp,%edx
  cmp    %edx,%ebx
  jge    L301
  cmp    %eax,%ebx
  cmovl  %eax,%ebx
  cmp    %ebx,%ebp
  jl     L325
  mov    0x78(%rsp),%eax
  mov    %ebp,%ebx
  mov    %eax,0x38(%rsp)
  mov    0x7c(%rsp),%eax
  mov    %eax,0x44(%rsp)
L156:
  mov    0x34(%rsp),%edi
  mov    %r10d,%eax
  mov    %r10d,0x68(%rsp)
  sub    %edi,%eax
  mov    %edi,0x6c(%rsp)
  cmp    $0xa,%eax
  jle    L375
  lea    (%r10,%rdi,1),%eax
  mov    %edi,0x70(%rsp)
  lea    0x74(%rsp),%rdx
  mov    %r13,%rdi
  mov    %eax,%r15d
  lea    0x70(%rsp),%rsi
  mov    %r10d,0x7c(%rsp)
  shr    $0x1f,%r15d
  mov    %r10d,0x48(%rsp)
  add    %eax,%r15d
  sar    %r15d
  lea    0x1(%r15),%eax
  mov    %r15d,0x74(%rsp)
  mov    %eax,0x78(%rsp)
  call   <hybridFindMaxSubarray>
  lea    0x7c(%rsp),%rdx
  lea    0x78(%rsp),%rsi
  mov    %r13,%rdi
  mov    %eax,%ebp
  call   <hybridFindMaxSubarray>
  mov    0x18(%rsp),%r9
  mov    %r15d,%edx
  mov    %r13,%rdi
  mov    0x10(%rsp),%r8
  mov    0x48(%rsp),%ecx
  mov    %eax,0x4c(%rsp)
  mov    0x34(%rsp),%esi
  call   <findMaxCrossingSubarray@plt>
  mov    0x4c(%rsp),%r11d
  mov    0x48(%rsp),%r10d
  mov    %eax,%edx
  cmp    %eax,%r11d
  cmovge %r11d,%edx
  cmp    %edx,%ebp
  jge    L180
  cmp    %eax,%ebp
  cmovl  %eax,%ebp
  cmp    %ebp,%r11d
  jl     L473
  mov    0x78(%rsp),%eax
  mov    0x7c(%rsp),%r15d
  mov    %r11d,%ebp
  mov    %eax,0x34(%rsp)
L427:
  mov    0x18(%rsp),%r9
  mov    0x10(%rsp),%r8
  mov    %r14d,%edx
  mov    %r10d,%ecx
  mov    0x30(%rsp),%esi
  mov    %r13,%rdi
  call   <findMaxCrossingSubarray@plt>
  mov    %ebp,%edx
  cmp    %ebp,%eax
  cmovge %eax,%edx
  cmp    %ebx,%edx
  jle    L61
  cmp    %ebx,%eax
  cmovge %eax,%ebx
  cmp    %ebp,%ebx
  jle    L469
  mov    0x84(%rsp),%ebx
  mov    0x80(%rsp),%edi
  mov    %ebx,0x44(%rsp)
  mov    %eax,%ebx
  mov    %edi,0x38(%rsp)
  jmp    L61
  nopl   0x0(%rax)
L220:
  lea    0x50(%rsp),%rdx
  lea    0x54(%rsp),%rsi
  call   <bruteFindMaxSubarray@plt>
  mov    %eax,%r12d
L167:
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L490
  add    $0x98,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L415:
  lea    0x60(%rsp),%rdx
  lea    0x64(%rsp),%rsi
  mov    %r13,%rdi
  mov    %r10d,0x34(%rsp)
  call   <bruteFindMaxSubarray@plt>
  mov    0x34(%rsp),%r10d
  mov    %eax,%ebx
  mov    0x30(%rsp),%eax
  mov    %r10d,0x44(%rsp)
  mov    %eax,0x38(%rsp)
L61:
  mov    0x28(%rsp),%rax
  mov    0xc(%rsp),%edx
  mov    %r13,%rdi
  mov    0x18(%rsp),%r9
  mov    0x10(%rsp),%r8
  mov    (%rax),%ecx
  mov    0x20(%rsp),%rax
  mov    (%rax),%esi
  call   <findMaxCrossingSubarray@plt>
  mov    %ebx,%edx
  cmp    %ebx,%eax
  cmovge %eax,%edx
  cmp    %r12d,%edx
  jle    L19
  cmp    %r12d,%eax
  cmovge %eax,%r12d
  cmp    %ebx,%r12d
  jg     L376
  mov    0x20(%rsp),%rax
  mov    0x38(%rsp),%ecx
  mov    %ebx,%r12d
  mov    %ecx,(%rax)
  mov    0x28(%rsp),%rax
  mov    0x44(%rsp),%ecx
  mov    %ecx,(%rax)
  jmp    L167
  nopl   (%rax)
L19:
  mov    0x20(%rsp),%rax
  mov    0x3c(%rsp),%ebx
  mov    %ebx,(%rax)
  mov    0x28(%rsp),%rax
  mov    0x40(%rsp),%ebx
  mov    %ebx,(%rax)
  jmp    L167
  nopl   0x0(%rax,%rax,1)
L376:
  mov    0x80(%rsp),%edx
  mov    0x20(%rsp),%rbx
  mov    %eax,%r12d
  mov    0x28(%rsp),%rdi
  mov    %edx,(%rbx)
  mov    0x84(%rsp),%edx
  mov    %edx,(%rdi)
  jmp    L167
  nopl   0x0(%rax)
L301:
  mov    0x70(%rsp),%eax
  mov    %eax,0x38(%rsp)
  mov    0x74(%rsp),%eax
  mov    %eax,0x44(%rsp)
  jmp    L156
  nopl   (%rax)
L38:
  lea    0x68(%rsp),%rdx
  lea    0x6c(%rsp),%rsi
  mov    %r11d,0x10(%rsp)
  mov    %r10d,0x44(%rsp)
  call   <bruteFindMaxSubarray@plt>
  mov    0x10(%rsp),%r11d
  mov    %ebp,0x3c(%rsp)
  mov    %eax,%r12d
  lea    0x84(%rsp),%rax
  mov    0x44(%rsp),%r10d
  mov    %rax,0x18(%rsp)
  lea    0x80(%rsp),%rax
  mov    %r11d,0x40(%rsp)
  mov    %rax,0x10(%rsp)
  jmp    L91
  cs nopw 0x0(%rax,%rax,1)
L90:
  lea    0x68(%rsp),%rdx
  lea    0x6c(%rsp),%rsi
  mov    %r13,%rdi
  mov    %r10d,0x48(%rsp)
  call   <bruteFindMaxSubarray@plt>
  mov    %r14d,0x44(%rsp)
  mov    0x48(%rsp),%r10d
  mov    %eax,%ebx
  mov    0x30(%rsp),%eax
  mov    %eax,0x38(%rsp)
  jmp    L156
L507:
  lea    0x60(%rsp),%rdx
  lea    0x64(%rsp),%rsi
  mov    %r10d,0x38(%rsp)
  call   <bruteFindMaxSubarray@plt>
  mov    %r14d,0x40(%rsp)
  mov    0x38(%rsp),%r10d
  mov    %eax,%r12d
  lea    0x84(%rsp),%rax
  mov    %ebp,0x3c(%rsp)
  mov    %rax,0x18(%rsp)
  lea    0x80(%rsp),%rax
  mov    %rax,0x10(%rsp)
  jmp    L506
  nopl   0x0(%rax)
L375:
  lea    0x68(%rsp),%rdx
  lea    0x6c(%rsp),%rsi
  mov    %r13,%rdi
  mov    %r10d,0x48(%rsp)
  call   <bruteFindMaxSubarray@plt>
  mov    0x48(%rsp),%r10d
  mov    %eax,%ebp
  mov    %r10d,%r15d
  jmp    L427
  xchg   %ax,%ax
L428:
  lea    0x68(%rsp),%rdx
  lea    0x6c(%rsp),%rsi
  mov    %r13,%rdi
  mov    %r10d,0x38(%rsp)
  call   <bruteFindMaxSubarray@plt>
  mov    0xc(%rsp),%ebx
  mov    0x38(%rsp),%r10d
  mov    %eax,%r15d
  jmp    L505
  nopl   0x0(%rax,%rax,1)
L469:
  mov    0x34(%rsp),%eax
  mov    %r15d,0x44(%rsp)
  mov    %ebp,%ebx
  mov    %eax,0x38(%rsp)
  jmp    L61
  nopl   0x0(%rax)
L293:
  mov    0x34(%rsp),%eax
  mov    %ebx,0x40(%rsp)
  mov    %r15d,%r12d
  mov    %eax,0x3c(%rsp)
  jmp    L232
  nopl   0x0(%rax)
L180:
  mov    0x70(%rsp),%eax
  mov    0x74(%rsp),%r15d
  mov    %eax,0x34(%rsp)
  jmp    L427
  nopw   0x0(%rax,%rax,1)
L479:
  mov    0x70(%rsp),%eax
  mov    0x74(%rsp),%ebx
  mov    %eax,0x34(%rsp)
  jmp    L505
  nopl   0x0(%rax)
L444:
  lea    0x68(%rsp),%rdx
  lea    0x6c(%rsp),%rsi
  mov    %r13,%rdi
  mov    %r14d,%r15d
  mov    %r11d,0x48(%rsp)
  mov    %r10d,0x44(%rsp)
  call   <bruteFindMaxSubarray@plt>
  mov    0x44(%rsp),%r10d
  mov    0x48(%rsp),%r11d
  mov    %eax,%ebx
  jmp    L210
L346:
  mov    0x38(%rsp),%eax
  mov    %r15d,0x40(%rsp)
  mov    %ebx,%r12d
  mov    %eax,0x3c(%rsp)
  jmp    L506
  nopl   (%rax)
L473:
  mov    0x80(%rsp),%edi
  mov    0x84(%rsp),%r15d
  mov    %eax,%ebp
  mov    %edi,0x34(%rsp)
  jmp    L427
  nopw   0x0(%rax,%rax,1)
L325:
  mov    0x80(%rsp),%ebx
  mov    0x84(%rsp),%ecx
  mov    %ebx,0x38(%rsp)
  mov    %eax,%ebx
  mov    %ecx,0x44(%rsp)
  jmp    L156
  nopl   (%rax)
L50:
  mov    0x80(%rsp),%edi
  mov    0x84(%rsp),%ebx
  mov    %eax,%r15d
  mov    %edi,0x34(%rsp)
  jmp    L505
  nopw   0x0(%rax,%rax,1)
L162:
  mov    0x70(%rsp),%eax
  mov    %eax,0x3c(%rsp)
  mov    0x74(%rsp),%eax
  mov    %eax,0x40(%rsp)
  jmp    L91
  nopl   (%rax)
L378:
  mov    0x70(%rsp),%eax
  mov    0x74(%rsp),%r15d
  mov    %eax,0x38(%rsp)
  jmp    L210
  nopw   0x0(%rax,%rax,1)
L483:
  mov    0x80(%rsp),%ebx
  mov    0x84(%rsp),%r15d
  mov    %ebx,0x38(%rsp)
  mov    %eax,%ebx
  jmp    L210
  nopw   0x0(%rax,%rax,1)
L327:
  mov    0x80(%rsp),%ebx
  mov    0x84(%rsp),%ecx
  mov    %eax,%r12d
  mov    %ebx,0x3c(%rsp)
  mov    %ecx,0x40(%rsp)
  jmp    L91
L490:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int hybridFindMaxSubarray(int *arr, int *low, int *high) {
  int deref_high = *high, deref_low = *low;
  if (*high - *low + 1 <= 11)
    return bruteFindMaxSubarray(arr, &deref_low, &deref_high);
  int mid = (*low + *high) / 2;
  int leftLow = *low, leftHigh = mid, leftSum;
  int rightLow = mid + 1, rightHigh = *high, rightSum;
  int crossLow, crossHigh, crossSum;
  leftSum = hybridFindMaxSubarray(arr, &leftLow, &leftHigh);
  rightSum = hybridFindMaxSubarray(arr, &rightLow, &rightHigh);
  crossSum = findMaxCrossingSubarray(arr, *low, mid, *high, &crossLow, &crossHigh);
  if (leftSum >= rightSum && leftSum >= crossSum) {
    *low = leftLow;
    *high = leftHigh;
    return leftSum;
  } else if (rightSum >= leftSum && rightSum >= crossSum) {
    *low = rightLow;
    *high = rightHigh;
    return rightSum;
  } else {
    *low = crossLow;
    *high = crossHigh;
    return crossSum;
  }
}
```