ylfeng/ReF-Decompile-dataset huggingface dataset:
user: Translate the below assembly code into C programming language:

```asm
<HariMain>:
  endbr64
  push   %r14
  xor    %eax,%eax
  lea    D19(%rip),%r14
  push   %r13
  push   %r12
  mov    $0x38,%r12d
  push   %rbp
  mov    $0x4c,%ebp
  push   %rbx
  call   <init_mem@plt>
  mov    $0x3e80,%edi
  call   <malloc@plt>
  mov    $0xffffffff,%ecx
  mov    $0x64,%edx
  lea    D1(%rip),%r8
  mov    %rax,%rdi
  mov    $0xa0,%esi
  call   <win_open@plt>
  xor    %r9d,%r9d
  mov    $0x5f,%r8d
  mov    $0x9b,%ecx
  mov    %eax,%r13d
  mov    $0x18,%edx
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <win_fill@plt>
  lea    D19(%rip),%r9
  mov    $0x1,%r8d
  mov    $0x3,%ecx
  mov    $0x38,%edx
  mov    $0x4c,%esi
  mov    %r13d,%edi
  call   <win_puts@plt>
  jmp    L61
  nopl   (%rax)
L80:
  sub    $0x8,%ebp
L110:
  mov    %r14,%r9
  mov    $0x1,%r8d
  mov    $0x3,%ecx
  mov    %ebp,%esi
  mov    %r12d,%edx
  mov    %r13d,%edi
  call   <win_puts@plt>
L61:
  mov    $0x1,%edi
  call   <getkey@plt>
  xor    %ecx,%ecx
  mov    %r14,%r9
  mov    $0x1,%r8d
  mov    %eax,%ebx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13d,%edi
  call   <win_puts@plt>
  cmp    $0x61,%ebx
  jne    L13
  cmp    $0x4,%ebp
  jg     L80
L13:
  cmp    $0x64,%ebx
  jne    L102
  cmp    $0x93,%ebp
  jg     L102
  add    $0x8,%ebp
  jmp    L110
L102:
  cmp    $0x77,%ebx
  jne    L37
  cmp    $0x18,%r12d
  jle    L37
  sub    $0x8,%r12d
  jmp    L110
L37:
  cmp    $0x73,%ebx
  jne    L15
  cmp    $0x4f,%r12d
  jg     L15
  add    $0x8,%r12d
  jmp    L110
L15:
  cmp    $0xa,%ebx
  jne    L110
  mov    %r13d,%edi
  call   <win_close@plt>
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    10c0 <api_end@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D19
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D1
type_infered: string

tool: D19: *

tool: D1: WIN-WALK

assistant: ```c
void HariMain(void) {
  char *buf;
  int win;
  int key, x, y;
  init_mem();
  buf = (char *)malloc(160 * 100);
  win = win_open(buf, 160, 100, -1, "WIN-WALK");
  win_fill(win, 4, 24, 155, 95, 0);
  x = 76;
  y = 56;
  win_puts(win, x, y, 3, 1, "*");
  for (;;) {
    key = getkey(1);
    win_puts(win, x, y, 0, 1, "*");
    if ('a' == key && x > 4)
      x -= 8;
    if ('d' == key && x < 148)
      x += 8;
    if ('w' == key && y > 24)
      y -= 8;
    if ('s' == key && y < 80)
      y += 8;
    if (0x0a == key)
      break;
    win_puts(win, x, y, 3, 1, "*");
  }
  win_close(win);
  api_end();
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<HariMain>:
  endbr64
  push   %r14
  xor    %eax,%eax
  lea    D17(%rip),%r14
  push   %r13
  push   %r12
  mov    $0x38,%r12d
  push   %rbp
  mov    $0x4c,%ebp
  push   %rbx
  call   <init_mem@plt>
  mov    $0x3e80,%edi
  call   <malloc@plt>
  mov    $0xffffffff,%ecx
  mov    $0x64,%edx
  lea    D28(%rip),%r8
  mov    %rax,%rdi
  mov    $0xa0,%esi
  call   <win_open@plt>
  xor    %r9d,%r9d
  mov    $0x5f,%r8d
  mov    $0x9b,%ecx
  mov    %eax,%r13d
  mov    $0x18,%edx
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <win_fill@plt>
  lea    D17(%rip),%r9
  mov    $0x1,%r8d
  mov    $0x3,%ecx
  mov    $0x38,%edx
  mov    $0x4c,%esi
  mov    %r13d,%edi
  call   <win_puts@plt>
  jmp    L113
  nopl   (%rax)
L43:
  sub    $0x8,%ebp
L109:
  mov    %r14,%r9
  mov    $0x1,%r8d
  mov    $0x3,%ecx
  mov    %ebp,%esi
  mov    %r12d,%edx
  mov    %r13d,%edi
  call   <win_puts@plt>
L113:
  mov    $0x1,%edi
  call   <getkey@plt>
  xor    %ecx,%ecx
  mov    %r14,%r9
  mov    $0x1,%r8d
  mov    %eax,%ebx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13d,%edi
  call   <win_puts@plt>
  cmp    $0x61,%ebx
  jne    L91
  cmp    $0x4,%ebp
  jg     L43
L91:
  cmp    $0x64,%ebx
  jne    L64
  cmp    $0x93,%ebp
  jg     L64
  add    $0x8,%ebp
  jmp    L109
L64:
  cmp    $0x77,%ebx
  jne    L82
  cmp    $0x18,%r12d
  jle    L82
  sub    $0x8,%r12d
  jmp    L109
L82:
  cmp    $0x73,%ebx
  jne    L110
  cmp    $0x4f,%r12d
  jg     L110
  add    $0x8,%r12d
  jmp    L109
L110:
  cmp    $0xa,%ebx
  jne    L109
  mov    %r13d,%edi
  call   <win_close@plt>
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    10c0 <api_end@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D17
data_type: string
name: disassemble_data
arguments: data_label: D28
data_type: string

tool: D17: *

tool: D28: WIN-WALK

assistant: ```c
void HariMain(void) {
  char *buf;
  int win;
  int key, x, y;
  init_mem();
  buf = (char *)malloc(160 * 100);
  win = win_open(buf, 160, 100, -1, "WIN-WALK");
  win_fill(win, 4, 24, 155, 95, 0);
  x = 76;
  y = 56;
  win_puts(win, x, y, 3, 1, "*");
  for (;;) {
    key = getkey(1);
    win_puts(win, x, y, 0, 1, "*");
    if ('a' == key && x > 4)
      x -= 8;
    if ('d' == key && x < 148)
      x += 8;
    if ('w' == key && y > 24)
      y -= 8;
    if ('s' == key && y < 80)
      y += 8;
    if (0x0a == key)
      break;
    win_puts(win, x, y, 3, 1, "*");
  }
  win_close(win);
  api_end();
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<iptreemap_usage>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  nop
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D9
data_type: string

tool: D9: -N set iptreemap --gc interval
-A set IP
-D set IP
-T set IP


assistant: ```c
void iptreemap_usage(void) {
  printf("-N set iptreemap --gc interval\n"
         "-A set IP\n"
         "-D set IP\n"
         "-T set IP\n");
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<iptreemap_usage>:
  endbr64
  sub    $0x8,%rsp
  lea    D7(%rip),%rdi
  call   <printf@plt>
  add    $0x8,%rsp
  ret
```

tool_calls: name: unpack_data
arguments: label: D7
type_infered: string

tool: D7: -N set iptreemap --gc interval
-A set IP
-D set IP
-T set IP


assistant: ```c
void iptreemap_usage(void) {
  printf("-N set iptreemap --gc interval\n"
         "-A set IP\n"
         "-D set IP\n"
         "-T set IP\n");
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<iptreemap_usage>:
  endbr64
  lea    D9(%rip),%rdi
  jmp    1050 <printf@plt>
```

tool_calls: name: unpack_data
arguments: tag: D9
type_infered: string

tool: D9: -N set iptreemap --gc interval
-A set IP
-D set IP
-T set IP


assistant: ```c
void iptreemap_usage(void) {
  printf("-N set iptreemap --gc interval\n"
         "-A set IP\n"
         "-D set IP\n"
         "-T set IP\n");
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<iptreemap_usage>:
  endbr64
  lea    D8(%rip),%rdi
  jmp    1050 <printf@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D8
type_infered: string

tool: D8: -N set iptreemap --gc interval
-A set IP
-D set IP
-T set IP


assistant: ```c
void iptreemap_usage(void) {
  printf("-N set iptreemap --gc interval\n"
         "-A set IP\n"
         "-D set IP\n"
         "-T set IP\n");
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<get_token>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  jmp    L4
L70:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  lea    0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,(%rax)
L4:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <is_whitespace@plt>
  test   %rax,%rax
  je     L21
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L70
L21:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x28,%eax
  cmp    $0x1,%eax
  ja     L75
  addq   $0x1,-0x8(%rbp)
  jmp    L5
L41:
  addq   $0x1,-0x8(%rbp)
L75:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <is_whitespace@plt>
  test   %rax,%rax
  jne    L5
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x28,%al
  je     L5
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x29,%al
  je     L5
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L41
L5:
  mov    -0x8(%rbp),%rax
  leave
  ret
```

assistant: ```c
char *get_token(char **a) {
  while (is_whitespace(**a) && **a != 0)
    (*a)++;
  char *b = *a;
  switch (*b) {
  case '(':
  case ')':
    b++;
    break;
  default:
    while (!is_whitespace(*b) && *b != '(' && *b != ')' && *b != 0)
      b++;
  }
  return b;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<get_token>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  jmp    L31
L8:
  add    $0x1,%rbx
  mov    %rbx,0x0(%rbp)
L31:
  mov    0x0(%rbp),%rax
  movsbl (%rax),%edi
  call   <is_whitespace@plt>
  test   %rax,%rax
  je     L70
  mov    0x0(%rbp),%rbx
  cmpb   $0x0,(%rbx)
  jne    L8
  jmp    L49
L70:
  mov    0x0(%rbp),%rbx
  movsbl (%rbx),%eax
  sub    $0x28,%eax
  cmp    $0x1,%eax
  ja     L49
  add    $0x1,%rbx
L57:
  mov    %rbx,%rax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
L4:
  add    $0x1,%rbx
L49:
  movsbl (%rbx),%edi
  call   <is_whitespace@plt>
  test   %rax,%rax
  jne    L57
  movzbl (%rbx),%eax
  lea    -0x28(%rax),%edx
  cmp    $0x1,%dl
  jbe    L57
  test   %al,%al
  jne    L4
  jmp    L57
```

assistant: ```c
char *get_token(char **a) {
  while (is_whitespace(**a) && **a != 0)
    (*a)++;
  char *b = *a;
  switch (*b) {
  case '(':
  case ')':
    b++;
    break;
  default:
    while (!is_whitespace(*b) && *b != '(' && *b != ')' && *b != 0)
      b++;
  }
  return b;
}
```
user: Translate the below assembly code into C programming language:

```asm
<get_token>:
  endbr64
  push   %r12
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x8,%rsp
  mov    (%rdi),%r12
  jmp    L79
  nopl   0x0(%rax,%rax,1)
L0:
  cmpb   $0x0,(%r12)
  je     L40
  add    $0x1,%r12
  mov    %r12,(%rbx)
L79:
  movsbl (%r12),%edi
  call   <is_whitespace@plt>
  mov    (%rbx),%r12
  test   %rax,%rax
  jne    L0
  movsbl (%r12),%edi
  lea    -0x28(%rdi),%eax
  cmp    $0x1,%eax
  ja     L31
  add    $0x1,%r12
L59:
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  ret
  nopl   0x0(%rax)
L75:
  test   %al,%al
  je     L59
  movsbl 0x1(%r12),%edi
  add    $0x1,%r12
L31:
  call   <is_whitespace@plt>
  test   %rax,%rax
  jne    L59
  movzbl (%r12),%eax
  lea    -0x28(%rax),%edx
  cmp    $0x1,%dl
  ja     L75
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L40:
  xor    %edi,%edi
  jmp    L31
```

assistant: ```c
char *get_token(char **a) {
  while (is_whitespace(**a) && **a != 0)
    (*a)++;
  char *b = *a;
  switch (*b) {
  case '(':
  case ')':
    b++;
    break;
  default:
    while (!is_whitespace(*b) && *b != '(' && *b != ')' && *b != 0)
      b++;
  }
  return b;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<get_token>:
  endbr64
  push   %r12
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x8,%rsp
  mov    (%rdi),%r12
  jmp    L6
  nopl   0x0(%rax,%rax,1)
L64:
  cmpb   $0x0,(%r12)
  je     L24
  add    $0x1,%r12
  mov    %r12,(%rbx)
L6:
  movsbl (%r12),%edi
  call   <is_whitespace@plt>
  mov    (%rbx),%r12
  test   %rax,%rax
  jne    L64
  movsbl (%r12),%eax
  sub    $0x28,%eax
  cmp    $0x1,%eax
  ja     L24
  add    $0x1,%r12
L29:
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  ret
  nopl   0x0(%rax)
L38:
  test   %al,%al
  je     L29
  add    $0x1,%r12
L24:
  movsbl (%r12),%edi
  call   <is_whitespace@plt>
  test   %rax,%rax
  jne    L29
  movzbl (%r12),%eax
  lea    -0x28(%rax),%edx
  cmp    $0x1,%dl
  ja     L38
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  ret
```

assistant: ```c
char *get_token(char **a) {
  while (is_whitespace(**a) && **a != 0)
    (*a)++;
  char *b = *a;
  switch (*b) {
  case '(':
  case ')':
    b++;
    break;
  default:
    while (!is_whitespace(*b) && *b != '(' && *b != ')' && *b != 0)
      b++;
  }
  return b;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  movq   $0x1,-0x8(%rbp)
  jmp    L15
L33:
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  addq   $0x1,-0x10(%rbp)
  cmpq   $0xa,-0x10(%rbp)
  je     L9
L15:
  cmpq   $0x0,-0x8(%rbp)
  jne    L33
  jmp    L31
L9:
  nop
L31:
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: unpack_data
arguments: tag: D8
type: string

tool: D8: continua imprimindo


assistant: ```c
int main(int argc, char *argv[]) {
  unsigned long count, continua = 1;
  while (continua) {
    printf("continua imprimindo\n");
    count++;
    if (count == 10) {
      break;
    }
  }
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  lea    D0(%rip),%rbp
L1:
  mov    %rbp,%rdi
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    $0xa,%rbx
  jne    L1
  mov    $0x0,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D0
type_infered: string

tool: D0: continua imprimindo


assistant: ```c
int main(int argc, char *argv[]) {
  unsigned long count, continua = 1;
  while (continua) {
    printf("continua imprimindo\n");
    count++;
    if (count == 10) {
      break;
    }
  }
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D2(%rip),%rbp
  push   %rbx
  sub    $0x8,%rsp
  nopl   0x0(%rax)
L9:
  mov    %rbp,%rdi
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    $0xa,%rbx
  jne    L9
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D2
data_type: string

tool: D2: continua imprimindo


assistant: ```c
int main(int argc, char *argv[]) {
  unsigned long count, continua = 1;
  while (continua) {
    printf("continua imprimindo\n");
    count++;
    if (count == 10) {
      break;
    }
  }
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D7(%rip),%rbp
  push   %rbx
  sub    $0x8,%rsp
  nopl   0x0(%rax)
L9:
  mov    %rbp,%rdi
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    $0xa,%rbx
  jne    L9
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: tag: D7
data_type: string

tool: D7: continua imprimindo


assistant: ```c
int main(int argc, char *argv[]) {
  unsigned long count, continua = 1;
  while (continua) {
    printf("continua imprimindo\n");
    count++;
    if (count == 10) {
      break;
    }
  }
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: label: D9
type_infered: string

tool: D9: Hello, world !

assistant: ```c
int main(void) {
  puts("Hello, world !");
  return 0;
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  lea    D7(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D7
data_type: string

tool: D7: Hello, world !

assistant: ```c
int main(void) {
  puts("Hello, world !");
  return 0;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  lea    D2(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D2
type_infered: string

tool: D2: Hello, world !

assistant: ```c
int main(void) {
  puts("Hello, world !");
  return 0;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  lea    D8(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: parse_data
arguments: label: D8
type: string

tool: D8: Hello, world !

assistant: ```c
int main(void) {
  puts("Hello, world !");
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<load_PCB>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  mov    %rbx,%rax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void *load_PCB(void) {
  register void *sp;
  return sp;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<load_PCB>:
  endbr64
  mov    $0x0,%eax
  ret
```

assistant: ```c
void *load_PCB(void) {
  register void *sp;
  return sp;
}
```
user: What is the c source code of the assembly code below:

```asm
<load_PCB>:
  endbr64
  xor    %eax,%eax
  ret
```

assistant: ```c
void *load_PCB(void) {
  register void *sp;
  return sp;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<load_PCB>:
  endbr64
  xor    %eax,%eax
  ret
```

assistant: ```c
void *load_PCB(void) {
  register void *sp;
  return sp;
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<obtenerMensaje>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %edx,-0x74(%rbp)
  mov    %ecx,-0x78(%rbp)
  mov    %r8d,-0x7c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x4c(%rbp)
  movl   $0x0,-0x48(%rbp)
  movl   $0x0,-0x44(%rbp)
  movl   $0x0,-0x58(%rbp)
  jmp    L40
L27:
  movl   $0x0,-0x54(%rbp)
  jmp    L89
L72:
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x54(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x4c(%rbp),%eax
  cltq
  mov    %edx,-0x40(%rbp,%rax,4)
  addl   $0x1,-0x4c(%rbp)
  cmpl   $0x8,-0x4c(%rbp)
  jne    L4
  movl   $0x0,-0x50(%rbp)
  jmp    L116
L65:
  mov    -0x48(%rbp),%eax
  cmp    -0x7c(%rbp),%eax
  jge    L26
  mov    -0x50(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%ebx
  mov    -0x50(%rbp),%eax
  mov    %eax,%esi
  mov    $0x2,%edi
  call   <pow@plt>
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x68(%rbp),%rdx
  add    %rcx,%rdx
  imul   %ebx,%eax
  mov    %eax,(%rdx)
  jmp    L128
L26:
  movl   $0x1,-0x44(%rbp)
L128:
  addl   $0x1,-0x50(%rbp)
L116:
  cmpl   $0x7,-0x50(%rbp)
  jg     L85
  cmpl   $0x0,-0x44(%rbp)
  je     L65
L85:
  movl   $0x0,-0x4c(%rbp)
  addl   $0x1,-0x48(%rbp)
L4:
  addl   $0x1,-0x54(%rbp)
L89:
  mov    -0x54(%rbp),%eax
  cmp    -0x78(%rbp),%eax
  jge    L32
  cmpl   $0x0,-0x44(%rbp)
  je     L72
L32:
  addl   $0x1,-0x58(%rbp)
L40:
  mov    -0x58(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jge    L29
  cmpl   $0x0,-0x44(%rbp)
  je     L27
L29:
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L62
  call   <__stack_chk_fail@plt>
L62:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void obtenerMensaje(int *mensaje, int **matrizLSB, int fil, int col, int tam) {
  int i, j, m, k = 0, l = 0;
  int v[8];
  int completado = 0;
  for (i = 0; (i < fil) && (!completado); i++) {
    for (j = 0; (j < col) && (!completado); j++) {
      v[k] = matrizLSB[i][j];
      k++;
      if (k == 8) {
        for (m = 0; (m < 8) && (!completado); m++) {
          if (l < tam) {
            mensaje[l] = v[m] * pow(2, m);
          } else {
            completado = 1;
          }
        }
        k = 0;
        l++;
      }
    }
  }
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<obtenerMensaje>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %edx,0x1c(%rsp)
  mov    %ecx,0xc(%rsp)
  mov    %r8d,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  test   %edx,%edx
  jle    L11
  mov    %rsi,%r14
  mov    $0x0,%r13d
  movl   $0x0,0x18(%rsp)
  jmp    L29
L71:
  mov    0x20(%rsp,%rbx,4),%ebp
  mov    $0x2,%edi
  call   <pow@plt>
  imul   %eax,%ebp
  mov    %ebp,(%r15)
  add    $0x1,%rbx
  cmp    $0x8,%rbx
  je     L91
L59:
  mov    %ebx,%esi
  cmp    %r13d,0x8(%rsp)
  jg     L71
  mov    $0x1,%edx
L55:
  add    $0x1,%r13d
  mov    $0x0,%eax
L128:
  lea    0x1(%r12),%ecx
  cmp    0xc(%rsp),%ecx
  setl   %sil
  test   %edx,%edx
  sete   %cl
  add    $0x1,%r12
  test   %cl,%sil
  je     L1
L115:
  movslq %eax,%rdx
  mov    (%r14),%rcx
  mov    (%rcx,%r12,4),%ecx
  mov    %ecx,0x20(%rsp,%rdx,4)
  add    $0x1,%eax
  mov    $0x0,%edx
  cmp    $0x8,%eax
  jne    L128
  movslq %r13d,%rax
  mov    0x10(%rsp),%rdi
  lea    (%rdi,%rax,4),%r15
  mov    $0x0,%ebx
  jmp    L59
L91:
  mov    $0x0,%edx
  jmp    L55
L1:
  addl   $0x1,0x18(%rsp)
  mov    0x18(%rsp),%edi
  add    $0x8,%r14
  cmp    %edi,0x1c(%rsp)
  jle    L11
  test   %edx,%edx
  jne    L11
L29:
  mov    $0x0,%r12d
  mov    $0x0,%edx
  cmpl   $0x0,0xc(%rsp)
  jg     L115
  jmp    L1
L11:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L49
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L49:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void obtenerMensaje(int *mensaje, int **matrizLSB, int fil, int col, int tam) {
  int i, j, m, k = 0, l = 0;
  int v[8];
  int completado = 0;
  for (i = 0; (i < fil) && (!completado); i++) {
    for (j = 0; (j < col) && (!completado); j++) {
      v[k] = matrizLSB[i][j];
      k++;
      if (k == 8) {
        for (m = 0; (m < 8) && (!completado); m++) {
          if (l < tam) {
            mensaje[l] = v[m] * pow(2, m);
          } else {
            completado = 1;
          }
        }
        k = 0;
        l++;
      }
    }
  }
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<obtenerMensaje>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %edx,0x1c(%rsp)
  mov    %ecx,0xc(%rsp)
  mov    %r8d,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  test   %edx,%edx
  jle    L125
  movl   $0x0,0x18(%rsp)
  mov    %rsi,%r13
  xor    %ebp,%ebp
  nopl   0x0(%rax)
L106:
  mov    0xc(%rsp),%edx
  xor    %r15d,%r15d
  test   %edx,%edx
  jg     L67
  jmp    L58
L120:
  add    $0x1,%r15
  test   %r12b,%r12b
  je     L8
L67:
  mov    0x0(%r13),%rsi
  movslq %eax,%rdx
  add    $0x1,%eax
  mov    (%rsi,%r15,4),%esi
  mov    %esi,0x20(%rsp,%rdx,4)
  lea    0x1(%r15),%edx
  cmp    0xc(%rsp),%edx
  mov    $0x1,%edx
  setl   %r12b
  cmp    $0x8,%eax
  jne    L120
  mov    0x10(%rsp),%rcx
  movslq %ebp,%rax
  xor    %r14d,%r14d
  lea    (%rcx,%rax,4),%rax
  mov    %rax,(%rsp)
  nopl   0x0(%rax)
L116:
  mov    %r14d,%esi
  cmp    %ebp,0x8(%rsp)
  jg     L36
  xor    %r12d,%r12d
  xor    %edx,%edx
L80:
  add    $0x1,%ebp
  xor    %eax,%eax
  add    $0x1,%r15
  test   %r12b,%r12b
  jne    L67
  nopl   0x0(%rax)
L8:
  addl   $0x1,0x18(%rsp)
  add    $0x8,%r13
  mov    0x18(%rsp),%edi
  cmp    %edi,0x1c(%rsp)
  jle    L125
  test   %dl,%dl
  jne    L106
L125:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L101
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L36:
  mov    0x20(%rsp,%r14,4),%ebx
  mov    $0x2,%edi
  add    $0x1,%r14
  call   <pow@plt>
  imul   %eax,%ebx
  mov    (%rsp),%rax
  mov    %ebx,(%rax)
  cmp    $0x8,%r14
  jne    L116
  mov    $0x1,%edx
  jmp    L80
  nopl   (%rax)
L58:
  mov    $0x1,%edx
  jmp    L8
L101:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void obtenerMensaje(int *mensaje, int **matrizLSB, int fil, int col, int tam) {
  int i, j, m, k = 0, l = 0;
  int v[8];
  int completado = 0;
  for (i = 0; (i < fil) && (!completado); i++) {
    for (j = 0; (j < col) && (!completado); j++) {
      v[k] = matrizLSB[i][j];
      k++;
      if (k == 8) {
        for (m = 0; (m < 8) && (!completado); m++) {
          if (l < tam) {
            mensaje[l] = v[m] * pow(2, m);
          } else {
            completado = 1;
          }
        }
        k = 0;
        l++;
      }
    }
  }
}
```