user: Converte this assembly snippet into its equivalent C code:

```asm
<sort>:
  endbr64
  push   %r15
  mov    $0x10,%eax
  mov    $0x9,%r15d
  push   %r14
  push   %r13
  lea    0x8(%rdi,%rax,1),%r13
  mov    $0x18,%eax
  push   %r12
  lea    (%rdi,%rax,1),%rcx
  lea    0x8(%rdi,%rax,1),%rax
  push   %rbp
  lea    0x10(%rdi),%r12
  lea    0x8(%rdi),%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x78,%rsp
  mov    %rax,0x8(%rsp)
  mov    $0x20,%eax
  lea    (%rdi,%rax,1),%rdx
  lea    0x8(%rdi,%rax,1),%rax
  mov    %rcx,0x20(%rsp)
  mov    %rax,0x18(%rsp)
  mov    $0x28,%eax
  lea    (%rdi,%rax,1),%rcx
  lea    0x8(%rdi,%rax,1),%rax
  mov    %rdx,0x30(%rsp)
  mov    %rax,0x28(%rsp)
  mov    $0x30,%eax
  lea    (%rdi,%rax,1),%rdx
  lea    0x8(%rdi,%rax,1),%rax
  mov    %rcx,0x40(%rsp)
  mov    %rax,0x38(%rsp)
  mov    $0x38,%eax
  lea    (%rdi,%rax,1),%rcx
  lea    0x8(%rdi,%rax,1),%rax
  mov    %rdx,0x50(%rsp)
  mov    %rax,0x48(%rsp)
  mov    $0x40,%eax
  lea    (%rdi,%rax,1),%rdx
  lea    0x8(%rdi,%rax,1),%rax
  mov    %r12,0x10(%rsp)
  mov    %rcx,0x60(%rsp)
  mov    %rdx,0x68(%rsp)
  mov    %rax,0x58(%rsp)
  jmp    L162
  nopw   0x0(%rax,%rax,1)
L149:
  cmp    $0x1,%r15d
  je     L8
L136:
  mov    0x0(%rbp),%rsi
  cmp    (%r12),%rsi
  ja     L23
L159:
  cmp    $0x2,%r15d
  je     L129
  mov    0x10(%rsp),%rax
  mov    (%rax),%rsi
  cmp    0x0(%r13),%rsi
  ja     L170
L151:
  cmp    $0x3,%r15d
  je     L129
  mov    0x20(%rsp),%rax
  mov    (%rax),%rsi
  mov    0x8(%rsp),%rax
  cmp    (%rax),%rsi
  ja     L259
L70:
  cmp    $0x4,%r15d
  je     L129
  mov    0x30(%rsp),%rax
  mov    (%rax),%rsi
  mov    0x18(%rsp),%rax
  cmp    (%rax),%rsi
  ja     L258
L103:
  cmp    $0x5,%r15d
  je     L129
  mov    0x40(%rsp),%rax
  mov    (%rax),%rsi
  mov    0x28(%rsp),%rax
  cmp    (%rax),%rsi
  ja     L97
L254:
  cmp    $0x6,%r15d
  je     L129
  mov    0x50(%rsp),%rax
  mov    (%rax),%rsi
  mov    0x38(%rsp),%rax
  cmp    (%rax),%rsi
  ja     L235
L38:
  cmp    $0x7,%r15d
  je     L129
  mov    0x60(%rsp),%rax
  mov    (%rax),%rsi
  mov    0x48(%rsp),%rax
  cmp    (%rax),%rsi
  ja     L30
L82:
  cmp    $0x9,%r15d
  jne    L129
  mov    0x68(%rsp),%rax
  mov    (%rax),%rsi
  mov    0x58(%rsp),%rax
  cmp    (%rax),%rsi
  ja     L87
L129:
  sub    $0x1,%r15d
L162:
  mov    (%rbx),%rsi
  cmp    0x0(%rbp),%rsi
  jbe    L149
  xor    %r14d,%r14d
  mov    %r14,%rdi
  call   <strcpy@plt>
  mov    0x0(%rbp),%rsi
  mov    (%rbx),%rdi
  call   <strcpy@plt>
  mov    0x0(%rbp),%rdi
  mov    %r14,%rsi
  call   <strcpy@plt>
  cmp    $0x1,%r15d
  jne    L136
L8:
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L23:
  xor    %r14d,%r14d
  mov    %r14,%rdi
  call   <strcpy@plt>
  mov    (%r12),%rsi
  mov    0x0(%rbp),%rdi
  call   <strcpy@plt>
  mov    (%r12),%rdi
  mov    %r14,%rsi
  call   <strcpy@plt>
  jmp    L159
  nopl   0x0(%rax)
L170:
  xor    %r14d,%r14d
  mov    %r14,%rdi
  call   <strcpy@plt>
  mov    0x10(%rsp),%rax
  mov    0x0(%r13),%rsi
  mov    (%rax),%rdi
  call   <strcpy@plt>
  mov    0x0(%r13),%rdi
  mov    %r14,%rsi
  call   <strcpy@plt>
  jmp    L151
  nopl   (%rax)
L259:
  xor    %r14d,%r14d
  mov    %r14,%rdi
  call   <strcpy@plt>
  mov    0x8(%rsp),%rax
  mov    0x20(%rsp),%rdx
  mov    (%rax),%rsi
  mov    (%rdx),%rdi
  call   <strcpy@plt>
  mov    0x8(%rsp),%rax
  mov    %r14,%rsi
  mov    (%rax),%rdi
  call   <strcpy@plt>
  jmp    L70
  nopl   (%rax)
L258:
  xor    %r14d,%r14d
  mov    %r14,%rdi
  call   <strcpy@plt>
  mov    0x18(%rsp),%rax
  mov    0x30(%rsp),%rcx
  mov    (%rax),%rsi
  mov    (%rcx),%rdi
  call   <strcpy@plt>
  mov    0x18(%rsp),%rax
  mov    %r14,%rsi
  mov    (%rax),%rdi
  call   <strcpy@plt>
  jmp    L103
  nopl   (%rax)
L97:
  xor    %r14d,%r14d
  mov    %r14,%rdi
  call   <strcpy@plt>
  mov    0x28(%rsp),%rax
  mov    0x40(%rsp),%rcx
  mov    (%rax),%rsi
  mov    (%rcx),%rdi
  call   <strcpy@plt>
  mov    0x28(%rsp),%rax
  mov    %r14,%rsi
  mov    (%rax),%rdi
  call   <strcpy@plt>
  jmp    L254
  nopl   (%rax)
L235:
  xor    %r14d,%r14d
  mov    %r14,%rdi
  call   <strcpy@plt>
  mov    0x38(%rsp),%rax
  mov    0x50(%rsp),%rdx
  mov    (%rax),%rsi
  mov    (%rdx),%rdi
  call   <strcpy@plt>
  mov    0x38(%rsp),%rax
  mov    %r14,%rsi
  mov    (%rax),%rdi
  call   <strcpy@plt>
  jmp    L38
  nopl   (%rax)
L30:
  xor    %r14d,%r14d
  mov    %r14,%rdi
  call   <strcpy@plt>
  mov    0x48(%rsp),%rax
  mov    0x60(%rsp),%rcx
  mov    (%rax),%rsi
  mov    (%rcx),%rdi
  call   <strcpy@plt>
  mov    0x48(%rsp),%rax
  mov    %r14,%rsi
  mov    (%rax),%rdi
  call   <strcpy@plt>
  jmp    L82
  nopl   (%rax)
L87:
  xor    %r14d,%r14d
  mov    %r14,%rdi
  call   <strcpy@plt>
  mov    0x58(%rsp),%rax
  mov    0x68(%rsp),%rdx
  mov    (%rax),%rsi
  mov    (%rdx),%rdi
  call   <strcpy@plt>
  mov    0x58(%rsp),%rax
  mov    %r14,%rsi
  mov    (%rax),%rdi
  call   <strcpy@plt>
  jmp    L129
```

assistant: ```c
void sort(char *s[]) {
  int i, j, n;
  char *temp;
  for (i = 0; i < 9; i++)
    for (j = 0; j < 9 - i; j++)
      if (s[j + n] > s[j + n + 1]) {
        strcpy(temp, s[j + n]);
        strcpy(s[j + n], s[j + n + 1]);
        strcpy(s[j + n + 1], temp);
      }
}
```