user: 下面的汇编指令对应的C源代码是什么:

```asm
<shellsort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  movl   $0x1,-0x8(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x18(%rbp)
  jmp    L92
L59:
  mov    -0x18(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L95
L10:
  mov    -0x14(%rbp),%eax
  sub    -0x18(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  jmp    L102
L115:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x10(%rbp),%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x8(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x8(%rbp)
  mov    %eax,%esi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0xc(%rbp)
  jmp    L35
L55:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0xc(%rbp)
L35:
  mov    -0xc(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L55
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0xc(%rbp)
  jmp    L139
L131:
  mov    -0xc(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  je     L135
  mov    -0x10(%rbp),%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0xc(%rbp)
  jne    L80
L135:
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L74
L80:
  lea    D40(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L74:
  addl   $0x1,-0xc(%rbp)
L139:
  mov    -0xc(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L131
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x18(%rbp),%eax
  sub    %eax,-0x10(%rbp)
L102:
  cmpl   $0x0,-0x10(%rbp)
  js     L127
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x10(%rbp),%ecx
  mov    -0x18(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jg     L115
L127:
  addl   $0x1,-0x14(%rbp)
L95:
  mov    -0x14(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L10
  mov    -0x18(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x18(%rbp)
L92:
  cmpl   $0x0,-0x18(%rbp)
  jg     L59
  nop
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D48
type: string
name: retrieve_data
arguments: label: D45
type: string
name: retrieve_data
arguments: label: D0
type: string
name: retrieve_data
arguments: label: D31
type: string
name: retrieve_data
arguments: label: D40
type: string

tool: D48: %d)	

tool: D45: %02d 

tool: D0: 
	

tool: D31:  ^ 

tool: D40:    

assistant: ```c
void shellsort(int v[], int n) {
  int gap, temp;
  int e, ee, eee, lncnt = 1;
  for (gap = n / 2; gap > 0; gap /= 2) {
    for (e = gap; e < n; e++) {
      for (ee = e - gap; ee >= 0 && v[ee] > v[ee + gap]; ee -= gap) {
        temp = v[ee];
        v[ee] = v[ee + gap];
        v[ee + gap] = temp;
        printf("%d)\t", lncnt++);
        for (eee = 0; eee < n; ++eee) {
          printf("%02d ", v[eee]);
        }
        printf("\n\t");
        for (eee = 0; eee < n; ++eee) {
          if (eee == ee || eee == ee + gap) {
            printf(" ^ ");
          } else {
            printf("   ");
          }
        }
        printf("\n");
      }
    }
  }
}
```