user: Translate the below assembly code into C programming language:

```asm
<sort>:
  endbr64
  push   %r15
  mov    $0x1,%ecx
  mov    $0x9,%r10d
  push   %r14
  mov    %rcx,%rdx
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x58,%rsp
  mov    %rdi,(%rsp)
  lea    0x40(%rsp),%r15
  mov    %rsi,0x30(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  mov    %rdi,0x38(%rsp)
  nopl   0x0(%rax)
L113:
  mov    (%rbx),%r8d
  mov    0x4(%rbx),%esi
  lea    0x4(%rbx),%r9
  mov    %r12d,%eax
  mov    %edx,%r14d
  mov    %r9,%r13
  mov    %rdx,%rbp
  cmp    %esi,%r8d
  jg     L74
  mov    %r8d,%esi
  mov    %rbx,%r13
  mov    %r12,%rbp
  mov    %r12d,%r14d
L74:
  lea    0x2(%rax),%r11d
  cmp    $0x8,%eax
  je     L190
  mov    0x8(%rbx),%edi
  lea    0x2(%r12),%rbp
  lea    0x8(%rbx),%r13
  cmp    %edi,%esi
  jg     L121
  mov    (%rsp),%rcx
  movslq %r14d,%rbp
  mov    %esi,%edi
  mov    %r14d,%r11d
  lea    (%rcx,%rbp,4),%r13
L121:
  lea    0x3(%rax),%r14d
  cmp    $0x7,%eax
  je     L190
  mov    0xc(%rbx),%esi
  lea    0x3(%r12),%rbp
  lea    0xc(%rbx),%r13
  cmp    %esi,%edi
  jg     L165
  mov    (%rsp),%rcx
  movslq %r11d,%rbp
  mov    %edi,%esi
  mov    %r11d,%r14d
  lea    (%rcx,%rbp,4),%r13
L165:
  lea    0x4(%rax),%r11d
  cmp    $0x6,%eax
  je     L190
  mov    0x10(%rbx),%edi
  lea    0x4(%r12),%rbp
  lea    0x10(%rbx),%r13
  cmp    %edi,%esi
  jg     L85
  mov    (%rsp),%rcx
  movslq %r14d,%rbp
  mov    %esi,%edi
  mov    %r14d,%r11d
  lea    (%rcx,%rbp,4),%r13
L85:
  lea    0x5(%rax),%r14d
  cmp    $0x5,%eax
  je     L190
  mov    0x14(%rbx),%esi
  lea    0x5(%r12),%rbp
  lea    0x14(%rbx),%r13
  cmp    %esi,%edi
  jg     L182
  mov    (%rsp),%rcx
  movslq %r11d,%rbp
  mov    %edi,%esi
  mov    %r11d,%r14d
  lea    (%rcx,%rbp,4),%r13
L182:
  lea    0x6(%rax),%r11d
  cmp    $0x4,%eax
  je     L190
  mov    0x18(%rbx),%edi
  lea    0x6(%r12),%rbp
  lea    0x18(%rbx),%r13
  cmp    %edi,%esi
  jg     L6
  mov    (%rsp),%rcx
  movslq %r14d,%rbp
  mov    %esi,%edi
  mov    %r14d,%r11d
  lea    (%rcx,%rbp,4),%r13
L6:
  lea    0x7(%rax),%r14d
  cmp    $0x3,%eax
  je     L190
  mov    0x1c(%rbx),%esi
  lea    0x7(%r12),%rbp
  lea    0x1c(%rbx),%r13
  cmp    %esi,%edi
  jg     L19
  mov    (%rsp),%rcx
  movslq %r11d,%rbp
  mov    %edi,%esi
  mov    %r11d,%r14d
  lea    (%rcx,%rbp,4),%r13
L19:
  lea    0x8(%rax),%edi
  cmp    $0x2,%eax
  je     L190
  mov    0x20(%rbx),%eax
  lea    0x8(%r12),%rbp
  lea    0x20(%rbx),%r13
  cmp    %eax,%esi
  jg     L112
  mov    (%rsp),%rax
  movslq %r14d,%rbp
  mov    %r14d,%edi
  lea    (%rax,%rbp,4),%r13
  mov    %esi,%eax
L112:
  cmp    $0xa,%r10
  je     L190
  lea    0x24(%rbx),%r13
  mov    %r10,%rbp
  cmp    %eax,0x24(%rbx)
  jl     L190
  mov    (%rsp),%rax
  movslq %edi,%rbp
  lea    (%rax,%rbp,4),%r13
  cs nopw 0x0(%rax,%rax,1)
L190:
  mov    0x30(%rsp),%r14
  mov    %r15,%rdi
  mov    %r10,0x28(%rsp)
  mov    %rdx,0x20(%rsp)
  lea    (%r14,%r12,8),%r11
  mov    %r9,0x18(%rsp)
  lea    (%r14,%rbp,8),%rbp
  add    $0x1,%r12
  mov    %r11,%rsi
  mov    %r8d,0x14(%rsp)
  mov    %r11,0x8(%rsp)
  call   <strcpy@plt>
  mov    0x0(%r13),%eax
  mov    0x8(%rsp),%rdi
  mov    %rbp,%rsi
  mov    %eax,(%rbx)
  call   <strcpy@plt>
  mov    0x14(%rsp),%r8d
  mov    %r15,%rsi
  mov    %rbp,%rdi
  mov    %r8d,0x0(%r13)
  call   <strcpy@plt>
  mov    0x20(%rsp),%rdx
  mov    0x28(%rsp),%r10
  mov    0x18(%rsp),%rbx
  add    $0x1,%rdx
  add    $0x1,%r10
  cmp    $0x9,%r12
  jne    L113
  lea    D0(%rip),%rdi
  lea    0x50(%r14),%rbp
  call   <puts@plt>
  mov    0x38(%rsp),%r12
  lea    D8(%rip),%rbx
  nopl   0x0(%rax)
L183:
  mov    (%r12),%esi
  mov    %r14,%rdx
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x8,%r14
  add    $0x4,%r12
  call   <printf@plt>
  cmp    %r14,%rbp
  jne    L183
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L88
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L88:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D0
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D8
type_infered: string

tool: D0: 
 result:

tool: D8: 
 %5d%10s

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