user: 请从给定的汇编指令推导出C源代码：

```asm
<contDig>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %rsi,-0x40(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x9,-0x10(%rbp)
  movl   $0x0,-0xc(%rbp)
  movl   $0x0,-0x24(%rbp)
  jmp    L131
L141:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x24(%rbp)
L131:
  cmpl   $0x9,-0x24(%rbp)
  jle    L141
  cmpl   $0x0,-0x34(%rbp)
  je     L60
  mov    -0x34(%rbp),%eax
  mov    %eax,%edi
  call   <log10@plt>
  mov    %eax,-0x8(%rbp)
  mov    -0x34(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  movl   $0x1,-0x18(%rbp)
  movl   $0x1,-0x20(%rbp)
  jmp    L109
L103:
  mov    -0x18(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,-0x18(%rbp)
  addl   $0x1,-0x20(%rbp)
L109:
  mov    -0x20(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jle    L103
  mov    -0x8(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  jmp    L11
L146:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  sub    %eax,%edx
  mov    -0x24(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,-0x4(%rbp)
  movl   $0x1,-0x20(%rbp)
  jmp    L105
L32:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x1c(%rbp),%eax
  cltd
  idivl  -0x18(%rbp)
  imul   -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rsi
  mov    -0x40(%rbp),%rax
  add    %rsi,%rax
  add    %ecx,%edx
  mov    %edx,(%rax)
  mov    -0x1c(%rbp),%eax
  cltd
  idivl  -0x18(%rbp)
  cmp    %eax,-0x20(%rbp)
  jge    L112
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    -0x18(%rbp),%edx
  add    %ecx,%edx
  mov    %edx,(%rax)
L112:
  addl   $0x1,-0x20(%rbp)
L105:
  cmpl   $0x9,-0x20(%rbp)
  jle    L32
  mov    -0x1c(%rbp),%eax
  cltd
  idivl  -0x18(%rbp)
  mov    %eax,%ecx
  movslq %ecx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%esi
  mov    -0x1c(%rbp),%eax
  cltd
  idivl  -0x18(%rbp)
  mov    %edx,%eax
  lea    0x1(%rax),%edx
  movslq %ecx,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x40(%rbp),%rax
  add    %rcx,%rax
  add    %esi,%edx
  mov    %edx,(%rax)
  mov    -0x1c(%rbp),%eax
  cltd
  idivl  -0x18(%rbp)
  mov    %edx,-0x1c(%rbp)
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x18(%rbp)
  subl   $0x1,-0x24(%rbp)
L11:
  cmpl   $0x0,-0x24(%rbp)
  jns    L146
  movl   $0x1,-0x24(%rbp)
  jmp    L23
L59:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    %eax,-0xc(%rbp)
  addl   $0x1,-0x24(%rbp)
L23:
  cmpl   $0x9,-0x24(%rbp)
  jle    L59
  movl   $0x1,-0x24(%rbp)
  jmp    L126
L104:
  mov    -0x10(%rbp),%eax
  imul   -0x24(%rbp),%eax
  add    %eax,-0x14(%rbp)
  addl   $0x1,-0x24(%rbp)
  mov    -0x10(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,-0x10(%rbp)
L126:
  mov    -0x24(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jle    L104
  mov    -0x8(%rbp),%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  sub    %edx,%eax
  lea    0x1(%rax),%edx
  mov    -0x8(%rbp),%eax
  add    $0x1,%eax
  imul   %edx,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  sub    -0xc(%rbp),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L26
L60:
  nop
L26:
  leave
  ret
```

assistant: ```c
void contDig(int t, int tt[]) {
  int i, j, m, n, p, q, s = 0, h = 9, s0 = 0;
  for (i = 0; i <= 9; i++)
    tt[i] = 0;
  if (t == 0)
    return;
  m = (int)log10(t);
  n = t;
  q = 1;
  for (j = 1; j <= m; j++)
    q *= 10;
  for (i = m; i >= 0; i--) {
    p = q / 10 * i;
    for (j = 1; j <= 9; j++) {
      tt[j] += p * (n / q);
      if (j < n / q)
        tt[j] += q;
    }
    tt[n / q] += n % (q) + 1;
    n %= q;
    q /= 10;
  }
  for (i = 1; i <= 9; i++)
    s0 += tt[i];
  for (i = 1; i <= m; i++, h *= 10)
    s += h * i;
  s += (t - pow(10, m) + 1) * (m + 1);
  tt[0] = s - s0;
}
```