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

```asm
<print>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %esi,0x18(%rsp)
  cmp    %ecx,%edx
  jg     L587
  mov    %rdi,%r13
  je     L191
  mov    0x18(%rsp),%ebp
  mov    %ecx,%ebx
  test   %ebp,%ebp
  jne    L719
  movl   $0x1,0xc(%rsp)
  lea    0x1(%rdx),%eax
  test   %ecx,%ecx
  jle    L587
  mov    %ecx,%r15d
  mov    %rdi,%rbx
L491:
  mov    0xc(%rsp),%edi
  mov    %edi,(%rbx)
  cmp    %r15d,%eax
  jg     L308
  je     L572
  add    $0x1,%eax
  mov    0xc(%rsp),%esi
  mov    $0x1,%r14d
  mov    %r15d,%r12d
  mov    %eax,0x1c(%rsp)
  mov    %eax,%ebp
L116:
  mov    %r14d,0x4(%rbx)
  cmp    %ebp,%r12d
  jl     L200
  je     L142
  lea    0x1(%rbp),%eax
  mov    $0x1,%ebp
  mov    %r14d,0x48(%rsp)
  mov    %eax,0x18(%rsp)
  mov    %ebp,%r14d
L602:
  mov    %r14d,0x8(%rbx)
  cmp    %eax,%r12d
  jl     L46
  je     L369
  add    $0x1,%eax
  mov    $0x1,%r13d
  mov    %r14d,0x20(%rsp)
  mov    %eax,0x10(%rsp)
  mov    %eax,%r15d
  mov    %r13d,%r14d
L552:
  mov    %r14d,0xc(%rbx)
  cmp    %r15d,%r12d
  jl     L145
  mov    $0x1,%ebp
  je     L808
L130:
  mov    %ebp,0x10(%rbx)
  lea    0x0(%rbp,%r15,1),%edx
  mov    %r12d,%ecx
  mov    $0x5,%esi
  mov    %rbx,%rdi
  add    $0x1,%ebp
  call   <print>
  cmp    0xc(%rbx),%ebp
  jle    L130
L145:
  add    $0x1,%r14d
  add    $0x1,%r15d
  cmp    0x8(%rbx),%r14d
  jle    L552
  mov    0x20(%rsp),%r14d
L609:
  mov    0x10(%rsp),%eax
  add    $0x1,%r14d
  cmp    0x4(%rbx),%r14d
  jle    L602
  mov    0x48(%rsp),%r14d
L112:
  mov    (%rbx),%esi
  add    $0x1,%r14d
  mov    0x18(%rsp),%ebp
  cmp    %esi,%r14d
  jle    L116
  mov    %r12d,%r15d
L203:
  addl   $0x1,0xc(%rsp)
  mov    0xc(%rsp),%ecx
  mov    0x1c(%rsp),%eax
  cmp    %ecx,%r15d
  jge    L491
L587:
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L719:
  movslq 0x18(%rsp),%rax
  mov    %rax,%rcx
  shl    $0x2,%rax
  lea    -0x4(%rdi,%rax,1),%rdi
  mov    (%rdi),%r11d
  mov    %rdi,0x28(%rsp)
  test   %r11d,%r11d
  jle    L587
  lea    0x4(%rax),%rdi
  add    %r13,%rax
  lea    0x1(%rdx),%r12d
  mov    %ebx,%r14d
  mov    %rdi,0x58(%rsp)
  lea    0x2(%rcx),%edi
  lea    0x1(%rcx),%esi
  mov    %r13,%r15
  mov    %rax,0x10(%rsp)
  movslq %edi,%rax
  mov    %edi,%edx
  shl    $0x2,%rax
  mov    %edi,0x50(%rsp)
  mov    %rax,0x60(%rsp)
  lea    -0x4(%r13,%rax,1),%rax
  mov    %rax,0x20(%rsp)
  lea    0x3(%rcx),%eax
  mov    %eax,0x54(%rsp)
  cltq
  shl    $0x2,%rax
  movl   $0x1,0xc(%rsp)
  mov    0xc(%rsp),%edi
  mov    %rax,0x68(%rsp)
  lea    -0x4(%r13,%rax,1),%rax
  mov    %rax,0x30(%rsp)
  lea    0x4(%r13),%rax
  lea    (%rax,%rdx,4),%rdx
  mov    %esi,0x4c(%rsp)
  mov    %rdx,0x88(%rsp)
  mov    %esi,%edx
  lea    (%rax,%rdx,4),%rdx
  mov    %rdx,0x80(%rsp)
  mov    %ecx,%edx
  lea    (%rax,%rdx,4),%rax
  mov    %rax,0x70(%rsp)
  mov    0x10(%rsp),%rax
  mov    %edi,(%rax)
  cmp    %r14d,%r12d
  jg     L109
L526:
  je     L50
  mov    0x4c(%rsp),%r9d
  test   %r9d,%r9d
  je     L736
  mov    0x58(%rsp),%rax
  add    %r15,%rax
  mov    %rax,0x38(%rsp)
  lea    0x1(%r12),%eax
  mov    $0x1,%r12d
  mov    %eax,0x1c(%rsp)
  mov    %eax,%ebp
L59:
  mov    0x38(%rsp),%rax
  mov    %r12d,(%rax)
  cmp    %ebp,%r14d
  jl     L26
  je     L90
  mov    0x50(%rsp),%edi
  test   %edi,%edi
  jne    L311
  lea    0x1(%rbp),%eax
  mov    $0x1,%ebx
  mov    %eax,0x48(%rsp)
  mov    %eax,%r13d
  test   %r14d,%r14d
  jle    L436
L123:
  mov    %ebx,(%r15)
  cmp    %r13d,%r14d
  jl     L439
  mov    $0x1,%ebp
  je     L525
L417:
  mov    %ebp,0x4(%r15)
  lea    0x0(%rbp,%r13,1),%edx
  mov    %r14d,%ecx
  mov    %r15,%rdi
  mov    $0x2,%esi
  add    $0x1,%ebp
  call   <print>
  cmp    (%r15),%ebp
  jle    L417
L439:
  add    $0x1,%ebx
  add    $0x1,%r13d
  cmp    %ebx,%r14d
  jge    L123
  nopl   0x0(%rax)
L436:
  mov    0x10(%rsp),%rax
  mov    0x48(%rsp),%ebp
  add    $0x1,%r12d
  cmp    (%rax),%r12d
  jle    L59
L340:
  mov    0x28(%rsp),%rcx
  addl   $0x1,0xc(%rsp)
  mov    0x1c(%rsp),%r12d
  mov    0xc(%rsp),%eax
  cmp    %eax,(%rcx)
  jl     L587
  mov    0x10(%rsp),%rax
  mov    0xc(%rsp),%edi
  mov    %edi,(%rax)
  cmp    %r14d,%r12d
  jle    L526
L109:
  lea    0x1(%r12),%eax
  mov    %eax,0x1c(%rsp)
  jmp    L340
L200:
  lea    0x1(%rbp),%eax
  mov    %eax,0x18(%rsp)
  jmp    L112
  nopl   0x0(%rax)
L46:
  add    $0x1,%eax
  mov    %eax,0x10(%rsp)
  jmp    L609
  nopl   0x0(%rax)
L90:
  mov    0x50(%rsp),%r8d
  mov    0x80(%rsp),%r13
  mov    %r15,%rbx
  test   %r8d,%r8d
  jle    L548
  nopl   (%rax)
L287:
  mov    (%rbx),%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %rbx,%r13
  jne    L287
L548:
  mov    $0xa,%edi
  call   <putchar@plt>
L26:
  lea    0x1(%rbp),%eax
  mov    %eax,0x48(%rsp)
  jmp    L436
  nopw   0x0(%rax,%rax,1)
L308:
  add    $0x1,%eax
  mov    %eax,0x1c(%rsp)
  jmp    L203
  nopl   0x0(%rax)
L736:
  lea    0x1(%r12),%eax
  mov    %eax,0x1c(%rsp)
  test   %r14d,%r14d
  jle    L340
  mov    $0x1,%r8d
  mov    %eax,%ebx
  mov    %r14d,%ecx
L767:
  mov    %r8d,(%r15)
  cmp    %ebx,%ecx
  jl     L44
  je     L481
  mov    %r8d,0x38(%rsp)
  add    $0x1,%ebx
  mov    %r8d,%esi
  mov    $0x1,%r13d
  mov    %ebx,0x40(%rsp)
  mov    %ebx,%eax
  mov    %ecx,%ebx
L564:
  mov    %r13d,0x4(%r15)
  lea    0x1(%rax),%ebp
  cmp    %eax,%ebx
  jl     L111
  je     L132
  lea    0x1(%rax),%ebp
  mov    $0x1,%r12d
  mov    %ebp,%r14d
  mov    %ebp,0x48(%rsp)
  mov    %ebx,%ebp
  mov    %r14d,%ebx
L557:
  mov    %r12d,0x8(%r15)
  cmp    %ebx,%ebp
  jl     L218
  mov    $0x1,%r14d
  je     L695
L750:
  mov    %r14d,0xc(%r15)
  lea    (%r14,%rbx,1),%edx
  mov    %ebp,%ecx
  mov    $0x4,%esi
  mov    %r15,%rdi
  add    $0x1,%r14d
  call   <print>
  cmp    0x8(%r15),%r14d
  jle    L750
L218:
  add    $0x1,%r12d
  add    $0x1,%ebx
  cmp    0x4(%r15),%r12d
  jle    L557
  mov    %ebp,%ebx
  mov    0x48(%rsp),%ebp
L111:
  mov    (%r15),%esi
  add    $0x1,%r13d
  mov    %ebp,%eax
  cmp    %esi,%r13d
  jle    L564
  mov    %ebx,%ecx
  mov    0x38(%rsp),%r8d
  mov    0x40(%rsp),%ebx
L226:
  add    $0x1,%r8d
  cmp    %r8d,%ecx
  jge    L767
  mov    %ecx,%r14d
  jmp    L340
  nopl   0x0(%rax,%rax,1)
L142:
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x4(%rbx),%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    0x1(%r12),%eax
  mov    %eax,0x18(%rsp)
  jmp    L112
  nop
L311:
  mov    0x20(%rsp),%rax
  lea    0x1(%rbp),%ebx
  mov    %ebx,0x48(%rsp)
  mov    (%rax),%esi
  test   %esi,%esi
  jle    L436
  mov    0x60(%rsp),%rax
  mov    %r12d,0x78(%rsp)
  mov    $0x1,%ebp
  add    %r15,%rax
  mov    %rax,0x40(%rsp)
L596:
  mov    0x40(%rsp),%rax
  mov    %ebp,(%rax)
  cmp    %ebx,%r14d
  jl     L198
  je     L533
  mov    0x54(%rsp),%edx
  test   %edx,%edx
  jne    L620
  mov    $0x1,%r12d
  test   %r14d,%r14d
  jle    L198
L282:
  mov    %r12d,(%r15)
  lea    (%r12,%rbx,1),%edx
  mov    %r14d,%ecx
  mov    $0x1,%esi
  mov    %r15,%rdi
  add    $0x1,%r12d
  call   <print>
  cmp    %r12d,%r14d
  jge    L282
L198:
  mov    0x20(%rsp),%rax
  add    $0x1,%ebp
  add    $0x1,%ebx
  cmp    (%rax),%ebp
  jle    L596
  mov    0x78(%rsp),%r12d
  jmp    L436
  nop
L369:
  mov    (%rbx),%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x4(%rbx),%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rbx),%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    0x1(%r12),%eax
  mov    %eax,0x10(%rsp)
  jmp    L609
  nopw   0x0(%rax,%rax,1)
L808:
  mov    %rbx,%rbp
  lea    0x10(%rbx),%r13
  nopw   0x0(%rax,%rax,1)
L365:
  mov    0x0(%rbp),%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  add    $0x4,%rbp
  call   <printf@plt>
  cmp    %r13,%rbp
  jne    L365
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L145
  nopl   0x0(%rax)
L44:
  add    $0x1,%ebx
  jmp    L226
  nopl   0x0(%rax,%rax,1)
L132:
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  lea    0x1(%rbx),%ebp
  call   <printf@plt>
  mov    0x4(%r15),%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L111
  nopw   0x0(%rax,%rax,1)
L620:
  mov    0x30(%rsp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jle    L198
  mov    0x68(%rsp),%rax
  mov    0x18(%rsp),%edx
  mov    %ebp,0x7c(%rsp)
  mov    $0x1,%r13d
  mov    %r14d,%ebp
  add    %r15,%rax
  lea    0x4(%rdx),%r12d
  mov    %rax,%r14
L343:
  mov    %r13d,(%r14)
  lea    0x0(%r13,%rbx,1),%edx
  mov    %ebp,%ecx
  mov    %r12d,%esi
  mov    %r15,%rdi
  add    $0x1,%r13d
  call   <print>
  mov    0x30(%rsp),%rax
  cmp    (%rax),%r13d
  jle    L343
  mov    %ebp,%r14d
  mov    0x7c(%rsp),%ebp
  jmp    L198
  cs nopw 0x0(%rax,%rax,1)
L695:
  mov    (%r15),%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x4(%r15),%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%r15),%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L218
  nopl   0x0(%rax)
L191:
  test   %esi,%esi
  jle    L355
  mov    0x18(%rsp),%eax
  lea    D157(%rip),%rbp
  sub    $0x1,%eax
  lea    0x4(%rdi,%rax,4),%r12
  nop
L186:
  mov    0x0(%r13),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x4,%r13
  call   <printf@plt>
  cmp    %r13,%r12
  jne    L186
L355:
  add    $0x98,%rsp
  mov    $0xa,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1060 <putchar@plt>
  nopw   0x0(%rax,%rax,1)
L50:
  mov    0x4c(%rsp),%r10d
  mov    0x70(%rsp),%rbp
  mov    %r15,%rbx
  test   %r10d,%r10d
  jle    L716
  nopw   0x0(%rax,%rax,1)
L206:
  mov    (%rbx),%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %rbp,%rbx
  jne    L206
L716:
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    0x1(%r12),%eax
  mov    %eax,0x1c(%rsp)
  jmp    L340
  nopl   0x0(%rax)
L572:
  mov    0xc(%rsp),%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    0x1(%r15),%eax
  mov    %eax,0x1c(%rsp)
  jmp    L203
  nopl   0x0(%rax)
L481:
  mov    %r8d,%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  mov    %ecx,0x38(%rsp)
  mov    %r8d,0x48(%rsp)
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x38(%rsp),%ecx
  mov    0x48(%rsp),%r8d
  lea    0x1(%rcx),%ebx
  jmp    L226
  nopl   (%rax)
L525:
  mov    %ebx,%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <printf@plt>
  mov    $0xa,%edi
  add    $0x1,%r13d
  call   <putchar@plt>
  cmp    %ebx,%r14d
  jge    L123
  jmp    L436
  nop
L533:
  mov    0x54(%rsp),%ecx
  mov    0x88(%rsp),%r13
  mov    %r15,%r12
  test   %ecx,%ecx
  jle    L660
  nopl   0x0(%rax,%rax,1)
L579:
  mov    (%r12),%esi
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  add    $0x4,%r12
  call   <printf@plt>
  cmp    %r13,%r12
  jne    L579
L660:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L198
```

tool_calls: name: disassemble_data
arguments: label: D157
type_infered: string

tool: D157: %d 

assistant: ```c
void print(int *t, int position, int sum, int n) {
  if (sum > n)
    return;
  if (sum == n) {
    for (int i = 0; i < position; i++)
      printf("%d ", t[i]);
    printf("\n");
    return;
  }
  if (position != 0) {
    for (int i = 1; i <= t[position - 1]; i++) {
      t[position] = i;
      print(t, position + 1, sum + i, n);
    }
  }
  if (position == 0) {
    for (int i = 1; i <= n; i++) {
      t[position] = i;
      print(t, position + 1, sum + i, n);
    }
  }
}
```