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

```asm
<sort>:
  endbr64
  push   %r15
  push   %r14
  mov    %rsi,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    $0x1,%ebx
  sub    $0x68,%rsp
  mov    %rdi,0x8(%rsp)
  lea    0x30(%rsp),%r12
  mov    %rsi,0x18(%rsp)
  mov    %r12,%r15
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  mov    %rsi,0x20(%rsp)
  mov    %rdi,%rax
  movq   $0x9,0x10(%rsp)
  mov    %rdi,0x28(%rsp)
  nopw   0x0(%rax,%rax,1)
L130:
  mov    (%rax),%edi
  mov    0x4(%rax),%esi
  lea    0x4(%rax),%r12
  mov    %ebx,%edx
  lea    -0x1(%rbx),%r10d
  lea    -0x1(%rbx),%rbp
  mov    %ebx,%r9d
  mov    %r12,%rcx
  cmp    %esi,%edi
  jg     L236
  mov    %r10d,%r9d
  mov    %edi,%esi
  lea    0x1(%rdx),%r10d
  mov    %rax,%rcx
  cmp    $0x9,%edx
  je     L92
L6:
  mov    0x8(%rax),%ecx
  lea    0x1(%rbx),%r13
  lea    0x8(%rax),%r11
  mov    %r13,%rbp
  cmp    %ecx,%esi
  jg     L220
  mov    0x8(%rsp),%rcx
  movslq %r9d,%rbp
  mov    %r9d,%r10d
  lea    (%rcx,%rbp,4),%r11
  mov    %esi,%ecx
L220:
  lea    0x2(%rdx),%r9d
  cmp    $0x8,%edx
  je     L211
  mov    0xc(%rax),%esi
  lea    0x2(%rbx),%rbp
  lea    0xc(%rax),%r11
  cmp    %esi,%ecx
  jg     L71
  mov    0x8(%rsp),%rsi
  movslq %r10d,%rbp
  mov    %r10d,%r9d
  lea    (%rsi,%rbp,4),%r11
  mov    %ecx,%esi
L71:
  lea    0x3(%rdx),%r10d
  cmp    $0x7,%edx
  je     L210
  mov    0x10(%rax),%ecx
  lea    0x3(%rbx),%rbp
  lea    0x10(%rax),%r11
  cmp    %ecx,%esi
  jg     L88
  mov    0x8(%rsp),%rcx
  movslq %r9d,%rbp
  mov    %r9d,%r10d
  lea    (%rcx,%rbp,4),%r11
  mov    %esi,%ecx
L88:
  lea    0x4(%rdx),%r9d
  cmp    $0x6,%edx
  je     L211
  mov    0x14(%rax),%esi
  lea    0x4(%rbx),%rbp
  lea    0x14(%rax),%r11
  cmp    %esi,%ecx
  jg     L118
  mov    0x8(%rsp),%rsi
  movslq %r10d,%rbp
  mov    %r10d,%r9d
  lea    (%rsi,%rbp,4),%r11
  mov    %ecx,%esi
L118:
  lea    0x5(%rdx),%r10d
  cmp    $0x5,%edx
  je     L210
  mov    0x18(%rax),%ecx
  lea    0x5(%rbx),%rbp
  lea    0x18(%rax),%r11
  cmp    %ecx,%esi
  jg     L170
  mov    0x8(%rsp),%rcx
  movslq %r9d,%rbp
  mov    %r9d,%r10d
  lea    (%rcx,%rbp,4),%r11
  mov    %esi,%ecx
L170:
  lea    0x6(%rdx),%r9d
  cmp    $0x4,%edx
  je     L211
  mov    0x1c(%rax),%esi
  lea    0x6(%rbx),%rbp
  lea    0x1c(%rax),%r11
  cmp    %esi,%ecx
  jg     L135
  mov    0x8(%rsp),%rsi
  movslq %r10d,%rbp
  mov    %r10d,%r9d
  lea    (%rsi,%rbp,4),%r11
  mov    %ecx,%esi
L135:
  lea    0x7(%rdx),%r10d
  cmp    $0x3,%edx
  je     L210
  mov    0x20(%rax),%edx
  lea    0x7(%rbx),%rbp
  lea    0x20(%rax),%r11
  cmp    %edx,%esi
  jg     L4
  mov    0x8(%rsp),%rdx
  movslq %r9d,%rbp
  mov    %r9d,%r10d
  lea    (%rdx,%rbp,4),%r11
  mov    %esi,%edx
L4:
  mov    0x10(%rsp),%rbx
  cmp    $0xa,%rbx
  je     L230
  mov    0x24(%rax),%ecx
  lea    0x24(%rax),%r11
  mov    %rbx,%rbp
  cmp    %edx,%ecx
  jl     L211
  mov    0x8(%rsp),%rbx
  movslq %r10d,%rbp
  mov    %edx,%ecx
  lea    (%rbx,%rbp,4),%r11
  nopw   0x0(%rax,%rax,1)
L211:
  mov    %ecx,(%rax)
  mov    %r14,%rsi
  mov    %r13,%rbx
  mov    %edi,(%r11)
  mov    %r15,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rax
  mov    0x18(%rsp),%rcx
  mov    %r14,%rdi
  shl    $0x4,%rax
  add    $0x1e,%r14
  sub    %rbp,%rax
  lea    (%rcx,%rax,2),%rbp
  mov    %rbp,%rsi
  call   <strcpy@plt>
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  addq   $0x1,0x10(%rsp)
  mov    %r12,%rax
  jmp    L130
  xchg   %ax,%ax
L236:
  mov    %rbx,%rbp
  lea    0x1(%rdx),%r10d
  cmp    $0x9,%edx
  jne    L6
L92:
  mov    %esi,(%rax)
  mov    %r14,%rsi
  add    $0x1,%rbx
  mov    %edi,(%rcx)
  mov    %r15,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rax
  mov    0x18(%rsp),%rdi
  shl    $0x4,%rax
  sub    %rbp,%rax
  lea    (%rdi,%rax,2),%rbp
  mov    %r14,%rdi
  add    $0x1e,%r14
  mov    %rbp,%rsi
  call   <strcpy@plt>
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  addq   $0x1,0x10(%rsp)
  mov    %r12,%rax
  cmp    $0xa,%rbx
  jne    L130
  lea    D6(%rip),%rdi
  mov    0x20(%rsp),%r13
  mov    0x28(%rsp),%r15
  lea    D4(%rip),%rbp
  call   <puts@plt>
  mov    0x18(%rsp),%rbx
  add    $0x12c,%rbx
  nopl   0x0(%rax)
L239:
  mov    (%r15),%esi
  mov    %r13,%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1e,%r13
  add    $0x4,%r15
  call   <printf@plt>
  cmp    %r13,%rbx
  jne    L239
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L153
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L210:
  mov    %esi,%ecx
  jmp    L211
L230:
  mov    %edx,%ecx
  jmp    L211
L153:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D6
type_infered: string
name: disassemble_data
arguments: data_tag: D4
type_infered: string

tool: D6: result:

tool: D4: 
%d %s

assistant: ```c
void sort(int num[], char name[][30]) {
  int i, j, min, temp;
  char copy[30];
  for (i = 0; i < 10 - 1; i++) {
    min = i;
    for (j = i; j < 10; j++) {
      if (num[min] > num[j])
        min = j;
    }
    temp = num[i];
    num[i] = num[min];
    num[min] = temp;
    strcpy(copy, name[i]);
    strcpy(name[i], name[min]);
    strcpy(name[min], copy);
  }
  printf("result:\n");
  for (i = 0; i < 10; i++) {
    printf("\n%d %s", num[i], name[i]);
  }
  printf("\n");
}
```