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

```asm
<my_qs>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    0x1(%rdx),%r13d
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  cmp    %r13d,%ecx
  jle    L255
  lea    0x2(%rdx),%eax
  mov    %esi,%ebp
  mov    %rdi,%r14
  mov    %edx,%esi
  mov    %ecx,%r15d
  mov    %r8,%r12
  cmp    %eax,%ecx
  je     L213
  lea    0x3(%rdx),%eax
  cmp    %eax,%ecx
  je     L181
L7:
  mov    %r15d,%edi
  mov    %esi,0xc(%rsp)
  mov    %r15d,%r13d
  sub    %esi,%edi
  call   <int_random@plt>
  mov    0xc(%rsp),%esi
  add    %esi,%eax
  mov    %esi,%r8d
  mov    %esi,%ecx
  cltq
  movslq (%r12,%rax,4),%rax
  movsd  (%r14,%rax,8),%xmm1
  cmp    %esi,%r15d
  jle    L274
  nopl   0x0(%rax,%rax,1)
L361:
  movslq %r8d,%rax
  mov    %r8d,%ebx
  movslq (%r12,%rax,4),%rax
  movsd  (%r14,%rax,8),%xmm0
  mov    %rax,%rdx
  nopl   0x0(%rax,%rax,1)
L21:
  comisd %xmm0,%xmm1
  jb     L319
  movslq %ecx,%rax
  movslq %ebx,%rdx
  lea    (%r12,%rax,4),%rdi
  jmp    L199
  cs nopw 0x0(%rax,%rax,1)
L289:
  movslq (%r12,%rdx,4),%rax
  movsd  (%r14,%rax,8),%xmm0
L199:
  comisd %xmm0,%xmm1
  mov    %edx,%r8d
  mov    %edx,%eax
  jbe    L314
  cmp    %edx,%ecx
  jge    L209
  mov    (%r12,%rdx,4),%r9d
  mov    (%rdi),%eax
  mov    %r9d,(%rdi)
  mov    %eax,(%r12,%rdx,4)
L209:
  add    $0x1,%rdx
  add    $0x1,%ecx
  lea    0x1(%r8),%eax
  add    $0x4,%rdi
  cmp    %edx,%r13d
  jg     L289
L314:
  cmp    %r13d,%eax
  jge    L348
  movslq %ecx,%rdx
  cltq
  lea    (%r12,%rdx,4),%r8
  jmp    L396
  nopw   0x0(%rax,%rax,1)
L145:
  cmp    %eax,%ecx
  jge    L203
  mov    (%r8),%edi
  mov    %edx,(%r8)
  mov    %edi,(%r12,%rax,4)
L203:
  add    $0x1,%rax
  cmp    %eax,%r13d
  jle    L348
L396:
  movslq (%r12,%rax,4),%rdi
  mov    %eax,%ebx
  movsd  (%r14,%rdi,8),%xmm0
  mov    %rdi,%rdx
  ucomisd %xmm1,%xmm0
  jp     L94
  je     L145
L94:
  cmp    %r13d,%ebx
  jl     L21
  nopw   0x0(%rax,%rax,1)
L348:
  mov    %r13d,%ebx
  add    $0x1,%r13d
L246:
  mov    %esi,%edx
  mov    %r12,%r8
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <my_qs>
  cmp    %r13d,%r15d
  jle    L255
  lea    0x2(%rbx),%eax
  cmp    %r15d,%eax
  je     L336
  lea    0x3(%rbx),%eax
  mov    %ebx,%esi
  cmp    %r15d,%eax
  jne    L7
L181:
  movslq %esi,%rax
  shl    $0x2,%rax
  lea    (%r12,%rax,1),%rcx
  lea    0x8(%r12,%rax,1),%rax
  movq   (%rcx),%xmm0
  movslq (%rcx),%rdx
  movslq (%rax),%rdi
  movsd  (%r14,%rdx,8),%xmm2
  pshufd $0xe5,%xmm0,%xmm4
  mov    %rdx,%rsi
  movd   %xmm4,%edx
  movslq %edx,%rdx
  pshufd $0xe1,%xmm0,%xmm3
  movsd  (%r14,%rdi,8),%xmm1
  movsd  (%r14,%rdx,8),%xmm0
  mov    %rdi,%rdx
  comisd %xmm0,%xmm2
  jbe    L325
  comisd %xmm0,%xmm1
  ja     L392
L165:
  mov    %edx,(%rcx)
  mov    %esi,(%rax)
L379:
  mov    %r12,%rdx
  mov    %r13d,%esi
  jmp    L184
  nop
L319:
  cmp    %ebx,%r13d
  jle    L348
  movslq %r13d,%rax
  lea    -0x4(%r12,%rax,4),%rax
  jmp    L339
  nopl   0x0(%rax,%rax,1)
L197:
  lea    -0x1(%r13),%edi
  sub    $0x4,%rax
  cmp    %ebx,%edi
  je     L246
  mov    %edi,%r13d
L339:
  movslq (%rax),%r8
  movsd  (%r14,%r8,8),%xmm0
  mov    %r8,%rdi
  comisd %xmm1,%xmm0
  ja     L197
  ucomisd %xmm1,%xmm0
  movslq %ebx,%r8
  lea    (%r12,%r8,4),%r9
  lea    0x1(%rbx),%r8d
  jp     L330
  jne    L330
  mov    %edi,(%r9)
  mov    %edx,(%rax)
  cmp    %r8d,%r13d
  jle    L348
  sub    $0x1,%r13d
L166:
  cmp    %r8d,%r13d
  jg     L361
  jmp    L348
L330:
  movslq %ecx,%r10
  lea    0x1(%rcx),%r11d
  lea    (%r12,%r10,4),%r10
  cmp    %ebx,%ecx
  je     L52
  mov    %edi,(%r9)
  mov    %edx,(%rax)
  mov    (%r10),%eax
  mov    (%r9),%edx
  mov    %edx,(%r10)
  mov    %eax,(%r9)
  cmp    %r8d,%r13d
  jg     L175
L321:
  mov    %r13d,%ebx
  mov    %r11d,%ecx
  add    $0x1,%r13d
  jmp    L246
L52:
  mov    (%r10),%edx
  mov    %edi,(%r10)
  mov    %edx,(%rax)
  cmp    %r8d,%r13d
  jle    L321
L175:
  sub    $0x1,%r13d
  mov    %r11d,%ecx
  jmp    L166
L274:
  lea    0x1(%r15),%r13d
  mov    %r15d,%ebx
  jmp    L246
L336:
  mov    %ebx,%esi
L213:
  mov    %r12,%rdx
L184:
  add    $0x18,%rsp
  mov    %r14,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1060 <my_qs_2@plt>
L255:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L392:
  movq   %xmm3,(%rcx)
  jmp    L379
L325:
  comisd %xmm1,%xmm2
  jbe    L379
  comisd %xmm0,%xmm1
  jbe    L165
  jmp    L392
```

assistant: ```c
void my_qs(double *farr, int size, int start, int end, int *indices) {
  if (end <= start + 1) {
  } else if (end == start + 2) {
    my_qs_2(farr, start, indices);
  } else if (end == start + 3) {
    double x0 = farr[indices[start + 0]];
    double x1 = farr[indices[start + 1]];
    double x2 = farr[indices[start + 2]];
    if (x0 > x1 || x0 > x2) {
      if (x1 < x2) {
        {
          int temp = indices[start];
          indices[start] = indices[start + 1];
          indices[start + 1] = temp;
        };
        my_qs_2(farr, start + 1, indices);
      } else {
        {
          int temp = indices[start];
          indices[start] = indices[start + 2];
          indices[start + 2] = temp;
        };
        my_qs_2(farr, start + 1, indices);
      }
    } else
      my_qs_2(farr, start + 1, indices);
  } else {
    int pivot_index = start + int_random(end - start);
    double pivot_value = farr[indices[pivot_index]];
    int i = start;
    int j = start;
    int k = end;
    while (j < k) {
      while (j < k && farr[indices[j]] <= pivot_value) {
        while (j < k && farr[indices[j]] < pivot_value) {
          if (i < j) {
            int temp = indices[i];
            indices[i] = indices[j];
            indices[j] = temp;
          };
          i += 1;
          j += 1;
        }
        while (j < k && farr[indices[j]] == pivot_value) {
          if (i < j) {
            int temp = indices[i];
            indices[i] = indices[j];
            indices[j] = temp;
          };
          j += 1;
        }
      }
      while (j < k && farr[indices[k - 1]] > pivot_value)
        k -= 1;
      if (j < k && farr[indices[k - 1]] == pivot_value) {
        {
          int temp = indices[j];
          indices[j] = indices[k - 1];
          indices[k - 1] = temp;
        };
        j += 1;
        if (j < k)
          k -= 1;
      } else if (j < k) {
        if (i == j) {
          {
            int temp = indices[i];
            indices[i] = indices[k - 1];
            indices[k - 1] = temp;
          };
          i += 1;
          j += 1;
          if (j < k)
            k -= 1;
        } else {
          {
            int temp = indices[j];
            indices[j] = indices[k - 1];
            indices[k - 1] = temp;
          };
          {
            int temp = indices[i];
            indices[i] = indices[j];
            indices[j] = temp;
          };
          i += 1;
          j += 1;
          if (j < k)
            k -= 1;
        }
      }
    }
    my_qs(farr, size, start, i, indices);
    my_qs(farr, size, k, end, indices);
  }
}
```