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

```asm
<ut>:
  endbr64
  push   %r15
  movslq %edx,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x68,%rsp
  mov    %rdi,0x50(%rsp)
  lea    0x0(,%r15,4),%edi
  call   <malloc@plt>
  mov    %rax,0x48(%rsp)
  movslq %ebx,%rax
  mov    %rax,0x8(%rsp)
  cmp    $0x1,%ebx
  jle    L120
  lea    0x0(,%r15,4),%rax
  mov    %r15,%r14
  movq   $0x0,0x18(%rsp)
  mov    %rax,0x28(%rsp)
  mov    0x50(%rsp),%rax
  movq   $0x1,0x10(%rsp)
  mov    %rax,0x20(%rsp)
  lea    -0x4(,%r15,8),%rax
  mov    %rax,0x58(%rsp)
  nopl   0x0(%rax,%rax,1)
L21:
  mov    0x20(%rsp),%rax
  mov    0x28(%rsp),%rdi
  mov    %r15,0x38(%rsp)
  mov    0x10(%rsp),%rbx
  mov    0x48(%rsp),%r12
  mov    %rax,0x30(%rsp)
  mov    %rax,%r13
  add    %rdi,%rax
  mov    %rdi,%r15
  mov    %rax,0x20(%rsp)
  mov    %rax,%rbp
  mov    %rbx,0x40(%rsp)
  jmp    L57
  cs nopw 0x0(%rax,%rax,1)
L74:
  add    $0x1,%rbx
  add    %r15,%rbp
  cmp    %rbx,0x8(%rsp)
  jle    L129
L57:
  mov    %r14d,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <rowcmp@plt>
  pxor   %xmm3,%xmm3
  test   %rax,%rax
  je     L74
  mov    %r14d,%edx
  mov    %r13,%rsi
  mov    %r12,%rdi
  add    $0x1,%rbx
  call   <memcpy@plt>
  mov    %rbp,%rsi
  mov    %r14d,%edx
  mov    %r13,%rdi
  call   <memcpy@plt>
  mov    %rbp,%rdi
  mov    %r14d,%edx
  mov    %r12,%rsi
  call   <memcpy@plt>
  add    %r15,%rbp
  pxor   %xmm3,%xmm3
  cmp    %rbx,0x8(%rsp)
  jg     L57
L129:
  mov    0x38(%rsp),%r15
  mov    0x40(%rsp),%rbp
  add    %r15,0x18(%rsp)
  mov    0x8(%rsp),%r9
  mov    %r15,%rsi
  mov    0x18(%rsp),%rdi
  mov    0x28(%rsp),%r10
  mov    0x50(%rsp),%r8
  mov    0x30(%rsp),%rdx
  neg    %rsi
  add    0x58(%rsp),%rdx
  nopl   0x0(%rax)
L20:
  xor    %eax,%eax
  test   %r15,%r15
  jg     L11
  jmp    L61
  nopl   0x0(%rax)
L10:
  cmp    %rax,%r15
  je     L91
L11:
  movss  0x0(%r13,%rax,4),%xmm0
  mov    %rax,%rcx
  add    $0x1,%rax
  ucomiss %xmm3,%xmm0
  jp     L99
  je     L10
L99:
  lea    (%rdi,%rcx,1),%rax
  add    $0x1,%rcx
  lea    (%r8,%rax,4),%rax
  movss  (%rax),%xmm2
  movl   $0x0,(%rax)
  divss  %xmm0,%xmm2
  cmp    %r15,%rcx
  jge    L45
  nopl   0x0(%rax)
L111:
  movss  0x4(%rax,%rsi,4),%xmm1
  movss  0x4(%rax),%xmm0
  add    $0x4,%rax
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  cmp    %rax,%rdx
  jne    L111
L45:
  add    $0x1,%rbp
  add    %r15,%rdi
  sub    %r15,%rsi
  add    %r10,%rdx
  cmp    %rbp,%r9
  jg     L20
  xchg   %ax,%ax
L91:
  addq   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%rax
  cmp    0x8(%rsp),%rax
  jne    L21
L120:
  mov    0x48(%rsp),%rdi
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <free@plt>
L61:
  je     L91
  movl   $0x0,(%r8,%rdi,4)
  jmp    L45
```

assistant: ```c
void ut(float *mat, int m, int n) {
  long i, j, k;
  float *current, *other, *tmp = malloc(n * sizeof(float));
  for (i = 0; i + 1 < m; ++i) {
    current = mat + i * n;
    for (j = i + 1; j < m; ++j) {
      other = mat + j * n;
      if (rowcmp(current, other, n)) {
        memcpy(tmp, current, n);
        memcpy(current, other, n);
        memcpy(other, tmp, n);
      }
    }
    for (j = i + 1; j < m; ++j) {
      for (k = 0; k < n && !mat[i * n + k]; ++k)
        ;
      if (k == n)
        break;
      float c = mat[j * n + k] / mat[i * n + k];
      mat[j * n + k] = 0.0;
      while (++k < n)
        mat[j * n + k] -= c * mat[i * n + k];
    }
  }
  free(tmp);
}
```