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

```asm
<ut>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,%r15
  mov    %esi,%ebx
  mov    %edx,%r14d
  mov    %edx,0x4c(%rsp)
  movslq %edx,%rax
  mov    %rax,0x40(%rsp)
  lea    0x0(,%rdx,4),%edi
  call   <malloc@plt>
  mov    %rax,0x38(%rsp)
  movslq %ebx,%rax
  mov    %rax,0x10(%rsp)
  cmp    $0x1,%ebx
  jle    L124
  movslq %r14d,%rbp
  lea    0x0(,%rbp,4),%rax
  mov    %rax,(%rsp)
  mov    $0x0,%edx
  movq   $0x1,0x8(%rsp)
  jmp    L146
L121:
  add    $0x1,%r14
  add    (%rsp),%r12
  cmp    %r13,%r14
  je     L57
L93:
  mov    %ebp,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <rowcmp@plt>
  test   %rax,%rax
  je     L121
  mov    %ebp,%edx
  mov    %rbx,%rsi
  mov    %r15,%rdi
  call   <memcpy@plt>
  mov    %ebp,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <memcpy@plt>
  mov    %ebp,%edx
  mov    %r15,%rsi
  mov    %r12,%rdi
  call   <memcpy@plt>
  jmp    L121
L57:
  mov    0x20(%rsp),%rbp
  mov    0x28(%rsp),%r13
  mov    0x30(%rsp),%r15
  mov    0x18(%rsp),%r8
  mov    %r8,%rsi
  sub    %r13,%rsi
  mov    0x40(%rsp),%rax
  add    %r13,%rax
  lea    -0x4(%r15,%rax,4),%rcx
  mov    0x8(%rsp),%rdi
  mov    0x10(%rsp),%r9
  jmp    L22
L33:
  cmp    %rdx,%rbp
  je     L90
  lea    0x0(%r13,%rdx,1),%rax
  lea    (%r15,%rax,4),%rax
  lea    (%r8,%rdx,1),%r10
  movss  (%rax),%xmm2
  divss  (%r15,%r10,4),%xmm2
  movl   $0x0,(%rax)
  add    $0x1,%rdx
  cmp    %rdx,%rbp
  jle    L66
L11:
  movaps %xmm2,%xmm1
  mulss  0x4(%rax,%rsi,4),%xmm1
  movss  0x4(%rax),%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,0x4(%rax)
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L11
L66:
  add    $0x1,%rdi
  add    %rbp,%r13
  sub    %rbp,%rsi
  add    (%rsp),%rcx
  cmp    %r9,%rdi
  je     L90
L22:
  mov    $0x0,%edx
  test   %rbp,%rbp
  jle    L33
L52:
  pxor   %xmm3,%xmm3
  ucomiss (%rbx,%rdx,4),%xmm3
  jp     L33
  jne    L33
  add    $0x1,%rdx
  cmp    %rdx,%rbp
  jne    L52
L90:
  mov    0x8(%rsp),%rdx
  lea    0x1(%rdx),%rax
  cmp    0x10(%rsp),%rax
  jge    L124
  mov    %rax,0x8(%rsp)
L146:
  imul   %rbp,%rdx
  mov    %rdx,0x18(%rsp)
  lea    (%r15,%rdx,4),%rbx
  mov    0x10(%rsp),%rdi
  mov    0x8(%rsp),%r14
  cmp    %r14,%rdi
  jle    L90
  mov    %r14,%rax
  imul   %rbp,%rax
  lea    (%r15,%rax,4),%r12
  mov    %rbp,0x20(%rsp)
  mov    %rax,0x28(%rsp)
  mov    %rdi,%r13
  mov    %r15,0x30(%rsp)
  mov    0x38(%rsp),%r15
  mov    0x4c(%rsp),%ebp
  jmp    L93
L124:
  mov    0x38(%rsp),%rdi
  call   <free@plt>
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

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);
}
```