user: 请将以下的汇编代码转换成C语言代码:

```asm
<one_step_small>:
  endbr64
  push   %rbp
  mov    %rsi,%r11
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rcx,%r12
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %r8d,-0x60(%rbp)
  mov    %rsp,%rcx
  mov    %r9d,-0x5c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %r9d,%rax
  lea    0xf(,%rax,8),%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rdx
  sub    %rdx,%rcx
  and    $0xfffffffffffffff0,%rax
  cmp    %rcx,%rsp
  je     L24
L12:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L12
L24:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L51
L19:
  mov    -0x5c(%rbp),%eax
  mov    %rsp,%r8
  mov    %r8,-0x58(%rbp)
  test   %eax,%eax
  jle    L105
  lea    -0x1(%rax),%edi
  mov    %rax,-0x50(%rbp)
  xor    %esi,%esi
  mov    %rax,%rcx
  mov    %rdi,-0x68(%rbp)
  mov    -0x48(%rbp),%rdi
  nopl   0x0(%rax)
L94:
  mov    (%rdi,%rsi,8),%rdx
  mov    %rdx,%r9
  mov    %rdx,%rax
  mov    %rdx,%r13
  shl    $0x7,%rax
  shr    $0x7,%r9
  and    %rax,%r9
  shr    %r13
  lea    (%rdx,%rdx,1),%rax
  mov    %r9,%r14
  and    %rax,%r13
  and    %rdx,%r14
  mov    %r13,%r10
  or     %r13,%r9
  mov    %r14,%rax
  shl    $0x7,%r14
  and    %rdx,%r10
  and    %rdx,%r9
  shr    $0x7,%rax
  or     %r14,%rax
  or     %r9,%rax
  mov    %r10,%r9
  add    %r10,%r10
  shr    %r9
  or     %r9,%rax
  or     %r10,%rax
  and    %rdx,%rax
  mov    %rax,(%r8,%rsi,8)
  add    $0x1,%rsi
  cmp    %rsi,%rcx
  jne    L94
  movabs $0x5555555555555555,%r9
  mov    -0x60(%rbp),%eax
  xor    %r14d,%r14d
  movabs $0x3333333333333333,%r8
  movabs $0xf0f0f0f0f0f0f0f,%r13
  nopl   0x0(%rax,%rax,1)
L122:
  mov    -0x58(%rbp),%rdi
  mov    %r14d,%r10d
  mov    (%rdi,%r14,8),%rsi
  mov    -0x48(%rbp),%rdi
  mov    %rsi,%rdx
  not    %rdx
  and    %rdx,(%rdi,%r14,8)
  test   %rsi,%rsi
  je     L99
  add    $0x1,%eax
  mov    $0x100,%ecx
  movslq %eax,%rdi
  jmp    L147
  nop
L145:
  add    %rcx,%rcx
L147:
  test   %rsi,%rcx
  je     L145
  mov    %r10d,-0x4(%r11,%rdi,4)
  mov    %rcx,%rdx
L153:
  mov    %rdx,%r15
  lea    (%rdx,%rdx,1),%rax
  shr    %r15
  or     %r15,%rax
  mov    %rdx,%r15
  or     %rdx,%rax
  shl    $0x7,%r15
  or     %r15,%rax
  mov    %rdx,%r15
  shr    $0x7,%r15
  or     %r15,%rax
  mov    %rdx,%r15
  and    %rsi,%rax
  mov    %rax,%rdx
  cmp    %rax,%r15
  jne    L153
  not    %rax
  mov    %rdx,%r15
  and    %rax,%rsi
  mov    %rdx,%rax
  and    %r9,%r15
  shr    %rax
  and    %r9,%rax
  add    %r15,%rax
  mov    %rax,%r15
  shr    $0x2,%rax
  and    %r8,%rax
  and    %r8,%r15
  add    %rax,%r15
  mov    %r15,%rax
  shr    $0x4,%rax
  add    %r15,%rax
  and    %r13,%rax
  mov    %rax,%r15
  shr    $0x8,%r15
  add    %r15,%rax
  mov    %rax,%r15
  shr    $0x10,%r15
  add    %rax,%r15
  mov    %r15,%rax
  shr    $0x20,%rax
  add    %r15,%rax
  mov    %rdx,%r15
  and    $0x7f,%eax
  xor    $0x1f00,%r15
  mov    %eax,-0x4(%rbx,%rdi,4)
  mov    $0x1,%eax
  test   $0x1f00,%r15d
  je     L137
  mov    %rdx,%r15
  xor    $0xf8000,%r15
  test   $0xf8000,%r15d
  je     L137
  mov    %rdx,%r15
  xor    $0x7c00000,%r15
  test   $0x7c00000,%r15d
  je     L137
  shr    $0x1d,%rdx
  xor    %eax,%eax
  and    $0x1f,%edx
  cmp    $0x1f,%rdx
  sete   %al
L137:
  mov    %eax,-0x4(%r12,%rdi,4)
  mov    %edi,%eax
  add    $0x1,%rdi
  test   %rsi,%rsi
  jne    L147
L99:
  add    $0x1,%r14
  cmp    %r14,-0x50(%rbp)
  jne    L122
  cmp    %eax,-0x60(%rbp)
  je     L106
  mov    -0x48(%rbp),%rbx
  mov    -0x48(%rbp),%rdi
  cmpl   $0x1,-0x5c(%rbp)
  mov    (%rbx),%rbx
  lea    0x8(%rdi),%r12
  je     L83
  mov    -0x5c(%rbp),%ecx
  add    $0x10,%rdi
  mov    %r12,%rdx
  sub    $0x2,%ecx
  mov    %rcx,%rsi
  lea    (%rdi,%rcx,8),%rcx
L123:
  or     (%rdx),%rbx
  add    $0x8,%rdx
  cmp    %rdx,%rcx
  jne    L123
L189:
  mov    -0x68(%rbp),%rcx
  mov    -0x48(%rbp),%r14
  lea    (%rdi,%rsi,8),%r10
  movabs $0x3e0000000,%r13
  movabs $0xfffffe0fffffffff,%r9
  mov    -0x5c(%rbp),%r15d
  lea    (%r12,%rcx,8),%r11
  cs nopw 0x0(%rax,%rax,1)
L20:
  mov    %rbx,%rdi
  mov    %rbx,%r8
  mov    %r14,%rcx
  shr    $0x7,%rdi
  not    %r8
  or     %r13,%rdi
  nopl   0x0(%rax,%rax,1)
L194:
  mov    (%rcx),%rsi
  add    $0x8,%rcx
  mov    %rsi,%rdx
  and    %rdi,%rsi
  shl    $0x7,%rdx
  and    %r8,%rdx
  and    %r9,%rdx
  or     %rsi,%rdx
  mov    %rdx,-0x8(%rcx)
  cmp    %rcx,%r11
  jne    L194
  mov    (%r14),%rcx
  cmp    $0x1,%r15d
  je     L202
  mov    %r12,%rdx
  nopw   0x0(%rax,%rax,1)
L178:
  or     (%rdx),%rcx
  add    $0x8,%rdx
  cmp    %rdx,%r10
  jne    L178
L202:
  cmp    %rcx,%rbx
  je     L106
  mov    %rcx,%rbx
  jmp    L20
L105:
  mov    -0x60(%rbp),%eax
L106:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L46
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L51:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L19
L83:
  mov    $0xffffffff,%esi
  add    $0x10,%rdi
  jmp    L189
L46:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int one_step_small(unsigned long long *color_table, int *color_combo, int *num_drops_combo, int *isLine_combo, int finish, int num_colors) {
  unsigned long long isErase_tables[num_colors];
  int combo_counter = finish;
  int num_c;
  unsigned long long tmp, tmp2;
  for (num_c = 0; num_c < num_colors; num_c++) {
    unsigned long long color = color_table[num_c];
    unsigned long long n, w, s, e;
    n = color >> 7;
    w = color >> 1;
    s = color << 7;
    e = color << 1;
    tmp = (color & n & s);
    tmp = tmp | (tmp >> 7) | (tmp << 7);
    tmp2 = (color & w & e);
    tmp2 = tmp2 | (tmp2 >> 1) | (tmp2 << 1);
    isErase_tables[num_c] = (color & tmp) | (color & tmp2);
  }
  for (num_c = 0; num_c < num_colors; num_c++) {
    unsigned long long isErase_table = isErase_tables[num_c];
    color_table[num_c] = color_table[num_c] & (~isErase_table);
    unsigned long long p = 1L << (7 + 1);
    while (isErase_table) {
      while (!(isErase_table & p)) {
        p = p << 1;
      }
      tmp = p;
      color_combo[combo_counter] = num_c;
      unsigned long long tmp_old;
      do {
        tmp_old = tmp;
        tmp = (tmp | (tmp << 1) | (tmp >> 1) | (tmp << 7) | (tmp >> 7)) & isErase_table;
      } while (tmp_old != tmp);
      isErase_table = isErase_table & (~tmp);
      unsigned long long bits = tmp;
      bits = (bits & 0x5555555555555555LU) + ((bits >> 1) & 0x5555555555555555LU);
      bits = (bits & 0x3333333333333333LU) + ((bits >> 2) & 0x3333333333333333LU);
      bits = (bits + (bits >> 4)) & 0x0F0F0F0F0F0F0F0FLU;
      bits = bits + (bits >> 8);
      bits = bits + (bits >> 16);
      bits = (bits + (bits >> 32)) & 0x0000007F;
      num_drops_combo[combo_counter] = bits;
      isLine_combo[combo_counter] = ((tmp >> (7 + 1)) & 31) == 31 || ((tmp >> (7 * 2 + 1)) & 31) == 31 || ((tmp >> (7 * 3 + 1)) & 31) == 31 || ((tmp >> (7 * 4 + 1)) & 31) == 31;
      combo_counter++;
    }
  }
  if (finish != combo_counter) {
    unsigned long long exist_table = color_table[0];
    for (num_c = 1; num_c < num_colors; num_c++) {
      exist_table = exist_table | color_table[num_c];
    }
    unsigned long long exist_org;
    do {
      exist_org = exist_table;
      unsigned long long exist_u = (exist_table >> 7) | 16642998272L;
      for (num_c = 0; num_c < num_colors; num_c++) {
        unsigned long long color = color_table[num_c];
        unsigned long long color_u = color & exist_u;
        unsigned long long color_d = (color << 7) & (~exist_table) & (~2130303778816L);
        color_table[num_c] = color_u | color_d;
      }
      exist_table = color_table[0];
      for (num_c = 1; num_c < num_colors; num_c++) {
        exist_table = exist_table | color_table[num_c];
      }
    } while (exist_org != exist_table);
  }
  return combo_counter;
}
```