user: Please show me the C implementation that matches the assembly code listed below:

```asm
<towerOfHanoi>:
  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
  jle    L175
  subl   $0x1,0x48(%rsp)
  lea    D5(%rip),%rbx
  mov    0x48(%rsp),%eax
  je     L108
L6:
  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     L178
L36:
  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     L109
L163:
  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     L164
L44:
  mov    %eax,0x4(%rsp)
  mov    0x30(%rsp),%r14d
  subl   $0x1,0x4(%rsp)
  mov    0x4(%rsp),%eax
  je     L55
L59:
  mov    %eax,0x8(%rsp)
  mov    0xc(%rsp),%r12d
  mov    %r14d,%ebp
  mov    %r14d,0x14(%rsp)
L146:
  subl   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%eax
  je     L66
  mov    %eax,0x10(%rsp)
  mov    %ebp,%r14d
  mov    %r15d,0x18(%rsp)
  mov    %ebp,0x1c(%rsp)
L170:
  subl   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%r13d
  je     L161
  mov    %r14d,0x54(%rsp)
  mov    %r14d,%ebp
  mov    %r15d,%r14d
  mov    %r12d,%r15d
  mov    %r12d,0x50(%rsp)
  sub    $0x1,%r13d
  je     L118
L149:
  mov    %r14d,%r9d
  mov    %ebp,%r12d
  mov    %r13d,%r8d
L142:
  sub    $0x1,%r8d
  mov    %r9d,%edx
  mov    %r15d,%ecx
  mov    %r12d,%esi
  mov    %r8d,%edi
  mov    %r9d,0x5c(%rsp)
  mov    %r8d,0x58(%rsp)
  call   <towerOfHanoi>
  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     L31
  mov    %eax,%r12d
  jmp    L142
L66:
  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    L59
L55:
  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    L44
L164:
  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    L163
L109:
  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    L36
L178:
  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    L6
L108:
  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)
L161:
  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    L146
  nopl   0x0(%rax)
L31:
  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    L149
L118:
  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    L170
L175:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D5
type_infered: string

tool: D5: %d --> %d


assistant: ```c
void towerOfHanoi(int numDisks, int startPeg, int endPeg, int tempPeg) {
  if (numDisks > 0) {
    towerOfHanoi(numDisks - 1, startPeg, tempPeg, endPeg);
    printf("%d --> %d\n", startPeg, endPeg);
    towerOfHanoi(numDisks - 1, tempPeg, endPeg, startPeg);
  }
}
```