user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<permute>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %esi,0x60(%rsp)
  cmp    %edx,%esi
  je     L140
  jg     L313
  movslq %esi,%rax
  mov    %edx,%r13d
  lea    0x1(%rax),%ecx
  lea    0x2(%rax),%edx
  mov    %r13d,%r15d
  mov    %ecx,0x84(%rsp)
  lea    0x3(%rax),%ecx
  mov    %edx,0x80(%rsp)
  lea    0x4(%rax),%edx
  mov    %ecx,0x64(%rsp)
  lea    0x5(%rax),%ecx
  mov    %edx,0x3c(%rsp)
  lea    0x6(%rax),%edx
  mov    %ecx,0x38(%rsp)
  lea    0x7(%rax),%ecx
  mov    %edx,0x28(%rsp)
  lea    0x8(%rax),%edx
  add    %rdi,%rax
  mov    %rax,0x88(%rsp)
  mov    %rax,0x78(%rsp)
  movslq %edx,%rax
  lea    (%rdi,%rax,1),%r14
  mov    %edx,0x2c(%rsp)
  sub    %r14d,%edx
  mov    %ecx,0x18(%rsp)
  mov    %r14,%rax
  mov    %rdi,%r14
  mov    %edx,0x1c(%rsp)
  mov    %rax,%r13
L102:
  mov    0x78(%rsp),%rsi
  mov    0x88(%rsp),%rdi
  call   <swap@plt>
  cmp    %r15d,0x84(%rsp)
  je     L283
  jg     L169
  movslq 0x84(%rsp),%rax
  add    %r14,%rax
  mov    %rax,0x90(%rsp)
  mov    %rax,0x70(%rsp)
L161:
  mov    0x70(%rsp),%rsi
  mov    0x90(%rsp),%rdi
  call   <swap@plt>
  cmp    0x80(%rsp),%r15d
  je     L170
  jl     L81
  movslq 0x80(%rsp),%rax
  add    %r14,%rax
  mov    %rax,0x98(%rsp)
  mov    %rax,0x68(%rsp)
L182:
  mov    0x68(%rsp),%rsi
  mov    0x98(%rsp),%rdi
  call   <swap@plt>
  cmp    0x64(%rsp),%r15d
  je     L331
  jl     L240
  movslq 0x64(%rsp),%rax
  add    %r14,%rax
  mov    %rax,0x58(%rsp)
  mov    %rax,0x50(%rsp)
  mov    %r15d,%eax
  mov    %r14,%r15
  mov    %eax,%r14d
L115:
  mov    0x50(%rsp),%rsi
  mov    0x58(%rsp),%rdi
  call   <swap@plt>
  cmp    0x3c(%rsp),%r14d
  je     L99
  jl     L263
  movslq 0x3c(%rsp),%rax
  add    %r15,%rax
  mov    %rax,0x30(%rsp)
  mov    %rax,(%rsp)
  mov    %r13,%rax
  mov    %r14d,%r13d
  mov    %r15,%r14
  mov    %rax,%r15
L124:
  mov    (%rsp),%rsi
  mov    0x30(%rsp),%rdi
  call   <swap@plt>
  cmp    0x38(%rsp),%r13d
  je     L90
  jl     L139
  movslq 0x38(%rsp),%rax
  add    %r14,%rax
  mov    %rax,0x48(%rsp)
  mov    %rax,0x40(%rsp)
L228:
  mov    0x40(%rsp),%rsi
  mov    0x48(%rsp),%rdi
  call   <swap@plt>
  cmp    0x28(%rsp),%r13d
  je     L128
  jl     L160
  movslq 0x28(%rsp),%rax
  add    %r14,%rax
  mov    %rax,0x20(%rsp)
  mov    %rax,0x8(%rsp)
L144:
  mov    0x8(%rsp),%rsi
  mov    0x20(%rsp),%rdi
  call   <swap@plt>
  cmp    0x18(%rsp),%r13d
  je     L72
  jl     L78
  movslq 0x18(%rsp),%rbx
  add    %r14,%rbx
  mov    %rbx,%rbp
L40:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <swap@plt>
  cmp    0x2c(%rsp),%r13d
  je     L305
  jl     L122
  mov    0x60(%rsp),%eax
  mov    %rbp,0x10(%rsp)
  mov    %r15,%r12
  mov    %r15,%rbp
  mov    %rbx,%r15
  add    $0x9,%eax
  mov    %eax,%ebx
L76:
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <swap@plt>
  mov    %r13d,%edx
  mov    %ebx,%esi
  mov    %r14,%rdi
  call   <permute>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  add    $0x1,%r12
  call   <swap@plt>
  mov    0x1c(%rsp),%eax
  add    %r12d,%eax
  cmp    %eax,%r13d
  jge    L76
  mov    %r15,%rbx
  mov    %rbp,%r15
  mov    0x10(%rsp),%rbp
L122:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  add    $0x1,%rbp
  call   <swap@plt>
  mov    0x18(%rsp),%eax
  sub    %ebx,%eax
  add    %ebp,%eax
  cmp    %eax,%r13d
  jge    L40
L78:
  mov    0x8(%rsp),%rbx
  mov    0x20(%rsp),%rbp
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <swap@plt>
  mov    0x28(%rsp),%eax
  mov    %rbx,%rdx
  add    $0x1,%rdx
  sub    %ebp,%eax
  mov    %rdx,0x8(%rsp)
  add    %edx,%eax
  cmp    %eax,%r13d
  jge    L144
L160:
  mov    0x40(%rsp),%rbx
  mov    0x48(%rsp),%rbp
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <swap@plt>
  mov    0x38(%rsp),%eax
  mov    %rbx,%rcx
  add    $0x1,%rcx
  sub    %ebp,%eax
  mov    %rcx,0x40(%rsp)
  add    %ecx,%eax
  cmp    %eax,%r13d
  jge    L228
L139:
  mov    (%rsp),%rbx
  mov    0x30(%rsp),%rbp
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <swap@plt>
  mov    0x3c(%rsp),%eax
  mov    %rbx,%rcx
  add    $0x1,%rcx
  sub    %ebp,%eax
  mov    %rcx,(%rsp)
  add    %ecx,%eax
  cmp    %eax,%r13d
  jge    L124
  mov    %r15,%rax
  mov    %r14,%r15
  mov    %r13d,%r14d
  mov    %rax,%r13
L263:
  mov    0x50(%rsp),%rbx
  mov    0x58(%rsp),%rbp
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <swap@plt>
  mov    0x64(%rsp),%eax
  mov    %rbx,%rdx
  add    $0x1,%rdx
  sub    %ebp,%eax
  mov    %rdx,0x50(%rsp)
  add    %edx,%eax
  cmp    %eax,%r14d
  jge    L115
  mov    %r14d,%eax
  mov    %r15,%r14
  mov    %eax,%r15d
L240:
  mov    0x68(%rsp),%rbx
  mov    0x98(%rsp),%rbp
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <swap@plt>
  mov    0x80(%rsp),%eax
  mov    %rbx,%rdx
  add    $0x1,%rdx
  sub    %ebp,%eax
  mov    %rdx,0x68(%rsp)
  add    %edx,%eax
  cmp    %eax,%r15d
  jge    L182
L81:
  mov    0x70(%rsp),%rbx
  mov    0x90(%rsp),%rbp
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <swap@plt>
  mov    0x84(%rsp),%eax
  mov    %rbx,%rcx
  add    $0x1,%rcx
  sub    %ebp,%eax
  mov    %rcx,0x70(%rsp)
  add    %ecx,%eax
  cmp    %eax,%r15d
  jge    L161
L169:
  mov    0x78(%rsp),%rbx
  mov    0x88(%rsp),%rbp
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <swap@plt>
  mov    0x60(%rsp),%eax
  mov    %rbx,%rdx
  add    $0x1,%rdx
  sub    %ebp,%eax
  mov    %rdx,0x78(%rsp)
  add    %edx,%eax
  cmp    %eax,%r15d
  jge    L102
L313:
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L305:
  mov    %r14,%rsi
  lea    D70(%rip),%rdi
  call   <printf@plt>
  jmp    L122
  nopl   0x0(%rax)
L72:
  mov    %r14,%rsi
  lea    D70(%rip),%rdi
  call   <printf@plt>
  jmp    L78
L128:
  mov    %r14,%rsi
  lea    D70(%rip),%rdi
  call   <printf@plt>
  jmp    L160
L90:
  mov    %r14,%rsi
  lea    D70(%rip),%rdi
  call   <printf@plt>
  jmp    L139
L99:
  mov    %r15,%rsi
  lea    D70(%rip),%rdi
  call   <printf@plt>
  jmp    L263
L331:
  mov    %r14,%rsi
  lea    D70(%rip),%rdi
  call   <printf@plt>
  jmp    L240
L170:
  mov    %r14,%rsi
  lea    D70(%rip),%rdi
  call   <printf@plt>
  jmp    L81
L283:
  mov    %r14,%rsi
  lea    D70(%rip),%rdi
  call   <printf@plt>
  jmp    L169
L140:
  add    $0xa8,%rsp
  mov    %rdi,%rsi
  lea    D70(%rip),%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1060 <printf@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D70
datatype: string

tool: D70: %s


assistant: ```c
void permute(char *a, int i, int n) {
  int j;
  if (i == n)
    printf("%s\n", a);
  else {
    for (j = i; j <= n; j++) {
      swap((a + i), (a + j));
      permute(a, i + 1, n);
      swap((a + i), (a + j));
    }
  }
}
```