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

```asm
<nullspace>:
  endbr64
  push   %r15
  movslq %edx,%rax
  push   %r14
  lea    (%rcx,%rax,4),%r8
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %rsi,-0x18(%rsp)
  mov    %rcx,-0x10(%rsp)
  mov    %rax,-0x8(%rsp)
  mov    %r8,(%rsp)
  test   %eax,%eax
  jle    L13
  mov    %eax,-0x74(%rsp)
  mov    %rax,%r14
  xor    %esi,%esi
  mov    %rdi,%r13
  lea    0x0(,%rax,8),%r15
  lea    -0x1(%rax),%eax
  mov    %rcx,-0x38(%rsp)
  movq   D50(%rip),%xmm3
  mov    %eax,-0x1c(%rsp)
  movsd  D47(%rip),%xmm5
  mov    %esi,%r12d
  movl   $0x0,-0x24(%rsp)
  movq   D2(%rip),%xmm4
  movq   $0x0,-0x68(%rsp)
L147:
  mov    %r14d,%ebp
  mov    %r14d,%eax
  lea    0x1(%r12),%edx
  sub    -0x74(%rsp),%eax
  imul   %r12d,%ebp
  mov    %eax,-0x58(%rsp)
  mov    %eax,%ecx
  mov    %edx,-0x28(%rsp)
  add    %ebp,%eax
  cltq
  lea    0x0(%r13,%rax,8),%r10
  movsd  (%r10),%xmm1
  andpd  %xmm3,%xmm1
  cmp    %edx,%r14d
  jle    L539
  lea    0x0(%rbp,%r14,1),%eax
  cltq
  add    -0x68(%rsp),%rax
  lea    0x0(%r13,%rax,8),%rsi
  mov    %r12d,%eax
  nopl   0x0(%rax)
L47:
  movsd  (%rsi),%xmm0
  andpd  %xmm3,%xmm0
  comisd %xmm1,%xmm0
  maxsd  %xmm1,%xmm0
  cmova  %edx,%eax
  add    $0x1,%edx
  movapd %xmm0,%xmm1
  add    %r15,%rsi
  cmp    %edx,%r14d
  jne    L47
L404:
  comisd %xmm1,%xmm5
  jbe    L279
  mov    -0x38(%rsp),%rax
  mov    -0x58(%rsp),%ebx
  addl   $0x1,-0x24(%rsp)
  mov    %ebx,(%rax)
  lea    0x4(%rax),%rcx
  cmp    %r12d,%r14d
  jle    L98
  movslq %ebp,%rax
  add    -0x68(%rsp),%rax
  lea    0x0(%r13,%rax,8),%rdx
  mov    %r12d,%eax
  nopl   (%rax)
L266:
  add    $0x1,%eax
  movq   $0x0,(%rdx)
  add    %r15,%rdx
  cmp    %eax,%r14d
  jne    L266
L98:
  mov    %rcx,-0x38(%rsp)
L348:
  addq   $0x1,-0x68(%rsp)
  subl   $0x1,-0x74(%rsp)
  jne    L147
  mov    -0x24(%rsp),%eax
  test   %eax,%eax
  je     L507
  mov    %r14d,%r8d
  sub    %eax,%r8d
  cmp    $0x1,%r14d
  jne    L346
  mov    -0x10(%rsp),%rbp
  mov    %eax,%ebx
  mov    -0x18(%rsp),%rcx
  sub    $0x1,%eax
  movq   D2(%rip),%xmm1
  movsd  D1(%rip),%xmm2
  xor    %r11d,%r11d
  movslq %r8d,%rdi
  lea    0x4(%rbp,%rax,4),%r9
  cs nopw 0x0(%rax,%rax,1)
L200:
  mov    0x0(%rbp,%r11,4),%r10d
  mov    %r11d,%esi
  test   %r8d,%r8d
  jle    L20
  movslq %r10d,%rax
  lea    0x0(%r13,%rax,8),%r12
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L193:
  mov    0x4(%rbp,%rax,4),%edx
  movsd  (%r12,%rax,8),%xmm0
  add    $0x1,%rax
  add    %esi,%edx
  xorpd  %xmm1,%xmm0
  movslq %edx,%rdx
  movsd  %xmm0,(%rcx,%rdx,8)
  cmp    %rdi,%rax
  jne    L193
L20:
  lea    (%r10,%rsi,1),%r12d
  mov    %rbp,%rdx
  movslq %r12d,%r12
  nopl   0x0(%rax,%rax,1)
L95:
  mov    (%rdx),%eax
  cmp    %r10d,%eax
  je     L320
  add    %esi,%eax
  add    $0x4,%rdx
  cltq
  movq   $0x0,(%rcx,%rax,8)
  cmp    %r9,%rdx
  jne    L95
  add    $0x1,%r11
  cmp    %rbx,%r11
  jne    L200
L507:
  mov    -0x24(%rsp),%eax
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L320:
  add    $0x4,%rdx
  movsd  %xmm2,(%rcx,%r12,8)
  cmp    %r9,%rdx
  jne    L95
  add    $0x1,%r11
  cmp    %rbx,%r11
  jne    L200
  jmp    L507
  xchg   %ax,%ax
L279:
  movslq %ebp,%rsi
  imul   %r14d,%eax
  lea    0x4(%r8),%rbx
  mov    %rbx,-0x30(%rsp)
  mov    -0x58(%rsp),%ebx
  mov    %rsi,-0x48(%rsp)
  mov    %ebx,(%r8)
  mov    -0x68(%rsp),%rbx
  movslq %eax,%rdi
  lea    0x2(%rsi,%rbx,1),%rdx
  cmp    %r14d,%ebx
  lea    (%rdi,%rbx,1),%rsi
  mov    %ebx,%r11d
  lea    0x0(,%rdx,8),%r9
  mov    -0x1c(%rsp),%edx
  setl   -0x6d(%rsp)
  shl    $0x3,%rsi
  lea    -0x10(%r9),%r8
  mov    %r9,-0x40(%rsp)
  sub    %ebx,%edx
  mov    %r8,-0x50(%rsp)
  cmp    $0x1,%edx
  seta   %dl
  test   %dl,-0x6d(%rsp)
  je     L6
  lea    0x10(%rsi),%rdx
  mov    %r8,%rbx
  cmp    %r8,%rdx
  setle  %r8b
  cmp    %rsi,%r9
  setle  %dl
  or     %r8b,%dl
  je     L6
  cmp    %r14d,-0x58(%rsp)
  mov    $0x1,%r9d
  lea    0x0(%r13,%rbx,1),%rdi
  cmovl  -0x74(%rsp),%r9d
  add    %r13,%rsi
  xor    %edx,%edx
  mov    %r9d,%r8d
  shr    %r8d
  shl    $0x4,%r8
  nopw   0x0(%rax,%rax,1)
L100:
  movupd (%rdi,%rdx,1),%xmm0
  movupd (%rsi,%rdx,1),%xmm6
  movups %xmm6,(%rdi,%rdx,1)
  movups %xmm0,(%rsi,%rdx,1)
  add    $0x10,%rdx
  cmp    %rdx,%r8
  jne    L100
  mov    -0x58(%rsp),%ebx
  mov    %r9d,%esi
  and    $0xfffffffe,%esi
  lea    (%rsi,%rbx,1),%edx
  cmp    %esi,%r9d
  je     L256
  lea    0x0(%rbp,%rdx,1),%esi
  add    %edx,%eax
  movslq %esi,%rsi
  cltq
  lea    0x0(%r13,%rsi,8),%rsi
  lea    0x0(%r13,%rax,8),%rax
  movsd  (%rsi),%xmm0
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rsi)
  movsd  %xmm0,(%rax)
L256:
  mov    -0x74(%rsp),%ebx
  cmp    %r14d,-0x58(%rsp)
  mov    $0x1,%eax
  movsd  (%r10),%xmm1
  cmovl  %ebx,%eax
  mov    %eax,-0x6c(%rsp)
  cmp    %r14d,%r11d
  jge    L423
  cmp    $0x1,%ebx
  je     L423
  mov    -0x50(%rsp),%rbx
  shr    %eax
  movapd %xmm1,%xmm2
  lea    -0x1(%rax),%ecx
  unpcklpd %xmm2,%xmm2
  lea    0x0(%r13,%rbx,1),%rdx
  shl    $0x4,%rcx
  lea    0x10(%rdx),%rax
  add    %rax,%rcx
  jmp    L546
  nopw   0x0(%rax,%rax,1)
L359:
  add    $0x10,%rax
L546:
  movupd (%rdx),%xmm0
  divpd  %xmm2,%xmm0
  movups %xmm0,(%rdx)
  mov    %rax,%rdx
  cmp    %rax,%rcx
  jne    L359
  mov    -0x6c(%rsp),%ebx
  mov    -0x58(%rsp),%edi
  mov    %ebx,%eax
  and    $0xfffffffe,%eax
  lea    (%rdi,%rax,1),%ecx
  cmp    %eax,%ebx
  je     L373
L423:
  add    %ebp,%ecx
  movslq %ecx,%rcx
  lea    0x0(%r13,%rcx,8),%rax
  movsd  (%rax),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
L373:
  test   %r12d,%r12d
  je     L366
  mov    -0x68(%rsp),%rax
  mov    -0x6c(%rsp),%ebx
  mov    %ebp,-0x20(%rsp)
  mov    %r13,%rsi
  mov    -0x58(%rsp),%r10d
  mov    -0x50(%rsp),%rdx
  xor    %ecx,%ecx
  lea    0x0(,%rax,8),%r9
  mov    -0x40(%rsp),%rax
  lea    0x0(%r13,%rdx,1),%r8
  sub    $0x8,%rax
  mov    %rax,-0x60(%rsp)
  mov    %ebx,%eax
  and    $0xfffffffe,%ebx
  shr    %eax
  add    %ebx,%r10d
  mov    %ebx,-0x54(%rsp)
  xor    %ebx,%ebx
  lea    -0x1(%rax),%edi
  lea    0x0(%rbp,%r10,1),%eax
  cltq
  add    $0x1,%rdi
  lea    0x0(%r13,%rax,8),%r11
  mov    -0x48(%rsp),%rax
  shl    $0x4,%rdi
  lea    0x0(%r13,%rax,8),%rax
  mov    %rax,%rbp
  nopl   (%rax)
L198:
  movsd  0x0(%r13,%r9,1),%xmm0
  cmpl   $0x1,-0x74(%rsp)
  setne  %al
  movapd %xmm0,%xmm1
  xorpd  %xmm4,%xmm1
  test   %al,-0x6d(%rsp)
  je     L529
  cmp    -0x60(%rsp),%r9
  je     L529
  movapd %xmm1,%xmm2
  lea    0x0(%r13,%r9,1),%rdx
  xor    %eax,%eax
  unpcklpd %xmm2,%xmm2
  nopl   0x0(%rax,%rax,1)
L419:
  movupd (%r8,%rax,1),%xmm0
  movupd (%rdx,%rax,1),%xmm7
  mulpd  %xmm2,%xmm0
  addpd  %xmm7,%xmm0
  movups %xmm0,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %rdi,%rax
  jne    L419
  mov    -0x6c(%rsp),%edx
  cmp    %edx,-0x54(%rsp)
  je     L121
  mulsd  (%r11),%xmm1
  lea    (%rcx,%r10,1),%eax
  cltq
  lea    0x0(%r13,%rax,8),%rax
  movsd  (%rax),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
L121:
  add    $0x1,%ebx
  add    %r15,%r9
  add    %r14d,%ecx
  add    %r15,%rsi
  cmp    %r12d,%ebx
  jne    L198
  mov    -0x20(%rsp),%ebp
L366:
  cmp    -0x28(%rsp),%r14d
  jle    L32
  mov    -0x68(%rsp),%rbx
  lea    0x0(%rbp,%r14,1),%ecx
  mov    -0x58(%rsp),%esi
  movslq %ecx,%rax
  mov    -0x50(%rsp),%rdi
  lea    (%rax,%rbx,1),%r10
  lea    0x0(%r13,%rax,8),%r9
  mov    -0x40(%rsp),%rax
  mov    -0x6c(%rsp),%ebx
  shl    $0x3,%r10
  add    %r13,%rdi
  sub    $0x8,%rax
  mov    %rax,-0x60(%rsp)
  mov    %ebx,%eax
  and    $0xfffffffe,%ebx
  shr    %eax
  add    %ebx,%esi
  mov    %ebx,%r12d
  mov    -0x28(%rsp),%ebx
  lea    -0x1(%rax),%r8d
  lea    0x0(%rbp,%rsi,1),%eax
  cltq
  add    $0x1,%r8
  lea    0x0(%r13,%rax,8),%r11
  mov    -0x48(%rsp),%rax
  shl    $0x4,%r8
  lea    0x0(%r13,%rax,8),%rbp
  nopl   0x0(%rax,%rax,1)
L528:
  cmpl   $0x1,-0x74(%rsp)
  movsd  0x0(%r13,%r10,1),%xmm2
  setne  %al
  test   %al,-0x6d(%rsp)
  je     L116
  cmp    -0x60(%rsp),%r10
  je     L116
  movapd %xmm2,%xmm6
  lea    0x0(%r13,%r10,1),%rdx
  xor    %eax,%eax
  unpcklpd %xmm6,%xmm6
  nop
L5:
  movupd (%rdi,%rax,1),%xmm1
  movupd (%rdx,%rax,1),%xmm0
  mulpd  %xmm6,%xmm1
  subpd  %xmm1,%xmm0
  movups %xmm0,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%r8
  jne    L5
  cmp    -0x6c(%rsp),%r12d
  je     L398
  mulsd  (%r11),%xmm2
  lea    (%rcx,%rsi,1),%eax
  cltq
  lea    0x0(%r13,%rax,8),%rax
  movsd  (%rax),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
L398:
  add    $0x1,%ebx
  add    %r15,%r10
  add    %r14d,%ecx
  add    %r15,%r9
  cmp    %ebx,%r14d
  jne    L528
L32:
  mov    -0x28(%rsp),%r12d
  mov    -0x30(%rsp),%r8
  jmp    L348
  nopl   (%rax)
L116:
  mov    -0x68(%rsp),%rax
  nopl   (%rax)
L230:
  movsd  0x0(%rbp,%rax,8),%xmm1
  movsd  (%r9,%rax,8),%xmm0
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%r9,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r14d
  jg     L230
  jmp    L398
  nopl   (%rax)
L529:
  mov    -0x68(%rsp),%rax
  nopl   (%rax)
L541:
  movsd  0x0(%rbp,%rax,8),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  (%rsi,%rax,8),%xmm0
  movsd  %xmm0,(%rsi,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r14d
  jg     L541
  jmp    L121
L539:
  mov    %r12d,%eax
  jmp    L404
L6:
  mov    -0x48(%rsp),%rax
  lea    0x0(%r13,%rdi,8),%rsi
  lea    0x0(%r13,%rax,8),%rdx
  mov    -0x68(%rsp),%rax
  xchg   %ax,%ax
L311:
  movsd  (%rdx,%rax,8),%xmm0
  movsd  (%rsi,%rax,8),%xmm1
  movsd  %xmm1,(%rdx,%rax,8)
  movsd  %xmm0,(%rsi,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r14d
  jg     L311
  jmp    L256
L346:
  mov    -0x10(%rsp),%rbp
  sub    $0x1,%eax
  mov    (%rsp),%r12
  movq   D2(%rip),%xmm1
  movsd  D1(%rip),%xmm2
  lea    0x4(%rbp),%rdx
  mov    -0x74(%rsp),%ecx
  mov    -0x18(%rsp),%r9
  mov    %rbp,%r10
  lea    (%rdx,%rax,4),%rsi
  lea    -0x1(%r8),%eax
  add    -0x8(%rsp),%rax
  lea    (%rdx,%rax,4),%rdi
L189:
  mov    (%r10),%r11d
  test   %r8d,%r8d
  jle    L105
  movslq %r11d,%rax
  lea    0x0(%r13,%rax,8),%rbx
  mov    %r12,%rax
  nopw   0x0(%rax,%rax,1)
L249:
  mov    (%rax),%edx
  movsd  (%rbx),%xmm0
  add    $0x4,%rax
  add    %r15,%rbx
  add    %ecx,%edx
  xorpd  %xmm1,%xmm0
  movslq %edx,%rdx
  movsd  %xmm0,(%r9,%rdx,8)
  cmp    %rax,%rdi
  jne    L249
L105:
  lea    (%r11,%rcx,1),%ebx
  mov    %rbp,%rdx
  movslq %ebx,%rbx
  nopl   0x0(%rax,%rax,1)
L556:
  mov    (%rdx),%eax
  cmp    %eax,%r11d
  je     L283
  add    %ecx,%eax
  add    $0x4,%rdx
  cltq
  movq   $0x0,(%r9,%rax,8)
  cmp    %rsi,%rdx
  jne    L556
  add    $0x4,%r10
  add    %r14d,%ecx
  cmp    %r10,%rsi
  jne    L189
  jmp    L507
  nopl   (%rax)
L283:
  add    $0x4,%rdx
  movsd  %xmm2,(%r9,%rbx,8)
  cmp    %rdx,%rsi
  jne    L556
  add    $0x4,%r10
  add    %r14d,%ecx
  cmp    %r10,%rsi
  jne    L189
  jmp    L507
L13:
  movl   $0x0,-0x24(%rsp)
  jmp    L507
```

tool_calls: name: disassemble_data
arguments: data_tag: D50
type_guessed: qword
name: disassemble_data
arguments: data_tag: D47
type_guessed: byte[8]
name: disassemble_data
arguments: data_tag: D2
type_guessed: byte[8]
name: disassemble_data
arguments: data_tag: D1
type_guessed: byte[8]

tool: D50: 9223372036854775807

tool: {"D47": [0x11,0xea,0x2d,0x81,0x99,0x97,0x71,0x3d]}

tool: {"D2": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

tool: {"D1": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
int nullspace(double *matrix, double *nullspace, int n, int *buffer) {
  int *pnopivot = buffer, nonpivot = 0;
  int *ppivot = buffer + n;
  int i, j, k, l, ptr, max;
  double pivot, t;
  double tol = 1e-12;
  ptr = 0;
  i = 0;
  for (j = 0; j < n; j++) {
    pivot = fabs(matrix[n * i + j]);
    max = i;
    for (k = i + 1; k < n; k++) {
      t = fabs(matrix[n * k + j]);
      if (pivot < t) {
        pivot = t;
        max = k;
      }
    }
    if (pivot < tol) {
      *(pnopivot++) = j;
      nonpivot++;
      for (k = i; k < n; k++)
        matrix[n * k + j] = 0;
    } else {
      *(ppivot++) = j;
      for (k = j; k < n; k++) {
        t = matrix[i * n + k];
        matrix[i * n + k] = matrix[max * n + k];
        matrix[max * n + k] = t;
      }
      pivot = matrix[i * n + j];
      for (k = j; k < n; k++)
        matrix[i * n + k] /= pivot;
      for (k = 0; k < i; k++) {
        pivot = -matrix[k * n + j];
        for (l = j; l < n; l++)
          matrix[k * n + l] += pivot * matrix[i * n + l];
      }
      for (k = i + 1; k < n; k++) {
        pivot = matrix[k * n + j];
        for (l = j; l < n; l++)
          matrix[k * n + l] -= pivot * matrix[i * n + l];
      }
      i++;
    }
  }
  for (k = 0; k < nonpivot; k++) {
    j = buffer[k];
    for (l = 0; l < n - nonpivot; l++)
      nullspace[k * n + buffer[n + l]] = -matrix[l * n + j];
    for (l = 0; l < nonpivot; l++)
      nullspace[k * n + buffer[l]] = (j == buffer[l]) ? 1 : 0;
  }
  return nonpivot;
}
```