user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<c_ssort2ins>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %edi,0x48(%rsp)
  mov    %edx,0x50(%rsp)
  mov    %r8d,0x4c(%rsp)
  test   %edi,%edi
  jle    L314
  pxor   %xmm1,%xmm1
  mov    %rsi,%r13
  mov    %edx,%esi
  setle  %dl
  ucomiss %xmm1,%xmm0
  setnp  %al
  cmovne %edx,%eax
  test   %al,%al
  jne    L314
  comiss %xmm0,%xmm1
  mov    %rcx,%r15
  ja     L87
  mov    0x4c(%rsp),%edx
  test   %edx,%edx
  js     L104
L44:
  mov    0x48(%rsp),%eax
  mov    0x4c(%rsp),%esi
  sub    $0x1,%eax
  mov    %esi,0x40(%rsp)
  imul   %esi,%eax
  mov    0x50(%rsp),%esi
  test   %esi,%esi
  js     L81
L22:
  mov    0x48(%rsp),%edx
  mov    0x50(%rsp),%esi
  lea    -0x1(%rdx),%ebp
  mov    %ebp,%edi
  imul   %esi,%edi
  mov    %edi,0x54(%rsp)
  cmp    $0x1,%edx
  je     L314
  cltq
  movslq %esi,%rsi
  movslq 0x4c(%rsp),%rbp
  movslq %edi,%rdx
  lea    (%r15,%rax,4),%rax
  lea    0x0(%r13,%rsi,4),%r12
  mov    %rsi,0x70(%rsp)
  mov    %rax,0x60(%rsp)
  mov    %rsi,%rax
  lea    0x0(%r13,%rdx,4),%rdx
  lea    0x0(,%rbp,4),%rdi
  mov    %eax,0x3c(%rsp)
  neg    %eax
  lea    (%r15,%rdi,1),%rsi
  mov    %r12,%r14
  cltq
  mov    %rdx,0x58(%rsp)
  mov    %r15,%r12
  mov    %rbp,%r15
  mov    %rax,0x8(%rsp)
  mov    %ebp,%eax
  mov    %r13,%rbp
  neg    %eax
  mov    %rdi,0x68(%rsp)
  cltq
  mov    %rsi,(%rsp)
  movl   $0x1,0x34(%rsp)
  mov    %rax,0x10(%rsp)
  nopl   0x0(%rax,%rax,1)
L186:
  movslq 0x3c(%rsp),%r13
  movslq 0x40(%rsp),%rax
  lea    0x0(%rbp,%r13,4),%rbx
  lea    (%r12,%rax,4),%rcx
  movss  (%rbx),%xmm1
  movss  (%rcx),%xmm2
  mov    %rcx,0x20(%rsp)
  movaps %xmm1,%xmm0
  movss  %xmm1,0x18(%rsp)
  movss  %xmm2,0x44(%rsp)
  call   <stdlib_base_is_nanf@plt>
  movss  0x18(%rsp),%xmm1
  mov    0x20(%rsp),%rcx
  test   %rax,%rax
  je     L271
  mov    0x3c(%rsp),%edi
  mov    %rcx,%rax
  cmp    %edi,0x54(%rsp)
  jle    L119
  mov    0x68(%rsp),%rdx
  mov    0x70(%rsp),%rcx
  mov    0x54(%rsp),%esi
  nopl   0x0(%rax,%rax,1)
L176:
  movss  (%r14,%r13,4),%xmm0
  movss  %xmm0,0x0(%rbp,%r13,4)
  movss  (%rax,%r15,4),%xmm0
  add    %rcx,%r13
  movss  %xmm0,(%rax)
  add    %rdx,%rax
  cmp    %r13d,%esi
  jg     L176
L119:
  mov    0x58(%rsp),%rax
  movss  0x44(%rsp),%xmm3
  movss  %xmm1,(%rax)
  mov    0x60(%rsp),%rax
  movss  %xmm3,(%rax)
L175:
  addl   $0x1,0x34(%rsp)
  mov    0x34(%rsp),%eax
  cmp    %eax,0x48(%rsp)
  jne    L186
L314:
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L104:
  mov    $0x2,%eax
  sub    0x48(%rsp),%eax
  mov    0x50(%rsp),%esi
  imul   %edx,%eax
  mov    %eax,0x40(%rsp)
  xor    %eax,%eax
  test   %esi,%esi
  jns    L22
L81:
  mov    0x48(%rsp),%ecx
  mov    0x50(%rsp),%edi
  mov    $0x1,%edx
  sub    %ecx,%edx
  mov    %edi,%esi
  imul   %edi,%edx
  add    %edx,%esi
  mov    %edx,(%rsp)
  mov    %esi,0x44(%rsp)
  cmp    $0x1,%ecx
  je     L314
  cltq
  movslq %edi,%rsi
  movslq 0x4c(%rsp),%rbp
  mov    %r15,%r14
  lea    (%r15,%rax,4),%rax
  lea    0x0(%r13,%rsi,4),%r12
  mov    %rsi,0x68(%rsp)
  mov    %rax,0x58(%rsp)
  mov    %rsi,%rax
  lea    0x0(,%rbp,4),%rsi
  neg    %eax
  lea    (%r15,%rsi,1),%rdx
  mov    %rsi,0x60(%rsp)
  mov    %r12,%r15
  cltq
  mov    %rdx,0x8(%rsp)
  mov    %rbp,%r12
  mov    %rax,0x10(%rsp)
  mov    %ebp,%eax
  mov    %r13,%rbp
  neg    %eax
  movl   $0x1,0x38(%rsp)
  cltq
  mov    %rax,0x18(%rsp)
  xchg   %ax,%ax
L290:
  movslq 0x44(%rsp),%r13
  movslq 0x40(%rsp),%rax
  lea    0x0(%rbp,%r13,4),%rbx
  lea    (%r14,%rax,4),%rcx
  movss  (%rbx),%xmm1
  movss  (%rcx),%xmm4
  mov    %rcx,0x28(%rsp)
  movaps %xmm1,%xmm0
  movss  %xmm1,0x20(%rsp)
  movss  %xmm4,0x54(%rsp)
  call   <stdlib_base_is_nanf@plt>
  movss  0x20(%rsp),%xmm1
  mov    0x28(%rsp),%rcx
  test   %rax,%rax
  je     L85
  mov    %rcx,%rax
  mov    0x44(%rsp),%ecx
  test   %ecx,%ecx
  jle    L110
  mov    0x60(%rsp),%rdx
  mov    0x68(%rsp),%rcx
  nopl   (%rax)
L164:
  movss  (%r15,%r13,4),%xmm0
  movss  %xmm0,0x0(%rbp,%r13,4)
  movss  (%rax,%r12,4),%xmm0
  add    %rcx,%r13
  movss  %xmm0,(%rax)
  add    %rdx,%rax
  test   %r13d,%r13d
  jg     L164
L110:
  mov    0x58(%rsp),%rax
  movss  0x54(%rsp),%xmm6
  movss  %xmm1,0x0(%rbp)
  movss  %xmm6,(%rax)
L150:
  addl   $0x1,0x38(%rsp)
  mov    0x38(%rsp),%eax
  cmp    %eax,0x48(%rsp)
  jne    L290
  jmp    L314
  xchg   %ax,%ax
L87:
  neg    %r8d
  neg    %esi
  mov    %r8d,0x4c(%rsp)
  mov    0x4c(%rsp),%edx
  mov    %esi,0x50(%rsp)
  test   %edx,%edx
  jns    L44
  jmp    L104
  nop
L271:
  movaps %xmm1,%xmm0
  mov    %rcx,0x20(%rsp)
  movss  %xmm1,0x18(%rsp)
  call   <stdlib_base_is_negative_zerof@plt>
  mov    0x40(%rsp),%r10d
  mov    0x3c(%rsp),%edx
  sub    0x4c(%rsp),%r10d
  sub    0x50(%rsp),%edx
  mov    %eax,0x38(%rsp)
  movss  0x18(%rsp),%xmm1
  mov    0x20(%rsp),%rcx
  js     L318
  movslq %edx,%rdx
  movslq %r10d,%r10
  mov    %r15,0x78(%rsp)
  mov    %r14,%r15
  mov    %rdx,%rbx
  mov    %r10,%r14
  xchg   %ax,%ax
L221:
  movss  0x0(%rbp,%rbx,4),%xmm0
  mov    %r14d,%ecx
  mov    %ebx,%r11d
  lea    0x0(%rbp,%rbx,4),%r13
  comiss %xmm0,%xmm1
  jb     L161
  mov    0x38(%rsp),%eax
  test   %eax,%eax
  je     L107
  ucomiss %xmm0,%xmm1
  mov    $0x1,%edi
  setp   %al
  cmovne %edi,%eax
  test   %al,%al
  jne    L107
  movss  %xmm1,0x20(%rsp)
  movss  %xmm0,0x18(%rsp)
  mov    %r14d,0x30(%rsp)
  mov    %ebx,0x28(%rsp)
  call   <stdlib_base_is_negative_zerof@plt>
  movss  0x18(%rsp),%xmm0
  movss  0x20(%rsp),%xmm1
  test   %eax,%eax
  mov    0x28(%rsp),%r11d
  mov    0x30(%rsp),%ecx
  jne    L107
L161:
  movss  %xmm0,(%r15,%rbx,4)
  mov    (%rsp),%rax
  movss  (%r12,%r14,4),%xmm0
  lea    (%r12,%r14,4),%rcx
  add    0x8(%rsp),%rbx
  movss  %xmm0,(%rax,%r14,4)
  add    0x10(%rsp),%r14
  test   %ebx,%ebx
  jns    L221
  mov    %r15,%r14
  mov    0x78(%rsp),%r15
  mov    %r13,%rbx
L318:
  movss  0x44(%rsp),%xmm5
  mov    0x50(%rsp),%edi
  movss  %xmm1,(%rbx)
  mov    0x4c(%rsp),%esi
  add    %edi,0x3c(%rsp)
  add    %esi,0x40(%rsp)
  movss  %xmm5,(%rcx)
  jmp    L175
  nopl   (%rax)
L107:
  mov    0x50(%rsp),%eax
  mov    %r15,%r14
  mov    0x78(%rsp),%r15
  add    %r11d,%eax
  cltq
  lea    0x0(%rbp,%rax,4),%rbx
  mov    0x4c(%rsp),%eax
  add    %ecx,%eax
  cltq
  lea    (%r12,%rax,4),%rcx
  jmp    L318
  nopl   0x0(%rax)
L85:
  movaps %xmm1,%xmm0
  mov    %rcx,0x28(%rsp)
  movss  %xmm1,0x20(%rsp)
  call   <stdlib_base_is_negative_zerof@plt>
  mov    0x44(%rsp),%edx
  mov    0x40(%rsp),%r10d
  sub    0x50(%rsp),%edx
  sub    0x4c(%rsp),%r10d
  mov    %eax,0x3c(%rsp)
  cmp    %edx,(%rsp)
  movss  0x20(%rsp),%xmm1
  mov    0x28(%rsp),%rcx
  jl     L349
  movslq %edx,%rdx
  movslq %r10d,%r10
  mov    %r12,0x70(%rsp)
  mov    %r14,%r12
  mov    %rdx,%rbx
  mov    %r10,%r14
  nopl   0x0(%rax)
L178:
  movss  0x0(%rbp,%rbx,4),%xmm0
  mov    %r14d,%ecx
  mov    %ebx,%r11d
  lea    0x0(%rbp,%rbx,4),%r13
  comiss %xmm0,%xmm1
  jb     L127
  mov    0x3c(%rsp),%edx
  test   %edx,%edx
  je     L169
  ucomiss %xmm0,%xmm1
  mov    $0x1,%edi
  setp   %al
  cmovne %edi,%eax
  test   %al,%al
  jne    L169
  movss  %xmm1,0x28(%rsp)
  movss  %xmm0,0x20(%rsp)
  mov    %r14d,0x34(%rsp)
  mov    %ebx,0x30(%rsp)
  call   <stdlib_base_is_negative_zerof@plt>
  movss  0x20(%rsp),%xmm0
  movss  0x28(%rsp),%xmm1
  test   %eax,%eax
  mov    0x30(%rsp),%r11d
  mov    0x34(%rsp),%ecx
  jne    L169
L127:
  movss  %xmm0,(%r15,%rbx,4)
  mov    0x8(%rsp),%rax
  lea    (%r12,%r14,4),%rcx
  movss  (%r12,%r14,4),%xmm0
  add    0x10(%rsp),%rbx
  movss  %xmm0,(%rax,%r14,4)
  add    0x18(%rsp),%r14
  cmp    %ebx,(%rsp)
  jge    L178
  mov    %r12,%r14
  mov    0x70(%rsp),%r12
  mov    %r13,%rbx
L349:
  movss  0x54(%rsp),%xmm7
  mov    0x50(%rsp),%edi
  movss  %xmm1,(%rbx)
  add    %edi,0x44(%rsp)
  mov    0x4c(%rsp),%edi
  movss  %xmm7,(%rcx)
  add    %edi,0x40(%rsp)
  jmp    L150
L169:
  mov    0x50(%rsp),%eax
  mov    %r12,%r14
  mov    0x70(%rsp),%r12
  add    %r11d,%eax
  cltq
  lea    0x0(%rbp,%rax,4),%rbx
  mov    0x4c(%rsp),%eax
  add    %ecx,%eax
  cltq
  lea    (%r14,%rax,4),%rcx
  jmp    L349
```

assistant: ```c
void c_ssort2ins(const int64_t N, const float order, float *X, const int64_t strideX, float *Y, const int64_t strideY) {
  int64_t sx;
  int64_t sy;
  int64_t ix;
  int64_t jx;
  int64_t fx;
  int64_t lx;
  int64_t iy;
  int64_t jy;
  int64_t fy;
  int64_t ly;
  int64_t i;
  float vx;
  float vy;
  float ux;
  bool flg;
  if (N <= 0 || order == 0.0f) {
    return;
  }
  if (order < 0.0f) {
    sx = -strideX;
    sy = -strideY;
  } else {
    sx = strideX;
    sy = strideY;
  }
  if (sy < 0) {
    fy = (1 - N) * sy;
    ly = 0;
  } else {
    fy = 0;
    ly = (N - 1) * sy;
  }
  iy = fy + sy;
  if (sx < 0) {
    fx = (1 - N) * sx;
    lx = 0;
    ix = fx + sx;
    for (i = 1; i < N; i++) {
      vx = X[ix];
      vy = Y[iy];
      if (stdlib_base_is_nanf(vx)) {
        jx = ix;
        jy = iy;
        while (jx > lx) {
          X[jx] = X[jx + sx];
          Y[jy] = Y[jy + sy];
          jx += sx;
          jy += sy;
        }
        X[lx] = vx;
        Y[ly] = vy;
      } else {
        flg = stdlib_base_is_negative_zerof(vx);
        jx = ix - sx;
        jy = iy - sy;
        while (jx <= fx) {
          ux = X[jx];
          if (ux <= vx && !(flg && ux == vx && !stdlib_base_is_negative_zerof(ux))) {
            break;
          }
          X[jx + sx] = ux;
          Y[jy + sy] = Y[jy];
          jx -= sx;
          jy -= sy;
        }
        X[jx + sx] = vx;
        Y[jy + sy] = vy;
        ix += sx;
        iy += sy;
      }
    }
    return;
  }
  fx = 0;
  lx = (N - 1) * sx;
  ix = fx + sx;
  for (i = 1; i < N; i++) {
    vx = X[ix];
    vy = Y[iy];
    if (stdlib_base_is_nanf(vx)) {
      jx = ix;
      jy = iy;
      while (jx < lx) {
        X[jx] = X[jx + sx];
        Y[jy] = Y[jy + sy];
        jx += sx;
        jy += sy;
      }
      X[lx] = vx;
      Y[ly] = vy;
    } else {
      flg = stdlib_base_is_negative_zerof(vx);
      jx = ix - sx;
      jy = iy - sy;
      while (jx >= fx) {
        ux = X[jx];
        if (ux <= vx && !(flg && ux == vx && !stdlib_base_is_negative_zerof(ux))) {
          break;
        }
        X[jx + sx] = ux;
        Y[jy + sy] = Y[jy];
        jx -= sx;
        jy -= sy;
      }
      X[jx + sx] = vx;
      Y[jy + sy] = vy;
      ix += sx;
      iy += sy;
    }
  }
  return;
}
```