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

```asm
<main>:
  endbr64
  push   %r15
  mov    $0xb,%r15d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  movl   $0x1,0xc(%rsp)
  movl   $0x1,0x8(%rsp)
  nopl   0x0(%rax,%rax,1)
L66:
  lea    -0x1(%r15),%r12d
  mov    %r15d,%ebp
  nopw   0x0(%rax,%rax,1)
L45:
  xor    %esi,%esi
  mov    %r12d,%edi
  call   <digit_usage@plt>
  xor    %esi,%esi
  mov    %ebp,%edi
  mov    %eax,%ebx
  call   <digit_usage@plt>
  mov    %ebx,%r14d
  and    %eax,%r14d
  mov    %eax,%r13d
  cmp    %r14d,%ebx
  sete   %cl
  cmp    %r14d,%eax
  sete   %sil
  or     %sil,%cl
  jne    L36
  cmp    $0x1,%r14d
  jbe    L36
  mov    %r14d,%edi
  call   <log2@plt>
  movsd  D14(%rip),%xmm1
  movsd  D38(%rip),%xmm4
  movapd %xmm0,%xmm2
  andpd  %xmm0,%xmm1
  ucomisd %xmm1,%xmm4
  jbe    L93
  cvttsd2si %xmm0,%rcx
  pxor   %xmm1,%xmm1
  movsd  D20(%rip),%xmm5
  cvtsi2sd %rcx,%xmm1
  movapd %xmm1,%xmm2
  cmpnlesd %xmm0,%xmm2
  andpd  %xmm5,%xmm2
  subsd  %xmm2,%xmm1
  movsd  D14(%rip),%xmm2
  andnpd %xmm0,%xmm2
  orpd   %xmm1,%xmm2
L93:
  ucomisd %xmm0,%xmm2
  jp     L36
  jne    L36
  mov    %ebx,%edi
  xor    %r14d,%edi
  call   <log2@plt>
  mov    %r13d,%edi
  xor    %r14d,%edi
  movq   %xmm0,%rbx
  call   <log2@plt>
  pxor   %xmm3,%xmm3
  movapd %xmm0,%xmm2
  cvtsi2sd %ebp,%xmm3
  pxor   %xmm0,%xmm0
  cvtsi2sd %r12d,%xmm0
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  divsd  %xmm3,%xmm1
  divsd  %xmm2,%xmm0
  ucomisd %xmm0,%xmm1
  jp     L36
  jne    L36
  mov    0x8(%rsp),%eax
  imul   %r12d,%eax
  mov    %eax,0x8(%rsp)
  mov    0xc(%rsp),%eax
  imul   %ebp,%eax
  mov    %eax,0xc(%rsp)
  nopw   0x0(%rax,%rax,1)
L36:
  add    $0x1,%ebp
  cmp    $0x64,%ebp
  jne    L45
  add    $0x1,%r15d
  cmp    $0x64,%r15d
  jne    L66
  mov    $0x2,%ebx
L102:
  mov    0xc(%rsp),%r15d
  mov    %r15d,%edi
  call   <sqrt@plt>
  cmp    %ebx,%eax
  jle    L10
  mov    0x8(%rsp),%eax
  cltd
  idiv   %ebx
  test   %edx,%edx
  jne    L106
  mov    %r15d,%eax
  cltd
  idiv   %ebx
  test   %edx,%edx
  je     L126
  jmp    L106
  nop
L92:
  mov    0xc(%rsp),%eax
  cltd
  idiv   %ebx
  test   %edx,%edx
  jne    L106
L126:
  mov    0x8(%rsp),%eax
  cltd
  idiv   %ebx
  mov    %eax,0x8(%rsp)
  mov    0xc(%rsp),%eax
  cltd
  idiv   %ebx
  mov    %eax,0xc(%rsp)
  mov    0x8(%rsp),%eax
  cltd
  idiv   %ebx
  test   %edx,%edx
  je     L92
L106:
  add    $0x1,%ebx
  jmp    L102
L10:
  mov    0xc(%rsp),%esi
  lea    D49(%rip),%rdi
  call   <printf@plt>
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: read_data
arguments: label: D14
type_infered: byte[8]
name: read_data
arguments: label: D38
type_infered: byte[8]
name: read_data
arguments: label: D20
type_infered: byte[8]
name: read_data
arguments: label: D49
type_infered: string

tool: {"D14": [0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f]}

tool: {"D38": [0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x43]}

tool: {"D20": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: D49: %d


assistant: ```c
int main(int argc, char **argv) {
  double cc, n2, d2;
  int n, nn, d, dd, c;
  int np = 1, dp = 1;
  for (n = 100 / 10; n < 100; n++) {
    for (d = n + 1; d < 100; d++) {
      nn = digit_usage(n, 0);
      dd = digit_usage(d, 0);
      c = nn & dd;
      if (c == 0 || c == 1 || (nn ^ c) == 0 || (dd ^ c) == 0)
        continue;
      cc = log2(c);
      if (cc != floor(cc))
        continue;
      n2 = log2(nn ^ c);
      d2 = log2(dd ^ c);
      if ((double)n / d == n2 / d2) {
        np *= n;
        dp *= d;
      }
    }
  }
  n = 2;
  while (n < sqrt(dp)) {
    while (np % n == 0 && dp % n == 0) {
      np /= n;
      dp /= n;
    }
    n++;
  }
  printf("%d\n", dp);
  return 0;
}
```