user: 这段汇编代码用C语言表示是什么样的:

```asm
<size_t_sort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %ecx,-0x5c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %rax,%r10
  mov    $0x0,%r11d
  mov    %rax,%r8
  mov    $0x0,%r9d
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L53:
  cmp    %rdx,%rsp
  je     L164
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L53
L164:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L24
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L24:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x20(%rbp)
  movq   $0x0,-0x38(%rbp)
  jmp    L95
L41:
  mov    -0x38(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rcx
  mov    -0x20(%rbp),%rax
  mov    -0x38(%rbp),%rdx
  mov    %rcx,(%rax,%rdx,8)
  addq   $0x1,-0x38(%rbp)
L95:
  mov    -0x38(%rbp),%rax
  cmp    -0x58(%rbp),%rax
  jb     L41
  cmpl   $0x0,-0x5c(%rbp)
  je     L39
  movq   $0x0,-0x38(%rbp)
  jmp    L97
L0:
  movq   $0x0,-0x30(%rbp)
  jmp    L16
L15:
  mov    -0x20(%rbp),%rax
  mov    -0x30(%rbp),%rdx
  mov    (%rax,%rdx,8),%rdx
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x20(%rbp),%rax
  mov    (%rax,%rcx,8),%rax
  cmp    %rax,%rdx
  jbe    L134
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x48(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <size_t_swap@plt>
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x20(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <size_t_swap@plt>
L134:
  addq   $0x1,-0x30(%rbp)
L16:
  mov    -0x58(%rbp),%rax
  sub    -0x38(%rbp),%rax
  sub    $0x1,%rax
  cmp    %rax,-0x30(%rbp)
  jb     L15
  addq   $0x1,-0x38(%rbp)
L97:
  mov    -0x58(%rbp),%rax
  sub    $0x1,%rax
  cmp    %rax,-0x38(%rbp)
  jb     L0
  jmp    L138
L39:
  movq   $0x0,-0x38(%rbp)
  jmp    L35
L46:
  movq   $0x0,-0x30(%rbp)
  jmp    L124
L167:
  mov    -0x20(%rbp),%rax
  mov    -0x30(%rbp),%rdx
  mov    (%rax,%rdx,8),%rdx
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x20(%rbp),%rax
  mov    (%rax,%rcx,8),%rax
  cmp    %rax,%rdx
  jae    L88
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x48(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <size_t_swap@plt>
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x20(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <size_t_swap@plt>
L88:
  addq   $0x1,-0x30(%rbp)
L124:
  mov    -0x58(%rbp),%rax
  sub    -0x38(%rbp),%rax
  sub    $0x1,%rax
  cmp    %rax,-0x30(%rbp)
  jb     L167
  addq   $0x1,-0x38(%rbp)
L35:
  mov    -0x58(%rbp),%rax
  sub    $0x1,%rax
  cmp    %rax,-0x38(%rbp)
  jb     L46
L138:
  mov    %rbx,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L109
  call   <__stack_chk_fail@plt>
L109:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void size_t_sort(size_t *array, size_t *cost, size_t Nelements, bool acending) {
  size_t i, j;
  size_t tmp_cost[Nelements];
  for (i = 0; i < Nelements; i++) {
    tmp_cost[i] = cost[i];
  }
  if (acending) {
    for (i = 0; i < Nelements - 1; i++) {
      for (j = 0; j < Nelements - i - 1; j++) {
        if (tmp_cost[j] > tmp_cost[j + 1]) {
          size_t_swap(j, j + 1, array);
          size_t_swap(j, j + 1, tmp_cost);
        }
      }
    }
  } else {
    for (i = 0; i < Nelements - 1; i++) {
      for (j = 0; j < Nelements - i - 1; j++) {
        if (tmp_cost[j] < tmp_cost[j + 1]) {
          size_t_swap(j, j + 1, array);
          size_t_swap(j, j + 1, tmp_cost);
        }
      }
    }
  }
}
```