user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %r15
  xor    %edi,%edi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
  lea    0x28(%rsp),%rbp
  call   <time@plt>
  mov    %rbx,%r12
  mov    %rbx,%r14
  mov    %eax,%edi
  call   <srand@plt>
  xchg   %ax,%ax
L156:
  xor    %eax,%eax
  add    $0x4,%r14
  call   <random@plt>
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x68db8bad,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x2c,%rdx
  sub    %ecx,%edx
  imul   $0x2710,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0x4(%r14)
  cmp    %rbp,%r14
  jne    L156
  mov    $0x7,%r11d
  mov    $0x6,%r10d
  mov    $0x3,%edi
  xor    %edx,%edx
  mov    $0x5,%r9d
  mov    $0x4,%r8d
  mov    $0x2,%esi
  mov    $0x9,%r14d
  jmp    L204
L144:
  movslq %ebp,%r13
L90:
  cmp    $0xa,%esi
  je     L134
  mov    0x8(%r12),%r15d
  cmp    %r15d,%eax
  jge    L10
  movslq %esi,%r13
  mov    %r15d,%eax
L10:
  cmp    $0xa,%edi
  je     L134
  mov    0xc(%r12),%r15d
  cmp    %r15d,%eax
  jge    L146
  movslq %edi,%r13
  mov    %r15d,%eax
L146:
  cmp    $0xa,%r8d
  je     L134
  mov    0x10(%r12),%r15d
  cmp    %r15d,%eax
  jge    L209
  movslq %r8d,%r13
  mov    %r15d,%eax
L209:
  cmp    $0xa,%r9d
  je     L134
  mov    0x14(%r12),%r15d
  cmp    %r15d,%eax
  jge    L221
  movslq %r9d,%r13
  mov    %r15d,%eax
L221:
  cmp    $0xa,%r10d
  je     L134
  mov    0x18(%r12),%r15d
  cmp    %r15d,%eax
  jge    L112
  movslq %r10d,%r13
  mov    %r15d,%eax
L112:
  cmp    $0xa,%r11d
  je     L134
  mov    0x1c(%r12),%r15d
  cmp    %r15d,%eax
  jge    L28
  movslq %r11d,%r13
  mov    %r15d,%eax
L28:
  lea    0x8(%rdx),%r15d
  cmp    $0x2,%edx
  je     L134
  mov    0x20(%r12),%edx
  cmp    %edx,%eax
  jge    L3
  movslq %r15d,%r13
  mov    %edx,%eax
L3:
  cmp    $0xa,%r14d
  je     L134
  mov    0x24(%r12),%edx
  cmp    %eax,%edx
  jle    L134
  mov    %edx,%eax
  mov    $0x9,%r13d
  nop
L134:
  movslq %r13d,%rdx
  add    $0x4,%r12
  add    $0x1,%r14d
  add    $0x1,%esi
  mov    %ecx,(%rsp,%rdx,4)
  add    $0x1,%edi
  add    $0x1,%r8d
  add    $0x1,%r9d
  mov    %eax,-0x4(%r12)
  add    $0x1,%r10d
  add    $0x1,%r11d
  mov    %ebp,%edx
L204:
  mov    (%r12),%ecx
  lea    0x1(%rdx),%ebp
  cmp    $0x9,%edx
  je     L174
  mov    0x4(%r12),%eax
  cmp    %eax,%ecx
  jl     L144
  mov    %ecx,%eax
  jmp    L90
  nopl   0x0(%rax,%rax,1)
L174:
  mov    %ecx,(%rsp,%r13,4)
  mov    $0x1,%ebp
  mov    %ecx,(%r12)
  lea    D1(%rip),%r12
  nopl   0x0(%rax)
L65:
  mov    -0x4(%rbx,%rbp,4),%edx
  mov    %ebp,%esi
  mov    %r12,%rdi
  add    $0x1,%rbp
  call   <printf@plt>
  cmp    $0xb,%rbp
  jne    L65
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L47
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L47:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D1
type_guessed: string

tool: D1: NUM.%d=%d


assistant: ```c
int main() {
  srand(time(0));
  int arr[10];
  int i, j, max, index;
  for (i = 0; i <= 9; i++)
    arr[i] = random() % 10000;
  for (j = 0; j <= 9; j++) {
    max = arr[j];
    for (i = j; i <= 9; i++) {
      if (max < arr[i]) {
        max = arr[i];
        index = i;
      }
    }
    arr[index] = arr[j];
    arr[j] = max;
  }
  for (i = 0; i <= 9; i++)
    printf("NUM.%d=%d\n", i + 1, arr[i]);
  return 0;
}
```