user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<function_d>:
  endbr64
  push   %r15
  mov    %esi,%r15d
  push   %r14
  push   %r13
  push   %r12
  lea    D1(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %edi,0x44(%rsp)
  mov    %edx,0x18(%rsp)
  test   %edi,%edi
  jle    L76
  mov    %edi,%eax
  lea    0x1(%rsi),%edi
  sub    $0x1,%eax
  mov    %edi,0x2c(%rsp)
  mov    %eax,0x50(%rsp)
  je     L115
  mov    0x44(%rsp),%eax
  mov    %esi,0x8(%rsp)
  sub    $0x2,%eax
  mov    %eax,0x40(%rsp)
  mov    0x18(%rsp),%eax
  sub    $0x2,%eax
  mov    %eax,0x60(%rsp)
  lea    0x2(%rsi),%eax
  mov    %eax,0x1c(%rsp)
  lea    0x8(%rsi),%eax
  mov    %eax,0x4c(%rsp)
L48:
  mov    0x40(%rsp),%ecx
  mov    0x60(%rsp),%eax
  add    0x44(%rsp),%eax
  mov    %eax,0x58(%rsp)
  sub    %ecx,%eax
  mov    %eax,0x10(%rsp)
  mov    %ecx,%eax
  test   %ecx,%ecx
  je     L137
  mov    0x8(%rsp),%edi
  mov    %eax,%ecx
  sub    $0x1,%ecx
  lea    0x3(%rdi),%esi
  mov    %ecx,0x68(%rsp)
  mov    %esi,0x34(%rsp)
  je     L97
L138:
  mov    0x10(%rsp),%esi
  lea    -0x2(%rax),%edi
  mov    %edi,0x3c(%rsp)
  add    %esi,%eax
  mov    %eax,0x48(%rsp)
  mov    0x8(%rsp),%eax
  add    $0x4,%eax
  mov    %eax,0x20(%rsp)
L195:
  mov    0x48(%rsp),%eax
  mov    0x3c(%rsp),%ecx
  sub    $0x2,%eax
  mov    %eax,0x54(%rsp)
  sub    %ecx,%eax
  mov    %eax,0x14(%rsp)
  mov    %ecx,%eax
  test   %ecx,%ecx
  je     L172
  mov    0x8(%rsp),%ecx
  lea    0x5(%rcx),%r15d
  lea    0x6(%rcx),%r14d
L45:
  mov    %eax,%esi
  sub    $0x1,%esi
  mov    %esi,0x6c(%rsp)
  je     L182
  mov    0x14(%rsp),%ecx
  lea    -0x2(%rax),%ebp
  mov    %r15d,0x24(%rsp)
  add    %ecx,%eax
  mov    %eax,0x30(%rsp)
  sub    $0x2,%eax
  mov    %eax,0x4(%rsp)
  mov    0x8(%rsp),%eax
  mov    0x4(%rsp),%ebx
  lea    0x7(%rax),%r13d
  mov    %r14d,%eax
  mov    %ebp,%r14d
  mov    %r13d,%r15d
  mov    %eax,%ebp
  sub    %r14d,%ebx
  mov    %r14d,%eax
  test   %r14d,%r14d
  je     L90
L198:
  mov    %r14d,0xc(%rsp)
L46:
  mov    %eax,%ecx
  sub    $0x1,%ecx
  mov    %ecx,0x38(%rsp)
  je     L118
  lea    -0x2(%rax),%r14d
  add    %ebx,%eax
  mov    %ebx,0x70(%rsp)
  mov    0x4c(%rsp),%ebx
  mov    %eax,0x5c(%rsp)
  sub    $0x2,%eax
  mov    %r14d,%r13d
  mov    %eax,0x28(%rsp)
  mov    0x28(%rsp),%r8d
  mov    %ebp,0x74(%rsp)
  sub    %r13d,%r8d
  test   %r13d,%r13d
  je     L51
L34:
  mov    0x8(%rsp),%eax
  mov    %r13d,%ebp
  mov    %r8d,%r14d
  add    $0x9,%eax
  mov    %eax,0x64(%rsp)
L179:
  mov    %ebp,%ecx
  lea    0x0(%rbp,%r14,1),%r8d
L43:
  mov    %r8d,%edx
  mov    0x64(%rsp),%esi
  mov    %r8d,0x7c(%rsp)
  sub    %ecx,%edx
  sub    $0x1,%ecx
  mov    %ecx,%edi
  mov    %ecx,0x78(%rsp)
  call   <function_d>
  mov    0x78(%rsp),%ecx
  mov    0x7c(%rsp),%r8d
  test   %ecx,%ecx
  jne    L43
  sub    $0x1,%ebp
  add    $0x1,%r14d
  mov    %ebx,%esi
  mov    %r12,%rdi
  lea    0x0(%rbp,%r14,1),%edx
  call   <printf@plt>
  test   %ebp,%ebp
  jne    L179
  mov    0x28(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  sub    $0x1,%r13d
  call   <printf@plt>
  mov    0x5c(%rsp),%eax
  mov    %r15d,%esi
  mov    %r12,%rdi
  lea    -0x1(%rax),%edx
  call   <printf@plt>
  mov    0x28(%rsp),%r8d
  sub    %r13d,%r8d
  test   %r13d,%r13d
  jne    L34
L51:
  mov    0x4c(%rsp),%esi
  mov    %r8d,%r13d
  mov    %r8d,%edx
  mov    %r12,%rdi
  mov    0x70(%rsp),%ebx
  mov    0x74(%rsp),%ebp
  call   <printf@plt>
  lea    0x1(%r13),%edx
  mov    %r15d,%esi
  mov    %r12,%rdi
  call   <printf@plt>
  mov    0x38(%rsp),%r14d
  mov    %r15d,%esi
  mov    %r12,%rdi
  lea    (%r14,%rbx,1),%r13d
  add    $0x1,%ebx
  mov    %r13d,%edx
  call   <printf@plt>
  lea    0x1(%r13),%edx
  mov    %ebp,%esi
  mov    %r12,%rdi
  call   <printf@plt>
  mov    %r14d,%eax
  test   %r14d,%r14d
  jne    L46
  mov    0xc(%rsp),%r14d
  jmp    L194
  nopl   (%rax)
L118:
  mov    %ebx,%edx
  mov    %r15d,%esi
  mov    %r12,%rdi
  mov    0xc(%rsp),%r14d
  call   <printf@plt>
  lea    0x1(%rbx),%edx
  mov    %ebp,%esi
  mov    %r12,%rdi
  call   <printf@plt>
L194:
  mov    0x4(%rsp),%edx
  mov    %ebp,%esi
  mov    %r12,%rdi
  sub    $0x1,%r14d
  call   <printf@plt>
  mov    0x30(%rsp),%eax
  mov    0x24(%rsp),%esi
  mov    %r12,%rdi
  lea    -0x1(%rax),%edx
  call   <printf@plt>
  mov    0x4(%rsp),%ebx
  mov    %r14d,%eax
  sub    %r14d,%ebx
  test   %r14d,%r14d
  jne    L198
L90:
  mov    0x24(%rsp),%r15d
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r12,%rdi
  call   <printf@plt>
  lea    0x1(%rbx),%edx
  mov    %r12,%rdi
  mov    %ebp,%r14d
  mov    %r15d,%esi
  call   <printf@plt>
  mov    0x14(%rsp),%ebp
  mov    %r15d,%esi
  mov    %r12,%rdi
  mov    0x6c(%rsp),%r13d
  mov    %ebp,%ebx
  add    $0x1,%ebp
  add    %r13d,%ebx
  mov    %ebx,%edx
  call   <printf@plt>
  mov    0x20(%rsp),%esi
  lea    0x1(%rbx),%edx
  mov    %r12,%rdi
  call   <printf@plt>
  mov    %ebp,0x14(%rsp)
  mov    %r13d,%eax
  test   %r13d,%r13d
  jne    L45
L190:
  mov    0x54(%rsp),%edx
  mov    0x20(%rsp),%esi
  mov    %r12,%rdi
  call   <printf@plt>
  mov    0x48(%rsp),%eax
  mov    0x34(%rsp),%esi
  mov    %r12,%rdi
  lea    -0x1(%rax),%edx
  call   <printf@plt>
  subl   $0x1,0x3c(%rsp)
  jmp    L195
L182:
  mov    0x14(%rsp),%ebx
  mov    %r15d,%esi
  mov    %r12,%rdi
  mov    %ebx,%edx
  call   <printf@plt>
  mov    %ebx,%edx
  mov    0x20(%rsp),%esi
  mov    %r12,%rdi
  add    $0x1,%edx
  call   <printf@plt>
  jmp    L190
L172:
  mov    0x14(%rsp),%ebx
  mov    0x20(%rsp),%esi
  mov    %r12,%rdi
  mov    %ebx,%edx
  call   <printf@plt>
  mov    0x34(%rsp),%ebp
  mov    %ebx,%edx
  mov    %r12,%rdi
  add    $0x1,%edx
  mov    %ebp,%esi
  call   <printf@plt>
  mov    0x10(%rsp),%r14d
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    0x68(%rsp),%r15d
  mov    %r14d,%ebx
  add    $0x1,%r14d
  add    %r15d,%ebx
  mov    %ebx,%edx
  call   <printf@plt>
  mov    0x1c(%rsp),%esi
  lea    0x1(%rbx),%edx
  mov    %r12,%rdi
  call   <printf@plt>
  mov    %r14d,0x10(%rsp)
  mov    %r15d,%eax
  test   %r15d,%r15d
  je     L120
  mov    %eax,%ecx
  sub    $0x1,%ecx
  mov    %ecx,0x68(%rsp)
  jne    L138
L97:
  mov    0x10(%rsp),%ebx
  mov    0x34(%rsp),%esi
  mov    %r12,%rdi
  mov    %ebx,%edx
  call   <printf@plt>
  mov    %ebx,%edx
  mov    0x1c(%rsp),%esi
  mov    %r12,%rdi
  add    $0x1,%edx
  call   <printf@plt>
L120:
  mov    0x58(%rsp),%ebx
  mov    0x1c(%rsp),%esi
  mov    %r12,%rdi
  mov    %ebx,%edx
  call   <printf@plt>
  mov    0x2c(%rsp),%esi
  mov    %ebx,%edx
  mov    %r12,%rdi
  add    $0x1,%edx
  call   <printf@plt>
  subl   $0x1,0x40(%rsp)
  jmp    L48
L137:
  mov    0x10(%rsp),%ebx
  mov    0x1c(%rsp),%esi
  mov    %r12,%rdi
  mov    0x8(%rsp),%r15d
  mov    %ebx,%edx
  call   <printf@plt>
  mov    %ebx,%edx
  mov    0x2c(%rsp),%esi
  mov    %r12,%rdi
  add    $0x1,%edx
  call   <printf@plt>
L115:
  mov    0x18(%rsp),%ebx
  mov    0x2c(%rsp),%esi
  mov    %r12,%rdi
  add    0x50(%rsp),%ebx
  mov    %ebx,%edx
  call   <printf@plt>
  lea    0x1(%rbx),%eax
  mov    %eax,0x18(%rsp)
L76:
  mov    0x18(%rsp),%edx
  add    $0x88,%rsp
  mov    %r15d,%esi
  mov    %r12,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <printf@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D1
data_type: string

tool: D1: %d, %d


assistant: ```c
int function_d(int n, int o, int p) {
  if (n <= 0)
    printf("%d, %d\n", o, p);
  else {
    function_d(n - 1, o + 1, p);
    function_d(n - 1, o, p + 1);
  }
}
```