ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 请将以下的汇编代码转换成C语言代码:

```asm
<data_collection>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x4b0,%edi
  call   <malloc@plt>
  lea    D2(%rip),%rdx
  lea    D23(%rip),%rcx
  lea    D67(%rip),%rsi
  mov    %rdx,(%rax)
  lea    D0(%rip),%rdi
  mov    %rcx,0x8(%rax)
  lea    D66(%rip),%rdx
  lea    D53(%rip),%rcx
  mov    %rsi,0x10(%rax)
  lea    D13(%rip),%rsi
  mov    %rdi,0x18(%rax)
  mov    %rdx,0x20(%rax)
  mov    %rcx,0x28(%rax)
  mov    %rsi,0x30(%rax)
  add    $0x8,%rsp
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D2
type: string
name: retrieve_data
arguments: tag: D23
type: string
name: retrieve_data
arguments: tag: D67
type: string
name: retrieve_data
arguments: tag: D0
type: string
name: retrieve_data
arguments: tag: D66
type: string
name: retrieve_data
arguments: tag: D53
type: string
name: retrieve_data
arguments: tag: D13
type: string

tool: D2: ./data/lcp_mmc.dat

tool: D23: ./data/lcp_deudeu.dat

tool: D67: ./data/lcp_trivial.dat

tool: D0: ./data/lcp_ortiz.dat

tool: D66: ./data/lcp_exp_murty.dat

tool: D53: ./data/lcp_exp_murty2.dat

tool: D13: ---

assistant: ```c
char **data_collection() {
  int n_data_1 = 150;
  char **data_collection_1 = (char **)malloc(n_data_1 * sizeof(char *));
  int n_data = 0;
  data_collection_1[n_data++] = "./data/lcp_mmc.dat";
  data_collection_1[n_data++] = "./data/lcp_deudeu.dat";
  data_collection_1[n_data++] = "./data/lcp_trivial.dat";
  data_collection_1[n_data++] = "./data/lcp_ortiz.dat";
  data_collection_1[n_data++] = "./data/lcp_exp_murty.dat";
  data_collection_1[n_data++] = "./data/lcp_exp_murty2.dat";
  data_collection_1[n_data++] = "---";
  return data_collection_1;
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<data_collection>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x4b0,%edi
  call   <malloc@plt>
  lea    D31(%rip),%rdx
  lea    D17(%rip),%rcx
  movq   %rcx,%xmm0
  movq   %rdx,%xmm1
  lea    D28(%rip),%rsi
  punpcklqdq %xmm1,%xmm0
  lea    D42(%rip),%rdx
  lea    D65(%rip),%rdi
  movups %xmm0,(%rax)
  movq   %rdx,%xmm2
  movq   %rsi,%xmm0
  lea    D21(%rip),%rdx
  punpcklqdq %xmm2,%xmm0
  movq   %rdx,%xmm3
  lea    D61(%rip),%rcx
  movups %xmm0,0x10(%rax)
  movq   %rdi,%xmm0
  punpcklqdq %xmm3,%xmm0
  mov    %rcx,0x30(%rax)
  movups %xmm0,0x20(%rax)
  add    $0x8,%rsp
  ret
```

tool_calls: name: unpack_data
arguments: tag: D31
type: string
name: unpack_data
arguments: tag: D17
type: string
name: unpack_data
arguments: tag: D28
type: string
name: unpack_data
arguments: tag: D42
type: string
name: unpack_data
arguments: tag: D65
type: string
name: unpack_data
arguments: tag: D21
type: string
name: unpack_data
arguments: tag: D61
type: string

tool: D31: ./data/lcp_deudeu.dat

tool: D17: ./data/lcp_mmc.dat

tool: D28: ./data/lcp_trivial.dat

tool: D42: ./data/lcp_ortiz.dat

tool: D65: ./data/lcp_exp_murty.dat

tool: D21: ./data/lcp_exp_murty2.dat

tool: D61: ---

assistant: ```c
char **data_collection() {
  int n_data_1 = 150;
  char **data_collection_1 = (char **)malloc(n_data_1 * sizeof(char *));
  int n_data = 0;
  data_collection_1[n_data++] = "./data/lcp_mmc.dat";
  data_collection_1[n_data++] = "./data/lcp_deudeu.dat";
  data_collection_1[n_data++] = "./data/lcp_trivial.dat";
  data_collection_1[n_data++] = "./data/lcp_ortiz.dat";
  data_collection_1[n_data++] = "./data/lcp_exp_murty.dat";
  data_collection_1[n_data++] = "./data/lcp_exp_murty2.dat";
  data_collection_1[n_data++] = "---";
  return data_collection_1;
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<hal_default_reset_hdlr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <hal_uart_putstr@plt>
  mov    $0x0,%eax
  call   <hal_assert@plt>
  nop
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D2
type: string

tool: D2: RESET ! 


assistant: ```c
void hal_default_reset_hdlr(void) {
  hal_uart_putstr("RESET ! \n");
  hal_assert();
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<hal_default_reset_hdlr>:
  endbr64
  sub    $0x8,%rsp
  lea    D3(%rip),%rdi
  call   <hal_uart_putstr@plt>
  mov    $0x0,%eax
  call   <hal_assert@plt>
  add    $0x8,%rsp
  ret
```

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

tool: D3: RESET ! 


assistant: ```c
void hal_default_reset_hdlr(void) {
  hal_uart_putstr("RESET ! \n");
  hal_assert();
}
```
user: Translate the below assembly code into C programming language:

```asm
<hal_default_reset_hdlr>:
  endbr64
  sub    $0x8,%rsp
  lea    D3(%rip),%rdi
  call   <hal_uart_putstr@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    1070 <hal_assert@plt>
```

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

tool: D3: RESET ! 


assistant: ```c
void hal_default_reset_hdlr(void) {
  hal_uart_putstr("RESET ! \n");
  hal_assert();
}
```
user: What is the c source code of the assembly code below:

```asm
<hal_default_reset_hdlr>:
  endbr64
  sub    $0x8,%rsp
  lea    D5(%rip),%rdi
  call   <hal_uart_putstr@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    1070 <hal_assert@plt>
```

tool_calls: name: disassemble_data
arguments: label: D5
data_type: string

tool: D5: RESET ! 


assistant: ```c
void hal_default_reset_hdlr(void) {
  hal_uart_putstr("RESET ! \n");
  hal_assert();
}
```
user: 请将以下的汇编代码转换成C语言代码:

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

tool_calls: name: read_data
arguments: data_tag: D9
type: string

tool: D9: jp cccase

assistant: ```c
void gen_jump_case(void) {
  output_with_tab("jp cccase");
  newline();
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<gen_jump_case>:
  endbr64
  sub    $0x8,%rsp
  lea    D2(%rip),%rdi
  call   <output_with_tab@plt>
  mov    $0x0,%eax
  call   <newline@plt>
  add    $0x8,%rsp
  ret
```

tool_calls: name: read_data
arguments: label: D2
data_type: string

tool: D2: jp cccase

assistant: ```c
void gen_jump_case(void) {
  output_with_tab("jp cccase");
  newline();
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<gen_jump_case>:
  endbr64
  sub    $0x8,%rsp
  lea    D8(%rip),%rdi
  call   <output_with_tab@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    1060 <newline@plt>
```

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

tool: D8: jp cccase

assistant: ```c
void gen_jump_case(void) {
  output_with_tab("jp cccase");
  newline();
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<gen_jump_case>:
  endbr64
  sub    $0x8,%rsp
  lea    D7(%rip),%rdi
  call   <output_with_tab@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    1060 <newline@plt>
```

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

tool: D7: jp cccase

assistant: ```c
void gen_jump_case(void) {
  output_with_tab("jp cccase");
  newline();
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<islittleendian>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movw   $0x1,-0xa(%rbp)
  movzbl -0xa(%rbp),%eax
  cmp    $0x1,%al
  sete   %al
  movzbl %al,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L9
  call   <__stack_chk_fail@plt>
L9:
  leave
  ret
```

assistant: ```c
int islittleendian(void) {
  union {
    char c[2];
    short s;
  } u;
  u.s = 0x1;
  return u.c[0] == '\1';
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<islittleendian>:
  endbr64
  mov    $0x1,%eax
  ret
```

assistant: ```c
int islittleendian(void) {
  union {
    char c[2];
    short s;
  } u;
  u.s = 0x1;
  return u.c[0] == '\1';
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<islittleendian>:
  endbr64
  mov    $0x1,%eax
  ret
```

assistant: ```c
int islittleendian(void) {
  union {
    char c[2];
    short s;
  } u;
  u.s = 0x1;
  return u.c[0] == '\1';
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<islittleendian>:
  endbr64
  mov    $0x1,%eax
  ret
```

assistant: ```c
int islittleendian(void) {
  union {
    char c[2];
    short s;
  } u;
  u.s = 0x1;
  return u.c[0] == '\1';
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<ns2cis_>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x40,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %rcx,-0x50(%rbp)
  mov    %r8,-0x58(%rbp)
  mov    %r9,-0x60(%rbp)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%ecx
  mov    -0x48(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x40(%rbp),%rax
  mov    (%rax),%esi
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <_s2_f2c3darr@plt>
  mov    %rax,-0x28(%rbp)
  mov    0x68(%rbp),%rax
  movss  (%rax),%xmm3
  mov    0x60(%rbp),%rax
  movss  (%rax),%xmm2
  mov    0x58(%rbp),%rax
  movss  (%rax),%xmm1
  mov    0x50(%rbp),%rax
  movss  (%rax),%xmm0
  mov    0x48(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%r12d
  mov    0x40(%rbp),%rax
  mov    (%rax),%ebx
  mov    0x38(%rbp),%rax
  mov    (%rax),%edi
  mov    0x28(%rbp),%rax
  mov    (%rax),%r11d
  mov    0x20(%rbp),%rax
  mov    (%rax),%r10d
  mov    0x18(%rbp),%rax
  mov    (%rax),%r9d
  mov    0x10(%rbp),%rax
  mov    (%rax),%r8d
  mov    -0x60(%rbp),%rax
  mov    (%rax),%r14d
  mov    -0x58(%rbp),%rax
  mov    (%rax),%r13d
  mov    -0x50(%rbp),%rax
  mov    (%rax),%ecx
  mov    -0x48(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x40(%rbp),%rax
  mov    (%rax),%esi
  mov    -0x28(%rbp),%rax
  sub    $0x8,%rsp
  push   %r12
  push   %rbx
  push   0x30(%rbp)
  push   %r11
  push   %r10
  push   %r9
  push   %r8
  movaps %xmm3,%xmm4
  movaps %xmm2,%xmm3
  movaps %xmm1,%xmm2
  movaps %xmm0,%xmm1
  movd   %edi,%xmm0
  mov    %r14d,%r9d
  mov    %r13d,%r8d
  mov    %rax,%rdi
  call   <ns2cis@plt>
  add    $0x40,%rsp
  mov    %eax,-0x2c(%rbp)
  lea    D0(%rip),%rax
  mov    %rax,%rsi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <_s2warn@plt>
  mov    -0x2c(%rbp),%eax
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: label: D0
data_type: string
name: parse_data
arguments: label: D2
data_type: string

tool: D0: FORTRAN issue: isosurface will not respond to changes in data grid.


tool: D2: ns2cis

assistant: ```c
int ns2cis_(float *grid, int *adim, int *bdim, int *cdim, int *a1, int *a2, int *b1, int *b2, int *c1, int *c2, float *tr, float *level, int *resolution, char *trans, float *alpha, float *red, float *green, float *blue) {
  int idret;
  float ***c3grid = _s2_f2c3darr(grid, *adim, *bdim, *cdim);
  idret = ns2cis(c3grid, *adim, *bdim, *cdim, *a1, *a2, *b1, *b2, *c1, *c2, tr, *level, *resolution, *trans, *alpha, *red, *green, *blue);
  _s2warn("ns2cis", "FORTRAN issue: isosurface will not respond to changes in data grid.\n");
  return idret;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<ns2cis_>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  mov    %rdx,%rbp
  mov    %rcx,%r12
  mov    %r8,%r13
  mov    %r9,%r14
  mov    (%rcx),%ecx
  mov    (%rdx),%edx
  mov    (%rsi),%esi
  call   <_s2_f2c3darr@plt>
  mov    %rax,%rdi
  sub    $0x8,%rsp
  mov    0x70(%rsp),%rax
  movsbl (%rax),%eax
  push   %rax
  mov    0x70(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  push   0x68(%rsp)
  mov    0x68(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  mov    0x68(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  mov    0x68(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  mov    0x68(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  mov    0xc8(%rsp),%rax
  movss  (%rax),%xmm4
  mov    0xc0(%rsp),%rax
  movss  (%rax),%xmm3
  mov    0xb8(%rsp),%rax
  movss  (%rax),%xmm2
  mov    0xb0(%rsp),%rax
  movss  (%rax),%xmm1
  mov    0x98(%rsp),%rax
  movss  (%rax),%xmm0
  mov    (%r14),%r9d
  mov    0x0(%r13),%r8d
  mov    (%r12),%ecx
  mov    0x0(%rbp),%edx
  mov    (%rbx),%esi
  call   <ns2cis@plt>
  mov    %eax,%ebx
  add    $0x40,%rsp
  lea    D17(%rip),%rsi
  lea    D6(%rip),%rdi
  call   <_s2warn@plt>
  mov    %ebx,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D17
data_type: string
name: unpack_data
arguments: data_tag: D6
data_type: string

tool: D17: FORTRAN issue: isosurface will not respond to changes in data grid.


tool: D6: ns2cis

assistant: ```c
int ns2cis_(float *grid, int *adim, int *bdim, int *cdim, int *a1, int *a2, int *b1, int *b2, int *c1, int *c2, float *tr, float *level, int *resolution, char *trans, float *alpha, float *red, float *green, float *blue) {
  int idret;
  float ***c3grid = _s2_f2c3darr(grid, *adim, *bdim, *cdim);
  idret = ns2cis(c3grid, *adim, *bdim, *cdim, *a1, *a2, *b1, *b2, *c1, *c2, tr, *level, *resolution, *trans, *alpha, *red, *green, *blue);
  _s2warn("ns2cis", "FORTRAN issue: isosurface will not respond to changes in data grid.\n");
  return idret;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<ns2cis_>:
  endbr64
  push   %r14
  mov    %r9,%r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rsi,%rbx
  mov    (%rcx),%ecx
  mov    (%rdx),%edx
  mov    (%rsi),%esi
  call   <_s2_f2c3darr@plt>
  sub    $0x8,%rsp
  mov    (%r14),%r9d
  mov    0x0(%r13),%r8d
  mov    %rax,%rdi
  mov    0x70(%rsp),%rax
  movsbl (%rax),%eax
  push   %rax
  mov    0x70(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  push   0x68(%rsp)
  mov    0x68(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  mov    0x68(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  mov    0x68(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  mov    0x68(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  mov    0xc8(%rsp),%rax
  movss  (%rax),%xmm4
  mov    0xc0(%rsp),%rax
  movss  (%rax),%xmm3
  mov    0xb8(%rsp),%rax
  movss  (%rax),%xmm2
  mov    0xb0(%rsp),%rax
  movss  (%rax),%xmm1
  mov    0x98(%rsp),%rax
  movss  (%rax),%xmm0
  mov    (%r12),%ecx
  mov    0x0(%rbp),%edx
  mov    (%rbx),%esi
  call   <ns2cis@plt>
  add    $0x40,%rsp
  lea    D3(%rip),%rsi
  lea    D14(%rip),%rdi
  mov    %eax,%r12d
  call   <_s2warn@plt>
  pop    %rbx
  mov    %r12d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D3
type_guessed: string
name: extract_symbolic_data
arguments: tag: D14
type_guessed: string

tool: D3: FORTRAN issue: isosurface will not respond to changes in data grid.


tool: D14: ns2cis

assistant: ```c
int ns2cis_(float *grid, int *adim, int *bdim, int *cdim, int *a1, int *a2, int *b1, int *b2, int *c1, int *c2, float *tr, float *level, int *resolution, char *trans, float *alpha, float *red, float *green, float *blue) {
  int idret;
  float ***c3grid = _s2_f2c3darr(grid, *adim, *bdim, *cdim);
  idret = ns2cis(c3grid, *adim, *bdim, *cdim, *a1, *a2, *b1, *b2, *c1, *c2, tr, *level, *resolution, *trans, *alpha, *red, *green, *blue);
  _s2warn("ns2cis", "FORTRAN issue: isosurface will not respond to changes in data grid.\n");
  return idret;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<ns2cis_>:
  endbr64
  push   %r14
  mov    %r9,%r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rsi,%rbx
  mov    (%rcx),%ecx
  mov    (%rdx),%edx
  mov    (%rsi),%esi
  call   <_s2_f2c3darr@plt>
  sub    $0x8,%rsp
  mov    (%r14),%r9d
  mov    0x0(%r13),%r8d
  mov    %rax,%rdi
  mov    0x70(%rsp),%rax
  movsbl (%rax),%eax
  push   %rax
  mov    0x70(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  push   0x68(%rsp)
  mov    0x68(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  mov    0x68(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  mov    0x68(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  mov    0x68(%rsp),%rax
  mov    (%rax),%eax
  push   %rax
  mov    0xc8(%rsp),%rax
  movss  (%rax),%xmm4
  mov    0xc0(%rsp),%rax
  movss  (%rax),%xmm3
  mov    0xb8(%rsp),%rax
  movss  (%rax),%xmm2
  mov    0xb0(%rsp),%rax
  movss  (%rax),%xmm1
  mov    0x98(%rsp),%rax
  movss  (%rax),%xmm0
  mov    (%r12),%ecx
  mov    0x0(%rbp),%edx
  mov    (%rbx),%esi
  call   <ns2cis@plt>
  add    $0x40,%rsp
  lea    D16(%rip),%rsi
  lea    D1(%rip),%rdi
  mov    %eax,%r12d
  call   <_s2warn@plt>
  pop    %rbx
  mov    %r12d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D16
data_type: string
name: extract_symbolic_data
arguments: data_label: D1
data_type: string

tool: D16: FORTRAN issue: isosurface will not respond to changes in data grid.


tool: D1: ns2cis

assistant: ```c
int ns2cis_(float *grid, int *adim, int *bdim, int *cdim, int *a1, int *a2, int *b1, int *b2, int *c1, int *c2, float *tr, float *level, int *resolution, char *trans, float *alpha, float *red, float *green, float *blue) {
  int idret;
  float ***c3grid = _s2_f2c3darr(grid, *adim, *bdim, *cdim);
  idret = ns2cis(c3grid, *adim, *bdim, *cdim, *a1, *a2, *b1, *b2, *c1, *c2, tr, *level, *resolution, *trans, *alpha, *red, *green, *blue);
  _s2warn("ns2cis", "FORTRAN issue: isosurface will not respond to changes in data grid.\n");
  return idret;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x130,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    D14(%rip),%rax
  mov    (%rax),%rax
  mov    %rax,%rdx
  mov    D48(%rip),%rax
  mov    (%rax),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <lh_new@plt>
  mov    %rax,-0x120(%rbp)
L27:
  movb   $0x0,-0x110(%rbp)
  mov    D58(%rip),%rax
  mov    (%rax),%edx
  lea    -0x110(%rbp),%rax
  mov    $0x100,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  movzbl -0x110(%rbp),%eax
  test   %al,%al
  je     L6
  lea    -0x110(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x124(%rbp)
  mov    -0x124(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <OPENSSL_malloc@plt>
  mov    %rax,-0x118(%rbp)
  mov    -0x124(%rbp),%eax
  lea    0x1(%rax),%edx
  lea    -0x110(%rbp),%rcx
  mov    -0x118(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x118(%rbp),%rdx
  mov    -0x120(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <lh_insert@plt>
  jmp    L27
L6:
  nop
  mov    D28(%rip),%rax
  mov    (%rax),%edx
  mov    -0x120(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <lh_node_stats@plt>
  mov    D28(%rip),%rax
  mov    (%rax),%edx
  mov    -0x120(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <lh_stats@plt>
  mov    D28(%rip),%rax
  mov    (%rax),%edx
  mov    -0x120(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <lh_node_usage_stats@plt>
  mov    $0x0,%edi
  call   <exit@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L18
  call   <__stack_chk_fail@plt>
L18:
  leave
  ret
```

assistant: ```c
int main(void) {
  _LHASH *conf;
  char buf[256];
  int i;
  conf = lh_new(lh_strhash, (int (*)(const void *, const void *))strcmp);
  for (;;) {
    char *p;
    buf[0] = '\0';
    fgets(buf, 256, stdin);
    if (buf[0] == '\0')
      break;
    i = strlen(buf);
    p = OPENSSL_malloc(i + 1);
    memcpy(p, buf, i + 1);
    lh_insert(conf, p);
  }
  lh_node_stats(conf, stdout);
  lh_stats(conf, stdout);
  lh_node_usage_stats(conf, stdout);
  exit(0);
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x110,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  mov    D15(%rip),%rax
  mov    (%rax),%rsi
  mov    D28(%rip),%rax
  mov    (%rax),%edi
  call   <lh_new@plt>
  mov    %rax,%r13
  mov    D0(%rip),%r14
  jmp    L26
L27:
  mov    %rsp,%r12
  mov    %r12,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%ebp
  mov    %ebp,%edi
  call   <OPENSSL_malloc@plt>
  mov    %rax,%rbx
  mov    %ebp,%edx
  mov    %r12,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <lh_insert@plt>
L26:
  movb   $0x0,(%rsp)
  mov    %rsp,%rdi
  mov    (%r14),%edx
  mov    $0x100,%esi
  call   <fgets@plt>
  cmpb   $0x0,(%rsp)
  jne    L27
  mov    D7(%rip),%rbx
  mov    (%rbx),%esi
  mov    %r13,%rdi
  call   <lh_node_stats@plt>
  mov    (%rbx),%esi
  mov    %r13,%rdi
  call   <lh_stats@plt>
  mov    (%rbx),%esi
  mov    %r13,%rdi
  call   <lh_node_usage_stats@plt>
  mov    $0x0,%edi
  call   <exit@plt>
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L20
  mov    $0x0,%eax
  add    $0x110,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L20:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int main(void) {
  _LHASH *conf;
  char buf[256];
  int i;
  conf = lh_new(lh_strhash, (int (*)(const void *, const void *))strcmp);
  for (;;) {
    char *p;
    buf[0] = '\0';
    fgets(buf, 256, stdin);
    if (buf[0] == '\0')
      break;
    i = strlen(buf);
    p = OPENSSL_malloc(i + 1);
    memcpy(p, buf, i + 1);
    lh_insert(conf, p);
  }
  lh_node_stats(conf, stdout);
  lh_stats(conf, stdout);
  lh_node_usage_stats(conf, stdout);
  exit(0);
}
```
user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x110,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  mov    D5(%rip),%rax
  mov    %rsp,%rbx
  mov    (%rax),%rsi
  mov    D30(%rip),%rax
  mov    (%rax),%edi
  call   <lh_new@plt>
  mov    D38(%rip),%r14
  mov    %rax,%r13
  jmp    L15
  nopl   0x0(%rax,%rax,1)
L14:
  mov    %rbx,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%r12d
  mov    %r12d,%edi
  call   <OPENSSL_malloc@plt>
  mov    %rbx,%rsi
  mov    %r12d,%edx
  mov    %rax,%rbp
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <lh_insert@plt>
L15:
  mov    (%r14),%edx
  mov    $0x100,%esi
  mov    %rbx,%rdi
  movb   $0x0,(%rsp)
  call   <fgets@plt>
  cmpb   $0x0,(%rsp)
  jne    L14
  mov    D13(%rip),%rbx
  mov    %r13,%rdi
  mov    (%rbx),%esi
  call   <lh_node_stats@plt>
  mov    (%rbx),%esi
  mov    %r13,%rdi
  call   <lh_stats@plt>
  mov    (%rbx),%esi
  mov    %r13,%rdi
  call   <lh_node_usage_stats@plt>
  xor    %edi,%edi
  call   <exit@plt>
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0x110,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L7:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int main(void) {
  _LHASH *conf;
  char buf[256];
  int i;
  conf = lh_new(lh_strhash, (int (*)(const void *, const void *))strcmp);
  for (;;) {
    char *p;
    buf[0] = '\0';
    fgets(buf, 256, stdin);
    if (buf[0] == '\0')
      break;
    i = strlen(buf);
    p = OPENSSL_malloc(i + 1);
    memcpy(p, buf, i + 1);
    lh_insert(conf, p);
  }
  lh_node_stats(conf, stdout);
  lh_stats(conf, stdout);
  lh_node_usage_stats(conf, stdout);
  exit(0);
}
```