user: Please show me the C implementation that matches the assembly code listed below:

```asm
<findaKey>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %esi,%edi
  lea    0x40(%rsp),%r15
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  call   <malloc@plt>
  movdqa D6(%rip),%xmm0
  movb   $0x0,0x5a(%rsp)
  mov    %rax,%rbp
  movsd  D5(%rip),%xmm4
  movabs $0x5857565554535251,%rax
  mov    %rax,0x50(%rsp)
  mov    $0x5a59,%eax
  mov    %ax,0x58(%rsp)
  lea    0x5a(%rsp),%rax
  mov    %rax,0x30(%rsp)
  movaps %xmm0,0x40(%rsp)
  movsd  %xmm4,0x38(%rsp)
L46:
  mov    0x10(%rsp),%rsi
  mov    %r12d,%ecx
  mov    %rbp,%rdx
  mov    %r13,%rdi
  mov    %r15,%rbx
  call   <simplesubEncipher@plt>
  mov    %r12d,%esi
  mov    %rbp,%rdi
  call   <scoreTextQgram@plt>
  movl   $0x0,0x24(%rsp)
  movq   $0x0,0x28(%rsp)
  movl   $0x0,0x20(%rsp)
  movsd  %xmm0,0x8(%rsp)
  nop
L47:
  mov    0x28(%rsp),%r14
  mov    %r15,%rax
  mov    %r14d,0x1c(%rsp)
  mov    %r14,%r15
  mov    %rax,%r14
  nopl   0x0(%rax,%rax,1)
L4:
  mov    %r13,%rsi
  mov    %r14,%rdi
  call   <strcpy@plt>
  movzbl (%r14,%r15,1),%edx
  movzbl (%rbx),%eax
  mov    %r12d,%ecx
  mov    0x10(%rsp),%rsi
  mov    %r14,%rdi
  mov    %dl,(%rbx)
  mov    %rbp,%rdx
  mov    %al,(%r14,%r15,1)
  call   <simplesubEncipher@plt>
  mov    %r12d,%esi
  mov    %rbp,%rdi
  call   <scoreTextQgram@plt>
  comisd 0x8(%rsp),%xmm0
  jbe    L25
  mov    0x1c(%rsp),%eax
  mov    %r15d,0x24(%rsp)
  movsd  %xmm0,0x8(%rsp)
  mov    %eax,0x20(%rsp)
L25:
  add    $0x1,%r15
  cmp    $0x1a,%r15d
  jne    L4
  addq   $0x1,0x28(%rsp)
  mov    %r14,%r15
  add    $0x1,%rbx
  cmp    %rbx,0x30(%rsp)
  jne    L47
  mov    0x24(%rsp),%ecx
  cmp    %ecx,0x20(%rsp)
  je     L48
  movsd  0x8(%rsp),%xmm2
  comisd 0x38(%rsp),%xmm2
  jbe    L46
  movslq 0x20(%rsp),%rdx
  movslq 0x24(%rsp),%rax
  movsd  %xmm2,0x38(%rsp)
  add    %r13,%rdx
  add    %r13,%rax
  movzbl (%rdx),%ecx
  movzbl (%rax),%esi
  mov    %sil,(%rdx)
  mov    %cl,(%rax)
  jmp    L46
L48:
  mov    %rbp,%rdi
  call   <free@plt>
  pxor   %xmm0,%xmm0
  cvtsd2ss 0x38(%rsp),%xmm0
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L41
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L41:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D6
type_infered: byte[16]
name: retrieve_data
arguments: label: D5
type_infered: byte[8]

tool: {"D6": [0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50]}

tool: {"D5": [0x1e,0xe5,0xb4,0x11,0x93,0xa1,0xe6,0xd4]}

assistant: ```c
float findaKey(char *text, int len, char *maxKey) {
  int i, j;
  int maxi, maxj;
  char temp, *deciphered = malloc(sizeof(char) * len);
  char testKey[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  double maxmaxscore = -99e99, maxscore, score;
  while (1) {
    simplesubEncipher(maxKey, text, deciphered, len);
    maxscore = scoreTextQgram(deciphered, len);
    maxi = 0;
    maxj = 0;
    for (i = 0; i < 26; i++) {
      for (j = i; j < 26; j++) {
        strcpy(testKey, maxKey);
        temp = testKey[i];
        testKey[i] = testKey[j];
        testKey[j] = temp;
        simplesubEncipher(testKey, text, deciphered, len);
        score = scoreTextQgram(deciphered, len);
        if (score > maxscore) {
          maxscore = score;
          maxi = i;
          maxj = j;
        }
      }
    }
    if (maxi == maxj)
      break;
    if (maxscore > maxmaxscore) {
      maxmaxscore = maxscore;
      temp = maxKey[maxi];
      maxKey[maxi] = maxKey[maxj];
      maxKey[maxj] = temp;
    }
  }
  free(deciphered);
  return maxmaxscore;
}
```