user: Translate the below assembly code into C programming language:

```asm
<__IsHBalanceBetterFT>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x24(%rbp)
  mov    %esi,-0x28(%rbp)
  mov    %rdx,-0x30(%rbp)
  mov    %rcx,-0x38(%rbp)
  mov    %r8,-0x40(%rbp)
  mov    %r9,-0x48(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x14(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xc(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x8(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L56
L181:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  comiss %xmm1,%xmm0
  jb     L194
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  jmp    L83
L194:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
L83:
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x28(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rbp)
  movss  -0x4(%rbp),%xmm0
  comiss -0x1c(%rbp),%xmm0
  jbe    L186
  movss  -0x1c(%rbp),%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0x4(%rbp),%xmm0
  movss  %xmm0,-0x1c(%rbp)
  jmp    L61
L186:
  movss  -0x4(%rbp),%xmm0
  comiss -0xc(%rbp),%xmm0
  jbe    L61
  movss  -0x4(%rbp),%xmm0
  movss  %xmm0,-0xc(%rbp)
L61:
  movss  -0x14(%rbp),%xmm0
  addss  -0x4(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm2
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  addss  %xmm2,%xmm1
  comiss %xmm1,%xmm0
  jb     L139
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  jmp    L41
L139:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  addss  %xmm1,%xmm0
L41:
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x28(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rbp)
  movss  -0x4(%rbp),%xmm0
  comiss -0x18(%rbp),%xmm0
  jbe    L124
  movss  -0x18(%rbp),%xmm0
  movss  %xmm0,-0x8(%rbp)
  movss  -0x4(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  jmp    L104
L124:
  movss  -0x4(%rbp),%xmm0
  comiss -0x8(%rbp),%xmm0
  jbe    L104
  movss  -0x4(%rbp),%xmm0
  movss  %xmm0,-0x8(%rbp)
L104:
  movss  -0x10(%rbp),%xmm0
  addss  -0x4(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
  addl   $0x1,-0x20(%rbp)
L56:
  mov    -0x20(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L181
  movss  -0x1c(%rbp),%xmm0
  comiss -0x18(%rbp),%xmm0
  jbe    L122
  mov    $0x1,%eax
  jmp    L71
L122:
  movss  -0x18(%rbp),%xmm0
  comiss -0x1c(%rbp),%xmm0
  jbe    L15
  mov    $0x0,%eax
  jmp    L71
L15:
  movss  -0xc(%rbp),%xmm0
  comiss -0x8(%rbp),%xmm0
  jbe    L119
  mov    $0x1,%eax
  jmp    L71
L119:
  movss  -0x8(%rbp),%xmm0
  comiss -0xc(%rbp),%xmm0
  jbe    L192
  mov    $0x0,%eax
  jmp    L71
L192:
  movss  -0x14(%rbp),%xmm0
  comiss -0x10(%rbp),%xmm0
  seta   %al
  movzbl %al,%eax
L71:
  pop    %rbp
  ret
```

assistant: ```c
int __IsHBalanceBetterFT(int ncon, int nparts, float *pfrom, float *pto, float *vwgt, float *ubvec) {
  int i;
  float blb1 = 0.0, alb1 = 0.0, sblb = 0.0, salb = 0.0;
  float blb2 = 0.0, alb2 = 0.0;
  float temp;
  for (i = 0; i < ncon; i++) {
    temp = ((pfrom[i]) >= (pto[i]) ? (pfrom[i]) : (pto[i])) * nparts / ubvec[i];
    if (blb1 < temp) {
      blb2 = blb1;
      blb1 = temp;
    } else if (blb2 < temp)
      blb2 = temp;
    sblb += temp;
    temp = ((pfrom[i] - vwgt[i]) >= (pto[i] + vwgt[i]) ? (pfrom[i] - vwgt[i]) : (pto[i] + vwgt[i])) * nparts / ubvec[i];
    if (alb1 < temp) {
      alb2 = alb1;
      alb1 = temp;
    } else if (alb2 < temp)
      alb2 = temp;
    salb += temp;
  }
  if (alb1 < blb1)
    return 1;
  if (blb1 < alb1)
    return 0;
  if (alb2 < blb2)
    return 1;
  if (blb2 < alb2)
    return 0;
  return salb < sblb;
}
```