ylfeng/ReF-Decompile-dataset huggingface dataset:
user: What would the C source look like for the assembly code provided here:

```asm
<robber_routine>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <data_isai@plt>
  test   %rax,%rax
  je     L21
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <ai_moverobber@plt>
  jmp    L84
L21:
  mov    $0x0,%eax
  call   <marker_hide@plt>
  mov    $0x0,%eax
  call   <map_getrobberhex@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  movl   $0x1,-0x8(%rbp)
  jmp    L83
L56:
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <data_refresh@plt>
  mov    $0x1,%edi
  call   <io_printmap@plt>
  mov    $0x0,%eax
  call   <io_getkey@plt>
  cmp    $0x4,%eax
  jg     L67
  test   %eax,%eax
  js     L137
  cmp    $0x4,%eax
  ja     L137
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D26(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D26(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
L67:
  cmp    $0x72,%eax
  je     L119
  jmp    L137
  mov    -0xc(%rbp),%eax
  mov    %eax,%edi
  call   <robber_up@plt>
  mov    %eax,-0xc(%rbp)
  jmp    L83
  mov    -0xc(%rbp),%eax
  mov    %eax,%edi
  call   <robber_down@plt>
  mov    %eax,-0xc(%rbp)
  jmp    L83
  mov    -0xc(%rbp),%eax
  mov    %eax,%edi
  call   <robber_left@plt>
  mov    %eax,-0xc(%rbp)
  jmp    L83
  mov    -0xc(%rbp),%eax
  mov    %eax,%edi
  call   <robber_right@plt>
  mov    %eax,-0xc(%rbp)
  jmp    L83
L119:
  mov    -0xc(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  je     L85
  movl   $0x0,-0x8(%rbp)
  jmp    L83
L85:
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <map_setmessage@plt>
  jmp    L83
L137:
  nop
L83:
  cmpl   $0x0,-0x8(%rbp)
  jne    L56
  mov    -0xc(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <robber_stealroutine@plt>
L84:
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D17
type_infered: string

tool: D17: Cannot rob same hex twice in a row.

assistant: ```c
void robber_routine(int player) {
  if (data_isai(player)) {
    ai_moverobber(player);
    return;
  }
  marker_hide();
  int hex = map_getrobberhex();
  int hexorig = hex;
  int rob = 1;
  while (rob) {
    data_refresh(player);
    io_printmap(1);
    switch (io_getkey()) {
    case 2:
      hex = robber_up(hex);
      break;
    case 3:
      hex = robber_down(hex);
      break;
    case 0:
      hex = robber_left(hex);
      break;
    case 1:
      hex = robber_right(hex);
      break;
    case 4:
    case 'r':
      if (hex != hexorig)
        rob = 0;
      else
        map_setmessage("Cannot rob same hex twice in a row.");
      break;
    default:
      break;
    }
  }
  robber_stealroutine(player, hex);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<robber_routine>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%r12d
  call   <data_isai@plt>
  test   %rax,%rax
  jne    L4
  mov    $0x0,%eax
  call   <marker_hide@plt>
  mov    $0x0,%eax
  call   <map_getrobberhex@plt>
  mov    %eax,%r13d
  mov    %eax,%ebx
  lea    D4(%rip),%r14
  lea    D13(%rip),%rbp
  jmp    L54
L4:
  mov    %r12d,%edi
  call   <ai_moverobber@plt>
  jmp    L15
  mov    %ebx,%edi
  call   <robber_up@plt>
  mov    %eax,%ebx
  jmp    L54
  mov    %ebx,%edi
  call   <robber_down@plt>
  mov    %eax,%ebx
  jmp    L54
  mov    %ebx,%edi
  call   <robber_left@plt>
  mov    %eax,%ebx
  jmp    L54
  mov    %ebx,%edi
  call   <robber_right@plt>
  mov    %eax,%ebx
  jmp    L54
L104:
  cmp    %ebx,%r13d
  jne    L16
  mov    %r14,%rdi
  call   <map_setmessage@plt>
  jmp    L54
L16:
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <robber_stealroutine@plt>
L15:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L105:
  cmp    $0x72,%eax
  je     L104
L54:
  mov    %r12d,%edi
  call   <data_refresh@plt>
  mov    $0x1,%edi
  call   <io_printmap@plt>
  mov    $0x0,%eax
  call   <io_getkey@plt>
  cmp    $0x4,%eax
  jg     L105
  test   %eax,%eax
  js     L54
  cmp    $0x4,%eax
  ja     L54
  mov    %eax,%eax
  movslq 0x0(%rbp,%rax,4),%rax
  add    %rbp,%rax
  notrack jmp *%rax
```

tool_calls: name: unpack_data
arguments: data_tag: D4
type_guessed: string

tool: D4: Cannot rob same hex twice in a row.

assistant: ```c
void robber_routine(int player) {
  if (data_isai(player)) {
    ai_moverobber(player);
    return;
  }
  marker_hide();
  int hex = map_getrobberhex();
  int hexorig = hex;
  int rob = 1;
  while (rob) {
    data_refresh(player);
    io_printmap(1);
    switch (io_getkey()) {
    case 2:
      hex = robber_up(hex);
      break;
    case 3:
      hex = robber_down(hex);
      break;
    case 0:
      hex = robber_left(hex);
      break;
    case 1:
      hex = robber_right(hex);
      break;
    case 4:
    case 'r':
      if (hex != hexorig)
        rob = 0;
      else
        map_setmessage("Cannot rob same hex twice in a row.");
      break;
    default:
      break;
    }
  }
  robber_stealroutine(player, hex);
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<robber_routine>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  mov    %edi,%r12d
  push   %rbp
  push   %rbx
  call   <data_isai@plt>
  test   %rax,%rax
  jne    L57
  xor    %eax,%eax
  lea    D19(%rip),%r14
  lea    D10(%rip),%rbx
  call   <marker_hide@plt>
  xor    %eax,%eax
  call   <map_getrobberhex@plt>
  mov    %eax,%r13d
  mov    %eax,%ebp
  xchg   %ax,%ax
L101:
  mov    %r12d,%edi
  call   <data_refresh@plt>
  mov    $0x1,%edi
  call   <io_printmap@plt>
  xor    %eax,%eax
  call   <io_getkey@plt>
  cmp    $0x4,%eax
  jg     L94
  test   %eax,%eax
  js     L101
  cmp    $0x4,%eax
  ja     L10
  mov    %eax,%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax,%rax,1)
  mov    %ebp,%edi
  call   <robber_down@plt>
  mov    %eax,%ebp
  jmp    L101
  nopl   0x0(%rax,%rax,1)
  mov    %ebp,%edi
  call   <robber_up@plt>
  mov    %eax,%ebp
  jmp    L101
  nopl   0x0(%rax,%rax,1)
  mov    %ebp,%edi
  call   <robber_right@plt>
  mov    %eax,%ebp
  jmp    L101
  nopl   0x0(%rax,%rax,1)
L94:
  cmp    $0x72,%eax
  jne    L101
  cmp    %ebp,%r13d
  jne    L50
  mov    %r14,%rdi
  call   <map_setmessage@plt>
  jmp    L101
  nopl   0x0(%rax)
L10:
  mov    %ebp,%edi
  call   <robber_left@plt>
  mov    %eax,%ebp
  jmp    L101
  xchg   %ax,%ax
L50:
  pop    %rbx
  mov    %ebp,%esi
  mov    %r12d,%edi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1110 <robber_stealroutine@plt>
L57:
  pop    %rbx
  mov    %r12d,%edi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1150 <ai_moverobber@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D19
type: string

tool: D19: Cannot rob same hex twice in a row.

assistant: ```c
void robber_routine(int player) {
  if (data_isai(player)) {
    ai_moverobber(player);
    return;
  }
  marker_hide();
  int hex = map_getrobberhex();
  int hexorig = hex;
  int rob = 1;
  while (rob) {
    data_refresh(player);
    io_printmap(1);
    switch (io_getkey()) {
    case 2:
      hex = robber_up(hex);
      break;
    case 3:
      hex = robber_down(hex);
      break;
    case 0:
      hex = robber_left(hex);
      break;
    case 1:
      hex = robber_right(hex);
      break;
    case 4:
    case 'r':
      if (hex != hexorig)
        rob = 0;
      else
        map_setmessage("Cannot rob same hex twice in a row.");
      break;
    default:
      break;
    }
  }
  robber_stealroutine(player, hex);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<robber_routine>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  mov    %edi,%r12d
  push   %rbp
  push   %rbx
  call   <data_isai@plt>
  test   %rax,%rax
  jne    L64
  xor    %eax,%eax
  lea    D12(%rip),%r14
  lea    D7(%rip),%rbx
  call   <marker_hide@plt>
  xor    %eax,%eax
  call   <map_getrobberhex@plt>
  mov    %eax,%r13d
  mov    %eax,%ebp
  xchg   %ax,%ax
L52:
  mov    %r12d,%edi
  call   <data_refresh@plt>
  mov    $0x1,%edi
  call   <io_printmap@plt>
  xor    %eax,%eax
  call   <io_getkey@plt>
  cmp    $0x4,%eax
  jg     L32
  test   %eax,%eax
  js     L52
  cmp    $0x4,%eax
  ja     L29
  mov    %eax,%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax,%rax,1)
  mov    %ebp,%edi
  call   <robber_down@plt>
  mov    %eax,%ebp
  jmp    L52
  nopl   0x0(%rax,%rax,1)
  mov    %ebp,%edi
  call   <robber_up@plt>
  mov    %eax,%ebp
  jmp    L52
  nopl   0x0(%rax,%rax,1)
  mov    %ebp,%edi
  call   <robber_right@plt>
  mov    %eax,%ebp
  jmp    L52
  nopl   0x0(%rax,%rax,1)
L32:
  cmp    $0x72,%eax
  jne    L52
  cmp    %ebp,%r13d
  jne    L44
  mov    %r14,%rdi
  call   <map_setmessage@plt>
  jmp    L52
  nopl   0x0(%rax)
L29:
  mov    %ebp,%edi
  call   <robber_left@plt>
  mov    %eax,%ebp
  jmp    L52
  xchg   %ax,%ax
L44:
  pop    %rbx
  mov    %ebp,%esi
  mov    %r12d,%edi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1110 <robber_stealroutine@plt>
L64:
  pop    %rbx
  mov    %r12d,%edi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1150 <ai_moverobber@plt>
```

tool_calls: name: unpack_data
arguments: label: D12
type: string

tool: D12: Cannot rob same hex twice in a row.

assistant: ```c
void robber_routine(int player) {
  if (data_isai(player)) {
    ai_moverobber(player);
    return;
  }
  marker_hide();
  int hex = map_getrobberhex();
  int hexorig = hex;
  int rob = 1;
  while (rob) {
    data_refresh(player);
    io_printmap(1);
    switch (io_getkey()) {
    case 2:
      hex = robber_up(hex);
      break;
    case 3:
      hex = robber_down(hex);
      break;
    case 0:
      hex = robber_left(hex);
      break;
    case 1:
      hex = robber_right(hex);
      break;
    case 4:
    case 'r':
      if (hex != hexorig)
        rob = 0;
      else
        map_setmessage("Cannot rob same hex twice in a row.");
      break;
    default:
      break;
    }
  }
  robber_stealroutine(player, hex);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<init_atom_builder>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    D3(%rip),%eax
  test   %eax,%eax
  jne    L0
  mov    D3(%rip),%eax
  add    $0x1,%eax
  mov    %eax,D16(%rip)
  mov    $0x0,%eax
  call   <init_atom_builder_med_caelements_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_med_policy@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_port@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_pis_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_config@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_interfaces_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_dot3_power@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_med_caelement@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_pi@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_med_location@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_mgmts_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_vlans_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_ports_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_med_power@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_med_locations_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_vlan@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_chassis@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_interface@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_ppvids_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_mgmt@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_custom@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_ppvid@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_custom_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_med_policies_list@plt>
  jmp    L7
L0:
  nop
L7:
  pop    %rbp
  ret
```

assistant: ```c
void init_atom_builder() {
  static int init = 0;
  if (init)
    return;
  init++;
  init_atom_builder_med_caelements_list();
  init_atom_builder_med_policy();
  init_atom_builder_port();
  init_atom_builder_pis_list();
  init_atom_builder_config();
  init_atom_builder_interfaces_list();
  init_atom_builder_dot3_power();
  init_atom_builder_med_caelement();
  init_atom_builder_pi();
  init_atom_builder_med_location();
  init_atom_builder_mgmts_list();
  init_atom_builder_vlans_list();
  init_atom_builder_ports_list();
  init_atom_builder_med_power();
  init_atom_builder_med_locations_list();
  init_atom_builder_vlan();
  init_atom_builder_chassis();
  init_atom_builder_interface();
  init_atom_builder_ppvids_list();
  init_atom_builder_mgmt();
  init_atom_builder_custom();
  init_atom_builder_ppvid();
  init_atom_builder_custom_list();
  init_atom_builder_med_policies_list();
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<init_atom_builder>:
  endbr64
  cmpl   $0x0,D6(%rip)
  je     L0
  ret
L0:
  sub    $0x8,%rsp
  movl   $0x1,D6(%rip)
  mov    $0x0,%eax
  call   <init_atom_builder_med_caelements_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_med_policy@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_port@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_pis_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_config@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_interfaces_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_dot3_power@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_med_caelement@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_pi@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_med_location@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_mgmts_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_vlans_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_ports_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_med_power@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_med_locations_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_vlan@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_chassis@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_interface@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_ppvids_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_mgmt@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_custom@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_ppvid@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_custom_list@plt>
  mov    $0x0,%eax
  call   <init_atom_builder_med_policies_list@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
void init_atom_builder() {
  static int init = 0;
  if (init)
    return;
  init++;
  init_atom_builder_med_caelements_list();
  init_atom_builder_med_policy();
  init_atom_builder_port();
  init_atom_builder_pis_list();
  init_atom_builder_config();
  init_atom_builder_interfaces_list();
  init_atom_builder_dot3_power();
  init_atom_builder_med_caelement();
  init_atom_builder_pi();
  init_atom_builder_med_location();
  init_atom_builder_mgmts_list();
  init_atom_builder_vlans_list();
  init_atom_builder_ports_list();
  init_atom_builder_med_power();
  init_atom_builder_med_locations_list();
  init_atom_builder_vlan();
  init_atom_builder_chassis();
  init_atom_builder_interface();
  init_atom_builder_ppvids_list();
  init_atom_builder_mgmt();
  init_atom_builder_custom();
  init_atom_builder_ppvid();
  init_atom_builder_custom_list();
  init_atom_builder_med_policies_list();
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<init_atom_builder>:
  endbr64
  mov    D5(%rip),%eax
  test   %eax,%eax
  je     L6
  ret
  nop
L6:
  sub    $0x8,%rsp
  xor    %eax,%eax
  movl   $0x1,D5(%rip)
  call   <init_atom_builder_med_caelements_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_med_policy@plt>
  xor    %eax,%eax
  call   <init_atom_builder_port@plt>
  xor    %eax,%eax
  call   <init_atom_builder_pis_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_config@plt>
  xor    %eax,%eax
  call   <init_atom_builder_interfaces_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_dot3_power@plt>
  xor    %eax,%eax
  call   <init_atom_builder_med_caelement@plt>
  xor    %eax,%eax
  call   <init_atom_builder_pi@plt>
  xor    %eax,%eax
  call   <init_atom_builder_med_location@plt>
  xor    %eax,%eax
  call   <init_atom_builder_mgmts_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_vlans_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_ports_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_med_power@plt>
  xor    %eax,%eax
  call   <init_atom_builder_med_locations_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_vlan@plt>
  xor    %eax,%eax
  call   <init_atom_builder_chassis@plt>
  xor    %eax,%eax
  call   <init_atom_builder_interface@plt>
  xor    %eax,%eax
  call   <init_atom_builder_ppvids_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_mgmt@plt>
  xor    %eax,%eax
  call   <init_atom_builder_custom@plt>
  xor    %eax,%eax
  call   <init_atom_builder_ppvid@plt>
  xor    %eax,%eax
  call   <init_atom_builder_custom_list@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    1220 <init_atom_builder_med_policies_list@plt>
```

assistant: ```c
void init_atom_builder() {
  static int init = 0;
  if (init)
    return;
  init++;
  init_atom_builder_med_caelements_list();
  init_atom_builder_med_policy();
  init_atom_builder_port();
  init_atom_builder_pis_list();
  init_atom_builder_config();
  init_atom_builder_interfaces_list();
  init_atom_builder_dot3_power();
  init_atom_builder_med_caelement();
  init_atom_builder_pi();
  init_atom_builder_med_location();
  init_atom_builder_mgmts_list();
  init_atom_builder_vlans_list();
  init_atom_builder_ports_list();
  init_atom_builder_med_power();
  init_atom_builder_med_locations_list();
  init_atom_builder_vlan();
  init_atom_builder_chassis();
  init_atom_builder_interface();
  init_atom_builder_ppvids_list();
  init_atom_builder_mgmt();
  init_atom_builder_custom();
  init_atom_builder_ppvid();
  init_atom_builder_custom_list();
  init_atom_builder_med_policies_list();
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<init_atom_builder>:
  endbr64
  mov    D3(%rip),%eax
  test   %eax,%eax
  je     L2
  ret
  nop
L2:
  sub    $0x8,%rsp
  xor    %eax,%eax
  movl   $0x1,D3(%rip)
  call   <init_atom_builder_med_caelements_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_med_policy@plt>
  xor    %eax,%eax
  call   <init_atom_builder_port@plt>
  xor    %eax,%eax
  call   <init_atom_builder_pis_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_config@plt>
  xor    %eax,%eax
  call   <init_atom_builder_interfaces_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_dot3_power@plt>
  xor    %eax,%eax
  call   <init_atom_builder_med_caelement@plt>
  xor    %eax,%eax
  call   <init_atom_builder_pi@plt>
  xor    %eax,%eax
  call   <init_atom_builder_med_location@plt>
  xor    %eax,%eax
  call   <init_atom_builder_mgmts_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_vlans_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_ports_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_med_power@plt>
  xor    %eax,%eax
  call   <init_atom_builder_med_locations_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_vlan@plt>
  xor    %eax,%eax
  call   <init_atom_builder_chassis@plt>
  xor    %eax,%eax
  call   <init_atom_builder_interface@plt>
  xor    %eax,%eax
  call   <init_atom_builder_ppvids_list@plt>
  xor    %eax,%eax
  call   <init_atom_builder_mgmt@plt>
  xor    %eax,%eax
  call   <init_atom_builder_custom@plt>
  xor    %eax,%eax
  call   <init_atom_builder_ppvid@plt>
  xor    %eax,%eax
  call   <init_atom_builder_custom_list@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    1220 <init_atom_builder_med_policies_list@plt>
```

assistant: ```c
void init_atom_builder() {
  static int init = 0;
  if (init)
    return;
  init++;
  init_atom_builder_med_caelements_list();
  init_atom_builder_med_policy();
  init_atom_builder_port();
  init_atom_builder_pis_list();
  init_atom_builder_config();
  init_atom_builder_interfaces_list();
  init_atom_builder_dot3_power();
  init_atom_builder_med_caelement();
  init_atom_builder_pi();
  init_atom_builder_med_location();
  init_atom_builder_mgmts_list();
  init_atom_builder_vlans_list();
  init_atom_builder_ports_list();
  init_atom_builder_med_power();
  init_atom_builder_med_locations_list();
  init_atom_builder_vlan();
  init_atom_builder_chassis();
  init_atom_builder_interface();
  init_atom_builder_ppvids_list();
  init_atom_builder_mgmt();
  init_atom_builder_custom();
  init_atom_builder_ppvid();
  init_atom_builder_custom_list();
  init_atom_builder_med_policies_list();
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<AlignmentShuffle>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  mov    %ecx,-0x28(%rbp)
  mov    -0x18(%rbp),%rax
  cmp    -0x20(%rbp),%rax
  je     L62
  movl   $0x0,-0x8(%rbp)
  jmp    L82
L3:
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  addl   $0x1,-0x8(%rbp)
L82:
  mov    -0x8(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L3
L62:
  movl   $0x0,-0x8(%rbp)
  jmp    L64
L26:
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x0,(%rax)
  addl   $0x1,-0x8(%rbp)
L64:
  mov    -0x8(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L26
  jmp    L28
L87:
  mov    $0x0,%eax
  call   <sre_random@plt>
  mov    -0x28(%rbp),%edx
  imul   %edx,%eax
  mov    %eax,-0x4(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L35
L51:
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x9(%rbp)
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    -0x8(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x4(%rbp),%edx
  movslq %edx,%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  sub    $0x1,%rax
  add    %rax,%rdx
  movzbl -0x9(%rbp),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x8(%rbp)
L35:
  mov    -0x8(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L51
  subl   $0x1,-0x28(%rbp)
L28:
  cmpl   $0x1,-0x28(%rbp)
  jg     L87
  mov    $0x1,%eax
  leave
  ret
```

assistant: ```c
int AlignmentShuffle(char **ali1, char **ali2, int nseq, int alen) {
  int i;
  int pos;
  char c;
  if (ali1 != ali2) {
    for (i = 0; i < nseq; i++)
      strcpy(ali1[i], ali2[i]);
  }
  for (i = 0; i < nseq; i++)
    ali1[i][alen] = '\0';
  for (; alen > 1; alen--) {
    pos = ((int)(sre_random() * (alen)));
    for (i = 0; i < nseq; i++) {
      c = ali1[i][pos];
      ali1[i][pos] = ali1[i][alen - 1];
      ali1[i][alen - 1] = c;
    }
  }
  return 1;
}
```