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

```asm
<partition>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc8,%rsp
  mov    %edx,0x80(%rsp)
  test   %edx,%edx
  je     L194
  mov    $0x1,%eax
  test   %esi,%esi
  jne    L248
L239:
  mov    0x80(%rsp),%ecx
  cmp    %ecx,%eax
  jg     L334
  movslq %esi,%rdx
  sub    %eax,%ecx
  lea    0x9(%rsi),%eax
  shl    $0x2,%rdx
  mov    %ecx,0x50(%rsp)
  lea    (%r14,%rdx,1),%rdi
  lea    0x4(%r14,%rdx,1),%rdx
  mov    %eax,0x60(%rsp)
  mov    %rdi,0x90(%rsp)
  lea    0x1(%rsi),%edi
  mov    %edi,0x84(%rsp)
  lea    0x2(%rsi),%edi
  mov    %rdx,0x98(%rsp)
  movslq %edi,%rdx
  shl    $0x2,%rdx
  mov    %edi,0x88(%rsp)
  lea    -0x4(%r14,%rdx,1),%rdi
  add    %r14,%rdx
  mov    %rdi,0xa0(%rsp)
  lea    0x3(%rsi),%edi
  mov    %rdx,0xa8(%rsp)
  movslq %edi,%rdx
  shl    $0x2,%rdx
  mov    %edi,0x8c(%rsp)
  lea    -0x4(%r14,%rdx,1),%rdi
  add    %r14,%rdx
  mov    %rdi,0xb0(%rsp)
  lea    0x4(%rsi),%edi
  mov    %rdx,0x58(%rsp)
  movslq %edi,%rdx
  shl    $0x2,%rdx
  mov    %edi,0x64(%rsp)
  lea    -0x4(%r14,%rdx,1),%rdi
  add    %r14,%rdx
  mov    %rdx,0x38(%rsp)
  lea    0x5(%rsi),%edx
  mov    %edx,0x44(%rsp)
  movslq %edx,%rdx
  shl    $0x2,%rdx
  mov    %rdi,0xb8(%rsp)
  lea    -0x4(%r14,%rdx,1),%rdi
  add    %r14,%rdx
  mov    %rdi,0x68(%rsp)
  lea    0x6(%rsi),%edi
  mov    %rdx,0x70(%rsp)
  movslq %edi,%rdx
  shl    $0x2,%rdx
  mov    %edi,0x4(%rsp)
  lea    -0x4(%r14,%rdx,1),%rdi
  add    %r14,%rdx
  mov    %rdx,0x78(%rsp)
  lea    0x7(%rsi),%edx
  mov    %edx,0x8(%rsp)
  movslq %edx,%rdx
  shl    $0x2,%rdx
  mov    %rdi,0x30(%rsp)
  lea    -0x4(%r14,%rdx,1),%rdi
  add    %r14,%rdx
  mov    %rdi,0x48(%rsp)
  lea    0x8(%rsi),%edi
  mov    %rdx,0x18(%rsp)
  movslq %edi,%rdx
  shl    $0x2,%rdx
  mov    %edi,0x20(%rsp)
  lea    -0x4(%r14,%rdx,1),%rdi
  add    %r14,%rdx
  mov    %rdi,0x28(%rsp)
  mov    %rdx,0x10(%rsp)
L64:
  mov    0x80(%rsp),%eax
  mov    0x50(%rsp),%ecx
  mov    0x90(%rsp),%rsi
  sub    %ecx,%eax
  mov    %eax,(%rsi)
  test   %ecx,%ecx
  je     L278
  mov    0x84(%rsp),%r10d
  test   %r10d,%r10d
  je     L446
  add    $0x1,%eax
  cmp    %eax,0x50(%rsp)
  jl     L443
L163:
  mov    0x50(%rsp),%esi
  sub    %eax,%esi
  mov    %esi,0x54(%rsp)
L180:
  mov    0x50(%rsp),%eax
  mov    0x54(%rsp),%esi
  mov    0x98(%rsp),%rcx
  sub    %esi,%eax
  mov    %eax,(%rcx)
  test   %esi,%esi
  je     L268
  mov    0x88(%rsp),%r9d
  mov    $0x1,%eax
  test   %r9d,%r9d
  je     L21
  mov    0xa0(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,(%rsp)
  add    $0x1,%eax
L21:
  mov    0x54(%rsp),%esi
  mov    %esi,%edi
  sub    %eax,%edi
  mov    %edi,0x40(%rsp)
  cmp    %eax,%esi
  jl     L79
L246:
  mov    0x54(%rsp),%eax
  mov    0x40(%rsp),%ecx
  mov    0xa8(%rsp),%rsi
  sub    %ecx,%eax
  mov    %eax,(%rsi)
  test   %ecx,%ecx
  je     L305
  mov    0x8c(%rsp),%r8d
  mov    $0x1,%eax
  test   %r8d,%r8d
  je     L471
  mov    0xb0(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,(%rsp)
  add    $0x1,%eax
L471:
  mov    0x40(%rsp),%esi
  mov    %esi,%edi
  sub    %eax,%edi
  mov    %edi,(%rsp)
  cmp    %eax,%esi
  jl     L417
L152:
  mov    0x40(%rsp),%eax
  mov    (%rsp),%edi
  mov    0x58(%rsp),%rsi
  sub    %edi,%eax
  mov    %eax,(%rsi)
  test   %edi,%edi
  je     L211
  mov    0x64(%rsp),%edi
  mov    $0x1,%eax
  test   %edi,%edi
  je     L110
  mov    0xb8(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xc(%rsp)
  add    $0x1,%eax
L110:
  mov    (%rsp),%esi
  mov    %esi,%ebp
  sub    %eax,%ebp
  cmp    %eax,%esi
  jl     L55
L75:
  mov    (%rsp),%eax
  mov    0x38(%rsp),%rcx
  sub    %ebp,%eax
  mov    %eax,(%rcx)
  test   %ebp,%ebp
  je     L61
  mov    0x44(%rsp),%esi
  mov    $0x1,%eax
  test   %esi,%esi
  je     L379
  mov    0x68(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xc(%rsp)
  add    $0x1,%eax
L379:
  mov    %ebp,%r12d
  sub    %eax,%r12d
  cmp    %ebp,%eax
  jg     L228
  mov    %ebp,0x24(%rsp)
  mov    0x60(%rsp),%r15d
L196:
  mov    0x24(%rsp),%eax
  mov    0x70(%rsp),%rcx
  sub    %r12d,%eax
  mov    %eax,(%rcx)
  test   %r12d,%r12d
  je     L323
  mov    0x4(%rsp),%ecx
  mov    $0x1,%eax
  test   %ecx,%ecx
  je     L179
  mov    0x30(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xc(%rsp)
  add    $0x1,%eax
L179:
  mov    %r12d,%ebx
  sub    %eax,%ebx
  cmp    %eax,%r12d
  jl     L385
L114:
  mov    0x78(%rsp),%rdi
  mov    %r12d,%eax
  sub    %ebx,%eax
  mov    %eax,(%rdi)
  test   %ebx,%ebx
  je     L388
  mov    0x8(%rsp),%edx
  mov    $0x1,%eax
  test   %edx,%edx
  je     L255
  mov    0x48(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xc(%rsp)
  add    $0x1,%eax
L255:
  mov    %ebx,%ebp
  sub    %eax,%ebp
  cmp    %eax,%ebx
  jl     L197
L329:
  mov    0x18(%rsp),%rcx
  mov    %ebx,%eax
  sub    %ebp,%eax
  mov    %eax,(%rcx)
  test   %ebp,%ebp
  je     L158
  mov    0x20(%rsp),%eax
  mov    $0x1,%r13d
  test   %eax,%eax
  je     L475
  mov    0x28(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xc(%rsp)
  lea    0x1(%rax),%r13d
L475:
  cmp    %r13d,%ebp
  jl     L434
L17:
  mov    0x10(%rsp),%rax
  mov    %ebp,%edx
  mov    %r15d,%esi
  mov    %r14,%rdi
  sub    %r13d,%edx
  mov    %r13d,(%rax)
  add    $0x1,%r13d
  call   <partition>
  cmp    %r13d,%ebp
  jge    L17
L434:
  sub    $0x1,%ebp
  mov    %ebx,%eax
  sub    %ebp,%eax
  cmp    %ebx,%eax
  jle    L329
L197:
  sub    $0x1,%ebx
  mov    %r12d,%eax
  sub    %ebx,%eax
  cmp    %eax,%r12d
  jge    L114
L385:
  mov    0x24(%rsp),%ecx
  sub    $0x1,%r12d
  mov    %ecx,%eax
  sub    %r12d,%eax
  cmp    %eax,%ecx
  jge    L196
  mov    %ecx,%ebp
L228:
  mov    (%rsp),%edi
  sub    $0x1,%ebp
  mov    %edi,%eax
  sub    %ebp,%eax
  cmp    %eax,%edi
  jge    L75
L55:
  mov    0x40(%rsp),%esi
  subl   $0x1,(%rsp)
  mov    (%rsp),%eax
  mov    %esi,%ecx
  sub    %eax,%ecx
  cmp    %ecx,%esi
  jge    L152
L417:
  mov    0x54(%rsp),%esi
  subl   $0x1,0x40(%rsp)
  mov    0x40(%rsp),%eax
  mov    %esi,%edi
  sub    %eax,%edi
  cmp    %edi,%esi
  jge    L246
L79:
  mov    0x50(%rsp),%ecx
  subl   $0x1,0x54(%rsp)
  mov    0x54(%rsp),%eax
  mov    %ecx,%edi
  sub    %eax,%edi
  cmp    %edi,%ecx
  jge    L180
L443:
  mov    0x80(%rsp),%esi
  subl   $0x1,0x50(%rsp)
  mov    0x50(%rsp),%eax
  mov    %esi,%ecx
  sub    %eax,%ecx
  cmp    %ecx,%esi
  jge    L64
L334:
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L158:
  mov    0x20(%rsp),%esi
  mov    %r14,%rdi
  sub    $0x1,%ebp
  call   <printPartition@plt>
  mov    %ebx,%eax
  sub    %ebp,%eax
  cmp    %ebx,%eax
  jle    L329
  jmp    L197
L388:
  mov    0x8(%rsp),%esi
  mov    %r14,%rdi
  sub    $0x1,%ebx
  call   <printPartition@plt>
  mov    %r12d,%eax
  sub    %ebx,%eax
  cmp    %eax,%r12d
  jge    L114
  jmp    L385
L323:
  mov    0x4(%rsp),%esi
  mov    %r14,%rdi
  call   <printPartition@plt>
  jmp    L385
L61:
  mov    0x44(%rsp),%esi
  mov    %r14,%rdi
  call   <printPartition@plt>
  jmp    L228
L211:
  mov    0x64(%rsp),%esi
  mov    %r14,%rdi
  call   <printPartition@plt>
  jmp    L55
L305:
  mov    0x8c(%rsp),%esi
  mov    %r14,%rdi
  call   <printPartition@plt>
  jmp    L417
L268:
  mov    0x88(%rsp),%esi
  mov    %r14,%rdi
  call   <printPartition@plt>
  jmp    L79
L446:
  mov    $0x1,%eax
  jmp    L163
L278:
  mov    0x84(%rsp),%esi
  mov    %r14,%rdi
  call   <printPartition@plt>
  jmp    L443
L194:
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <printPartition@plt>
L248:
  movslq %esi,%rax
  mov    -0x4(%rdi,%rax,4),%eax
  add    $0x1,%eax
  jmp    L239
```

assistant: ```c
void partition(int *arr, int ind, int left) {
  int val;
  if (left == 0) {
    printPartition(arr, ind);
    return;
  }
  int min = 1;
  if (ind != 0) {
    min = arr[ind - 1] + 1;
  }
  for (val = min; val <= left; val++) {
    arr[ind] = val;
    partition(arr, ind + 1, left - val);
  }
}
```