user: What would the C source look like for the assembly code provided here:

```asm
<test>:
  endbr64
  push   %r15
  movslq %edi,%rax
  push   %r14
  mov    %rax,%rsi
  push   %r13
  mov    %esi,%edx
  push   %r12
  sar    $0x1f,%edx
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %eax,0x2c(%rsp)
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  sub    %edx,%eax
  mov    %eax,0x10(%rsp)
  cmp    $0x4,%esi
  jle    L210
  lea    -0x5(%rsi),%r13d
  mov    $0xaaaaaaab,%eax
  xor    %ebp,%ebp
  mov    $0x3,%r12d
  imul   %rax,%r13
  shr    $0x21,%r13
  test   %ebp,%ebp
  je     L170
L267:
  lea    -0x2(%r12),%ebx
  cmp    %ebx,%r12d
  jl     L542
L627:
  mov    $0x1,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %ebx,%edi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <hash@plt>
  mov    %ebp,%edi
  xor    %eax,%eax
  call   <hash@plt>
  cmp    %r12d,%ebx
  jle    L627
L542:
  lea    0x1(%rbp),%eax
  add    $0x3,%r12d
  cmp    %r13d,%ebp
  je     L362
  mov    %eax,%ebp
  test   %ebp,%ebp
  jne    L267
L170:
  mov    $0x1,%ebx
  jmp    L627
L210:
  cmpl   $0x1,0x2c(%rsp)
  je     L388
  lea    -0x1(%rsi),%r12d
  jle    L472
L475:
  mov    $0x1,%edi
  xor    %eax,%eax
  mov    $0x5,%ebp
  mov    $0x1,%ebx
  call   <hash@plt>
  mov    $0x1,%edi
  xor    %eax,%eax
  mov    $0xfffffffe,%r14d
  call   <hash@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    0x2c(%rsp),%edx
  mov    $0x4,%eax
  sub    %edx,%eax
  sub    %edx,%ebp
  lea    -0x1(%rdx),%r12d
  cmp    %eax,%edx
  mov    $0x2,%eax
  mov    %r12d,%r13d
  cmovle %eax,%ebp
  test   %ebp,%ebp
  jg     L566
L586:
  mov    $0x1,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    $0x2,%edi
  xor    %eax,%eax
  call   <hash@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <hash@plt>
  cmpl   $0x2,0x2c(%rsp)
  jle    L641
  mov    $0x1,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    $0x3,%edi
  xor    %eax,%eax
  call   <hash@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <hash@plt>
L641:
  mov    0x2c(%rsp),%eax
  mov    $0x5,%r13d
  sub    %eax,%r13d
  cmp    %eax,%r13d
  cmovg  %eax,%r13d
  test   %r13d,%r13d
  jle    L99
  mov    $0x1,%ebp
  mov    $0xfffffffe,%r15d
L117:
  add    $0x1,%ebp
  mov    %r12d,%r14d
  mov    $0x1,%ebx
  jmp    L433
L241:
  add    $0x1,%ebx
  add    $0x1,%r14d
  cmp    %r13d,%ebx
  jg     L367
  nopl   0x0(%rax,%rax,1)
L433:
  movslq %r14d,%rdx
  mov    %r14d,%eax
  imul   $0x55555556,%rdx,%rdx
  sar    $0x1f,%eax
  shr    $0x20,%rdx
  sub    %edx,%eax
  mov    %r15d,%edx
  sub    %r14d,%edx
  cmp    $0xfffffffc,%edx
  mov    $0x0,%edx
  cmovge %edx,%eax
  test   %eax,%eax
  jne    L241
  cmp    $0x3,%ebx
  je     L241
  cmpl   $0x2,0x2c(%rsp)
  jg     L241
  mov    $0x2,%edi
  xor    %eax,%eax
  add    $0x1,%r14d
  call   <hash@plt>
  mov    %ebp,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %ebx,%edi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <hash@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <hash@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <hash@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <hash@plt>
  cmp    %r13d,%ebx
  jle    L433
L367:
  cmp    %ebp,0x2c(%rsp)
  jg     L117
L99:
  cmpl   $0x3,0x2c(%rsp)
  jle    L472
  cmpl   $0x4,0x2c(%rsp)
  je     L472
L503:
  mov    0x2c(%rsp),%eax
  lea    -0x2(%rax),%edx
  mov    $0xaaaaaaab,%eax
  imul   %rax,%rdx
  shr    $0x21,%rdx
L137:
  mov    0x2c(%rsp),%ebx
  mov    $0x3,%eax
  movslq %r12d,%rcx
  sar    $0x1f,%r12d
  imul   $0x55555556,%rcx,%rcx
  sub    %ebx,%eax
  movslq %eax,%rsi
  sar    $0x1f,%eax
  imul   $0x55555556,%rsi,%rsi
  shr    $0x20,%rcx
  sub    %r12d,%ecx
  shr    $0x20,%rsi
  sub    %esi,%eax
  test   %ebx,%ebx
  mov    %ebx,%esi
  cmovg  %ecx,%eax
  mov    %eax,0x44(%rsp)
  mov    %eax,%ebx
  mov    $0x2,%eax
  sub    %esi,%eax
  movslq %eax,%rcx
  sar    $0x1f,%eax
  imul   $0x55555556,%rcx,%rcx
  shr    $0x20,%rcx
  sub    %ecx,%eax
  mov    0x10(%rsp),%ecx
  cmp    $0x1,%esi
  mov    %ecx,%edi
  cmovle %eax,%edi
  test   %esi,%esi
  cmovns %ecx,%eax
  mov    %edi,0x28(%rsp)
  mov    %eax,0x30(%rsp)
  cmp    %edx,%ebx
  jl     L295
  lea    (%rdx,%rdx,2),%eax
  mov    %edx,0x14(%rsp)
  mov    %eax,0x38(%rsp)
  mov    $0x5,%eax
  sub    %esi,%eax
  mov    %eax,0x3c(%rsp)
L496:
  mov    0x3c(%rsp),%eax
  mov    0x38(%rsp),%edx
  add    %edx,%eax
  mov    %eax,0x24(%rsp)
  test   %eax,%eax
  jle    L174
  mov    0x2c(%rsp),%ecx
  mov    $0x1,%r15d
  mov    %ecx,%eax
  sub    %edx,%eax
  mov    %eax,0x18(%rsp)
  mov    %edx,%eax
  sub    %ecx,%eax
  sub    $0x1,%eax
  mov    %eax,0xc(%rsp)
  lea    -0x1(%rdx),%eax
  mov    %eax,0x20(%rsp)
L147:
  mov    0x18(%rsp),%eax
  mov    0x14(%rsp),%r12d
  lea    -0x1(%rax),%edx
  movslq %edx,%rax
  sar    $0x1f,%edx
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  sub    %eax,%edx
  mov    0x20(%rsp),%eax
  mov    %edx,0x1c(%rsp)
  lea    0x2(%rax),%r14d
  cs nopw 0x0(%rax,%rax,1)
L471:
  mov    0x14(%rsp),%r13d
  xor    %eax,%eax
  sub    %r12d,%r13d
  cmpl   $0xfffffffc,0xc(%rsp)
  jge    L517
  cmpl   $0x3,0x18(%rsp)
  cmovg  0x1c(%rsp),%eax
L517:
  cmp    %r13d,%eax
  jl     L538
  mov    %r14d,%edx
  sub    $0x2,%edx
  js     L598
  mov    %r14d,%ebx
  mov    $0xaaaaaaab,%eax
  imul   %rax,%rbx
  shr    $0x21,%rbx
L196:
  mov    0x28(%rsp),%eax
  mov    %r14d,%ecx
  cmp    %eax,%ebx
  cmovl  %eax,%ebx
  movslq %r14d,%rax
  sar    $0x1f,%ecx
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  mov    %eax,%ebp
  mov    $0x2,%eax
  sub    %r14d,%eax
  sub    %ecx,%ebp
  movslq %eax,%rcx
  sar    $0x1f,%eax
  imul   $0x55555556,%rcx,%rcx
  shr    $0x20,%rcx
  sub    %ecx,%eax
  cmp    $0xfffffffe,%edx
  cmovl  %eax,%ebp
  mov    0x30(%rsp),%eax
  cmp    %eax,%ebp
  cmovg  %eax,%ebp
  cmp    %ebx,%ebp
  jl     L221
  nop
L319:
  mov    $0x2,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    $0x1,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %r15d,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %r13d,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %ebx,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %r12d,%edi
  xor    %eax,%eax
  sub    %ebx,%edi
  add    $0x1,%ebx
  call   <hash@plt>
  cmp    %ebx,%ebp
  jge    L319
L221:
  sub    $0x1,%r12d
  sub    $0x3,%r14d
  jmp    L471
L607:
  cmpl   $0x2,0x2c(%rsp)
  jg     L680
  mov    $0x2,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    $0x1,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %ebx,%edi
  xor    %eax,%eax
  call   <hash@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <hash@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <hash@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <hash@plt>
L680:
  add    $0x1,%ebx
  add    $0x1,%r13d
  cmp    %ebx,%ebp
  jl     L586
L566:
  movslq %r13d,%rdx
  mov    %r13d,%eax
  imul   $0x55555556,%rdx,%rdx
  sar    $0x1f,%eax
  shr    $0x20,%rdx
  sub    %edx,%eax
  mov    %r14d,%edx
  sub    %r13d,%edx
  cmp    $0xfffffffc,%edx
  mov    $0x0,%edx
  cmovge %edx,%eax
  test   %eax,%eax
  jne    L680
  cmp    $0x3,%ebx
  je     L680
  jmp    L607
L598:
  mov    $0x2,%ebx
  sub    %r14d,%ebx
  movslq %ebx,%rax
  sar    $0x1f,%ebx
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  sub    %eax,%ebx
  jmp    L196
L538:
  addl   $0x1,0x18(%rsp)
  add    $0x1,%r15d
  subl   $0x1,0xc(%rsp)
  subl   $0x1,0x20(%rsp)
  cmp    0x24(%rsp),%r15d
  jle    L147
L174:
  mov    0x38(%rsp),%eax
  mov    0x2c(%rsp),%ebp
  lea    0x1(%rax),%ebx
  add    $0x3,%eax
  cmp    %ebp,%eax
  mov    %eax,0x38(%rsp)
  cmovle %eax,%ebp
  cmp    %ebx,%ebp
  jl     L274
L152:
  mov    $0x1,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %ebx,%edi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <hash@plt>
  mov    0x14(%rsp),%edi
  xor    %eax,%eax
  call   <hash@plt>
  cmp    %ebx,%ebp
  jge    L152
L274:
  cmpl   $0x1,0x2c(%rsp)
  jle    L89
  mov    0x24(%rsp),%ecx
  test   %ecx,%ecx
  jle    L89
  mov    0x2c(%rsp),%ecx
  mov    0x14(%rsp),%eax
  mov    $0x1,%r15d
  lea    (%rax,%rax,2),%eax
  mov    %ecx,%edx
  sub    %eax,%edx
  mov    %edx,0x40(%rsp)
  mov    %eax,%edx
  sub    %ecx,%edx
  lea    -0x1(%rdx),%esi
  lea    -0x1(%rax),%edx
  add    0x3c(%rsp),%eax
  mov    %esi,0x4c(%rsp)
  mov    %edx,0x48(%rsp)
  mov    %eax,0x34(%rsp)
L450:
  mov    0x48(%rsp),%eax
  add    $0x1,%r15d
  mov    $0x1,%r14d
  mov    %eax,0x24(%rsp)
  mov    0x4c(%rsp),%eax
  mov    %eax,0x18(%rsp)
  mov    0x40(%rsp),%eax
  mov    %eax,0x1c(%rsp)
  nopl   0x0(%rax,%rax,1)
L277:
  mov    0x1c(%rsp),%eax
  mov    0x14(%rsp),%r12d
  lea    -0x1(%rax),%edx
  movslq %edx,%rax
  sar    $0x1f,%edx
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  sub    %eax,%edx
  mov    0x24(%rsp),%eax
  mov    %edx,0x20(%rsp)
  add    $0x2,%eax
  mov    %eax,0xc(%rsp)
  xchg   %ax,%ax
L244:
  mov    0x14(%rsp),%r13d
  xor    %eax,%eax
  sub    %r12d,%r13d
  cmpl   $0xfffffffc,0x18(%rsp)
  jge    L431
  cmpl   $0x3,0x1c(%rsp)
  cmovg  0x20(%rsp),%eax
L431:
  cmp    %r13d,%eax
  jl     L254
  mov    0xc(%rsp),%eax
  mov    %eax,%edx
  sub    $0x2,%edx
  js     L520
  mov    0xc(%rsp),%ebx
  mov    $0xaaaaaaab,%eax
  imul   %rax,%rbx
  shr    $0x21,%rbx
L253:
  mov    0x10(%rsp),%esi
  mov    0xc(%rsp),%ecx
  cmp    %esi,%ebx
  movslq %ecx,%rbp
  cmovl  %esi,%ebx
  mov    %rbp,%rax
  imul   $0x55555556,%rbp,%rbp
  sar    $0x1f,%eax
  shr    $0x20,%rbp
  sub    %eax,%ebp
  mov    $0x2,%eax
  sub    %ecx,%eax
  movslq %eax,%rcx
  sar    $0x1f,%eax
  imul   $0x55555556,%rcx,%rcx
  shr    $0x20,%rcx
  sub    %ecx,%eax
  cmp    $0xfffffffe,%edx
  cmovl  %eax,%ebp
  cmp    %esi,%ebp
  cmovg  %esi,%ebp
  cmp    %ebx,%ebp
  jl     L404
L488:
  mov    $0x2,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %r15d,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %r14d,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %r13d,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %ebx,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %r12d,%edi
  xor    %eax,%eax
  sub    %ebx,%edi
  add    $0x1,%ebx
  call   <hash@plt>
  cmp    %ebx,%ebp
  jge    L488
L404:
  subl   $0x3,0xc(%rsp)
  sub    $0x1,%r12d
  jmp    L244
  nopl   0x0(%rax)
L520:
  mov    $0x2,%ebx
  sub    %eax,%ebx
  movslq %ebx,%rax
  sar    $0x1f,%ebx
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  sub    %eax,%ebx
  jmp    L253
  nopw   0x0(%rax,%rax,1)
L254:
  addl   $0x1,0x1c(%rsp)
  add    $0x1,%r14d
  subl   $0x1,0x18(%rsp)
  subl   $0x1,0x24(%rsp)
  cmp    0x34(%rsp),%r14d
  jle    L277
  cmp    %r15d,0x2c(%rsp)
  jne    L450
L89:
  addl   $0x1,0x14(%rsp)
  mov    0x14(%rsp),%eax
  cmp    %eax,0x44(%rsp)
  jge    L496
L295:
  mov    0x2c(%rsp),%edx
  test   %edx,%edx
  jle    L602
L325:
  mov    0x2c(%rsp),%esi
  mov    $0xaaaaaaab,%edx
  lea    0x2(%rsi),%eax
  imul   %rdx,%rax
  shr    $0x21,%rax
  mov    %eax,0x18(%rsp)
  mov    %rax,%rcx
  lea    0x1(%rsi,%rsi,1),%eax
  imul   %rdx,%rax
  shr    $0x21,%rax
  cmp    %ecx,%eax
  jl     L602
  xor    %edx,%edx
  cmp    $0x1,%esi
  cmovne 0x10(%rsp),%edx
  add    $0x1,%eax
  mov    %eax,0x40(%rsp)
  mov    %edx,0x1c(%rsp)
  lea    (%rcx,%rcx,2),%edx
  sub    %esi,%edx
  mov    %edx,0x38(%rsp)
L178:
  mov    0x38(%rsp),%esi
  mov    0x2c(%rsp),%ebx
  mov    $0x2,%eax
  mov    %esi,%edx
  lea    0x4(%rsi),%ecx
  add    %ebx,%edx
  cmp    %eax,%esi
  cmovge %esi,%eax
  cmp    %ebx,%ecx
  lea    -0x1(%rax),%edi
  lea    0x5(%rsi),%eax
  cmovge %ebx,%eax
  sub    %edi,%edx
  mov    %edi,0x3c(%rsp)
  xor    %r14d,%r14d
  mov    %edx,0x44(%rsp)
  mov    %eax,0x34(%rsp)
  mov    0x18(%rsp),%eax
  lea    (%rax,%rax,2),%eax
  mov    %eax,0x30(%rsp)
L554:
  mov    0x3c(%rsp),%esi
  add    $0x1,%r14d
  cmp    %esi,0x34(%rsp)
  jl     L524
  mov    0x44(%rsp),%eax
  mov    %eax,%edx
  sub    0x2c(%rsp),%edx
  mov    %eax,0x28(%rsp)
  mov    %edx,0x14(%rsp)
L436:
  mov    0x14(%rsp),%eax
  mov    0x30(%rsp),%r15d
  xor    %edx,%edx
  sub    0x28(%rsp),%r15d
  test   %eax,%eax
  js     L379
  je     L379
  mov    0x14(%rsp),%eax
  lea    0x2(%rax),%edx
  mov    $0xaaaaaaab,%eax
  imul   %rax,%rdx
  shr    $0x21,%rdx
L379:
  mov    0x14(%rsp),%esi
  mov    $0xfffffffe,%ecx
  mov    0x18(%rsp),%r12d
  sub    %esi,%ecx
  sub    %edx,%r12d
  lea    (%rdx,%rdx,2),%edx
  not    %esi
  movslq %ecx,%rax
  sar    $0x1f,%ecx
  mov    %esi,0x20(%rsp)
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  sub    %eax,%ecx
  mov    0x28(%rsp),%eax
  mov    %ecx,0x24(%rsp)
  sub    %edx,%eax
  add    $0x2,%eax
  mov    %eax,0xc(%rsp)
  nopl   0x0(%rax,%rax,1)
L484:
  mov    0x18(%rsp),%r13d
  xor    %eax,%eax
  sub    %r12d,%r13d
  cmpl   $0xfffffffc,0x14(%rsp)
  jge    L581
  cmpl   $0x4,0x20(%rsp)
  cmovge 0x24(%rsp),%eax
L581:
  cmp    %r13d,%eax
  jl     L373
  mov    0xc(%rsp),%esi
  mov    %esi,%eax
  sub    $0x2,%eax
  js     L582
  mov    0xc(%rsp),%ebx
  mov    $0xaaaaaaab,%esi
  imul   %rsi,%rbx
  shr    $0x21,%rbx
L451:
  mov    0x1c(%rsp),%ecx
  cmp    %ecx,%ebx
  cmovl  %ecx,%ebx
  mov    0xc(%rsp),%ecx
  movslq %ecx,%rbp
  mov    %rbp,%rdx
  imul   $0x55555556,%rbp,%rbp
  sar    $0x1f,%edx
  shr    $0x20,%rbp
  sub    %edx,%ebp
  mov    $0x2,%edx
  sub    %ecx,%edx
  movslq %edx,%rcx
  sar    $0x1f,%edx
  imul   $0x55555556,%rcx,%rcx
  shr    $0x20,%rcx
  sub    %ecx,%edx
  cmp    $0xfffffffe,%eax
  mov    0x10(%rsp),%eax
  cmovl  %edx,%ebp
  cmp    %eax,%ebp
  cmovg  %eax,%ebp
  cmp    %ebx,%ebp
  jl     L573
  nopl   0x0(%rax)
L672:
  mov    $0x2,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %r14d,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %r15d,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %r13d,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %ebx,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    %r12d,%edi
  xor    %eax,%eax
  sub    %ebx,%edi
  add    $0x1,%ebx
  call   <hash@plt>
  cmp    %ebx,%ebp
  jge    L672
L573:
  subl   $0x3,0xc(%rsp)
  sub    $0x1,%r12d
  jmp    L484
  nopl   0x0(%rax)
L582:
  mov    $0x2,%ebx
  sub    %esi,%ebx
  movslq %ebx,%rdx
  sar    $0x1f,%ebx
  imul   $0x55555556,%rdx,%rdx
  shr    $0x20,%rdx
  sub    %edx,%ebx
  jmp    L451
L373:
  subl   $0x1,0x28(%rsp)
  mov    0x30(%rsp),%esi
  mov    0x28(%rsp),%eax
  subl   $0x1,0x14(%rsp)
  sub    %eax,%esi
  cmp    %esi,0x34(%rsp)
  jge    L436
L524:
  cmp    %r14d,0x2c(%rsp)
  jne    L554
  addl   $0x1,0x18(%rsp)
  mov    0x18(%rsp),%eax
  addl   $0x3,0x38(%rsp)
  cmp    0x40(%rsp),%eax
  jne    L178
L602:
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L472:
  mov    $0x1,%edx
  jmp    L137
L388:
  mov    $0x1,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    $0x1,%edi
  xor    %eax,%eax
  call   <hash@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    $0x2,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    $0x1,%edi
  xor    %eax,%eax
  call   <hash@plt>
  mov    $0x1,%edi
  xor    %eax,%eax
  call   <hash@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <hash@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <hash@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <hash@plt>
  jmp    L325
L362:
  mov    0x2c(%rsp),%eax
  cmp    $0x4,%eax
  jbe    L475
  lea    -0x1(%rax),%r12d
  jmp    L503
```

assistant: ```c
void test(int n) {
  int c1, c2;
  int i, j, k, p, q;
  for (c1 = 0; c1 <= (((n - 5) < 0) ? -((-(n - 5) + (3) - 1) / (3)) : (n - 5) / (3)); c1++) {
    for (i = ((3 * c1 + 1) > (1) ? (3 * c1 + 1) : (1)); i <= 3 * c1 + 3; i++) {
      {
        hash(1);
        hash(i);
        hash(c1);
      };
    }
  }
  if (n == 1) {
    {
      hash(1);
      hash(1);
      hash(0);
    };
    for (k = 0; k <= ((0) < (0) ? (0) : (0)); k++) {
      for (p = ((0) > ((((-3 * k - 1) < 0) ? -((-(-3 * k - 1)) / (3)) : ((-3 * k - 1) + (3) - 1) / (3))) ? (0) : ((((-3 * k - 1) < 0) ? -((-(-3 * k - 1)) / (3)) : ((-3 * k - 1) + (3) - 1) / (3)))); p <= (((((-3 * k + 1) < 0) ? -((-(-3 * k + 1) + (3) - 1) / (3)) : (-3 * k + 1) / (3))) < (0) ? ((((-3 * k + 1) < 0) ? -((-(-3 * k + 1) + (3) - 1) / (3)) : (-3 * k + 1) / (3))) : (0)); p++) {
        q = -k - p;
        {
          hash(2);
          hash(1);
          hash(1);
          hash(k);
          hash(p);
          hash(-k - p);
        };
      }
    }
  }
  if (n >= 2) {
    for (c1 = ((0) > ((((n - 4) < 0) ? -((-(n - 4)) / (3)) : ((n - 4) + (3) - 1) / (3))) ? (0) : ((((n - 4) < 0) ? -((-(n - 4)) / (3)) : ((n - 4) + (3) - 1) / (3)))); c1 <= 0; c1++) {
      {
        hash(1);
        hash(1);
        hash(c1);
      };
      for (j = 1; j <= ((n) < (3 * c1 - n + 5) ? (n) : (3 * c1 - n + 5)); j++) {
        for (k = 0; k <= (((3 * c1 - j - n + 4) < 0) ? -((-(3 * c1 - j - n + 4) + (3) - 1) / (3)) : (3 * c1 - j - n + 4) / (3)); k++) {
          for (p = (((n - 2) < 0) ? -((-(n - 2)) / (3)) : ((n - 2) + (3) - 1) / (3)); p <= (((3 * c1 - j - 3 * k + 2) < 0) ? -((-(3 * c1 - j - 3 * k + 2) + (3) - 1) / (3)) : (3 * c1 - j - 3 * k + 2) / (3)); p++) {
            q = c1 - k - p;
            {
              hash(2);
              hash(1);
              hash(j);
              hash(k);
              hash(p);
              hash(c1 - k - p);
            };
          }
        }
      }
      for (i = 2; i <= ((n) < (3 * c1 + 3) ? (n) : (3 * c1 + 3)); i++) {
        {
          hash(1);
          hash(i);
          hash(c1);
        };
      }
      for (c2 = 1; c2 <= n - 1; c2++) {
        i = c2 + 1;
        for (j = 1; j <= ((3 * c1 - n + 5) < (n) ? (3 * c1 - n + 5) : (n)); j++) {
          for (k = 0; k <= (((3 * c1 - j - n + 4) < 0) ? -((-(3 * c1 - j - n + 4) + (3) - 1) / (3)) : (3 * c1 - j - n + 4) / (3)); k++) {
            for (p = (((n - 2) < 0) ? -((-(n - 2)) / (3)) : ((n - 2) + (3) - 1) / (3)); p <= (((3 * c1 - j - 3 * k + 2) < 0) ? -((-(3 * c1 - j - 3 * k + 2) + (3) - 1) / (3)) : (3 * c1 - j - 3 * k + 2) / (3)); p++) {
              q = c1 - k - p;
              {
                hash(2);
                hash(c2 + 1);
                hash(j);
                hash(k);
                hash(p);
                hash(c1 - k - p);
              };
            }
          }
        }
      }
    }
  }
  for (c1 = ((1) > ((((n - 4) < 0) ? -((-(n - 4)) / (3)) : ((n - 4) + (3) - 1) / (3))) ? (1) : ((((n - 4) < 0) ? -((-(n - 4)) / (3)) : ((n - 4) + (3) - 1) / (3)))); c1 <= (((n - 1) < 0) ? -((-(n - 1) + (3) - 1) / (3)) : (n - 1) / (3)); c1++) {
    for (j = 1; j <= 3 * c1 - n + 5; j++) {
      for (k = 0; k <= (((((3 * c1 - j - n + 4) < 0) ? -((-(3 * c1 - j - n + 4) + (3) - 1) / (3)) : (3 * c1 - j - n + 4) / (3))) < (0) ? ((((3 * c1 - j - n + 4) < 0) ? -((-(3 * c1 - j - n + 4) + (3) - 1) / (3)) : (3 * c1 - j - n + 4) / (3))) : (0)); k++) {
        for (p = (((((n - 2) < 0) ? -((-(n - 2)) / (3)) : ((n - 2) + (3) - 1) / (3))) > ((((3 * c1 - j - 3 * k) < 0) ? -((-(3 * c1 - j - 3 * k)) / (3)) : ((3 * c1 - j - 3 * k) + (3) - 1) / (3))) ? ((((n - 2) < 0) ? -((-(n - 2)) / (3)) : ((n - 2) + (3) - 1) / (3))) : ((((3 * c1 - j - 3 * k) < 0) ? -((-(3 * c1 - j - 3 * k)) / (3)) : ((3 * c1 - j - 3 * k) + (3) - 1) / (3)))); p <= (((((3 * c1 - j - 3 * k + 2) < 0) ? -((-(3 * c1 - j - 3 * k + 2) + (3) - 1) / (3)) : (3 * c1 - j - 3 * k + 2) / (3))) < ((((n) < 0) ? -((-(n) + (3) - 1) / (3)) : (n) / (3))) ? ((((3 * c1 - j - 3 * k + 2) < 0) ? -((-(3 * c1 - j - 3 * k + 2) + (3) - 1) / (3)) : (3 * c1 - j - 3 * k + 2) / (3))) : ((((n) < 0) ? -((-(n) + (3) - 1) / (3)) : (n) / (3)))); p++) {
          q = c1 - k - p;
          {
            hash(2);
            hash(1);
            hash(j);
            hash(k);
            hash(p);
            hash(c1 - k - p);
          };
        }
      }
    }
    for (i = 3 * c1 + 1; i <= ((n) < (3 * c1 + 3) ? (n) : (3 * c1 + 3)); i++) {
      {
        hash(1);
        hash(i);
        hash(c1);
      };
    }
    for (c2 = 1; c2 <= n - 1; c2++) {
      i = c2 + 1;
      for (j = 1; j <= 3 * c1 - n + 5; j++) {
        for (k = 0; k <= (((((3 * c1 - j - n + 4) < 0) ? -((-(3 * c1 - j - n + 4) + (3) - 1) / (3)) : (3 * c1 - j - n + 4) / (3))) < (0) ? ((((3 * c1 - j - n + 4) < 0) ? -((-(3 * c1 - j - n + 4) + (3) - 1) / (3)) : (3 * c1 - j - n + 4) / (3))) : (0)); k++) {
          for (p = (((((n - 2) < 0) ? -((-(n - 2)) / (3)) : ((n - 2) + (3) - 1) / (3))) > ((((3 * c1 - j - 3 * k) < 0) ? -((-(3 * c1 - j - 3 * k)) / (3)) : ((3 * c1 - j - 3 * k) + (3) - 1) / (3))) ? ((((n - 2) < 0) ? -((-(n - 2)) / (3)) : ((n - 2) + (3) - 1) / (3))) : ((((3 * c1 - j - 3 * k) < 0) ? -((-(3 * c1 - j - 3 * k)) / (3)) : ((3 * c1 - j - 3 * k) + (3) - 1) / (3)))); p <= (((((3 * c1 - j - 3 * k + 2) < 0) ? -((-(3 * c1 - j - 3 * k + 2) + (3) - 1) / (3)) : (3 * c1 - j - 3 * k + 2) / (3))) < ((((n) < 0) ? -((-(n) + (3) - 1) / (3)) : (n) / (3))) ? ((((3 * c1 - j - 3 * k + 2) < 0) ? -((-(3 * c1 - j - 3 * k + 2) + (3) - 1) / (3)) : (3 * c1 - j - 3 * k + 2) / (3))) : ((((n) < 0) ? -((-(n) + (3) - 1) / (3)) : (n) / (3)))); p++) {
            q = c1 - k - p;
            {
              hash(2);
              hash(c2 + 1);
              hash(j);
              hash(k);
              hash(p);
              hash(c1 - k - p);
            };
          }
        }
      }
    }
  }
  if (n >= 1) {
    for (c1 = (((n) < 0) ? -((-(n)) / (3)) : ((n) + (3) - 1) / (3)); c1 <= (((2 * n + 1) < 0) ? -((-(2 * n + 1) + (3) - 1) / (3)) : (2 * n + 1) / (3)); c1++) {
      for (c2 = 0; c2 <= n - 1; c2++) {
        i = c2 + 1;
        for (j = ((1) > (3 * c1 - n - 1) ? (1) : (3 * c1 - n - 1)); j <= ((n) < (3 * c1 - n + 5) ? (n) : (3 * c1 - n + 5)); j++) {
          for (k = (((((3 * c1 - j - n) < 0) ? -((-(3 * c1 - j - n)) / (3)) : ((3 * c1 - j - n) + (3) - 1) / (3))) > (0) ? ((((3 * c1 - j - n) < 0) ? -((-(3 * c1 - j - n)) / (3)) : ((3 * c1 - j - n) + (3) - 1) / (3))) : (0)); k <= (((((3 * c1 - j - n + 4) < 0) ? -((-(3 * c1 - j - n + 4) + (3) - 1) / (3)) : (3 * c1 - j - n + 4) / (3))) < (0) ? ((((3 * c1 - j - n + 4) < 0) ? -((-(3 * c1 - j - n + 4) + (3) - 1) / (3)) : (3 * c1 - j - n + 4) / (3))) : (0)); k++) {
            for (p = (((((n - 2) < 0) ? -((-(n - 2)) / (3)) : ((n - 2) + (3) - 1) / (3))) > ((((3 * c1 - j - 3 * k) < 0) ? -((-(3 * c1 - j - 3 * k)) / (3)) : ((3 * c1 - j - 3 * k) + (3) - 1) / (3))) ? ((((n - 2) < 0) ? -((-(n - 2)) / (3)) : ((n - 2) + (3) - 1) / (3))) : ((((3 * c1 - j - 3 * k) < 0) ? -((-(3 * c1 - j - 3 * k)) / (3)) : ((3 * c1 - j - 3 * k) + (3) - 1) / (3)))); p <= (((((3 * c1 - j - 3 * k + 2) < 0) ? -((-(3 * c1 - j - 3 * k + 2) + (3) - 1) / (3)) : (3 * c1 - j - 3 * k + 2) / (3))) < ((((n) < 0) ? -((-(n) + (3) - 1) / (3)) : (n) / (3))) ? ((((3 * c1 - j - 3 * k + 2) < 0) ? -((-(3 * c1 - j - 3 * k + 2) + (3) - 1) / (3)) : (3 * c1 - j - 3 * k + 2) / (3))) : ((((n) < 0) ? -((-(n) + (3) - 1) / (3)) : (n) / (3)))); p++) {
              q = c1 - k - p;
              {
                hash(2);
                hash(c2 + 1);
                hash(j);
                hash(k);
                hash(p);
                hash(c1 - k - p);
              };
            }
          }
        }
      }
    }
  }
}
```