user: 请将以下的汇编代码转换成C语言代码:

```asm
<stable_sqrt_sort_build_blocks>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  movl   $0x1,-0x20(%rbp)
  jmp    L32
L38:
  movl   $0x0,-0x1c(%rbp)
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    (%rax),%edx
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rax
  mov    (%rax),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  test   %eax,%eax
  jle    L65
  movl   $0x1,-0x1c(%rbp)
L65:
  mov    -0x20(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x20(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  lea    -0x18(%rdx),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%rax
  mov    %rax,(%rdx)
  mov    -0x20(%rbp),%eax
  sub    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x20(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  lea    -0x10(%rdx),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%rax
  mov    %rax,(%rdx)
  addl   $0x2,-0x20(%rbp)
L32:
  mov    -0x20(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L38
  mov    -0x2c(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L113
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x2c(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  lea    -0x18(%rdx),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%rax
  mov    %rax,(%rdx)
L113:
  subq   $0x10,-0x28(%rbp)
  movl   $0x2,-0x18(%rbp)
  jmp    L126
L14:
  movl   $0x0,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x2c(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L99
L130:
  mov    -0x18(%rbp),%eax
  neg    %eax
  mov    %eax,%ecx
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x18(%rbp),%edx
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  mov    $0x0,%eax
  call   <stable_sqrt_sort_merge_left_with_x_buf@plt>
  mov    -0x18(%rbp),%eax
  add    %eax,%eax
  add    %eax,-0x14(%rbp)
L99:
  mov    -0x14(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jle    L130
  mov    -0x2c(%rbp),%eax
  sub    -0x14(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jle    L37
  mov    -0x18(%rbp),%eax
  neg    %eax
  mov    %eax,%ecx
  mov    -0x4(%rbp),%eax
  sub    -0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rsi
  mov    -0x28(%rbp),%rax
  lea    (%rsi,%rax,1),%rdi
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  mov    $0x0,%eax
  call   <stable_sqrt_sort_merge_left_with_x_buf@plt>
  jmp    L54
L122:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x14(%rbp),%eax
  sub    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%rax
  mov    %rax,(%rdx)
  addl   $0x1,-0x14(%rbp)
L37:
  mov    -0x14(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L122
L54:
  mov    -0x18(%rbp),%eax
  cltq
  shl    $0x3,%rax
  neg    %rax
  add    %rax,-0x28(%rbp)
  shll   -0x18(%rbp)
L126:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L14
  mov    -0x30(%rbp),%eax
  lea    (%rax,%rax,1),%ecx
  mov    -0x2c(%rbp),%eax
  cltd
  idiv   %ecx
  mov    %edx,-0xc(%rbp)
  mov    -0x2c(%rbp),%eax
  sub    -0xc(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0xc(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jg     L80
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x28(%rbp),%rax
  add    %rax,%rcx
  mov    -0x10(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x30(%rbp),%eax
  cltq
  add    %rsi,%rax
  lea    0x0(,%rax,8),%rsi
  mov    -0x28(%rbp),%rax
  add    %rsi,%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  jmp    L139
L80:
  mov    -0xc(%rbp),%eax
  sub    -0x30(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x28(%rbp),%rax
  lea    (%rcx,%rax,1),%rdi
  mov    -0x30(%rbp),%ecx
  mov    -0x30(%rbp),%eax
  mov    %eax,%esi
  mov    $0x0,%eax
  call   <stable_sqrt_sort_merge_right@plt>
  jmp    L139
L98:
  mov    -0x30(%rbp),%eax
  add    %eax,%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x30(%rbp),%ecx
  mov    -0x30(%rbp),%edx
  mov    -0x30(%rbp),%eax
  mov    %eax,%esi
  mov    $0x0,%eax
  call   <stable_sqrt_sort_merge_right@plt>
L139:
  cmpl   $0x0,-0x10(%rbp)
  jg     L98
  nop
  nop
  leave
  ret
```

assistant: ```c
void stable_sqrt_sort_build_blocks(int **arr, int L, int K) {
  int m, u, h, p0, p1, rest, restk, p;
  for (m = 1; m < L; m += 2) {
    u = 0;
    if ((*(*(arr + (m - 1))) - *(*(arr + m))) > 0) {
      u = 1;
    }
    arr[m - 3] = arr[m - 1 + u];
    arr[m - 2] = arr[m - u];
  }
  if (L % 2) {
    arr[L - 3] = arr[L - 1];
  }
  arr -= 2;
  for (h = 2; h < K; h *= 2) {
    p0 = 0;
    p1 = L - 2 * h;
    while (p0 <= p1) {
      stable_sqrt_sort_merge_left_with_x_buf(arr + p0, h, h, -h);
      p0 += 2 * h;
    }
    rest = L - p0;
    if (rest > h) {
      stable_sqrt_sort_merge_left_with_x_buf(arr + p0, h, rest - h, -h);
    } else {
      for (; p0 < L; p0++) {
        arr[p0 - h] = arr[p0];
      }
    }
    arr -= h;
  }
  restk = L % (2 * K);
  p = L - restk;
  if (restk <= K) {
    memcpy((arr + p + K), (arr + p), (restk) * sizeof(int *));
  } else {
    stable_sqrt_sort_merge_right(arr + p, K, restk - K, K);
  }
  while (p > 0) {
    p -= 2 * K;
    stable_sqrt_sort_merge_right(arr + p, K, K, K);
  }
}
```