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

```asm
<variance_class>:
  endbr64
  push   %r12
  xor    %ecx,%ecx
  mov    %rsi,%r12
  xor    %edx,%edx
  push   %rbp
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  mov    %edi,%eax
  shr    $0x1f,%eax
  lea    (%rax,%rdi,1),%ebp
  sar    %ebp
  mov    %ebp,%edi
  call   <variance_2@plt>
  xor    %edx,%edx
  mov    %ebp,%ecx
  mov    %r12,%rsi
  mov    %ebp,%edi
  movsd  %xmm0,0x8(%rsp)
  movsd  %xmm0,0x40(%rsp)
  call   <variance_2@plt>
  xor    %ecx,%ecx
  mov    %ebp,%edx
  mov    %r12,%rsi
  movapd %xmm0,%xmm4
  mov    %ebp,%edi
  movsd  %xmm0,0x48(%rsp)
  movhpd 0x8(%rsp),%xmm4
  movsd  %xmm0,0x18(%rsp)
  movaps %xmm4,0x20(%rsp)
  call   <variance_2@plt>
  mov    %ebp,%ecx
  mov    %ebp,%edx
  mov    %r12,%rsi
  mov    %ebp,%edi
  movsd  %xmm0,0x50(%rsp)
  movsd  %xmm0,0x10(%rsp)
  call   <variance_2@plt>
  movsd  0x18(%rsp),%xmm2
  comisd 0x8(%rsp),%xmm2
  movdqa D11(%rip),%xmm3
  movsd  0x10(%rsp),%xmm1
  movaps %xmm3,0x30(%rsp)
  jbe    L5
  mov    D0(%rip),%rax
  movapd 0x20(%rsp),%xmm4
  mov    %rax,0x30(%rsp)
  movaps %xmm4,0x40(%rsp)
L5:
  movsd  0x48(%rsp),%xmm2
  movapd %xmm1,%xmm3
  comisd %xmm2,%xmm1
  unpcklpd %xmm2,%xmm3
  jbe    L54
  mov    0x34(%rsp),%eax
  movl   $0x2,0x34(%rsp)
  movups %xmm3,0x48(%rsp)
  mov    %eax,0x38(%rsp)
L54:
  movsd  0x50(%rsp),%xmm1
  movapd %xmm0,%xmm2
  comisd %xmm1,%xmm0
  unpcklpd %xmm1,%xmm2
  ja     L2
L18:
  movapd 0x40(%rsp),%xmm0
  movapd %xmm0,%xmm6
  movapd %xmm0,%xmm2
  unpckhpd %xmm6,%xmm6
  shufpd $0x1,%xmm0,%xmm2
  comisd %xmm0,%xmm6
  jbe    L23
  rolq   $0x20,0x30(%rsp)
  movaps %xmm2,0x40(%rsp)
L23:
  movupd 0x48(%rsp),%xmm0
  movapd %xmm0,%xmm7
  movapd %xmm0,%xmm2
  unpckhpd %xmm7,%xmm7
  shufpd $0x1,%xmm0,%xmm2
  comisd %xmm0,%xmm7
  jbe    L78
  rolq   $0x20,0x34(%rsp)
  movups %xmm2,0x48(%rsp)
L78:
  movsd  0x48(%rsp),%xmm0
  comisd 0x40(%rsp),%xmm0
  jbe    L1
  rolq   $0x20,0x30(%rsp)
L1:
  lea    0x30(%rsp),%rdi
  call   <match@plt>
  mov    0x68(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L44
  add    $0x78,%rsp
  pop    %rbp
  pop    %r12
  ret
  nopl   (%rax)
L2:
  mov    0x38(%rsp),%eax
  movaps %xmm2,0x50(%rsp)
  movl   $0x3,0x38(%rsp)
  mov    %eax,0x3c(%rsp)
  jmp    L18
L44:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D11
data_type: f32[4]
name: retrieve_data
arguments: data_label: D0
data_type: byte[8]

tool: {"D11": [0.0,1.401298464324817e-45,2.802596928649634e-45,4.203895392974451e-45]}

tool: {"D0": [0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
int variance_class(int size, double **block) {
  int i, j;
  double a[4] = {0.0, 0.0, 0.0, 0.0};
  int order[4];
  a[0] = variance_2(size / 2, block, 0, 0);
  a[1] = variance_2(size / 2, block, 0, size / 2);
  a[2] = variance_2(size / 2, block, size / 2, 0);
  a[3] = variance_2(size / 2, block, size / 2, size / 2);
  for (i = 0; i < 4; ++i)
    order[i] = i;
  for (i = 2; i >= 0; --i)
    for (j = 0; j <= i; ++j)
      if (a[j] < a[j + 1]) {
        {
          int _temp;
          _temp = order[j + 1];
          order[j + 1] = order[j];
          order[j] = _temp;
        }
        {
          double _temp;
          _temp = a[j + 1];
          a[j + 1] = a[j];
          a[j] = _temp;
        }
      }
  return match(order);
}
```