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

```asm
<house_2>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r14
  mov    %esi,%ebp
  mov    %rdx,%r12
  mov    $0x4,%edi
  call   <malloc@plt>
  mov    %rax,%rbx
  lea    0x0(,%rbp,4),%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    $0x1,%r9d
  mov    %ebp,%r8d
  mov    $0x1,%ecx
  mov    %rbx,%rdx
  mov    %r14,%rsi
  mov    %r14,%rdi
  call   <mmult@plt>
  movss  (%rbx),%xmm0
  pxor   %xmm1,%xmm1
  ucomiss %xmm0,%xmm1
  ja     L160
  sqrtss %xmm0,%xmm0
L2:
  movss  %xmm0,(%rbx)
  movl   $0x3f800000,0x0(%r13)
  cmp    $0x1,%ebp
  jle    L161
  lea    0x4(%r13),%rax
  lea    -0x2(%rbp),%edx
  lea    0x8(%r13,%rdx,4),%rdx
L17:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L17
  movss  (%r14),%xmm0
  comiss D64(%rip),%xmm0
  jbe    L112
  movss  0x0(%r13),%xmm0
  mulss  (%rbx),%xmm0
  movss  %xmm0,0x0(%r13)
L12:
  mov    %r13,%rdx
  mov    $0x0,%eax
L120:
  movss  (%rdx),%xmm0
  addss  (%r14,%rax,4),%xmm0
  movss  %xmm0,(%r12,%rax,4)
  add    $0x1,%rax
  add    $0x4,%rdx
  cmp    %eax,%ebp
  jg     L120
L84:
  mov    $0x1,%r9d
  mov    %ebp,%r8d
  mov    $0x1,%ecx
  mov    %rbx,%rdx
  mov    %r12,%rsi
  mov    %r12,%rdi
  call   <mmult@plt>
  movss  (%rbx),%xmm0
  pxor   %xmm1,%xmm1
  ucomiss %xmm0,%xmm1
  ja     L154
  sqrtss %xmm0,%xmm0
L194:
  movss  %xmm0,(%rbx)
  test   %ebp,%ebp
  jle    L176
  mov    %r12,%rax
  lea    -0x1(%rbp),%edx
  lea    0x4(%r12,%rdx,4),%rdx
L151:
  movss  (%rax),%xmm0
  divss  (%rbx),%xmm0
  movss  %xmm0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L151
L176:
  mov    %rbx,%rdi
  call   <free@plt>
  mov    %r13,%rdi
  call   <free@plt>
  movss  D1(%rip),%xmm0
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L160:
  call   <sqrtf@plt>
  jmp    L2
L161:
  movss  (%r14),%xmm0
  movss  D67(%rip),%xmm1
  comiss D64(%rip),%xmm0
  ja     L136
  movss  D77(%rip),%xmm1
  pxor   %xmm2,%xmm2
  comiss %xmm0,%xmm2
  jbe    L56
  jmp    L136
L139:
  movss  D67(%rip),%xmm1
  jmp    L136
L154:
  call   <sqrtf@plt>
  jmp    L194
L21:
  movss  (%rbx),%xmm0
  xorps  D44(%rip),%xmm0
  mulss  0x0(%r13),%xmm0
  movss  %xmm0,0x0(%r13)
  jmp    L12
L112:
  pxor   %xmm1,%xmm1
  comiss %xmm0,%xmm1
  ja     L21
L56:
  ucomiss D64(%rip),%xmm0
  jp     L139
  pxor   %xmm1,%xmm1
  jne    L139
L136:
  mulss  (%rbx),%xmm1
  mulss  0x0(%r13),%xmm1
  movss  %xmm1,0x0(%r13)
  test   %ebp,%ebp
  jg     L12
  jmp    L84
```

tool_calls: name: read_data
arguments: label: D64
data_type: f64
name: read_data
arguments: label: D1
data_type: f32
name: read_data
arguments: label: D67
data_type: f32
name: read_data
arguments: label: D77
data_type: byte[4]
name: read_data
arguments: label: D44
data_type: byte[16]

tool: D64: 0

tool: D1: 2

tool: D67: 1

tool: {"D77": [0x00,0x00,0x80,0xbf]}

tool: {"D44": [0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
float house_2(float *x, int N, float *v) {
  float sgn, beta, sc;
  float *sigma, *e;
  int i;
  sigma = (float *)malloc(sizeof(float) * 1);
  e = (float *)malloc(sizeof(float) * N);
  beta = 2.0;
  sgn = 1.0;
  mmult(x, x, sigma, 1, N, 1);
  sigma[0] = sqrtf(sigma[0]);
  e[0] = 1.;
  for (i = 1; i < N; ++i) {
    e[i] = 0.;
  }
  if (x[0] > 0.) {
    sgn = 1.0;
  } else if (x[0] < 0.) {
    sgn = -1.0;
  } else if (x[0] == 0.) {
    sgn = 0.;
  }
  sc = sigma[0] * sgn;
  e[0] *= sc;
  for (i = 0; i < N; ++i) {
    v[i] = e[i] + x[i];
  }
  mmult(v, v, sigma, 1, N, 1);
  sigma[0] = sqrtf(sigma[0]);
  for (i = 0; i < N; ++i) {
    v[i] = v[i] / sigma[0];
  }
  free(sigma);
  free(e);
  return beta;
}
```