user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  movl   $0x1,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L27
L39:
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %al,-0x1d(%rbp)
  cmpb   $0x2f,-0x1d(%rbp)
  jle    L27
  cmpb   $0x39,-0x1d(%rbp)
  jg     L27
  cmpl   $0xa,-0x1c(%rbp)
  jne    L46
  movsbl -0x1d(%rbp),%eax
  sub    $0x30,%eax
  mov    %eax,-0x10(%rbp)
  jmp    L12
L46:
  cmpl   $0xb,-0x1c(%rbp)
  jne    L7
  movsbl -0x1d(%rbp),%eax
  sub    $0x30,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L12
L7:
  movsbl -0x1d(%rbp),%eax
  sub    $0x30,%eax
  imul   -0x1c(%rbp),%eax
  add    %eax,-0x18(%rbp)
  movsbl -0x1d(%rbp),%eax
  lea    -0x30(%rax),%edx
  mov    -0x1c(%rbp),%eax
  sub    $0x1,%eax
  imul   %edx,%eax
  add    %eax,-0x14(%rbp)
L12:
  addl   $0x1,-0x1c(%rbp)
L27:
  cmpl   $0xb,-0x1c(%rbp)
  jle    L39
  mov    -0x18(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x2e8ba2e9,%rax,%rax
  shr    $0x20,%rax
  sar    %eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0x8(%rbp)
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x2e8ba2e9,%rax,%rax
  shr    $0x20,%rax
  sar    %eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0x4(%rbp)
  mov    -0x8(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jne    L21
  mov    -0x4(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jne    L21
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L32
L21:
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L32:
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D1
type_guessed: string
name: disassemble_data
arguments: label: D7
type_guessed: string
name: disassemble_data
arguments: label: D11
type_guessed: string

tool: D1: DIGITE O SEU CPF:

tool: D7: 
CPF VALIDO.

tool: D11: 
CPF INVALIDO.

assistant: ```c
int main(void) {
  int digitIndex = 1, term10sum = 0, term11sum = 0, digit10, digit11, term10, term11;
  char digit;
  printf("DIGITE O SEU CPF:");
  while (digitIndex <= 11) {
    digit = getchar();
    if (digit >= '0' && digit <= '9') {
      if (digitIndex == 10)
        digit10 = (int)(digit - '0');
      else if (digitIndex == 11)
        digit11 = (int)(digit - '0');
      else {
        term10sum += (int)(digit - '0') * (digitIndex);
        term11sum += (int)(digit - '0') * (digitIndex - 1);
      }
      digitIndex++;
    }
  }
  term10 = ((term10sum % 11) % 10);
  term11sum += term10 * 9;
  term11 = ((term11sum % 11) % 10);
  if ((term10 == digit10) && (term11 == digit11))
    printf("\nCPF VALIDO.");
  else
    printf("\nCPF INVALIDO.");
  return 0;
}
```