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

```asm
<check_cyclic>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %rdi,-0x88(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x60(%rbp)
  movl   $0x0,-0x5c(%rbp)
  movl   $0x0,-0x58(%rbp)
  movl   $0x0,-0x54(%rbp)
  movl   $0x0,-0x50(%rbp)
  movl   $0x0,-0x4c(%rbp)
  movl   $0x0,-0x40(%rbp)
  movl   $0x0,-0x3c(%rbp)
  movl   $0x0,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  movl   $0x0,-0x30(%rbp)
  movl   $0x0,-0x2c(%rbp)
  movl   $0x0,-0x74(%rbp)
  jmp    L55
L39:
  mov    -0x74(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  sub    %eax,%edx
  mov    -0x74(%rbp),%eax
  cltq
  mov    %edx,-0x60(%rbp,%rax,4)
  mov    -0x74(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  movslq %edx,%rax
  imul   $0x51eb851f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x5,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x64,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    -0x74(%rbp),%edx
  movslq %edx,%rdx
  mov    %eax,-0x40(%rbp,%rdx,4)
  addl   $0x1,-0x74(%rbp)
L55:
  cmpl   $0x5,-0x74(%rbp)
  jle    L39
  mov    -0x60(%rbp),%edx
  mov    -0x5c(%rbp),%eax
  add    %eax,%edx
  mov    -0x58(%rbp),%eax
  add    %eax,%edx
  mov    -0x54(%rbp),%eax
  add    %eax,%edx
  mov    -0x50(%rbp),%eax
  add    %eax,%edx
  mov    -0x4c(%rbp),%eax
  add    %eax,%edx
  mov    -0x40(%rbp),%ecx
  mov    -0x3c(%rbp),%eax
  add    %eax,%ecx
  mov    -0x38(%rbp),%eax
  add    %eax,%ecx
  mov    -0x34(%rbp),%eax
  add    %eax,%ecx
  mov    -0x30(%rbp),%eax
  add    %eax,%ecx
  mov    -0x2c(%rbp),%eax
  add    %ecx,%eax
  cmp    %eax,%edx
  je     L114
  mov    $0x0,%eax
  jmp    L130
L114:
  movl   $0x0,-0x20(%rbp)
  movl   $0x1,-0x1c(%rbp)
  movl   $0x2,-0x18(%rbp)
  movl   $0x3,-0x14(%rbp)
  movl   $0x4,-0x10(%rbp)
  movl   $0x5,-0xc(%rbp)
  movl   $0x0,-0x6c(%rbp)
  movl   $0x0,-0x68(%rbp)
  jmp    L38
L137:
  movl   $0x0,-0x70(%rbp)
  movl   $0x1,-0x64(%rbp)
  jmp    L154
L42:
  mov    -0x64(%rbp),%eax
  cltq
  mov    -0x20(%rbp,%rax,4),%eax
  cmp    $0xffffffff,%eax
  je     L64
  mov    -0x6c(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%edx
  mov    -0x64(%rbp),%eax
  cltq
  mov    -0x20(%rbp,%rax,4),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jne    L64
  movl   $0x1,-0x70(%rbp)
  mov    -0x64(%rbp),%eax
  cltq
  movl   $0xffffffff,-0x20(%rbp,%rax,4)
  mov    -0x64(%rbp),%eax
  mov    %eax,-0x6c(%rbp)
  jmp    L11
L64:
  addl   $0x1,-0x64(%rbp)
L154:
  cmpl   $0x5,-0x64(%rbp)
  jle    L42
L11:
  cmpl   $0x0,-0x70(%rbp)
  jne    L86
  mov    $0x0,%eax
  jmp    L130
L86:
  addl   $0x1,-0x68(%rbp)
L38:
  cmpl   $0x4,-0x68(%rbp)
  jle    L137
  mov    -0x6c(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%edx
  mov    -0x60(%rbp),%eax
  cmp    %eax,%edx
  jne    L132
  mov    $0x1,%eax
  jmp    L130
L132:
  mov    $0x0,%eax
L130:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L68
  call   <__stack_chk_fail@plt>
L68:
  leave
  ret
```

assistant: ```c
int check_cyclic(int *nums) {
  int l1[] = {0, 0, 0, 0, 0, 0};
  int l2[] = {0, 0, 0, 0, 0, 0};
  for (int i = 0; i < 6; i++) {
    l1[i] = nums[i] / 100;
    l2[i] = nums[i] - 100 * (nums[i] / 100);
    if (0)
      printf("%d\t%d\t%d\n", nums[i], l1[i], l2[i]);
  }
  if (l1[0] + l1[1] + l1[2] + l1[3] + l1[4] + l1[5] != l2[0] + l2[1] + l2[2] + l2[3] + l2[4] + l2[5])
    return 0;
  int idx[] = {0, 1, 2, 3, 4, 5};
  int flag;
  int n = 0;
  for (int i = 0; i < 6 - 1; i++) {
    flag = 0;
    for (int j = 1; j < 6; j++) {
      if (idx[j] != -1) {
        if (l2[n] == l1[idx[j]]) {
          flag = 1;
          idx[j] = -1;
          n = j;
          break;
        }
      }
    }
    if (flag == 0)
      return 0;
  }
  if (l2[n] == l1[0])
    return 1;
  return 0;
}
```