user: Converte this assembly snippet into its equivalent C code:

```asm
<ut>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  movslq %edx,%rbx
  lea    0x0(,%rbx,4),%edi
  sub    $0x58,%rsp
  mov    %ebx,0x4c(%rsp)
  call   <malloc@plt>
  mov    %rax,0x40(%rsp)
  movslq %r12d,%rax
  mov    %rax,0x8(%rsp)
  cmp    $0x1,%r12d
  jle    L204
  lea    0x0(,%rbx,4),%rax
  mov    %rbx,0x18(%rsp)
  mov    %rbp,%r12
  xor    %r15d,%r15d
  mov    %rax,0x20(%rsp)
  lea    -0x4(%rbp),%rax
  movq   $0x1,0x10(%rsp)
  mov    %rax,0x38(%rsp)
  nopl   0x0(%rax)
L98:
  mov    0x18(%rsp),%rax
  mov    0x10(%rsp),%r13
  mov    %rbx,(%rsp)
  mov    %r15,0x28(%rsp)
  mov    0x4c(%rsp),%ebx
  lea    0x0(%rbp,%rax,4),%r14
  mov    %rbp,0x30(%rsp)
  mov    0x20(%rsp),%r15
  mov    %r14,%rbp
  mov    0x40(%rsp),%r14
  jmp    L118
L170:
  add    $0x1,%r13
  add    %r15,%rbp
  cmp    %r13,0x8(%rsp)
  jle    L236
L118:
  mov    %ebx,%edx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <rowcmp@plt>
  pxor   %xmm3,%xmm3
  test   %rax,%rax
  je     L170
  mov    %ebx,%edx
  mov    %r12,%rsi
  mov    %r14,%rdi
  add    $0x1,%r13
  call   <memcpy@plt>
  mov    %rbp,%rsi
  mov    %ebx,%edx
  mov    %r12,%rdi
  call   <memcpy@plt>
  mov    %rbp,%rdi
  mov    %ebx,%edx
  mov    %r14,%rsi
  call   <memcpy@plt>
  add    %r15,%rbp
  pxor   %xmm3,%xmm3
  cmp    %r13,0x8(%rsp)
  jg     L118
L236:
  mov    0x10(%rsp),%rax
  mov    0x28(%rsp),%r15
  mov    (%rsp),%rbx
  mov    0x18(%rsp),%rdi
  mov    %rax,(%rsp)
  mov    %r15,%r14
  mov    0x30(%rsp),%rbp
  sub    %rdi,%r14
  nop
L203:
  xor    %eax,%eax
  test   %rbx,%rbx
  jg     L132
  jmp    L196
  nopl   0x0(%rax)
L230:
  cmp    %rax,%rbx
  je     L73
L132:
  movss  (%r12,%rax,4),%xmm0
  mov    %rax,%rcx
  add    $0x1,%rax
  ucomiss %xmm3,%xmm0
  jp     L247
  je     L230
L247:
  lea    (%rdi,%rcx,1),%r8
  lea    0x1(%rcx),%rdx
  lea    0x0(,%r8,4),%rsi
  lea    0x0(%rbp,%rsi,1),%rax
  movss  (%rax),%xmm1
  movl   $0x0,(%rax)
  divss  %xmm0,%xmm1
  cmp    %rdx,%rbx
  jle    L158
  mov    %rbx,%r11
  add    $0x4,%rsi
  add    $0x1,%r8
  sub    %rcx,%r11
  add    %r15,%rcx
  mov    %rsi,%r10
  lea    0x8(,%rcx,4),%r9
  sub    %r9,%r10
  cmp    $0x8,%r10
  jbe    L149
  cmp    $0x2,%r11
  je     L149
  lea    -0x2(%r11),%rax
  lea    -0x1(%r11),%r10
  cmp    $0x2,%rax
  jbe    L99
  lea    -0x4(%rbp,%r9,1),%r13
  mov    %r10,%r9
  movaps %xmm1,%xmm4
  add    %rbp,%rsi
  shr    $0x2,%r9
  xor    %eax,%eax
  shufps $0x0,%xmm4,%xmm4
  shl    $0x4,%r9
  nopw   0x0(%rax,%rax,1)
L19:
  movups 0x0(%r13,%rax,1),%xmm2
  movups (%rsi,%rax,1),%xmm0
  mulps  %xmm4,%xmm2
  subps  %xmm2,%xmm0
  movups %xmm0,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %r9,%rax
  jne    L19
  mov    %r10,%rax
  lea    (%rdi,%rbx,1),%rsi
  and    $0xfffffffffffffffc,%rax
  add    %rax,%rdx
  cmp    %r10,%rax
  je     L222
  sub    %rax,%r11
  lea    -0x1(%r11),%r10
  cmp    $0x2,%r11
  je     L26
L205:
  add    %rax,%r8
  lea    0x1(%rax,%rcx,1),%rax
  movaps %xmm1,%xmm4
  movq   0x0(%rbp,%rax,4),%xmm2
  shufps $0xe0,%xmm4,%xmm4
  lea    0x0(%rbp,%r8,4),%rsi
  mov    %r10,%rax
  movq   (%rsi),%xmm0
  and    $0xfffffffffffffffe,%rax
  mulps  %xmm4,%xmm2
  add    %rax,%rdx
  subps  %xmm2,%xmm0
  movlps %xmm0,(%rsi)
  lea    (%rdi,%rbx,1),%rsi
  cmp    %rax,%r10
  je     L222
L26:
  lea    (%rdi,%rdx,1),%rax
  add    %r15,%rdx
  lea    (%rdi,%rbx,1),%rsi
  mulss  0x0(%rbp,%rdx,4),%xmm1
  lea    0x0(%rbp,%rax,4),%rax
  movss  (%rax),%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
L222:
  addq   $0x1,(%rsp)
  mov    %rsi,%rdi
  mov    (%rsp),%rax
  sub    %rbx,%r14
  cmp    %rax,0x8(%rsp)
  jg     L203
  nopl   0x0(%rax,%rax,1)
L73:
  addq   $0x1,0x10(%rsp)
  add    %rbx,%r15
  mov    0x10(%rsp),%rax
  add    %rbx,0x18(%rsp)
  add    0x20(%rsp),%r12
  cmp    0x8(%rsp),%rax
  jne    L98
L204:
  mov    0x40(%rsp),%rdi
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <free@plt>
L196:
  je     L73
  movl   $0x0,0x0(%rbp,%rdi,4)
  lea    (%rdi,%rbx,1),%rsi
  jmp    L222
  nopl   0x0(%rax,%rax,1)
L149:
  lea    (%rbx,%rdi,1),%rsi
  mov    0x38(%rsp),%rdi
  lea    (%rdi,%rsi,4),%rdx
  nopl   (%rax)
L43:
  movss  0x4(%rax,%r14,4),%xmm2
  movss  0x4(%rax),%xmm0
  add    $0x4,%rax
  mulss  %xmm1,%xmm2
  subss  %xmm2,%xmm0
  movss  %xmm0,(%rax)
  cmp    %rdx,%rax
  jne    L43
  jmp    L222
L99:
  xor    %eax,%eax
  jmp    L205
L158:
  lea    (%rdi,%rbx,1),%rsi
  jmp    L222
```

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