user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<polished_solve_se>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  lea    -0x1(%rdx),%ebx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  cmp    $0xa,%edx
  jg     L72
  mov    %ebx,%ecx
  xor    %edx,%edx
  mov    %ebx,%esi
  xor    %edi,%edi
  call   <dmatrix@plt>
  mov    %ebx,%esi
  xor    %edi,%edi
  mov    %rax,%r13
  call   <dvector@plt>
  mov    %rax,%r14
  test   %r12d,%r12d
  jle    L35
  lea    0x20(%rsp),%rax
  mov    %rax,0x8(%rsp)
  mov    %rax,%r9
L110:
  xor    %esi,%esi
  nopl   0x0(%rax,%rax,1)
L64:
  movsd  (%r15,%rsi,8),%xmm0
  mov    0x0(%rbp,%rsi,8),%rcx
  xor    %eax,%eax
  mov    0x0(%r13,%rsi,8),%rdx
  movsd  %xmm0,(%r14,%rsi,8)
  nopl   0x0(%rax,%rax,1)
L92:
  movsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r12d
  jg     L92
  add    $0x1,%rsi
  cmp    %esi,%r12d
  jg     L64
  mov    %r9,%rdx
  lea    0x18(%rsp),%rcx
  mov    %r12d,%esi
  mov    %rbp,%rdi
  mov    %r9,(%rsp)
  call   <lu_decomp@plt>
  mov    (%rsp),%r9
  test   %rax,%rax
  jne    L19
  mov    %r9,%rdx
  mov    %r12d,%esi
  mov    %r15,%rcx
  mov    %rbp,%rdi
  mov    %r9,(%rsp)
  call   <lu_backsub@plt>
  mov    (%rsp),%r9
  mov    %r15,%r8
  mov    %r14,%rcx
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  xor    %r12d,%r12d
  call   <lu_polish@plt>
  mov    %ebx,%edx
  xor    %esi,%esi
  mov    %r14,%rdi
  call   <free_dvector@plt>
  mov    %ebx,%r8d
  xor    %ecx,%ecx
  mov    %ebx,%edx
  xor    %esi,%esi
  mov    %r13,%rdi
  call   <free_dmatrix@plt>
  mov    (%rsp),%r9
  cmp    0x8(%rsp),%r9
  je     L96
L101:
  mov    %ebx,%edx
  xor    %esi,%esi
  mov    %r9,%rdi
  call   <free_ivector@plt>
L96:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L48
  add    $0x58,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L72:
  mov    %ebx,%esi
  xor    %edi,%edi
  call   <ivector@plt>
  mov    %ebx,%ecx
  xor    %edx,%edx
  mov    %ebx,%esi
  xor    %edi,%edi
  mov    %rax,(%rsp)
  call   <dmatrix@plt>
  mov    %ebx,%esi
  xor    %edi,%edi
  mov    %rax,%r13
  call   <dvector@plt>
  mov    (%rsp),%r9
  mov    %rax,%r14
  lea    0x20(%rsp),%rax
  mov    %rax,0x8(%rsp)
  jmp    L110
L19:
  mov    %ebx,%edx
  xor    %esi,%esi
  mov    %r14,%rdi
  mov    $0x1,%r12d
  call   <free_dvector@plt>
  mov    %ebx,%r8d
  xor    %ecx,%ecx
  mov    %ebx,%edx
  xor    %esi,%esi
  mov    %r13,%rdi
  call   <free_dmatrix@plt>
  mov    (%rsp),%r9
  cmp    0x8(%rsp),%r9
  jne    L101
  jmp    L96
L35:
  lea    0x20(%rsp),%r9
  lea    0x18(%rsp),%rcx
  mov    %r12d,%esi
  mov    %rbp,%rdi
  mov    %r9,%rdx
  mov    %r9,(%rsp)
  call   <lu_decomp@plt>
  test   %rax,%rax
  jne    L30
  mov    (%rsp),%rdx
  mov    %r12d,%esi
  mov    %r15,%rcx
  mov    %rbp,%rdi
  call   <lu_backsub@plt>
  mov    (%rsp),%r9
  mov    %r15,%r8
  mov    %r14,%rcx
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  xor    %r12d,%r12d
  call   <lu_polish@plt>
  mov    %ebx,%edx
  xor    %esi,%esi
  mov    %r14,%rdi
  call   <free_dvector@plt>
  mov    %ebx,%r8d
  xor    %ecx,%ecx
  mov    %ebx,%edx
  xor    %esi,%esi
  mov    %r13,%rdi
  call   <free_dmatrix@plt>
  jmp    L96
L30:
  mov    %ebx,%edx
  xor    %esi,%esi
  mov    %r14,%rdi
  mov    $0x1,%r12d
  call   <free_dvector@plt>
  mov    %ebx,%r8d
  xor    %ecx,%ecx
  mov    %ebx,%edx
  xor    %esi,%esi
  mov    %r13,%rdi
  call   <free_dmatrix@plt>
  jmp    L96
L48:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int polished_solve_se(double **a, double *b, int n) {
  double rip;
  int *pivx, PIVX[10];
  double **sa;
  double *sb;
  int i, j;
  if (n <= 10)
    pivx = PIVX;
  else
    pivx = ivector(0, n - 1);
  sa = dmatrix(0, n - 1, 0, n - 1);
  sb = dvector(0, n - 1);
  for (i = 0; i < n; i++) {
    sb[i] = b[i];
    for (j = 0; j < n; j++)
      sa[i][j] = a[i][j];
  }
  if (lu_decomp(a, n, pivx, &rip)) {
    free_dvector(sb, 0, n - 1);
    free_dmatrix(sa, 0, n - 1, 0, n - 1);
    if (pivx != PIVX)
      free_ivector(pivx, 0, n - 1);
    return 1;
  }
  lu_backsub(a, n, pivx, b);
  lu_polish(sa, a, n, sb, b, pivx);
  free_dvector(sb, 0, n - 1);
  free_dmatrix(sa, 0, n - 1, 0, n - 1);
  if (pivx != PIVX)
    free_ivector(pivx, 0, n - 1);
  return 0;
}
```