user: Converte this assembly snippet into its equivalent C code:

```asm
<hanoi>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %edi,0x48(%rsp)
  mov    %esi,0x34(%rsp)
  mov    %edx,0x4c(%rsp)
  mov    %ecx,0x38(%rsp)
  test   %edi,%edi
  je     L55
  subl   $0x1,0x48(%rsp)
  lea    D9(%rip),%rbx
  mov    0x48(%rsp),%eax
  je     L142
L85:
  mov    %eax,0x3c(%rsp)
  mov    0x4c(%rsp),%ecx
  subl   $0x1,0x3c(%rsp)
  mov    0x3c(%rsp),%eax
  mov    %ecx,0x24(%rsp)
  mov    0x34(%rsp),%ecx
  mov    %ecx,0x20(%rsp)
  je     L108
L26:
  mov    %eax,0x40(%rsp)
  mov    0x38(%rsp),%ecx
  subl   $0x1,0x40(%rsp)
  mov    0x40(%rsp),%eax
  mov    %ecx,0x2c(%rsp)
  mov    0x20(%rsp),%ecx
  mov    %ecx,0x28(%rsp)
  je     L64
L56:
  mov    0x24(%rsp),%ecx
  mov    0x2c(%rsp),%r15d
  mov    %eax,0x44(%rsp)
  subl   $0x1,0x44(%rsp)
  mov    0x44(%rsp),%eax
  mov    %ecx,0xc(%rsp)
  mov    0x28(%rsp),%ecx
  mov    %ecx,0x30(%rsp)
  je     L80
L136:
  mov    %eax,0x4(%rsp)
  mov    0x30(%rsp),%r14d
  subl   $0x1,0x4(%rsp)
  mov    0x4(%rsp),%eax
  je     L2
L93:
  mov    %eax,0x8(%rsp)
  mov    0xc(%rsp),%r12d
  mov    %r14d,%ebp
  mov    %r14d,0x14(%rsp)
L105:
  subl   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%eax
  je     L110
  mov    %eax,0x10(%rsp)
  mov    %ebp,%r14d
  mov    %r15d,0x18(%rsp)
  mov    %ebp,0x1c(%rsp)
L13:
  subl   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%r13d
  je     L24
  mov    %r14d,0x54(%rsp)
  mov    %r14d,%ebp
  mov    %r15d,%r14d
  mov    %r12d,%r15d
  mov    %r12d,0x50(%rsp)
  sub    $0x1,%r13d
  je     L171
L157:
  mov    %r14d,%r9d
  mov    %ebp,%r12d
  mov    %r13d,%r8d
L15:
  sub    $0x1,%r8d
  mov    %r9d,%edx
  mov    %r15d,%ecx
  mov    %r12d,%esi
  mov    %r8d,%edi
  mov    %r9d,0x5c(%rsp)
  mov    %r8d,0x58(%rsp)
  call   <hanoi>
  mov    %r15d,%edx
  mov    %r12d,%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    0x58(%rsp),%r8d
  mov    0x5c(%rsp),%eax
  mov    %r12d,%r9d
  test   %r8d,%r8d
  je     L116
  mov    %eax,%r12d
  jmp    L15
L110:
  mov    0x14(%rsp),%r14d
  mov    %r15d,%edx
  mov    %ebp,%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    0xc(%rsp),%edx
  mov    %rbx,%rdi
  mov    %r14d,%esi
  call   <printf@plt>
  subl   $0x1,0x4(%rsp)
  mov    %r14d,%eax
  mov    %r15d,%r14d
  mov    %eax,%r15d
  mov    0x4(%rsp),%eax
  jne    L93
L2:
  mov    0xc(%rsp),%r15d
  mov    %r14d,%esi
  mov    %rbx,%rdi
  mov    %r15d,%edx
  call   <printf@plt>
  mov    0x30(%rsp),%r14d
  mov    0x2c(%rsp),%edx
  mov    %rbx,%rdi
  mov    %r14d,%esi
  call   <printf@plt>
  subl   $0x1,0x44(%rsp)
  mov    0x44(%rsp),%eax
  mov    %r15d,0x30(%rsp)
  mov    0x2c(%rsp),%r15d
  mov    %r14d,0xc(%rsp)
  jne    L136
L80:
  mov    0x30(%rsp),%esi
  mov    %r15d,%edx
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    0x28(%rsp),%r14d
  mov    0x24(%rsp),%edx
  mov    %rbx,%rdi
  mov    %r14d,%esi
  call   <printf@plt>
  subl   $0x1,0x40(%rsp)
  mov    0x40(%rsp),%eax
  mov    %r15d,0x28(%rsp)
  mov    %r14d,0x2c(%rsp)
  jne    L56
L64:
  mov    0x24(%rsp),%r14d
  mov    0x28(%rsp),%esi
  mov    %rbx,%rdi
  mov    %r14d,%edx
  call   <printf@plt>
  mov    0x20(%rsp),%r15d
  mov    0x38(%rsp),%edx
  mov    %rbx,%rdi
  mov    %r15d,%esi
  call   <printf@plt>
  subl   $0x1,0x3c(%rsp)
  mov    0x3c(%rsp),%eax
  mov    %r14d,0x20(%rsp)
  mov    %r15d,0x24(%rsp)
  jne    L26
L108:
  mov    0x38(%rsp),%r15d
  mov    0x20(%rsp),%esi
  mov    %rbx,%rdi
  mov    %r15d,%edx
  call   <printf@plt>
  mov    0x34(%rsp),%r14d
  mov    0x4c(%rsp),%edx
  mov    %rbx,%rdi
  mov    %r14d,%esi
  call   <printf@plt>
  subl   $0x1,0x48(%rsp)
  mov    0x48(%rsp),%eax
  mov    %r15d,0x34(%rsp)
  mov    %r14d,0x38(%rsp)
  jne    L85
L142:
  mov    0x4c(%rsp),%edx
  mov    0x34(%rsp),%esi
  add    $0x68,%rsp
  mov    %rbx,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <printf@plt>
  nopl   (%rax)
L24:
  mov    0x1c(%rsp),%ebp
  mov    0x18(%rsp),%r15d
  mov    %r12d,%edx
  mov    %r14d,%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %ebp,%esi
  mov    %r15d,%edx
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %ebp,%eax
  mov    %r12d,%ebp
  mov    %eax,%r12d
  jmp    L105
  nopl   0x0(%rax)
L116:
  mov    %ebp,%esi
  mov    %r14d,%edx
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %ebp,%eax
  mov    %r15d,%ebp
  mov    %eax,%r15d
  sub    $0x1,%r13d
  jne    L157
L171:
  mov    %r14d,%r15d
  mov    0x50(%rsp),%r12d
  mov    0x54(%rsp),%r14d
  mov    %ebp,%esi
  mov    %r15d,%edx
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %r14d,%esi
  mov    %r12d,%edx
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %r14d,%eax
  mov    %r15d,%r14d
  mov    %eax,%r15d
  jmp    L13
L55:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: data_label: D9
type: string

tool: D9: Move the top disk from tile %2d to tile %2d


assistant: ```c
void hanoi(int n, int a, int b, int c) {
  if (n == 0)
    return;
  hanoi(n - 1, a, c, b);
  printf("Move the top disk from tile %2d to tile %2d\n", a, b);
  hanoi(n - 1, c, b, a);
}
```