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

```asm
<fun>:
  endbr64
  sub    $0x38,%rsp
  mov    %edx,%ecx
  mov    %edi,%r8d
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movslq %edi,%rax
  sar    $0x1f,%r8d
  imul   $0x51eb851f,%rax,%rdx
  imul   $0x66666667,%rax,%rax
  sar    $0x25,%rdx
  sar    $0x22,%rax
  sub    %r8d,%edx
  sub    %r8d,%eax
  movd   %edx,%xmm0
  movslq %eax,%rdx
  mov    %eax,%r8d
  mov    %eax,%r9d
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%r8d
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%edi
  movslq %esi,%rax
  sar    $0x22,%rdx
  movd   %edi,%xmm1
  sub    %r8d,%edx
  mov    %esi,%r8d
  lea    (%rdx,%rdx,4),%edx
  sar    $0x1f,%r8d
  add    %edx,%edx
  sub    %edx,%r9d
  imul   $0x51eb851f,%rax,%rdx
  imul   $0x66666667,%rax,%rax
  movd   %r9d,%xmm3
  punpckldq %xmm3,%xmm0
  sar    $0x25,%rdx
  sar    $0x22,%rax
  sub    %r8d,%edx
  sub    %r8d,%eax
  movd   %edx,%xmm2
  movslq %eax,%rdx
  mov    %eax,%edi
  punpckldq %xmm2,%xmm1
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%edi
  punpcklqdq %xmm1,%xmm0
  movaps %xmm0,(%rsp)
  sar    $0x22,%rdx
  sub    %edi,%edx
  mov    %eax,%edi
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  lea    (%rdx,%rdx,4),%edx
  sub    %eax,%esi
  add    %edx,%edx
  movslq %ecx,%rax
  sub    %edx,%edi
  imul   $0x51eb851f,%rax,%rdx
  movd   %esi,%xmm5
  imul   $0x66666667,%rax,%rax
  movd   %edi,%xmm1
  mov    %ecx,%edi
  sar    $0x1f,%edi
  punpckldq %xmm5,%xmm1
  sar    $0x25,%rdx
  sar    $0x22,%rax
  sub    %edi,%edx
  sub    %edi,%eax
  movd   %edx,%xmm0
  movslq %eax,%rdx
  mov    %eax,%edi
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%edi
  sar    $0x22,%rdx
  sub    %edi,%edx
  mov    %eax,%edi
  lea    (%rax,%rax,4),%eax
  lea    (%rdx,%rdx,4),%edx
  add    %eax,%eax
  add    %edx,%edx
  sub    %eax,%ecx
  mov    %rsp,%rax
  sub    %edx,%edi
  mov    %ecx,0x20(%rsp)
  mov    $0x2,%ecx
  movd   %edi,%xmm4
  punpckldq %xmm4,%xmm0
  punpcklqdq %xmm0,%xmm1
  movaps %xmm1,0x10(%rsp)
L28:
  mov    (%rax),%edx
  mov    0x4(%rax),%edi
  test   %edx,%edx
  sete   %sil
  cmp    %edi,%edx
  sete   %r8b
  or     %r8b,%sil
  jne    L90
  test   %edi,%edi
  je     L90
  cmp    $0x9,%ecx
  je     L265
  mov    0x8(%rax),%esi
  test   %esi,%esi
  je     L90
  cmp    %esi,%edx
  je     L90
  cmp    $0x8,%ecx
  je     L146
  mov    0xc(%rax),%esi
  test   %esi,%esi
  je     L90
  cmp    %esi,%edx
  je     L90
  cmp    $0x7,%ecx
  je     L146
  mov    0x10(%rax),%esi
  test   %esi,%esi
  je     L90
  cmp    %esi,%edx
  je     L90
  cmp    $0x6,%ecx
  je     L146
  mov    0x14(%rax),%esi
  test   %esi,%esi
  je     L90
  cmp    %esi,%edx
  je     L90
  cmp    $0x5,%ecx
  je     L146
  mov    0x18(%rax),%esi
  cmp    %esi,%edx
  je     L90
  test   %esi,%esi
  je     L90
  cmp    $0x4,%ecx
  je     L146
  mov    0x1c(%rax),%esi
  cmp    %esi,%edx
  je     L90
  test   %esi,%esi
  je     L90
  cmp    $0x3,%ecx
  je     L146
  mov    0x20(%rax),%esi
  cmp    %esi,%edx
  je     L90
  test   %esi,%esi
  je     L90
  add    $0x1,%ecx
  add    $0x4,%rax
  cmp    $0xa,%ecx
  jne    L28
L265:
  mov    $0x1,%eax
  jmp    L135
  nopw   0x0(%rax,%rax,1)
L90:
  xor    %eax,%eax
L135:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L54
  add    $0x38,%rsp
  ret
  nopw   0x0(%rax,%rax,1)
L146:
  add    $0x4,%rax
  add    $0x1,%ecx
  jmp    L28
L54:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int fun(int a, int b, int c) {
  int x[9], i, j;
  x[0] = a / 100;
  x[1] = a / 10 % 10;
  x[2] = a % 10;
  x[3] = b / 100;
  x[4] = b / 10 % 10;
  x[5] = b % 10;
  x[6] = c / 100;
  x[7] = c / 10 % 10;
  x[8] = c % 10;
  for (i = 0; i < 8; i++)
    for (j = i + 1; j < 9; j++) {
      if (x[i] == x[j])
        return 0;
      if (x[i] == 0)
        return 0;
      if (x[j] == 0)
        return 0;
    }
  return 1;
}
```