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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x64,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  mov    %eax,%edi
  call   <creat_list@plt>
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L2
L19:
  mov    -0x14(%rbp),%eax
  add    $0x40,%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x10(%rbp),%rax
  mov    -0x14(%rbp),%ecx
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <set_node_val@plt>
  addl   $0x1,-0x14(%rbp)
L2:
  mov    -0x18(%rbp),%eax
  cmp    %eax,-0x14(%rbp)
  jl     L19
  lea    -0x18(%rbp),%rcx
  lea    -0x10(%rbp),%rax
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <insert_node@plt>
  mov    -0x10(%rbp),%rax
  mov    $0x63,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <set_node_val@plt>
  lea    -0x18(%rbp),%rcx
  lea    -0x10(%rbp),%rax
  mov    $0x17,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <insert_node@plt>
  mov    -0x10(%rbp),%rax
  mov    $0x4d,%edx
  mov    $0x17,%esi
  mov    %rax,%rdi
  call   <set_node_val@plt>
  mov    -0x18(%rbp),%eax
  lea    -0x1(%rax),%edx
  lea    -0x18(%rbp),%rcx
  lea    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <insert_node@plt>
  mov    -0x18(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x10(%rbp),%rax
  mov    $0x37,%edx
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <set_node_val@plt>
  lea    -0x18(%rbp),%rcx
  lea    -0x10(%rbp),%rax
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <delete_node@plt>
  lea    -0x18(%rbp),%rcx
  lea    -0x10(%rbp),%rax
  mov    $0x18,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <delete_node@plt>
  mov    -0x18(%rbp),%eax
  lea    -0x1(%rax),%edx
  lea    -0x18(%rbp),%rcx
  lea    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <delete_node@plt>
  mov    -0x10(%rbp),%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <sort_list@plt>
  mov    -0x18(%rbp),%edx
  mov    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <reverse_list@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <print_list@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <delete_list@plt>
  movq   $0x0,-0x10(%rbp)
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L24
  call   <__stack_chk_fail@plt>
L24:
  leave
  ret
```

assistant: ```c
int main(int argc, char *argv[]) {
  uint8_t i, len = 100;
  struct single_list_t *root_node;
  root_node = creat_list(len);
  for (i = 0; i < len; i += 1) {
    set_node_val(root_node, i, 2 * i + 128);
  }
  insert_node(&root_node, &len, 0);
  set_node_val(root_node, 0, 99);
  insert_node(&root_node, &len, 23);
  set_node_val(root_node, 23, 77);
  insert_node(&root_node, &len, len - 1);
  set_node_val(root_node, len - 1, 55);
  delete_node(&root_node, &len, 0);
  delete_node(&root_node, &len, 24);
  delete_node(&root_node, &len, len - 1);
  sort_list(root_node, 1);
  reverse_list(root_node, len);
  print_list(root_node);
  delete_list(root_node);
  root_node = NULL;
  return 0;
}
```