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

```asm
<add_u_v_term_l_2>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %edi,%ebx
  mov    %rdx,%r12
  mov    %rcx,%r13
  mov    %r8,%rdx
  mov    %r9,%rcx
  mov    0x70(%rsp),%rdi
  mov    0xa8(%rsp),%r14
  mov    0xf8(%rsp),%rbp
  mov    0x110(%rsp),%r15
  movsd  %xmm0,(%rsp)
  movsd  %xmm1,0x8(%rsp)
  movsd  %xmm2,0x10(%rsp)
  movsd  %xmm3,0x18(%rsp)
  imul   %esi,%ebx
  cmpl   $0x0,0x130(%rsp)
  jne    L81
  sub    $0x8,%rsp
  push   %rbp
  push   0x100(%rsp)
  push   %rbx
  mov    0x88(%rsp),%r9
  mov    0x80(%rsp),%r8
  mov    0x98(%rsp),%rsi
  call   <dmat_mul_a2@plt>
  add    $0x18,%rsp
  push   0x120(%rsp)
  push   %r15
  push   %rbx
  mov    0xb8(%rsp),%r9
  mov    0xb0(%rsp),%r8
  mov    0xa8(%rsp),%rcx
  mov    0xa0(%rsp),%rdx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <dmat_mul_a2@plt>
  add    $0x18,%rsp
  push   %rbx
  movsd  D10(%rip),%xmm0
  mov    %r14,%r9
  mov    0xb0(%rsp),%r8
  mov    0x128(%rsp),%rcx
  mov    %r15,%rdx
  mov    %rbp,%rsi
  mov    0x100(%rsp),%rdi
  call   <dmat_scale_add_1x2@plt>
  add    $0x10,%rsp
L101:
  movsd  (%rsp),%xmm4
  ucomisd D43(%rip),%xmm4
  jp     L73
  jne    L73
L11:
  movsd  0x8(%rsp),%xmm5
  ucomisd D43(%rip),%xmm5
  jp     L106
  jne    L106
L127:
  movsd  0x10(%rsp),%xmm6
  ucomisd D43(%rip),%xmm6
  jp     L19
  jne    L19
L121:
  movsd  0x18(%rsp),%xmm7
  ucomisd D43(%rip),%xmm7
  jp     L129
  jne    L129
L85:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L81:
  sub    $0x8,%rsp
  push   $0x0
  push   $0xffffffffffffffff
  push   %rbp
  push   0x110(%rsp)
  push   %rbx
  mov    0x98(%rsp),%r9
  mov    0x90(%rsp),%r8
  mov    0xa8(%rsp),%rsi
  call   <dmat_mul_a3@plt>
  add    $0x28,%rsp
  push   $0x0
  push   $0xffffffffffffffff
  push   0x130(%rsp)
  push   %r15
  push   %rbx
  mov    0xc8(%rsp),%r9
  mov    0xc0(%rsp),%r8
  mov    0xb8(%rsp),%rcx
  mov    0xb0(%rsp),%rdx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <dmat_mul_a3@plt>
  add    $0x30,%rsp
  mov    $0x1,%r8d
  mov    %ebx,%ecx
  mov    0xa0(%rsp),%rdx
  mov    %r15,%rsi
  mov    0xf0(%rsp),%rdi
  call   <dsym_add@plt>
  mov    $0x0,%r8d
  mov    %ebx,%ecx
  mov    %r14,%rdx
  mov    0x118(%rsp),%rsi
  mov    %rbp,%rdi
  call   <dsym_add@plt>
  mov    $0xffffffff,%edx
  mov    %ebx,%esi
  mov    %r14,%rdi
  call   <dmat_sym@plt>
  jmp    L101
L73:
  sub    $0x8,%rsp
  push   %rbx
  movsd  0x10(%rsp),%xmm0
  mov    0xc8(%rsp),%r9
  mov    0xc0(%rsp),%r8
  mov    %r14,%rcx
  mov    0xb0(%rsp),%rdx
  mov    %r9,%rsi
  mov    %r8,%rdi
  call   <dmat_scale_add_1x2@plt>
  add    $0x10,%rsp
  jmp    L11
L106:
  sub    $0x8,%rsp
  push   %rbx
  movsd  0x18(%rsp),%xmm0
  mov    0xd8(%rsp),%r9
  mov    0xd0(%rsp),%r8
  mov    %r14,%rcx
  mov    0xb0(%rsp),%rdx
  mov    %r9,%rsi
  mov    %r8,%rdi
  call   <dmat_scale_add_1x2@plt>
  add    $0x10,%rsp
  jmp    L127
L19:
  sub    $0x8,%rsp
  push   %rbx
  movsd  0x20(%rsp),%xmm0
  mov    0xe8(%rsp),%r9
  mov    0xe0(%rsp),%r8
  mov    %r14,%rcx
  mov    0xb0(%rsp),%rdx
  mov    %r9,%rsi
  mov    %r8,%rdi
  call   <dmat_scale_add_1x2@plt>
  add    $0x10,%rsp
  jmp    L121
L129:
  sub    $0x8,%rsp
  push   %rbx
  movsd  0x28(%rsp),%xmm0
  mov    0xf8(%rsp),%r9
  mov    0xf0(%rsp),%r8
  mov    %r14,%rcx
  mov    0xb0(%rsp),%rdx
  mov    %r9,%rsi
  mov    %r8,%rdi
  call   <dmat_scale_add_1x2@plt>
  add    $0x10,%rsp
  jmp    L85
```

tool_calls: name: parse_data
arguments: data_label: D10
type_infered: f64
name: parse_data
arguments: data_label: D43
type_infered: f64

tool: D10: 1

tool: D43: 0

assistant: ```c
void add_u_v_term_l_2(int n_quad, int n_stokes, double **ax11, double **ax12, double **bx11, double **bx12, double **bx21, double **bx22, double **ay11, double **ay12, double **by11, double **by12, double **by21, double **by22, double **cy11, double **cy12, double **uy11, double **uy12, double **vy11, double **vy12, double **wy11, double **wy12, double **xy11, double **xy12, double **w111, double **w112, double **w121, double **w122, double **w211, double **w212, double **w221, double **w222, double c0, double c1, double c2, double c3, int symmetric) {
  int n_quad_v;
  n_quad_v = n_quad * n_stokes;
  if (!symmetric) {
    dmat_mul_a2(ay11, ay12, bx11, bx12, bx21, bx22, n_quad_v, w111, w112);
    dmat_mul_a2(ax11, ax12, by11, by12, by21, by22, n_quad_v, w211, w212);
    dmat_scale_add_1x2(w111, w112, w211, w212, cy11, cy12, 1., n_quad_v);
  } else {
    dmat_mul_a3(ay11, ay12, bx11, bx12, bx21, bx22, n_quad_v, w111, w112, -1., 0);
    dmat_mul_a3(ax11, ax12, by11, by12, by21, by22, n_quad_v, w211, w212, -1., 0);
    dsym_add(w111, w211, cy11, n_quad_v, 1);
    dsym_add(w112, w212, cy12, n_quad_v, 0);
    dmat_sym(cy12, n_quad_v, -1.);
  }
  if (c0 != 0.)
    dmat_scale_add_1x2(uy11, uy12, cy11, cy12, uy11, uy12, c0, n_quad_v);
  if (c1 != 0.)
    dmat_scale_add_1x2(vy11, vy12, cy11, cy12, vy11, vy12, c1, n_quad_v);
  if (c2 != 0.)
    dmat_scale_add_1x2(wy11, wy12, cy11, cy12, wy11, wy12, c2, n_quad_v);
  if (c3 != 0.)
    dmat_scale_add_1x2(xy11, xy12, cy11, cy12, xy11, xy12, c3, n_quad_v);
}
```