user: Converte this assembly snippet into its equivalent C code:

```asm
<SortIntegerArray>:
  endbr64
  cmp    $0x1,%esi
  jg     L120
  ret
  nopw   0x0(%rax,%rax,1)
L120:
  push   %r15
  mov    %esi,%r15d
  xor    %eax,%eax
  push   %r14
  sar    %r15d
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  movslq %r15d,%rbp
  push   %rbx
  shl    $0x2,%rbp
  mov    %esi,%ebx
  mov    %rbp,%rdi
  sub    %r15d,%ebx
  sub    $0x8,%rsp
  call   <GetBlock@plt>
  movslq %ebx,%rdi
  movslq %eax,%r14
  shl    $0x2,%rdi
  xor    %eax,%eax
  call   <GetBlock@plt>
  lea    0x4(%r12),%rcx
  mov    %r14,%rdx
  sub    %rcx,%rdx
  movslq %eax,%r13
  mov    %r14,%rax
  cmp    $0x8,%rdx
  jbe    L146
  lea    -0x1(%r15),%edx
  cmp    $0x2,%edx
  jbe    L146
  mov    %r15d,%edx
  mov    %r12,%rcx
  shr    $0x2,%edx
  sub    %r14,%rcx
  shl    $0x4,%rdx
  add    %r14,%rdx
  nopl   0x0(%rax)
L169:
  movdqu (%rax,%rcx,1),%xmm0
  add    $0x10,%rax
  movups %xmm0,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L169
  mov    %r15d,%eax
  and    $0xfffffffc,%eax
  test   $0x3,%r15b
  je     L8
  mov    %eax,%ecx
  mov    (%r12,%rcx,4),%esi
  lea    0x0(,%rcx,4),%rdx
  mov    %esi,(%r14,%rcx,4)
  lea    0x1(%rax),%ecx
  cmp    %ecx,%r15d
  jle    L8
  mov    0x4(%r12,%rdx,1),%ecx
  add    $0x2,%eax
  mov    %ecx,0x4(%r14,%rdx,1)
  cmp    %eax,%r15d
  jle    L8
  mov    0x8(%r12,%rdx,1),%eax
  mov    %eax,0x8(%r14,%rdx,1)
L8:
  test   %ebx,%ebx
  jle    L88
  lea    0x4(%r12,%rbp,1),%rsi
  mov    %r13,%rcx
  mov    %r13,%rdx
  mov    %r13,%rax
  sub    %rsi,%rcx
  cmp    $0x8,%rcx
  jbe    L132
  lea    -0x1(%rbx),%ecx
  cmp    $0x2,%ecx
  jbe    L132
  mov    %ebx,%edx
  sub    %r13,%rbp
  shr    $0x2,%edx
  add    %r12,%rbp
  shl    $0x4,%rdx
  add    %r13,%rdx
  nopl   (%rax)
L38:
  movdqu (%rax,%rbp,1),%xmm1
  add    $0x10,%rax
  movups %xmm1,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L38
  mov    %ebx,%eax
  and    $0xfffffffc,%eax
  test   $0x3,%bl
  je     L88
  lea    (%r15,%rax,1),%edx
  mov    %eax,%esi
  movslq %edx,%rdx
  lea    0x0(,%rsi,4),%rcx
  mov    (%r12,%rdx,4),%edx
  mov    %edx,0x0(%r13,%rsi,4)
  lea    0x1(%rax),%edx
  cmp    %ebx,%edx
  jge    L88
  add    %r15d,%edx
  add    $0x2,%eax
  movslq %edx,%rdx
  mov    (%r12,%rdx,4),%edx
  mov    %edx,0x4(%r13,%rcx,1)
  cmp    %eax,%ebx
  jle    L88
  add    %r15d,%eax
  cltq
  mov    (%r12,%rax,4),%eax
  mov    %eax,0x8(%r13,%rcx,1)
L88:
  mov    %r15d,%esi
  mov    %r14,%rdi
  call   <SortIntegerArray>
  mov    %ebx,%esi
  mov    %r13,%rdi
  call   <SortIntegerArray>
  mov    %ebx,%r8d
  mov    %r13,%rcx
  mov    %r15d,%edx
  mov    %r14,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <Merge@plt>
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <FreeBlock@plt>
  add    $0x8,%rsp
  mov    %r13,%rdi
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <FreeBlock@plt>
  cs nopw 0x0(%rax,%rax,1)
L146:
  mov    %r15d,%eax
  mov    %r12,%rcx
  lea    (%r14,%rax,4),%rsi
  sub    %r14,%rcx
  mov    %r14,%rax
L150:
  mov    (%rcx,%rax,1),%edx
  add    $0x4,%rax
  mov    %edx,-0x4(%rax)
  cmp    %rsi,%rax
  jne    L150
  jmp    L8
  nopl   0x0(%rax)
L132:
  mov    %ebx,%eax
  sub    %r13,%rbp
  lea    0x0(%r13,%rax,4),%rcx
  add    %r12,%rbp
  nopl   (%rax)
L166:
  mov    0x0(%rbp,%rdx,1),%eax
  add    $0x4,%rdx
  mov    %eax,-0x4(%rdx)
  cmp    %rdx,%rcx
  jne    L166
  jmp    L88
```

assistant: ```c
void SortIntegerArray(int array[], int n) {
  int i, n1, n2;
  int *arr1, *arr2;
  if (n > 1) {
    n1 = n / 2;
    n2 = n - n1;
    arr1 = ((int *)GetBlock((n1) * sizeof(int)));
    arr2 = ((int *)GetBlock((n2) * sizeof(int)));
    for (i = 0; i < n1; i++)
      arr1[i] = array[i];
    for (i = 0; i < n2; i++)
      arr2[i] = array[n1 + i];
    SortIntegerArray(arr1, n1);
    SortIntegerArray(arr2, n2);
    Merge(array, arr1, n1, arr2, n2);
    FreeBlock(arr1);
    FreeBlock(arr2);
  }
}
```