user: Please show me the C implementation that matches the assembly code listed below:

```asm
<bitonicSortSB>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %ecx,0x4(%rsp)
  cmp    $0x1,%edx
  je     L25
  mov    %edx,%r12d
  mov    %rdi,%r13
  mov    %esi,%ebp
  mov    %edx,%r8d
  shr    $0x1f,%r12d
  add    %edx,%r12d
  sar    %r12d
  cmp    $0x1,%r12d
  je     L204
  test   %edx,%edx
  lea    0x3(%rdx),%r14d
  cmovns %edx,%r14d
  sar    $0x2,%r14d
  cmp    $0x1,%r14d
  je     L17
  lea    0x7(%rdx),%eax
  test   %edx,%edx
  mov    %eax,%r15d
  mov    %eax,0x8(%rsp)
  cmovns %edx,%r15d
  sar    $0x3,%r15d
  cmp    $0x1,%r15d
  je     L41
  lea    0xf(%rdx),%eax
  test   %edx,%edx
  mov    %eax,%ebx
  mov    %eax,0xc(%rsp)
  cmovns %edx,%ebx
  sar    $0x4,%ebx
  cmp    $0x1,%ebx
  je     L69
  lea    0x1f(%rdx),%eax
  test   %edx,%edx
  mov    %eax,%r9d
  mov    %eax,0x10(%rsp)
  cmovns %edx,%r9d
  sar    $0x5,%r9d
  cmp    $0x1,%r9d
  je     L88
  test   %r8d,%r8d
  lea    0x3f(%rdx),%edx
  mov    %r9d,0x1c(%rsp)
  cmovns %r8d,%edx
  mov    %r8d,0x18(%rsp)
  sar    $0x6,%edx
  mov    %edx,0x14(%rsp)
  call   <bitonicSortSB>
  mov    0x14(%rsp),%edx
  mov    0x18(%rsp),%r8d
  mov    0x1c(%rsp),%r9d
  cmpl   $0x1,0x4(%rsp)
  mov    %r8d,0x14(%rsp)
  lea    0x0(%rbp,%rdx,1),%esi
  mov    %r9d,0x18(%rsp)
  je     L172
  mov    $0x1,%ecx
  mov    %r13,%rdi
  call   <bitonicSortSB>
  mov    0x18(%rsp),%r9d
  mov    0x14(%rsp),%r8d
L154:
  mov    0x4(%rsp),%ecx
  mov    %r9d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  mov    %r8d,0x18(%rsp)
  mov    %r9d,0x14(%rsp)
  call   <mergeSB@plt>
  mov    0x18(%rsp),%r8d
  mov    0x14(%rsp),%r9d
L88:
  cmpl   $0x1,0x4(%rsp)
  lea    0x0(%rbp,%r9,1),%esi
  je     L133
  mov    %r9d,%edx
  lea    0x0(%rbp,%rbx,1),%eax
  mov    $0x1,%ecx
  mov    %r13,%rdi
  mov    %r8d,0x1c(%rsp)
  mov    %r9d,0x18(%rsp)
  mov    %eax,0x14(%rsp)
  call   <bitonicSortSB>
  mov    0x4(%rsp),%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    0x18(%rsp),%edx
  lea    0x0(%rbp,%rbx,1),%esi
  mov    %r13,%rdi
  mov    $0x1,%ecx
  call   <bitonicSortSB>
  mov    0x18(%rsp),%r9d
  lea    0x0(%rbp,%rbx,1),%eax
  xor    %ecx,%ecx
  mov    %r13,%rdi
  lea    (%r9,%rax,1),%esi
  mov    %r9d,%edx
  call   <bitonicSortSB>
  mov    0x14(%rsp),%esi
  mov    $0x1,%ecx
  mov    %ebx,%edx
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    0x4(%rsp),%ecx
  mov    %r15d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    0x1c(%rsp),%r8d
  mov    0x10(%rsp),%edx
  mov    %r13,%rdi
  lea    0x0(%rbp,%r15,1),%r9d
  mov    $0x1,%ecx
  test   %r8d,%r8d
  mov    %r9d,%esi
  mov    %r8d,0x18(%rsp)
  cmovns %r8d,%edx
  mov    %r9d,0x10(%rsp)
  sar    $0x5,%edx
  mov    %edx,0x14(%rsp)
  call   <bitonicSortSB>
  mov    0x10(%rsp),%r9d
  mov    0x14(%rsp),%edx
  xor    %ecx,%ecx
  mov    %r13,%rdi
  lea    (%rdx,%r9,1),%esi
  call   <bitonicSortSB>
  mov    0x10(%rsp),%esi
  mov    $0x1,%ecx
  mov    %ebx,%edx
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    0x18(%rsp),%r8d
  mov    0x10(%rsp),%r9d
L145:
  lea    (%rbx,%r9,1),%esi
  xor    %ecx,%ecx
  mov    %ebx,%edx
  mov    %r13,%rdi
  mov    %r8d,0x14(%rsp)
  lea    0x0(%rbp,%r14,1),%ebx
  mov    %r9d,0x10(%rsp)
  call   <bitonicSortSB>
  mov    0x10(%rsp),%esi
  mov    %r15d,%edx
  mov    %r13,%rdi
  mov    $0x1,%ecx
  call   <mergeSB@plt>
  mov    0x4(%rsp),%ecx
  mov    %r14d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    0x14(%rsp),%r8d
  mov    0xc(%rsp),%r9d
  test   %r8d,%r8d
  cmovns %r8d,%r9d
  sar    $0x4,%r9d
  cmp    $0x1,%r9d
  je     L38
  test   %r8d,%r8d
  lea    0x1f(%r8),%edx
  mov    $0x1,%ecx
  mov    %ebx,%esi
  cmovns %r8d,%edx
  mov    %r13,%rdi
  mov    %r8d,0x10(%rsp)
  mov    %r9d,0x14(%rsp)
  sar    $0x5,%edx
  mov    %edx,0xc(%rsp)
  call   <bitonicSortSB>
  mov    0xc(%rsp),%edx
  xor    %ecx,%ecx
  mov    %r13,%rdi
  lea    (%rdx,%rbx,1),%esi
  call   <bitonicSortSB>
  mov    0x14(%rsp),%r9d
  mov    %ebx,%esi
  mov    %r13,%rdi
  mov    $0x1,%ecx
  mov    %r9d,%edx
  mov    %r9d,0xc(%rsp)
  call   <mergeSB@plt>
  mov    0x10(%rsp),%r8d
  mov    0xc(%rsp),%r9d
L38:
  lea    (%r9,%rbx,1),%esi
  mov    %r9d,%edx
  xor    %ecx,%ecx
  mov    %r13,%rdi
  mov    %r8d,0xc(%rsp)
  call   <bitonicSortSB>
  mov    $0x1,%ecx
  mov    %r15d,%edx
  mov    %ebx,%esi
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    0xc(%rsp),%r8d
  jmp    L57
  xchg   %ax,%ax
L41:
  cmpl   $0x1,0x4(%rsp)
  je     L128
  mov    %edx,0xc(%rsp)
  mov    %r14d,%edx
  lea    0x0(%rbp,%r14,1),%ebx
  call   <mergeSB@plt>
  mov    0xc(%rsp),%r8d
L57:
  lea    (%r15,%rbx,1),%esi
  xor    %ecx,%ecx
  mov    %r15d,%edx
  mov    %r13,%rdi
  mov    %r8d,0xc(%rsp)
  lea    (%r12,%rbp,1),%r15d
  call   <bitonicSortSB>
  mov    %ebx,%esi
  mov    $0x1,%ecx
  mov    %r14d,%edx
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    0x4(%rsp),%ebx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  mov    %ebx,%ecx
  call   <mergeSB@plt>
  cmp    $0x1,%ebx
  mov    0xc(%rsp),%r8d
  je     L31
  mov    0x8(%rsp),%ebx
  test   %r8d,%r8d
  cmovns %r8d,%ebx
  sar    $0x3,%ebx
  cmp    $0x1,%ebx
  je     L134
  test   %r8d,%r8d
  lea    0xf(%r8),%r9d
  cmovns %r8d,%r9d
  sar    $0x4,%r9d
  cmp    $0x1,%r9d
  je     L136
  test   %r8d,%r8d
  lea    0x1f(%r8),%edx
  mov    $0x1,%ecx
  mov    %r15d,%esi
  cmovns %r8d,%edx
  mov    %r13,%rdi
  mov    %r8d,0xc(%rsp)
  mov    %r9d,0x10(%rsp)
  sar    $0x5,%edx
  mov    %edx,0x8(%rsp)
  call   <bitonicSortSB>
  mov    0x8(%rsp),%edx
  xor    %ecx,%ecx
  mov    %r13,%rdi
  lea    (%r15,%rdx,1),%esi
  call   <bitonicSortSB>
  mov    0x10(%rsp),%r9d
  mov    %r15d,%esi
  mov    %r13,%rdi
  mov    $0x1,%ecx
  mov    %r9d,%edx
  mov    %r9d,0x8(%rsp)
  call   <mergeSB@plt>
  mov    0xc(%rsp),%r8d
  mov    0x8(%rsp),%r9d
L136:
  lea    (%r15,%r9,1),%esi
  mov    %r9d,%edx
  xor    %ecx,%ecx
  mov    %r13,%rdi
  mov    %r8d,0x8(%rsp)
  call   <bitonicSortSB>
  mov    $0x1,%ecx
  mov    %ebx,%edx
  mov    %r15d,%esi
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    0x8(%rsp),%r8d
L134:
  lea    (%rbx,%r15,1),%esi
  xor    %ecx,%ecx
  mov    %ebx,%edx
  mov    %r13,%rdi
  mov    %r8d,0x8(%rsp)
  call   <bitonicSortSB>
  mov    $0x1,%ecx
  mov    %r14d,%edx
  mov    %r15d,%esi
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    0x8(%rsp),%r8d
L71:
  xor    %ecx,%ecx
  lea    (%r15,%r14,1),%esi
  mov    %r14d,%edx
  mov    %r13,%rdi
  mov    %r8d,0x8(%rsp)
  call   <bitonicSortSB>
  mov    $0x1,%ecx
L127:
  mov    %r12d,%edx
  mov    %r15d,%esi
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    0x8(%rsp),%r8d
L204:
  mov    0x4(%rsp),%ecx
  add    $0x28,%rsp
  mov    %ebp,%esi
  mov    %r13,%rdi
  pop    %rbx
  mov    %r8d,%edx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <mergeSB@plt>
  cs nopw 0x0(%rax,%rax,1)
L25:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L17:
  cmpl   $0x1,0x4(%rsp)
  je     L126
  mov    %edx,0x8(%rsp)
  mov    %r12d,%edx
  lea    (%r12,%rbp,1),%r15d
  call   <mergeSB@plt>
  mov    0x8(%rsp),%r8d
  jmp    L71
  nopl   (%rax)
L133:
  mov    %r9d,%edx
  xor    %ecx,%ecx
  mov    %r13,%rdi
  mov    %r8d,0xc(%rsp)
  call   <bitonicSortSB>
  mov    $0x1,%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    0xc(%rsp),%r8d
L29:
  lea    0x0(%rbp,%rbx,1),%esi
  xor    %ecx,%ecx
  mov    %ebx,%edx
  mov    %r13,%rdi
  mov    %r8d,0xc(%rsp)
  call   <bitonicSortSB>
  mov    $0x1,%ecx
  mov    %r15d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    0xc(%rsp),%r8d
L128:
  lea    0x0(%rbp,%r15,1),%esi
  mov    %r15d,%edx
  xor    %ecx,%ecx
  mov    %r13,%rdi
  mov    %r8d,0x10(%rsp)
  lea    0x0(%rbp,%r14,1),%ebx
  call   <bitonicSortSB>
  mov    $0x1,%ecx
  mov    %r14d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <mergeSB@plt>
  lea    (%r15,%rbx,1),%r9d
  mov    %r15d,%edx
  xor    %ecx,%ecx
  mov    %ebx,%esi
  mov    %r13,%rdi
  mov    %r9d,0xc(%rsp)
  call   <bitonicSortSB>
  mov    0xc(%rsp),%esi
  mov    %r15d,%edx
  mov    %r13,%rdi
  mov    $0x1,%ecx
  lea    (%r12,%rbp,1),%r15d
  call   <bitonicSortSB>
  xor    %ecx,%ecx
  mov    %r14d,%edx
  mov    %ebx,%esi
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    $0x1,%ecx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    0x10(%rsp),%r8d
L31:
  mov    0x8(%rsp),%ebx
  test   %r8d,%r8d
  mov    %r15d,%esi
  mov    %r13,%rdi
  mov    %r8d,0x8(%rsp)
  cmovns %r8d,%ebx
  xor    %ecx,%ecx
  sar    $0x3,%ebx
  mov    %ebx,%edx
  call   <bitonicSortSB>
  lea    (%rbx,%r15,1),%esi
  mov    $0x1,%ecx
  mov    %ebx,%edx
  mov    %r13,%rdi
  call   <bitonicSortSB>
  xor    %ecx,%ecx
  mov    %r14d,%edx
  mov    %r15d,%esi
  mov    %r13,%rdi
  call   <mergeSB@plt>
  mov    0x8(%rsp),%r8d
L15:
  mov    $0x1,%ecx
  lea    (%r14,%r15,1),%esi
  mov    %r14d,%edx
  mov    %r13,%rdi
  mov    %r8d,0x8(%rsp)
  call   <bitonicSortSB>
  xor    %ecx,%ecx
  jmp    L127
  nopw   0x0(%rax,%rax,1)
L69:
  cmpl   $0x1,0x4(%rsp)
  je     L29
  mov    %edx,0x10(%rsp)
  mov    %r15d,%edx
  call   <mergeSB@plt>
  mov    0x10(%rsp),%r8d
  lea    0x0(%rbp,%r15,1),%r9d
  jmp    L145
  cs nopw 0x0(%rax,%rax,1)
L126:
  mov    %edx,0x8(%rsp)
  mov    $0x1,%ecx
  mov    %r12d,%edx
  lea    (%r12,%rbp,1),%r15d
  call   <mergeSB@plt>
  mov    0x8(%rsp),%r8d
  jmp    L15
  nopl   0x0(%rax)
L172:
  xor    %ecx,%ecx
  mov    %r13,%rdi
  call   <bitonicSortSB>
  mov    0x14(%rsp),%r8d
  mov    0x18(%rsp),%r9d
  jmp    L154
```

assistant: ```c
void bitonicSortSB(int *dataSB, int startIndexSB, int sizeSB, int dirSB) {
  if (sizeSB == 1) {
    return;
  } else {
    bitonicSortSB(dataSB, startIndexSB, sizeSB / 2, dirSB);
    if (dirSB == 1) {
      bitonicSortSB(dataSB, startIndexSB + (sizeSB / 2), sizeSB / 2, 0);
    } else {
      bitonicSortSB(dataSB, startIndexSB + (sizeSB / 2), sizeSB / 2, 1);
    }
    mergeSB(dataSB, startIndexSB, sizeSB, dirSB);
  }
  return;
}
```