user: What is the c source code of the assembly code below:

```asm
<analyze_hand>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  pxor   %xmm3,%xmm3
  push   %r14
  movapd %xmm3,%xmm1
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  lea    0x100(%rdi),%rax
  movaps %xmm0,0x10(%rsp)
  mov    %rax,0x8(%rsp)
  movaps %xmm0,0x20(%rsp)
  movaps %xmm0,0x30(%rsp)
  movaps %xmm0,0x40(%rsp)
  movsd  %xmm3,(%rsp)
L326:
  xor    %r15d,%r15d
  xor    %ebx,%ebx
  jmp    L133
  nopl   (%rax)
L324:
  cmp    $0xf,%ebx
  jg     L66
L133:
  movslq %ebx,%rax
  add    $0x1,%ebx
  cmpl   $0x1,(%r12,%rax,4)
  jne    L324
  addl   $0x1,0x10(%rsp,%rax,4)
  xor    %ebp,%ebp
  movslq %ebx,%rax
  jmp    L232
  nopw   0x0(%rax,%rax,1)
L169:
  add    $0x1,%rax
  cmpl   $0x1,-0x4(%r12,%rax,4)
  jne    L38
L232:
  add    $0x1,%ebp
  mov    %eax,%r14d
  cmp    $0x10,%eax
  jne    L169
  mov    $0x11,%ebx
  mov    $0x74,%r13d
  cmp    $0x5,%ebp
  je     L257
L320:
  add    %ebp,%r15d
  cmp    $0x5,%r15d
  je     L136
L220:
  movapd %xmm1,%xmm0
  mov    %r13d,%edi
  call   <max@plt>
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %r14d,%xmm0
  divsd  D7(%rip),%xmm0
  addsd  (%rsp),%xmm0
  cvtsi2sd %eax,%xmm1
  movsd  %xmm0,(%rsp)
  cmp    $0xf,%ebx
  jle    L133
  nopl   0x0(%rax)
L66:
  add    $0x40,%r12
  cmp    %r12,0x8(%rsp)
  jne    L326
  xor    %ebp,%ebp
  xor    %r15d,%r15d
  lea    0x10(%rsp),%r12
  jmp    L102
  nopl   0x0(%rax,%rax,1)
L144:
  add    $0x1,%rbp
  cmp    $0x10,%rbp
  je     L110
L102:
  mov    (%r12,%rbp,4),%eax
  mov    %ebp,%r13d
  mov    %ebp,%r14d
  cmp    $0x2,%eax
  je     L39
  cmp    $0x3,%eax
  jne    L144
  lea    0x190(%rbp),%edi
  movapd %xmm1,%xmm0
  add    $0x1,%rbp
  call   <max@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  cmp    $0x10,%rbp
  jne    L102
  nop
L110:
  movsd  (%rsp),%xmm0
  addsd  %xmm1,%xmm0
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L327
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L39:
  xor    %ebx,%ebx
  jmp    L55
  nopl   0x0(%rax)
L65:
  cmp    $0x2,%eax
  jne    L319
  cmp    %ebx,%ebp
  jne    L83
L319:
  add    $0x1,%rbx
  cmp    $0x10,%rbx
  je     L35
L55:
  mov    (%r12,%rbx,4),%eax
  mov    %ebx,%edi
  cmp    $0x3,%eax
  jne    L65
  lea    0x2bc(%rbx),%edi
  pxor   %xmm0,%xmm0
  cvtsi2sd %edi,%xmm0
  comisd %xmm1,%xmm0
  jbe    L319
L147:
  movapd %xmm1,%xmm0
  add    $0x1,%rbx
  mov    $0x1,%r15d
  call   <max@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  cmp    $0x10,%rbx
  jne    L55
L35:
  test   %r15d,%r15d
  jne    L144
  movapd %xmm1,%xmm0
  lea    0x12c(%r13),%edi
  call   <max@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  jmp    L144
  nopl   0x0(%rax)
L83:
  pxor   %xmm0,%xmm0
  movsd  %xmm1,0x8(%rsp)
  cvtsi2sd %r14d,%xmm0
  call   <max@plt>
  movsd  0x8(%rsp),%xmm1
  lea    0x12c(%rax),%edi
  jmp    L147
  nopw   0x0(%rax,%rax,1)
L38:
  cmp    $0x5,%ebp
  je     L316
  add    %ebp,%r15d
  lea    0x64(%r14),%r13d
  lea    0x1(%r14),%ebx
  cmp    $0x5,%r15d
  jne    L220
L136:
  movapd %xmm1,%xmm0
  lea    0x257(%r14),%edi
  call   <max@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  jmp    L220
  nopw   0x0(%rax,%rax,1)
L257:
  mov    $0x393,%edi
L288:
  movapd %xmm1,%xmm0
  mov    $0x5,%ebp
  call   <max@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  jmp    L320
L316:
  cmp    $0xe,%r14d
  jne    L258
  movapd %xmm1,%xmm0
  mov    $0x3f5,%edi
  mov    $0xf,%ebx
  mov    $0x72,%r13d
  call   <max@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  jmp    L320
L258:
  lea    0x383(%r14),%edi
  lea    0x64(%r14),%r13d
  lea    0x1(%r14),%ebx
  jmp    L288
L327:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D7
type_infered: f32[2]

tool: {"D7": [0.0,4.4765625]}

assistant: ```c
double analyze_hand(int hand[4][16]) {
  int i, j, consecutive = 0, full, same_type;
  double value = 0.0, extra = 0;
  int cards_number[16] = {0};
  for (i = 0; i < 4; i++) {
    same_type = 0;
    for (j = 0; j < 16; j++) {
      if (hand[i][j] == 1) {
        cards_number[j] += 1;
        consecutive = 0;
        while (j < 16 && hand[i][j] == 1) {
          consecutive++;
          j++;
        }
        if (consecutive == 5) {
          if (j - 1 == 13)
            value = max(value, 10 * 100 + 13);
          else
            value = max(value, 9 * 100 + j - 1);
        }
        same_type += consecutive;
        if (same_type == 5) {
          value = max(value, 6 * 100 + j - 1);
        }
        value = max(value, 100 + j);
        extra += (j * 1.0) / 1000;
      }
    }
  }
  full = 0;
  for (i = 0; i < 16; i++) {
    if (cards_number[i] == 2) {
      for (j = 0; j < 16; j++) {
        if (cards_number[j] == 3) {
          if (value < (7 * 100 + j)) {
            value = max(value, (7 * 100 + j));
            full = 1;
          }
        } else if (cards_number[j] == 2 && i != j) {
          value = max(value, (3 * 100 + max(i, j)));
          full = 1;
        }
      }
      if (!full) {
        value = max(value, 3 * 100 + i);
      }
    } else if (cards_number[i] == 3) {
      value = max(value, 4 * 100 + i);
    }
  }
  return value + extra;
}
```