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

```asm
<RotFrom2Vectors>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xa0,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %rdx,-0x88(%rbp)
  mov    %rcx,-0x90(%rbp)
  mov    %r8,-0x98(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x70(%rbp)
  jmp    L62
L37:
  movl   $0x0,-0x6c(%rbp)
  jmp    L13
L163:
  mov    -0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x98(%rbp),%rax
  add    %rax,%rdx
  mov    -0x6c(%rbp),%eax
  cltq
  pxor   %xmm0,%xmm0
  movss  %xmm0,(%rdx,%rax,4)
  addl   $0x1,-0x6c(%rbp)
L13:
  cmpl   $0x2,-0x6c(%rbp)
  jle    L163
  mov    -0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x98(%rbp),%rax
  add    %rax,%rdx
  mov    -0x70(%rbp),%eax
  cltq
  movss  D36(%rip),%xmm0
  movss  %xmm0,(%rdx,%rax,4)
  addl   $0x1,-0x70(%rbp)
L62:
  cmpl   $0x2,-0x70(%rbp)
  jle    L37
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <VectorMagnitude@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x64(%rbp)
  movss  -0x64(%rbp),%xmm0
  movss  D66(%rip),%xmm1
  andps  %xmm0,%xmm1
  movss  D42(%rip),%xmm0
  comiss %xmm1,%xmm0
  jbe    L92
  mov    $0xffffffff,%eax
  jmp    L119
L92:
  movl   $0x0,-0x70(%rbp)
  jmp    L84
L261:
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  divss  -0x64(%rbp),%xmm0
  mov    -0x70(%rbp),%eax
  cltq
  movss  %xmm0,-0x60(%rbp,%rax,4)
  addl   $0x1,-0x70(%rbp)
L84:
  cmpl   $0x2,-0x70(%rbp)
  jle    L261
  mov    -0x80(%rbp),%rax
  mov    %rax,%rdi
  call   <VectorMagnitude@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x64(%rbp)
  movss  -0x64(%rbp),%xmm0
  movss  D66(%rip),%xmm1
  andps  %xmm0,%xmm1
  movss  D42(%rip),%xmm0
  comiss %xmm1,%xmm0
  jbe    L214
  mov    $0xffffffff,%eax
  jmp    L119
L214:
  movl   $0x0,-0x70(%rbp)
  jmp    L195
L3:
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  divss  -0x64(%rbp),%xmm0
  mov    -0x70(%rbp),%eax
  cltq
  movss  %xmm0,-0x30(%rbp,%rax,4)
  addl   $0x1,-0x70(%rbp)
L195:
  cmpl   $0x2,-0x70(%rbp)
  jle    L3
  lea    -0x60(%rbp),%rax
  lea    0xc(%rax),%rdx
  mov    -0x88(%rbp),%rcx
  mov    -0x78(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <CrossProduct@plt>
  lea    -0x60(%rbp),%rax
  add    $0xc,%rax
  mov    %rax,%rdi
  call   <VectorMagnitude@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x64(%rbp)
  movss  -0x64(%rbp),%xmm0
  movss  D66(%rip),%xmm1
  andps  %xmm0,%xmm1
  movss  D42(%rip),%xmm0
  comiss %xmm1,%xmm0
  jbe    L244
  mov    $0xffffffff,%eax
  jmp    L119
L244:
  movl   $0x0,-0x70(%rbp)
  jmp    L222
L247:
  mov    -0x70(%rbp),%eax
  cltq
  add    $0x3,%rax
  movss  -0x60(%rbp,%rax,4),%xmm0
  divss  -0x64(%rbp),%xmm0
  mov    -0x70(%rbp),%eax
  cltq
  add    $0x3,%rax
  movss  %xmm0,-0x60(%rbp,%rax,4)
  addl   $0x1,-0x70(%rbp)
L222:
  cmpl   $0x2,-0x70(%rbp)
  jle    L247
  lea    -0x30(%rbp),%rax
  lea    0xc(%rax),%rdx
  mov    -0x90(%rbp),%rcx
  mov    -0x80(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <CrossProduct@plt>
  lea    -0x30(%rbp),%rax
  add    $0xc,%rax
  mov    %rax,%rdi
  call   <VectorMagnitude@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x64(%rbp)
  movss  -0x64(%rbp),%xmm0
  movss  D66(%rip),%xmm1
  andps  %xmm0,%xmm1
  movss  D42(%rip),%xmm0
  comiss %xmm1,%xmm0
  jbe    L90
  mov    $0xffffffff,%eax
  jmp    L119
L90:
  movl   $0x0,-0x70(%rbp)
  jmp    L267
L231:
  mov    -0x70(%rbp),%eax
  cltq
  add    $0x3,%rax
  movss  -0x30(%rbp,%rax,4),%xmm0
  divss  -0x64(%rbp),%xmm0
  mov    -0x70(%rbp),%eax
  cltq
  add    $0x3,%rax
  movss  %xmm0,-0x30(%rbp,%rax,4)
  addl   $0x1,-0x70(%rbp)
L267:
  cmpl   $0x2,-0x70(%rbp)
  jle    L231
  lea    -0x60(%rbp),%rax
  lea    0x18(%rax),%rdx
  lea    -0x60(%rbp),%rax
  lea    0xc(%rax),%rcx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <CrossProduct@plt>
  lea    -0x30(%rbp),%rax
  lea    0x18(%rax),%rdx
  lea    -0x30(%rbp),%rax
  lea    0xc(%rax),%rcx
  lea    -0x30(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <CrossProduct@plt>
  movl   $0x0,-0x70(%rbp)
  jmp    L268
L16:
  movl   $0x0,-0x6c(%rbp)
  jmp    L141
L49:
  mov    -0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x98(%rbp),%rax
  add    %rax,%rdx
  mov    -0x6c(%rbp),%eax
  cltq
  pxor   %xmm0,%xmm0
  movss  %xmm0,(%rdx,%rax,4)
  movl   $0x0,-0x68(%rbp)
  jmp    L198
L132:
  mov    -0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x98(%rbp),%rax
  add    %rax,%rdx
  mov    -0x6c(%rbp),%eax
  cltq
  movss  (%rdx,%rax,4),%xmm1
  mov    -0x70(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  add    %rcx,%rax
  movss  -0x60(%rbp,%rax,4),%xmm2
  mov    -0x6c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  add    %rcx,%rax
  movss  -0x30(%rbp,%rax,4),%xmm0
  mulss  %xmm2,%xmm0
  mov    -0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x98(%rbp),%rax
  add    %rax,%rdx
  addss  %xmm1,%xmm0
  mov    -0x6c(%rbp),%eax
  cltq
  movss  %xmm0,(%rdx,%rax,4)
  addl   $0x1,-0x68(%rbp)
L198:
  cmpl   $0x2,-0x68(%rbp)
  jle    L132
  addl   $0x1,-0x6c(%rbp)
L141:
  cmpl   $0x2,-0x6c(%rbp)
  jle    L49
  addl   $0x1,-0x70(%rbp)
L268:
  cmpl   $0x2,-0x70(%rbp)
  jle    L16
  mov    $0x1,%eax
L119:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L126
  call   <__stack_chk_fail@plt>
L126:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D36
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D66
type_guessed: dword
name: unpack_data
arguments: data_tag: D42
type_guessed: byte[4]

tool: {"D36": [0x00,0x00,0x80,0x3f]}

tool: D66: 2147483647

tool: {"D42": [0x60,0x42,0xa2,0x0d]}

assistant: ```c
uint8_t RotFrom2Vectors(const float v1b[3], const float v1e[3], const float v2b[3], const float v2e[3], float Rbe[3][3]) {
  float Rib[3][3], Rie[3][3];
  float mag;
  uint8_t i, j, k;
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 3; j++)
      Rbe[i][j] = 0;
    Rbe[i][i] = 1;
  }
  mag = VectorMagnitude(v1b);
  if (fabsf(mag) < 1e-30f)
    return (-1);
  for (i = 0; i < 3; i++)
    Rib[0][i] = v1b[i] / mag;
  mag = VectorMagnitude(v1e);
  if (fabsf(mag) < 1e-30f)
    return (-1);
  for (i = 0; i < 3; i++)
    Rie[0][i] = v1e[i] / mag;
  CrossProduct(v1b, v2b, &Rib[1][0]);
  mag = VectorMagnitude(&Rib[1][0]);
  if (fabsf(mag) < 1e-30f)
    return (-1);
  for (i = 0; i < 3; i++)
    Rib[1][i] = Rib[1][i] / mag;
  CrossProduct(v1e, v2e, &Rie[1][0]);
  mag = VectorMagnitude(&Rie[1][0]);
  if (fabsf(mag) < 1e-30f)
    return (-1);
  for (i = 0; i < 3; i++)
    Rie[1][i] = Rie[1][i] / mag;
  CrossProduct(&Rib[0][0], &Rib[1][0], &Rib[2][0]);
  CrossProduct(&Rie[0][0], &Rie[1][0], &Rie[2][0]);
  for (i = 0; i < 3; i++)
    for (j = 0; j < 3; j++) {
      Rbe[i][j] = 0;
      for (k = 0; k < 3; k++)
        Rbe[i][j] += Rib[k][i] * Rie[k][j];
    }
  return 1;
}
```