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

```asm
<ft_atoi>:
  endbr64
  movzbl (%rdi),%eax
  mov    %rdi,%rcx
  lea    -0x9(%rax),%edx
  cmp    $0x4,%dl
  ja     L58
  nopw   0x0(%rax,%rax,1)
L10:
  movzbl 0x1(%rcx),%eax
  add    $0x1,%rcx
  lea    -0x9(%rax),%edx
  cmp    $0x4,%dl
  jbe    L10
L58:
  cmp    $0x20,%al
  je     L10
  cmp    $0x2d,%al
  je     L49
  mov    $0x1,%r10d
  cmp    $0x2b,%al
  je     L111
L107:
  movzbl (%rcx),%edx
  lea    -0x30(%rdx),%eax
  cmp    $0x9,%al
  ja     L37
  movabs $0xf333333333333334,%r8
  xor    %eax,%eax
  movabs $0xccccccccccccccb,%rdi
  movabs $0x1999999999999997,%r9
  movabs $0xaffffffffffffffb,%r11
  jmp    L6
  nopl   0x0(%rax)
L113:
  cmp    $0x37,%dl
  jg     L36
  mov    %rax,%rsi
  imul   %r11,%rsi
  ror    $0x2,%rsi
  cmp    $0x14,%rsi
  ja     L36
L70:
  sub    $0x30,%edx
  add    $0x1,%rcx
  lea    (%rax,%rax,4),%rax
  movsbq %dl,%rdx
  lea    (%rdx,%rax,2),%rax
  movzbl (%rcx),%edx
  lea    -0x30(%rdx),%esi
  cmp    $0x9,%sil
  ja     L44
L6:
  lea    (%rax,%r8,1),%rsi
  cmp    %rdi,%rsi
  jbe    L113
  cmp    %r9,%rax
  jle    L70
L36:
  not    %r10
  mov    %r10,%rax
  shr    $0x3f,%rax
  add    %r10,%rax
  sar    %rax
  ret
  nopl   0x0(%rax)
L49:
  mov    $0xffffffffffffffff,%r10
L111:
  add    $0x1,%rcx
  jmp    L107
  nopl   0x0(%rax,%rax,1)
L44:
  imul   %r10d,%eax
  ret
L37:
  xor    %eax,%eax
  ret
```

assistant: ```c
int ft_atoi(const char *str) {
  long long n[2];
  while (*str == ' ' || (*str >= 9 && *str <= 13))
    str++;
  n[0] = (*str == '-') ? -1 : 1;
  (n[1] = 0) == 0 && (*str == '+' || *str == '-') ? str++ : 0;
  while (*str >= '0' && *str <= '9')
    if ((n[1] / 922337203685477580U == 1 && (*str - '0' >= 8 || n[1] % 922337203685477580U >= 1)) || n[1] / 922337203685477580U > 1)
      return ((-n[0] - 1) / 2);
    else
      n[1] = n[1] * 10 + (*str++ - '0');
  return (n[0] * n[1]);
}
```
user: What is the c source code of the assembly code below?

```asm
<ft_atoi>:
  endbr64
  movzbl (%rdi),%edx
  mov    %rdi,%rcx
  lea    -0x9(%rdx),%eax
  cmp    $0x4,%al
  ja     L28
  nopl   0x0(%rax)
L123:
  movzbl 0x1(%rcx),%edx
  add    $0x1,%rcx
  lea    -0x9(%rdx),%eax
  cmp    $0x4,%al
  jbe    L123
L28:
  cmp    $0x20,%dl
  je     L123
  cmp    $0x2d,%dl
  je     L124
  mov    $0x1,%r11d
  cmp    $0x2b,%dl
  je     L8
L100:
  lea    -0x30(%rdx),%eax
  cmp    $0x9,%al
  ja     L22
  movabs $0xf333333333333334,%r8
  xor    %eax,%eax
  movabs $0xccccccccccccccb,%rdi
  movabs $0x1999999999999997,%r9
  movabs $0xaffffffffffffffb,%r10
  jmp    L3
  nopl   0x0(%rax,%rax,1)
L106:
  cmp    $0x37,%dl
  jg     L0
  mov    %rax,%rsi
  imul   %r10,%rsi
  ror    $0x2,%rsi
  cmp    $0x14,%rsi
  ja     L0
L125:
  sub    $0x30,%edx
  add    $0x1,%rcx
  lea    (%rax,%rax,4),%rax
  movsbq %dl,%rdx
  lea    (%rdx,%rax,2),%rax
  movzbl (%rcx),%edx
  lea    -0x30(%rdx),%esi
  cmp    $0x9,%sil
  ja     L26
L3:
  lea    (%rax,%r8,1),%rsi
  cmp    %rdi,%rsi
  jbe    L106
  cmp    %r9,%rax
  jle    L125
L0:
  not    %r11
  mov    %r11,%rax
  shr    $0x3f,%rax
  add    %r11,%rax
  sar    %rax
  ret
  nopl   0x0(%rax)
L124:
  mov    $0xffffffffffffffff,%r11
L8:
  movzbl 0x1(%rcx),%edx
  add    $0x1,%rcx
  jmp    L100
  nopl   0x0(%rax)
L26:
  imul   %r11d,%eax
  ret
L22:
  xor    %eax,%eax
  ret
```

assistant: ```c
int ft_atoi(const char *str) {
  long long n[2];
  while (*str == ' ' || (*str >= 9 && *str <= 13))
    str++;
  n[0] = (*str == '-') ? -1 : 1;
  (n[1] = 0) == 0 && (*str == '+' || *str == '-') ? str++ : 0;
  while (*str >= '0' && *str <= '9')
    if ((n[1] / 922337203685477580U == 1 && (*str - '0' >= 8 || n[1] % 922337203685477580U >= 1)) || n[1] / 922337203685477580U > 1)
      return ((-n[0] - 1) / 2);
    else
      n[1] = n[1] * 10 + (*str++ - '0');
  return (n[0] * n[1]);
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<set_pixelize>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  je     L9
  mov    $0x10,%eax
  sub    -0x4(%rbp),%eax
  shl    $0x4,%eax
  or     $0xf,%eax
  mov    %eax,-0x4(%rbp)
L9:
  mov    $0x2106,%eax
  mov    -0x4(%rbp),%edx
  mov    %dl,(%rax)
  nop
  pop    %rbp
  ret
```

assistant: ```c
void set_pixelize(unsigned int i) {
  if (i)
    i = ((16 - i) << 4) | 0x0f;
  *((unsigned char *)0x2106) = (i);
  ;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<set_pixelize>:
  endbr64
  test   %edi,%edi
  je     L8
  mov    $0x10,%eax
  sub    %edi,%eax
  shl    $0x4,%eax
  or     $0xf,%eax
  mov    %eax,%edi
L8:
  mov    %dil,0x2106
  ret
```

assistant: ```c
void set_pixelize(unsigned int i) {
  if (i)
    i = ((16 - i) << 4) | 0x0f;
  *((unsigned char *)0x2106) = (i);
  ;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<set_pixelize>:
  endbr64
  xor    %eax,%eax
  test   %edi,%edi
  je     L6
  mov    $0x10,%eax
  sub    %edi,%eax
  shl    $0x4,%eax
  or     $0xf,%eax
L6:
  mov    %al,0x2106
  ret
```

assistant: ```c
void set_pixelize(unsigned int i) {
  if (i)
    i = ((16 - i) << 4) | 0x0f;
  *((unsigned char *)0x2106) = (i);
  ;
}
```
user: Translate the below assembly code into C programming language:

```asm
<set_pixelize>:
  endbr64
  xor    %eax,%eax
  test   %edi,%edi
  je     L6
  mov    $0x10,%eax
  sub    %edi,%eax
  shl    $0x4,%eax
  or     $0xf,%eax
L6:
  mov    %al,0x2106
  ret
```

assistant: ```c
void set_pixelize(unsigned int i) {
  if (i)
    i = ((16 - i) << 4) | 0x0f;
  *((unsigned char *)0x2106) = (i);
  ;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<glmNormalizeQuaternionf>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <glmComputeQuaternionMagnitudef@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x4(%rbp)
  pxor   %xmm0,%xmm0
  ucomiss -0x4(%rbp),%xmm0
  jp     L14
  pxor   %xmm0,%xmm0
  ucomiss -0x4(%rbp),%xmm0
  je     L1
L14:
  mov    -0x18(%rbp),%rax
  movss  (%rax),%xmm0
  divss  -0x4(%rbp),%xmm0
  mov    -0x18(%rbp),%rax
  movss  %xmm0,(%rax)
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  divss  -0x4(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  divss  -0x4(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm0
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  divss  -0x4(%rbp),%xmm0
  movss  %xmm0,(%rax)
L1:
  movss  -0x4(%rbp),%xmm0
  leave
  ret
```

assistant: ```c
float glmNormalizeQuaternionf(float q[4]) {
  float m = glmComputeQuaternionMagnitudef(q);
  if (m != 0) {
    q[0] /= m;
    q[1] /= m;
    q[2] /= m;
    q[3] /= m;
  }
  return m;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<glmNormalizeQuaternionf>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <glmComputeQuaternionMagnitudef@plt>
  ucomiss D4(%rip),%xmm0
  jp     L21
  jne    L21
L4:
  pop    %rbx
  ret
L21:
  movss  (%rbx),%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,(%rbx)
  movss  0x4(%rbx),%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0x4(%rbx)
  movss  0x8(%rbx),%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0x8(%rbx)
  movss  0xc(%rbx),%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0xc(%rbx)
  jmp    L4
```

tool_calls: name: disassemble_data
arguments: data_tag: D4
type: byte[4]

tool: {"D4": [0x00,0x00,0x00,0x00]}

assistant: ```c
float glmNormalizeQuaternionf(float q[4]) {
  float m = glmComputeQuaternionMagnitudef(q);
  if (m != 0) {
    q[0] /= m;
    q[1] /= m;
    q[2] /= m;
    q[3] /= m;
  }
  return m;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<glmNormalizeQuaternionf>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <glmComputeQuaternionMagnitudef@plt>
  ucomiss D0(%rip),%xmm0
  jp     L0
  jne    L0
  pop    %rbx
  ret
  nopw   0x0(%rax,%rax,1)
L0:
  movss  (%rbx),%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,(%rbx)
  movss  0x4(%rbx),%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0x4(%rbx)
  movss  0x8(%rbx),%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0x8(%rbx)
  movss  0xc(%rbx),%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0xc(%rbx)
  pop    %rbx
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D0
datatype: byte[4]

tool: {"D0": [0x00,0x00,0x00,0x00]}

assistant: ```c
float glmNormalizeQuaternionf(float q[4]) {
  float m = glmComputeQuaternionMagnitudef(q);
  if (m != 0) {
    q[0] /= m;
    q[1] /= m;
    q[2] /= m;
    q[3] /= m;
  }
  return m;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<glmNormalizeQuaternionf>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <glmComputeQuaternionMagnitudef@plt>
  ucomiss D4(%rip),%xmm0
  movaps %xmm0,%xmm2
  shufps $0x0,%xmm2,%xmm2
  jp     L16
  jne    L16
  pop    %rbx
  ret
  nopl   0x0(%rax)
L16:
  movups (%rbx),%xmm1
  divps  %xmm2,%xmm1
  movups %xmm1,(%rbx)
  pop    %rbx
  ret
```

tool_calls: name: read_data
arguments: label: D4
type_infered: byte[4]

tool: {"D4": [0x00,0x00,0x00,0x00]}

assistant: ```c
float glmNormalizeQuaternionf(float q[4]) {
  float m = glmComputeQuaternionMagnitudef(q);
  if (m != 0) {
    q[0] /= m;
    q[1] /= m;
    q[2] /= m;
    q[3] /= m;
  }
  return m;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<gui_bar_config_change_conditions>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    $0x1,%edi
  call   <gui_window_ask_refresh@plt>
  nop
  leave
  ret
```

assistant: ```c
void gui_bar_config_change_conditions(void *data, struct t_config_option *option) {
  (void)data;
  (void)option;
  gui_window_ask_refresh(1);
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<gui_bar_config_change_conditions>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x1,%edi
  call   <gui_window_ask_refresh@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
void gui_bar_config_change_conditions(void *data, struct t_config_option *option) {
  (void)data;
  (void)option;
  gui_window_ask_refresh(1);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<gui_bar_config_change_conditions>:
  endbr64
  mov    $0x1,%edi
  jmp    1050 <gui_window_ask_refresh@plt>
```

assistant: ```c
void gui_bar_config_change_conditions(void *data, struct t_config_option *option) {
  (void)data;
  (void)option;
  gui_window_ask_refresh(1);
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<gui_bar_config_change_conditions>:
  endbr64
  mov    $0x1,%edi
  jmp    1050 <gui_window_ask_refresh@plt>
```

assistant: ```c
void gui_bar_config_change_conditions(void *data, struct t_config_option *option) {
  (void)data;
  (void)option;
  gui_window_ask_refresh(1);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<TEXTVER_check_event>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    $0x0,%eax
  call   <keypressed@plt>
  test   %rax,%rax
  je     L2
  mov    $0xffffff80,%eax
  jmp    L19
L2:
  mov    $0x0,%eax
L19:
  pop    %rbp
  ret
```

assistant: ```c
int TEXTVER_check_event() {
  if (keypressed()) {
    return -128;
  }
  return (0);
}
```
user: Translate the below assembly code into C programming language:

```asm
<TEXTVER_check_event>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x0,%eax
  call   <keypressed@plt>
  neg    %rax
  sbb    %eax,%eax
  and    $0xffffff80,%eax
  add    $0x8,%rsp
  ret
```

assistant: ```c
int TEXTVER_check_event() {
  if (keypressed()) {
    return -128;
  }
  return (0);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<TEXTVER_check_event>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <keypressed@plt>
  neg    %rax
  sbb    %eax,%eax
  add    $0x8,%rsp
  and    $0xffffff80,%eax
  ret
```

assistant: ```c
int TEXTVER_check_event() {
  if (keypressed()) {
    return -128;
  }
  return (0);
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<TEXTVER_check_event>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <keypressed@plt>
  neg    %rax
  sbb    %eax,%eax
  add    $0x8,%rsp
  and    $0xffffff80,%eax
  ret
```

assistant: ```c
int TEXTVER_check_event() {
  if (keypressed()) {
    return -128;
  }
  return (0);
}
```
user: Translate the below assembly code into C programming language:

```asm
<skytraq_cmd_nowait>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    %edx,-0x8(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,%edi
  call   <skytraq_flush@plt>
  mov    -0x8(%rbp),%edx
  mov    -0x10(%rbp),%rcx
  mov    -0x4(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <skytraq_write@plt>
  leave
  ret
```

assistant: ```c
int skytraq_cmd_nowait(int fd, const char *message, int len) {
  skytraq_flush(fd);
  return skytraq_write(fd, message, len);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<skytraq_cmd_nowait>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  mov    %rsi,%rbp
  mov    %edx,%r12d
  call   <skytraq_flush@plt>
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <skytraq_write@plt>
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
int skytraq_cmd_nowait(int fd, const char *message, int len) {
  skytraq_flush(fd);
  return skytraq_write(fd, message, len);
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<skytraq_cmd_nowait>:
  endbr64
  push   %r13
  mov    %edx,%r13d
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %edi,%ebp
  call   <skytraq_flush@plt>
  mov    %r13d,%edx
  mov    %r12,%rsi
  mov    %ebp,%edi
  pop    %rbp
  pop    %r12
  pop    %r13
  jmp    1060 <skytraq_write@plt>
```

assistant: ```c
int skytraq_cmd_nowait(int fd, const char *message, int len) {
  skytraq_flush(fd);
  return skytraq_write(fd, message, len);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<skytraq_cmd_nowait>:
  endbr64
  push   %r13
  mov    %edx,%r13d
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %edi,%ebp
  call   <skytraq_flush@plt>
  mov    %r13d,%edx
  mov    %r12,%rsi
  mov    %ebp,%edi
  pop    %rbp
  pop    %r12
  pop    %r13
  jmp    1060 <skytraq_write@plt>
```

assistant: ```c
int skytraq_cmd_nowait(int fd, const char *message, int len) {
  skytraq_flush(fd);
  return skytraq_write(fd, message, len);
}
```
user: What is the c source code of the assembly code below?

```asm
<test_translate>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  lea    D36(%rip),%rax
  mov    %rax,%rdx
  mov    $0x0,%esi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <pl_translate@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  lea    D43(%rip),%rdx
  mov    %rdx,%rcx
  lea    D9(%rip),%rdx
  mov    %rax,%rsi
  lea    D83(%rip),%rax
  mov    %rax,%rdi
  call   <assert_equal_str@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  lea    D98(%rip),%rax
  mov    %rax,%rdx
  lea    D36(%rip),%rax
  mov    %rax,%rsi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <pl_translate@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  lea    D122(%rip),%rdx
  mov    %rdx,%rcx
  lea    D9(%rip),%rdx
  mov    %rax,%rsi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <assert_equal_str@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  lea    D36(%rip),%rax
  mov    %rax,%rdx
  lea    D51(%rip),%rax
  mov    %rax,%rsi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <pl_translate@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  lea    D79(%rip),%rdx
  mov    %rdx,%rcx
  lea    D9(%rip),%rdx
  mov    %rax,%rsi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <assert_equal_str@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D36
type: string
name: retrieve_data
arguments: tag: D23
type: string
name: retrieve_data
arguments: tag: D43
type: string
name: retrieve_data
arguments: tag: D9
type: string
name: retrieve_data
arguments: tag: D83
type: string
name: retrieve_data
arguments: tag: D98
type: string
name: retrieve_data
arguments: tag: D122
type: string
name: retrieve_data
arguments: tag: D5
type: string
name: retrieve_data
arguments: tag: D51
type: string
name: retrieve_data
arguments: tag: D79
type: string

tool: D36: aeiou

tool: D23: read this short text

tool: D43: Test 1: Strings are not equal.

tool: D9: test_translate

tool: D83: rd ths shrt txt

tool: D98: xxxxx

tool: D122: Test 2: Strings are not equal.

tool: D5: rxxd thxs shxrt txxt

tool: D51: zzzzz

tool: D79: Test 3: Strings are not equal

assistant: ```c
void test_translate() {
  char *ret_val;
  ret_val = pl_translate("read this short text", NULL, "aeiou");
  assert_equal_str("rd ths shrt txt", ret_val, "test_translate", "Test 1: Strings are not equal.");
  free(ret_val);
  ret_val = pl_translate("read this short text", (unsigned char *)"aeiou", "xxxxx");
  assert_equal_str("rxxd thxs shxrt txxt", ret_val, "test_translate", "Test 2: Strings are not equal.");
  free(ret_val);
  ret_val = pl_translate("read this short text", (unsigned char *)"zzzzz", "aeiou");
  assert_equal_str("read this short text", ret_val, "test_translate", "Test 3: Strings are not equal");
  free(ret_val);
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<test_translate>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  lea    D22(%rip),%r13
  mov    %r13,%rdx
  mov    $0x0,%esi
  lea    D99(%rip),%rbp
  mov    %rbp,%rdi
  call   <pl_translate@plt>
  mov    %rax,%rbx
  lea    D80(%rip),%rcx
  lea    D19(%rip),%r12
  mov    %r12,%rdx
  mov    %rax,%rsi
  lea    D56(%rip),%rdi
  call   <assert_equal_str@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  lea    D43(%rip),%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <pl_translate@plt>
  mov    %rax,%rbx
  lea    D35(%rip),%rcx
  mov    %r12,%rdx
  mov    %rax,%rsi
  lea    D27(%rip),%rdi
  call   <assert_equal_str@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  mov    %r13,%rdx
  lea    D10(%rip),%rsi
  mov    %rbp,%rdi
  call   <pl_translate@plt>
  mov    %rax,%rbx
  lea    D72(%rip),%rcx
  mov    %r12,%rdx
  mov    %rax,%rsi
  mov    %rbp,%rdi
  call   <assert_equal_str@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

tool_calls: name: read_data
arguments: label: D22
type_guessed: string
name: read_data
arguments: label: D99
type_guessed: string
name: read_data
arguments: label: D80
type_guessed: string
name: read_data
arguments: label: D19
type_guessed: string
name: read_data
arguments: label: D56
type_guessed: string
name: read_data
arguments: label: D43
type_guessed: string
name: read_data
arguments: label: D35
type_guessed: string
name: read_data
arguments: label: D27
type_guessed: string
name: read_data
arguments: label: D10
type_guessed: string
name: read_data
arguments: label: D72
type_guessed: string

tool: D22: aeiou

tool: D99: read this short text

tool: D80: Test 1: Strings are not equal.

tool: D19: test_translate

tool: D56: rd ths shrt txt

tool: D43: xxxxx

tool: D35: Test 2: Strings are not equal.

tool: D27: rxxd thxs shxrt txxt

tool: D10: zzzzz

tool: D72: Test 3: Strings are not equal

assistant: ```c
void test_translate() {
  char *ret_val;
  ret_val = pl_translate("read this short text", NULL, "aeiou");
  assert_equal_str("rd ths shrt txt", ret_val, "test_translate", "Test 1: Strings are not equal.");
  free(ret_val);
  ret_val = pl_translate("read this short text", (unsigned char *)"aeiou", "xxxxx");
  assert_equal_str("rxxd thxs shxrt txxt", ret_val, "test_translate", "Test 2: Strings are not equal.");
  free(ret_val);
  ret_val = pl_translate("read this short text", (unsigned char *)"zzzzz", "aeiou");
  assert_equal_str("read this short text", ret_val, "test_translate", "Test 3: Strings are not equal");
  free(ret_val);
}
```
user: What is the c source code of the assembly code below:

```asm
<test_translate>:
  endbr64
  push   %r14
  lea    D62(%rip),%r14
  xor    %esi,%esi
  push   %r13
  mov    %r14,%rdx
  lea    D95(%rip),%r13
  push   %r12
  lea    D83(%rip),%r12
  push   %rbp
  mov    %r12,%rdi
  sub    $0x8,%rsp
  call   <pl_translate@plt>
  lea    D79(%rip),%rcx
  mov    %r13,%rdx
  lea    D7(%rip),%rdi
  mov    %rax,%rbp
  mov    %rax,%rsi
  call   <assert_equal_str@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    %r14,%rsi
  mov    %r12,%rdi
  lea    D31(%rip),%rdx
  call   <pl_translate@plt>
  lea    D19(%rip),%rcx
  mov    %r13,%rdx
  lea    D76(%rip),%rdi
  mov    %rax,%rbp
  mov    %rax,%rsi
  call   <assert_equal_str@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    %r14,%rdx
  mov    %r12,%rdi
  lea    D27(%rip),%rsi
  call   <pl_translate@plt>
  mov    %r12,%rdi
  mov    %r13,%rdx
  lea    D15(%rip),%rcx
  mov    %rax,%rsi
  mov    %rax,%rbp
  call   <assert_equal_str@plt>
  add    $0x8,%rsp
  mov    %rbp,%rdi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1070 <free@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D62
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D95
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D83
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D79
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D7
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D31
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D19
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D76
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D27
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D15
type_infered: string

tool: D62: aeiou

tool: D95: test_translate

tool: D83: read this short text

tool: D79: Test 1: Strings are not equal.

tool: D7: rd ths shrt txt

tool: D31: xxxxx

tool: D19: Test 2: Strings are not equal.

tool: D76: rxxd thxs shxrt txxt

tool: D27: zzzzz

tool: D15: Test 3: Strings are not equal

assistant: ```c
void test_translate() {
  char *ret_val;
  ret_val = pl_translate("read this short text", NULL, "aeiou");
  assert_equal_str("rd ths shrt txt", ret_val, "test_translate", "Test 1: Strings are not equal.");
  free(ret_val);
  ret_val = pl_translate("read this short text", (unsigned char *)"aeiou", "xxxxx");
  assert_equal_str("rxxd thxs shxrt txxt", ret_val, "test_translate", "Test 2: Strings are not equal.");
  free(ret_val);
  ret_val = pl_translate("read this short text", (unsigned char *)"zzzzz", "aeiou");
  assert_equal_str("read this short text", ret_val, "test_translate", "Test 3: Strings are not equal");
  free(ret_val);
}
```