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

```asm
<ispan>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %edi,-0x44(%rbp)
  mov    %esi,-0x48(%rbp)
  mov    %edx,-0x4c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <reset@plt>
  jmp    L124
L155:
  mov    -0x44(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%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
  sub    %eax,%ecx
  mov    %ecx,%edx
  movslq %edx,%rax
  mov    -0x30(%rbp,%rax,4),%eax
  test   %eax,%eax
  je     L73
  mov    $0x0,%eax
  jmp    L142
L73:
  mov    -0x44(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%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
  sub    %eax,%ecx
  mov    %ecx,%edx
  movslq %edx,%rax
  movl   $0x1,-0x30(%rbp,%rax,4)
  mov    -0x44(%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,-0x44(%rbp)
L124:
  cmpl   $0x0,-0x44(%rbp)
  jne    L155
  jmp    L152
L13:
  mov    -0x48(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%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
  sub    %eax,%ecx
  mov    %ecx,%edx
  movslq %edx,%rax
  mov    -0x30(%rbp,%rax,4),%eax
  test   %eax,%eax
  je     L14
  mov    $0x0,%eax
  jmp    L142
L14:
  mov    -0x48(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%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
  sub    %eax,%ecx
  mov    %ecx,%edx
  movslq %edx,%rax
  movl   $0x1,-0x30(%rbp,%rax,4)
  mov    -0x48(%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,-0x48(%rbp)
L152:
  cmpl   $0x0,-0x48(%rbp)
  jne    L13
  jmp    L107
L76:
  mov    -0x4c(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%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
  sub    %eax,%ecx
  mov    %ecx,%edx
  movslq %edx,%rax
  mov    -0x30(%rbp,%rax,4),%eax
  test   %eax,%eax
  je     L98
  mov    $0x0,%eax
  jmp    L142
L98:
  mov    -0x4c(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%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
  sub    %eax,%ecx
  mov    %ecx,%edx
  movslq %edx,%rax
  movl   $0x1,-0x30(%rbp,%rax,4)
  mov    -0x4c(%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,-0x4c(%rbp)
L107:
  cmpl   $0x0,-0x4c(%rbp)
  jne    L76
  movl   $0x0,-0x34(%rbp)
  jmp    L111
L121:
  mov    -0x34(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  test   %eax,%eax
  jne    L105
  mov    $0x0,%eax
  jmp    L142
L105:
  addl   $0x1,-0x34(%rbp)
L111:
  cmpl   $0xa,-0x34(%rbp)
  jle    L121
  mov    $0x1,%eax
L142:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L143
  call   <__stack_chk_fail@plt>
L143:
  leave
  ret
```

assistant: ```c
int ispan(int a, int b, int c) {
  int i;
  int pan[10];
  reset(pan);
  while (a != 0) {
    if (pan[a % 10])
      return 0;
    pan[a % 10] = 1;
    a /= 10;
  }
  while (b != 0) {
    if (pan[b % 10])
      return 0;
    pan[b % 10] = 1;
    b /= 10;
  }
  while (c != 0) {
    if (pan[c % 10])
      return 0;
    pan[c % 10] = 1;
    c /= 10;
  }
  for (i = 0; i < 11; i++)
    if (!pan[i])
      return 0;
  return 1;
}
```