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,0x34(%rsp)
  mov    %esi,0x48(%rsp)
  mov    %edx,0x38(%rsp)
  mov    %ecx,0x4c(%rsp)
  test   %ecx,%ecx
  je     L102
  subl   $0x1,0x4c(%rsp)
  lea    D1(%rip),%rbx
  mov    0x4c(%rsp),%eax
  je     L40
L174:
  mov    %eax,0x3c(%rsp)
  mov    0x48(%rsp),%ecx
  subl   $0x1,0x3c(%rsp)
  mov    0x3c(%rsp),%eax
  mov    %ecx,0x24(%rsp)
  mov    0x34(%rsp),%ecx
  mov    %ecx,0x20(%rsp)
  je     L170
L187:
  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     L42
L25:
  mov    %eax,0x44(%rsp)
  mov    0x24(%rsp),%ecx
  subl   $0x1,0x44(%rsp)
  mov    0x44(%rsp),%eax
  mov    %ecx,0xc(%rsp)
  mov    0x28(%rsp),%ecx
  mov    %ecx,0x30(%rsp)
  je     L50
L146:
  mov    0x2c(%rsp),%r13d
  mov    0x30(%rsp),%r15d
  mov    %eax,0x4(%rsp)
  subl   $0x1,0x4(%rsp)
  mov    0xc(%rsp),%r14d
  mov    0x4(%rsp),%eax
  mov    %r13d,%r12d
  je     L60
L62:
  mov    %eax,0x8(%rsp)
  mov    %r15d,%ebp
  mov    %r15d,0x14(%rsp)
L122:
  subl   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%eax
  je     L15
  mov    %eax,0x10(%rsp)
  mov    %r12d,%r13d
  mov    %ebp,0x1c(%rsp)
  mov    %r13d,%r15d
  mov    %r12d,0x18(%rsp)
  mov    %ebp,%r12d
L44:
  subl   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%r13d
  je     L173
  mov    %r14d,%r8d
  mov    %r14d,0x50(%rsp)
  mov    %r12d,%ebp
  mov    %r15d,%r14d
  mov    %r12d,0x54(%rsp)
  mov    %r8d,%r15d
  sub    $0x1,%r13d
  je     L5
L116:
  mov    %r14d,%r9d
  mov    %ebp,%r12d
  mov    %r13d,%ecx
L92:
  sub    $0x1,%ecx
  mov    %r9d,%esi
  mov    %r15d,%edx
  mov    %r12d,%edi
  mov    %ecx,0x5c(%rsp)
  mov    %r9d,0x58(%rsp)
  call   <hanoi>
  mov    %r15d,%edx
  mov    %r12d,%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    0x5c(%rsp),%ecx
  mov    0x58(%rsp),%eax
  mov    %r12d,%r9d
  test   %ecx,%ecx
  je     L129
  mov    %eax,%r12d
  jmp    L92
L15:
  mov    0x14(%rsp),%r15d
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    0xc(%rsp),%edx
  mov    %rbx,%rdi
  mov    %r15d,%esi
  call   <printf@plt>
  subl   $0x1,0x4(%rsp)
  mov    %r15d,%eax
  mov    0xc(%rsp),%r14d
  mov    %r12d,%r15d
  mov    %eax,%r12d
  mov    0x4(%rsp),%eax
  jne    L62
L60:
  mov    %r15d,%esi
  mov    %r14d,%edx
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    0x30(%rsp),%r15d
  mov    0x2c(%rsp),%edx
  mov    %rbx,%rdi
  mov    %r15d,%esi
  call   <printf@plt>
  subl   $0x1,0x44(%rsp)
  mov    0x44(%rsp),%eax
  mov    %r14d,0x30(%rsp)
  mov    %r15d,0xc(%rsp)
  jne    L146
L50:
  mov    0x2c(%rsp),%r14d
  mov    0x30(%rsp),%esi
  mov    %rbx,%rdi
  mov    %r14d,%edx
  call   <printf@plt>
  mov    0x28(%rsp),%r15d
  mov    0x24(%rsp),%edx
  mov    %rbx,%rdi
  mov    %r15d,%esi
  call   <printf@plt>
  subl   $0x1,0x40(%rsp)
  mov    0x40(%rsp),%eax
  mov    %r14d,0x28(%rsp)
  mov    %r15d,0x2c(%rsp)
  jne    L25
L42:
  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    L187
L170:
  mov    0x38(%rsp),%r14d
  mov    0x20(%rsp),%esi
  mov    %rbx,%rdi
  mov    %r14d,%edx
  call   <printf@plt>
  mov    0x34(%rsp),%r15d
  mov    0x48(%rsp),%edx
  mov    %rbx,%rdi
  mov    %r15d,%esi
  call   <printf@plt>
  subl   $0x1,0x4c(%rsp)
  mov    0x4c(%rsp),%eax
  mov    %r14d,0x34(%rsp)
  mov    %r15d,0x38(%rsp)
  jne    L174
L40:
  mov    0x48(%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>
  nopw   0x0(%rax,%rax,1)
L173:
  mov    0x1c(%rsp),%ebp
  mov    %r12d,%r15d
  mov    0x18(%rsp),%r12d
  mov    %r14d,%edx
  mov    %r15d,%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %ebp,%esi
  mov    %r12d,%edx
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %ebp,%eax
  mov    %r14d,%ebp
  mov    %eax,%r14d
  jmp    L122
  nopl   0x0(%rax)
L129:
  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    L116
L5:
  mov    0x54(%rsp),%r12d
  mov    %r14d,%r15d
  mov    0x50(%rsp),%r14d
  mov    %ebp,%esi
  mov    %r15d,%edx
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %r12d,%esi
  mov    %r14d,%edx
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %r12d,%eax
  mov    %r15d,%r12d
  mov    %eax,%r15d
  jmp    L44
L102:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: label: D1
datatype: string

tool: D1: Move from tower %d to %d


assistant: ```c
void hanoi(int source, int target, int auxiliary, int disks) {
  if (disks == 0) {
    return;
  }
  hanoi(source, auxiliary, target, disks - 1);
  printf("Move from tower %d to %d\n", source, target);
  hanoi(auxiliary, target, source, disks - 1);
}
```