user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<finddigits>:
  endbr64
  push   %r14
  mov    $0x28,%edi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    D18(%rip),%rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <malloc@plt>
  mov    %rsp,%rsi
  mov    %rbx,%rdi
  movl   $0x1,(%rax)
  mov    %rax,%r13
  call   <scanf@plt>
  mov    (%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,(%rsp)
  test   %eax,%eax
  je     L58
  lea    0x4(%rsp),%r12
  lea    D12(%rip),%rbp
  mov    $0xcccccccd,%r14d
  nopl   0x0(%rax,%rax,1)
L50:
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0x4(%rsp),%edx
  xor    %esi,%esi
  imul   $0xaaaaaaab,%edx,%ecx
  mov    %edx,%eax
  not    %eax
  and    $0x1,%eax
  add    $0x2aaaaaaa,%ecx
  movd   %eax,%xmm0
  cmp    $0x55555554,%ecx
  setbe  %sil
  xor    %eax,%eax
  test   $0x3,%dl
  sete   %al
  movd   %esi,%xmm3
  movd   %eax,%xmm1
  imul   $0xcccccccd,%edx,%eax
  punpckldq %xmm3,%xmm0
  lea    0x19999999(%rax),%edi
  cmp    $0x33333332,%edi
  setbe  %dil
  ror    %ecx
  movzbl %dil,%edi
  movd   %edi,%xmm2
  xor    %edi,%edi
  cmp    $0x2aaaaaaa,%ecx
  setbe  %dil
  imul   $0xb6db6db7,%edx,%ecx
  punpckldq %xmm2,%xmm1
  xor    %esi,%esi
  punpcklqdq %xmm1,%xmm0
  movups %xmm0,0x4(%r13)
  movd   %edi,%xmm0
  add    $0x12492492,%ecx
  cmp    $0x24924924,%ecx
  setbe  %sil
  xor    %edi,%edi
  test   $0x7,%dl
  sete   %dil
  imul   $0x38e38e39,%edx,%ecx
  movd   %esi,%xmm5
  movd   %edi,%xmm1
  punpckldq %xmm5,%xmm0
  add    $0xe38e38e,%ecx
  cmp    $0x1c71c71c,%ecx
  setbe  %cl
  add    $0x19999998,%eax
  ror    %eax
  movzbl %cl,%ecx
  cmp    $0x19999998,%eax
  movd   %ecx,%xmm4
  setbe  %al
  punpckldq %xmm4,%xmm1
  xor    %r8d,%r8d
  punpcklqdq %xmm1,%xmm0
  movzbl %al,%eax
  mov    %eax,0x24(%r13)
  movups %xmm0,0x14(%r13)
  test   %edx,%edx
  jg     L40
  jmp    L19
  nopl   0x0(%rax,%rax,1)
L54:
  mov    %eax,%edx
L40:
  mov    %edx,%eax
  mov    %edx,%ecx
  imul   %r14,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%esi
  add    %esi,%esi
  sub    %esi,%ecx
  movslq %ecx,%rcx
  cmpl   $0x1,-0x4(%r13,%rcx,4)
  mov    %eax,0x4(%rsp)
  sbb    $0xffffffff,%r8d
  cmp    $0x9,%edx
  jg     L54
L19:
  mov    %r8d,%esi
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    (%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,(%rsp)
  test   %eax,%eax
  jne    L50
L58:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L49
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L49:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D18
datatype: string
name: parse_data
arguments: data_label: D12
datatype: string

tool: D18: %d

tool: D12: %d


assistant: ```c
int finddigits(void) {
  int numCases;
  int *divisors = malloc(sizeof(int) * 10);
  divisors[0] = 1;
  scanf("%d", &numCases);
  while (numCases--) {
    int number;
    int divisorDigits = 0;
    scanf("%d", &number);
    for (int i = 1; i < 10; i++) {
      divisors[i] = (number % (i + 1)) == 0;
    }
    while (number > 0) {
      if (divisors[(number % 10) - 1]) {
        divisorDigits++;
      }
      number /= 10;
    }
    printf("%d\n", divisorDigits);
  }
  return 0;
}
```