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

```asm
<tree>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %edx,0x8(%rsp)
  test   %edx,%edx
  jle    L196
  movzbl (%rdi),%eax
  mov    %rdi,%r15
  mov    %rsi,%rbx
  movslq %edx,%rdx
  xor    %ebp,%ebp
  nopl   0x0(%rax)
L436:
  mov    %ebp,%r13d
  cmp    %al,(%rbx,%rbp,1)
  je     L99
  lea    0x1(%rbp),%r13d
  add    $0x1,%rbp
  cmp    %rbp,%rdx
  jne    L436
  movslq %r13d,%rbp
L163:
  movzbl 0x1(%r15),%eax
  xor    %r12d,%r12d
  nopl   0x0(%rax)
L735:
  mov    %r12d,%r9d
  cmp    %al,(%rbx,%r12,1)
  je     L646
  lea    0x1(%r12),%r9d
  add    $0x1,%r12
  cmp    %r12d,%r13d
  jg     L735
  lea    0x2(%r15),%rax
  movslq %r9d,%r12
  mov    %rax,0x10(%rsp)
L145:
  movzbl 0x2(%r15),%eax
  xor    %r14d,%r14d
  nopw   0x0(%rax,%rax,1)
L290:
  mov    %r14d,%r10d
  cmp    %al,(%rbx,%r14,1)
  je     L458
  lea    0x1(%r14),%r10d
  add    $0x1,%r14
  cmp    %r14d,%r9d
  jg     L290
  lea    0x3(%r15),%rcx
  movslq %r10d,%r14
L694:
  movzbl 0x3(%r15),%eax
  xor    %r8d,%r8d
  nopl   0x0(%rax)
L308:
  mov    %r8d,%r11d
  cmp    %al,(%rbx,%r8,1)
  je     L442
  lea    0x1(%r8),%r11d
  add    $0x1,%r8
  cmp    %r8d,%r10d
  jg     L308
  lea    0x4(%r15),%rax
  movslq %r11d,%r8
  mov    %rax,0x18(%rsp)
L240:
  movzbl 0x4(%r15),%esi
  xor    %eax,%eax
  nopl   (%rax)
L171:
  mov    %eax,%edx
  cmp    %sil,(%rbx,%rax,1)
  je     L599
  lea    0x1(%rax),%edx
  add    $0x1,%rax
  cmp    %eax,%r11d
  jg     L171
  movslq %edx,%rax
L599:
  lea    0x5(%r15),%rdi
  mov    %rbx,%rsi
  mov    %rcx,0x48(%rsp)
  mov    %r11d,0x20(%rsp)
  mov    %r10d,0x3c(%rsp)
  mov    %r9d,0x38(%rsp)
  mov    %r8,0x30(%rsp)
  mov    %rax,0x40(%rsp)
  mov    %edx,0x2c(%rsp)
  call   <tree>
  mov    0x2c(%rsp),%edx
  mov    0x40(%rsp),%rax
  mov    0x20(%rsp),%esi
  mov    0x18(%rsp),%rdi
  add    $0x1,%rax
  sub    %edx,%esi
  add    %rax,%rdi
  lea    -0x1(%rsi),%edx
  lea    (%rbx,%rax,1),%rsi
  call   <tree>
  movsbl 0x4(%r15),%edi
  call   <putchar@plt>
  mov    0x3c(%rsp),%r10d
  mov    0x20(%rsp),%r11d
  mov    0x30(%rsp),%r8
  mov    0x48(%rsp),%rcx
  mov    %r10d,%edx
  mov    0x38(%rsp),%r9d
  sub    %r11d,%edx
  lea    0x1(%r8),%rdi
L793:
  lea    (%rbx,%rdi,1),%rsi
  sub    $0x1,%edx
  add    %rcx,%rdi
  mov    %r10d,0x20(%rsp)
  mov    %r9d,0x18(%rsp)
  call   <tree>
  movsbl 0x3(%r15),%edi
  call   <putchar@plt>
  mov    0x18(%rsp),%r9d
  mov    0x20(%rsp),%r10d
  lea    0x1(%r14),%rax
  mov    %r9d,%r8d
  sub    %r10d,%r8d
L504:
  sub    $0x1,%r8d
  test   %r8d,%r8d
  jle    L260
  mov    0x10(%rsp),%r10
  lea    (%rbx,%rax,1),%rsi
  xor    %r14d,%r14d
  add    %rax,%r10
  mov    %rsi,%rax
  movzbl (%r10),%edx
  nopl   0x0(%rax,%rax,1)
L498:
  mov    %r14d,%edi
  add    $0x1,%r14d
  cmp    %dl,(%rax)
  je     L788
  add    $0x1,%rax
  cmp    %r14d,%r8d
  jne    L498
L57:
  lea    0x1(%r10),%rdi
  mov    %r14d,%edx
  mov    %r9d,0x2c(%rsp)
  mov    %r8d,0x20(%rsp)
  mov    %r10,0x18(%rsp)
  mov    %rsi,0x10(%rsp)
  call   <tree>
  mov    0x20(%rsp),%r8d
  mov    0x18(%rsp),%r10
  lea    0x1(%r14),%edi
  mov    0x10(%rsp),%rsi
  movslq %edi,%rdi
  sub    %r14d,%r8d
  mov    %r10,0x10(%rsp)
  add    %rdi,%rsi
  lea    -0x1(%r8),%edx
  add    %r10,%rdi
  call   <tree>
  mov    0x10(%rsp),%r10
  movsbl (%r10),%edi
  call   <putchar@plt>
  mov    0x2c(%rsp),%r9d
L260:
  movsbl 0x2(%r15),%edi
  mov    %r9d,0x10(%rsp)
  call   <putchar@plt>
  mov    0x10(%rsp),%r9d
  mov    %r13d,%r8d
  lea    0x2(%r12),%rax
  add    $0x1,%r12
  sub    %r9d,%r8d
  jmp    L320
  nopl   0x0(%rax,%rax,1)
L99:
  mov    $0x1,%r14d
  test   %ebp,%ebp
  jne    L163
L324:
  mov    0x8(%rsp),%r13d
  sub    $0x1,%r13d
  test   %r13d,%r13d
  jle    L706
  lea    (%rbx,%r14,1),%rcx
  add    %r15,%r14
  xor    %r12d,%r12d
  movzbl (%r14),%esi
  mov    %rcx,%rdx
  mov    %rcx,%rax
  nopl   0x0(%rax)
L254:
  cmp    %sil,(%rax)
  je     L524
  add    $0x1,%r12d
  add    $0x1,%rax
  cmp    %r12d,%r13d
  jne    L254
L468:
  movzbl 0x1(%r14),%eax
  xor    %ebp,%ebp
  nopl   (%rax)
L178:
  mov    %ebp,%ebx
  cmp    %al,(%rcx,%rbp,1)
  je     L484
  lea    0x1(%rbp),%ebx
  add    $0x1,%rbp
  cmp    %ebp,%r12d
  jg     L178
  lea    0x2(%r14),%rax
  movslq %ebx,%rbp
  mov    %rax,0x18(%rsp)
L750:
  movzbl 0x2(%r14),%esi
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L235:
  mov    %eax,%edi
  add    $0x1,%eax
  cmp    %sil,(%rdx)
  je     L796
  add    $0x1,%rdx
  cmp    %eax,%ebx
  jg     L235
L341:
  mov    %eax,%edx
  mov    %rcx,%rsi
  lea    0x3(%r14),%rdi
  mov    %eax,0x10(%rsp)
  mov    %rcx,0x8(%rsp)
  call   <tree>
  mov    0x10(%rsp),%eax
  mov    0x8(%rsp),%rcx
  mov    %ebx,%edx
  lea    0x1(%rax),%edi
  sub    %eax,%edx
  movslq %edi,%rdi
  sub    $0x1,%edx
  lea    (%rcx,%rdi,1),%rsi
  add    0x18(%rsp),%rdi
  call   <tree>
  movsbl 0x2(%r14),%edi
  call   <putchar@plt>
  mov    %r12d,%eax
  lea    0x1(%rbp),%rsi
  lea    0x2(%rbp),%r8
  mov    0x8(%rsp),%rcx
  sub    %ebx,%eax
L293:
  lea    -0x1(%rax),%ebp
  test   %ebp,%ebp
  jle    L418
  add    %r14,%r8
  add    %rcx,%rsi
  xor    %ebx,%ebx
  movzbl (%r8),%edx
  mov    %rsi,%rax
  nopl   0x0(%rax,%rax,1)
L337:
  mov    %ebx,%edi
  add    $0x1,%ebx
  cmp    %dl,(%rax)
  je     L485
  add    $0x1,%rax
  cmp    %ebx,%ebp
  jne    L337
L452:
  lea    0x1(%r8),%rdi
  mov    %ebx,%edx
  mov    %rcx,0x18(%rsp)
  sub    %ebx,%ebp
  mov    %r8,0x10(%rsp)
  mov    %rsi,0x8(%rsp)
  call   <tree>
  mov    0x10(%rsp),%r8
  lea    0x1(%rbx),%edi
  lea    -0x1(%rbp),%edx
  mov    0x8(%rsp),%rsi
  movslq %edi,%rdi
  mov    %r8,0x8(%rsp)
  add    %rdi,%rsi
  add    %r8,%rdi
  call   <tree>
  mov    0x8(%rsp),%r8
  movsbl (%r8),%edi
  call   <putchar@plt>
  mov    0x18(%rsp),%rcx
L418:
  movsbl 0x1(%r14),%edi
  mov    %rcx,0x8(%rsp)
  lea    0x1(%r12),%ebx
  sub    %r12d,%r13d
  movslq %ebx,%rbx
  call   <putchar@plt>
  mov    0x8(%rsp),%rcx
L194:
  lea    -0x1(%r13),%r8d
  test   %r8d,%r8d
  jle    L203
  add    %rbx,%rcx
  add    %r14,%rbx
  xor    %r12d,%r12d
  movzbl (%rbx),%esi
  mov    %rcx,%rdx
  mov    %rcx,%rax
  nopl   (%rax)
L141:
  cmp    %sil,(%rax)
  je     L399
  add    $0x1,%r12d
  add    $0x1,%rax
  cmp    %r12d,%r8d
  jne    L141
L777:
  movzbl 0x1(%rbx),%eax
  xor    %ebp,%ebp
  nopl   0x0(%rax)
L729:
  mov    %ebp,%r13d
  cmp    %al,(%rcx,%rbp,1)
  je     L651
  lea    0x1(%rbp),%r13d
  add    $0x1,%rbp
  cmp    %ebp,%r12d
  jg     L729
  lea    0x2(%rbx),%rax
  movslq %r13d,%rbp
  mov    %rax,0x8(%rsp)
L160:
  movzbl 0x2(%rbx),%esi
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L214:
  mov    %eax,%edi
  add    $0x1,%eax
  cmp    %sil,(%rdx)
  je     L730
  add    $0x1,%rdx
  cmp    %eax,%r13d
  jg     L214
L583:
  mov    %eax,%edx
  mov    %rcx,%rsi
  lea    0x3(%rbx),%rdi
  mov    %r8d,0x20(%rsp)
  mov    %eax,0x18(%rsp)
  mov    %rcx,0x10(%rsp)
  call   <tree>
  mov    0x18(%rsp),%eax
  mov    0x10(%rsp),%rcx
  mov    %r13d,%edx
  lea    0x1(%rax),%edi
  sub    %eax,%edx
  movslq %edi,%rdi
  sub    $0x1,%edx
  lea    (%rcx,%rdi,1),%rsi
  add    0x8(%rsp),%rdi
  call   <tree>
  movsbl 0x2(%rbx),%edi
  call   <putchar@plt>
  mov    %r12d,%eax
  lea    0x1(%rbp),%rsi
  lea    0x2(%rbp),%r9
  mov    0x10(%rsp),%rcx
  mov    0x20(%rsp),%r8d
  sub    %r13d,%eax
L503:
  lea    -0x1(%rax),%ebp
  test   %ebp,%ebp
  jle    L120
  add    %rbx,%r9
  add    %rcx,%rsi
  xor    %r13d,%r13d
  movzbl (%r9),%edx
  mov    %rsi,%rax
  nopl   0x0(%rax)
L586:
  mov    %r13d,%edi
  add    $0x1,%r13d
  cmp    %dl,(%rax)
  je     L661
  add    $0x1,%rax
  cmp    %r13d,%ebp
  jne    L586
L562:
  lea    0x1(%r9),%rdi
  mov    %r13d,%edx
  mov    %r8d,0x20(%rsp)
  sub    %r13d,%ebp
  mov    %rcx,0x18(%rsp)
  mov    %r9,0x10(%rsp)
  mov    %rsi,0x8(%rsp)
  call   <tree>
  mov    0x10(%rsp),%r9
  mov    0x8(%rsp),%rsi
  lea    -0x1(%rbp),%edx
  lea    0x1(%r13),%edi
  movslq %edi,%rdi
  mov    %r9,0x8(%rsp)
  add    %rdi,%rsi
  add    %r9,%rdi
  call   <tree>
  mov    0x8(%rsp),%r9
  movsbl (%r9),%edi
  call   <putchar@plt>
  mov    0x20(%rsp),%r8d
  mov    0x18(%rsp),%rcx
L120:
  movsbl 0x1(%rbx),%edi
  mov    %r8d,0x10(%rsp)
  mov    %rcx,0x8(%rsp)
  call   <putchar@plt>
  mov    0x10(%rsp),%r8d
  lea    0x1(%r12),%r9d
  mov    0x8(%rsp),%rcx
  movslq %r9d,%r9
  sub    %r12d,%r8d
L256:
  lea    -0x1(%r8),%r13d
  test   %r13d,%r13d
  jle    L725
  add    %r9,%rcx
  add    %rbx,%r9
  xor    %r12d,%r12d
  movzbl (%r9),%edx
  mov    %rcx,%rax
  nopl   0x0(%rax)
L598:
  cmp    %dl,(%rax)
  je     L607
  add    $0x1,%r12d
  add    $0x1,%rax
  cmp    %r12d,%r13d
  jne    L598
L199:
  movzbl 0x1(%r9),%edx
  xor    %ebp,%ebp
  nopl   0x0(%rax)
L213:
  mov    %ebp,%eax
  cmp    %dl,(%rcx,%rbp,1)
  je     L73
  lea    0x1(%rbp),%eax
  add    $0x1,%rbp
  cmp    %ebp,%r12d
  jg     L213
  movslq %eax,%rbp
L73:
  lea    0x2(%r9),%rdi
  mov    %eax,%edx
  mov    %rcx,%rsi
  mov    %r9,0x18(%rsp)
  mov    %eax,0x10(%rsp)
  sub    %r12d,%r13d
  mov    %rcx,0x8(%rsp)
  call   <tree>
  mov    0x10(%rsp),%eax
  mov    0x8(%rsp),%rcx
  mov    %r12d,%edx
  mov    0x18(%rsp),%r9
  add    $0x1,%r12d
  sub    %eax,%edx
  lea    0x1(%rcx,%rbp,1),%rsi
  mov    %rcx,0x10(%rsp)
  lea    0x2(%r9,%rbp,1),%rdi
  sub    $0x1,%edx
  mov    %r9,0x8(%rsp)
  call   <tree>
  mov    0x8(%rsp),%r9
  movsbl 0x1(%r9),%edi
  call   <putchar@plt>
  mov    0x10(%rsp),%rcx
  mov    0x8(%rsp),%r9
  movslq %r12d,%rax
L226:
  sub    $0x1,%r13d
  test   %r13d,%r13d
  jle    L357
  lea    (%r9,%rax,1),%r12
  add    %rax,%rcx
  xor    %ebp,%ebp
  movzbl (%r12),%edx
  mov    %rcx,%rax
  xchg   %ax,%ax
L792:
  mov    %ebp,%edi
  add    $0x1,%ebp
  cmp    %dl,(%rax)
  je     L455
  add    $0x1,%rax
  cmp    %ebp,%r13d
  jne    L792
L364:
  mov    %rcx,%rsi
  lea    0x1(%r12),%rdi
  mov    %ebp,%edx
  mov    %r9,0x10(%rsp)
  mov    %rcx,0x8(%rsp)
  sub    %ebp,%r13d
  call   <tree>
  mov    0x8(%rsp),%rcx
  lea    0x1(%rbp),%edi
  lea    -0x1(%r13),%edx
  movslq %edi,%rdi
  lea    (%rcx,%rdi,1),%rsi
  add    %r12,%rdi
  call   <tree>
  movsbl (%r12),%edi
  call   <putchar@plt>
  mov    0x10(%rsp),%r9
L357:
  movsbl (%r9),%edi
  call   <putchar@plt>
L725:
  movsbl (%rbx),%edi
  call   <putchar@plt>
L203:
  movsbl (%r14),%edi
  call   <putchar@plt>
L706:
  movsbl (%r15),%edi
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <putchar@plt>
  nopl   (%rax)
L524:
  mov    $0x1,%ebx
  test   %r12d,%r12d
  je     L194
  jmp    L468
  nopl   0x0(%rax,%rax,1)
L646:
  test   %r12d,%r12d
  jne    L275
  mov    %r13d,%r8d
  mov    $0x1,%r12d
  mov    $0x2,%eax
L320:
  sub    $0x1,%r8d
  test   %r8d,%r8d
  jle    L198
  lea    (%r15,%rax,1),%r9
  lea    (%rbx,%r12,1),%r10
  xor    %r12d,%r12d
  movzbl (%r9),%edx
  mov    %r10,%rax
  xchg   %ax,%ax
L58:
  cmp    %dl,(%rax)
  je     L640
  add    $0x1,%r12d
  add    $0x1,%rax
  cmp    %r12d,%r8d
  jne    L58
L593:
  movzbl 0x1(%r9),%edx
  xor    %r14d,%r14d
  nopl   (%rax)
L698:
  mov    %r14d,%eax
  cmp    %dl,(%r10,%r14,1)
  je     L19
  lea    0x1(%r14),%eax
  add    $0x1,%r14
  cmp    %r14d,%r12d
  jg     L698
  movslq %eax,%r14
L19:
  lea    0x2(%r9),%rdi
  mov    %eax,%edx
  mov    %r10,%rsi
  mov    %r8d,0x2c(%rsp)
  mov    %r9,0x20(%rsp)
  mov    %eax,0x18(%rsp)
  mov    %r10,0x10(%rsp)
  call   <tree>
  mov    0x18(%rsp),%eax
  mov    0x10(%rsp),%r10
  mov    %r12d,%edx
  mov    0x20(%rsp),%r9
  sub    %eax,%edx
  lea    0x1(%r10,%r14,1),%rsi
  mov    %r10,0x18(%rsp)
  lea    0x2(%r9,%r14,1),%rdi
  sub    $0x1,%edx
  mov    %r9,0x10(%rsp)
  call   <tree>
  mov    0x10(%rsp),%r9
  movsbl 0x1(%r9),%edi
  call   <putchar@plt>
  mov    0x2c(%rsp),%r8d
  mov    0x18(%rsp),%r10
  mov    0x10(%rsp),%r9
  sub    %r12d,%r8d
  add    $0x1,%r12d
  movslq %r12d,%r11
L60:
  lea    -0x1(%r8),%r14d
  test   %r14d,%r14d
  jle    L185
  add    %r11,%r10
  add    %r9,%r11
  xor    %r12d,%r12d
  movzbl (%r11),%edx
  mov    %r10,%rax
  xchg   %ax,%ax
L328:
  mov    %r12d,%esi
  add    $0x1,%r12d
  cmp    %dl,(%rax)
  je     L35
  add    $0x1,%rax
  cmp    %r12d,%r14d
  jne    L328
L790:
  lea    0x1(%r11),%rdi
  mov    %r10,%rsi
  mov    %r12d,%edx
  mov    %r9,0x20(%rsp)
  mov    %r11,0x18(%rsp)
  mov    %r10,0x10(%rsp)
  call   <tree>
  mov    0x10(%rsp),%r10
  mov    0x18(%rsp),%r11
  mov    %r14d,%r8d
  lea    0x1(%r12),%edi
  sub    %r12d,%r8d
  movslq %edi,%rdi
  lea    -0x1(%r8),%edx
  mov    %r11,0x10(%rsp)
  lea    (%r10,%rdi,1),%rsi
  add    %r11,%rdi
  call   <tree>
  mov    0x10(%rsp),%r11
  movsbl (%r11),%edi
  call   <putchar@plt>
  mov    0x20(%rsp),%r9
L185:
  movsbl (%r9),%edi
  call   <putchar@plt>
L198:
  movsbl 0x1(%r15),%edi
  lea    0x1(%rbp),%r14
  call   <putchar@plt>
  sub    %r13d,0x8(%rsp)
  jmp    L324
  nopw   0x0(%rax,%rax,1)
L196:
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L275:
  lea    0x2(%r15),%rax
  mov    %rax,0x10(%rsp)
  jmp    L145
  xchg   %ax,%ax
L640:
  mov    $0x1,%r11d
  test   %r12d,%r12d
  je     L60
  jmp    L593
  nopl   0x0(%rax)
L399:
  mov    $0x1,%r9d
  test   %r12d,%r12d
  je     L256
  jmp    L777
  nopl   0x0(%rax)
L458:
  mov    %r9d,%r8d
  mov    $0x1,%eax
  test   %r14d,%r14d
  je     L504
  lea    0x3(%r15),%rcx
  jmp    L694
  nopw   0x0(%rax,%rax,1)
L484:
  test   %ebp,%ebp
  jne    L464
  mov    %r12d,%eax
  mov    $0x2,%r8d
  mov    $0x1,%esi
  jmp    L293
  nopl   0x0(%rax,%rax,1)
L607:
  mov    $0x1,%eax
  test   %r12d,%r12d
  je     L226
  jmp    L199
  nopl   0x0(%rax,%rax,1)
L442:
  mov    %r10d,%edx
  mov    $0x1,%edi
  test   %r8d,%r8d
  je     L793
  lea    0x4(%r15),%rax
  mov    %rax,0x18(%rsp)
  jmp    L240
  nopw   0x0(%rax,%rax,1)
L485:
  mov    %edi,%ebx
  jmp    L452
  nopw   0x0(%rax,%rax,1)
L796:
  mov    %edi,%eax
  jmp    L341
  nopw   0x0(%rax,%rax,1)
L35:
  mov    %esi,%r12d
  jmp    L790
  nopl   0x0(%rax,%rax,1)
L651:
  test   %ebp,%ebp
  jne    L360
  mov    %r12d,%eax
  mov    $0x2,%r9d
  mov    $0x1,%esi
  jmp    L503
  nopw   0x0(%rax,%rax,1)
L788:
  mov    %edi,%r14d
  jmp    L57
  nopl   0x0(%rax,%rax,1)
L730:
  mov    %edi,%eax
  jmp    L583
  nopw   0x0(%rax,%rax,1)
L455:
  mov    %edi,%ebp
  jmp    L364
  nopw   0x0(%rax,%rax,1)
L661:
  mov    %edi,%r13d
  jmp    L562
  nopl   0x0(%rax,%rax,1)
L464:
  lea    0x2(%r14),%rax
  mov    %rax,0x18(%rsp)
  jmp    L750
L360:
  lea    0x2(%rbx),%rax
  mov    %rax,0x8(%rsp)
  jmp    L160
```

assistant: ```c
void tree(char *a, char *b, int n) {
  int i;
  if (n < 1)
    return;
  for (i = 0; i < n; i++) {
    if (b[i] == a[0]) {
      break;
    }
  }
  tree(a + 1, b, i);
  tree(a + i + 1, b + i + 1, n - i - 1);
  putchar(a[0]);
}
```