ylfeng/ReF-Decompile-dataset huggingface dataset:
user: What is the c source code of the assembly code below?

```asm
<lexer_tests>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    D104(%rip),%rax
  mov    %rax,%rsi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  call   <are_equal@plt>
  lea    D79(%rip),%rax
  mov    %rax,%rsi
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <are_equal@plt>
  lea    D102(%rip),%rax
  mov    %rax,%rsi
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  call   <are_equal@plt>
  lea    D85(%rip),%rax
  mov    %rax,%rsi
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  call   <are_equal@plt>
  lea    D105(%rip),%rax
  mov    %rax,%rsi
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  call   <are_equal@plt>
  lea    D47(%rip),%rax
  mov    %rax,%rsi
  lea    D60(%rip),%rax
  mov    %rax,%rdi
  call   <are_equal@plt>
  nop
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D104
data_type: string
name: disassemble_data
arguments: data_tag: D21
data_type: string
name: disassemble_data
arguments: data_tag: D79
data_type: string
name: disassemble_data
arguments: data_tag: D26
data_type: string
name: disassemble_data
arguments: data_tag: D102
data_type: string
name: disassemble_data
arguments: data_tag: D30
data_type: string
name: disassemble_data
arguments: data_tag: D85
data_type: string
name: disassemble_data
arguments: data_tag: D12
data_type: string
name: disassemble_data
arguments: data_tag: D105
data_type: string
name: disassemble_data
arguments: data_tag: D22
data_type: string
name: disassemble_data
arguments: data_tag: D47
data_type: string
name: disassemble_data
arguments: data_tag: D60
data_type: string

tool: D104: [left_paren,(][symbol,set][symbol,position][left_paren,(][identifier,*][num,60][left_paren,(][identifier,+][symbol,initial][symbol,rate][right_paren,)][right_paren,)][right_paren,)]

tool: D21: (set position (* 60 (+ initial rate)))

tool: D79: [left_paren,(][identifier,+][num,137][num,349][right_paren,)]

tool: D26: (+ 137 349)

tool: D102: [left_paren,(][identifier,-][num,1000][num,334][right_paren,)]

tool: D30: (- 1000 334)

tool: D85: [left_paren,(][identifier,*][num,5][num,99][right_paren,)]

tool: D12: (* 5 99) 

tool: D105: [left_paren,(][identifier,/][num,10][num,5][right_paren,)]

tool: D22: (/ 10 5)

tool: D47: [left_paren,(][identifier,+][num,2.7][num,10][right_paren,)]

tool: D60: (+ 2.7 10 ) 

assistant: ```c
void lexer_tests() {
  are_equal("(set position (* 60 (+ initial rate)))", "[left_paren,(][symbol,set][symbol,position][left_paren,(][identifier,*][num,60][left_paren,(][identifier,+][symbol,initial][symbol,rate][right_paren,)][right_paren,)][right_paren,)]");
  are_equal("(+ 137 349)", "[left_paren,(][identifier,+][num,137][num,349][right_paren,)]");
  are_equal("(- 1000 334)", "[left_paren,(][identifier,-][num,1000][num,334][right_paren,)]");
  are_equal("(* 5 99) ", "[left_paren,(][identifier,*][num,5][num,99][right_paren,)]");
  are_equal("(/ 10 5)", "[left_paren,(][identifier,/][num,10][num,5][right_paren,)]");
  are_equal("(+ 2.7 10 ) ", "[left_paren,(][identifier,+][num,2.7][num,10][right_paren,)]");
}
```
user: Translate the below assembly code into C programming language:

```asm
<lexer_tests>:
  endbr64
  sub    $0x8,%rsp
  lea    D119(%rip),%rsi
  lea    D102(%rip),%rdi
  call   <are_equal@plt>
  lea    D67(%rip),%rsi
  lea    D16(%rip),%rdi
  call   <are_equal@plt>
  lea    D103(%rip),%rsi
  lea    D30(%rip),%rdi
  call   <are_equal@plt>
  lea    D51(%rip),%rsi
  lea    D97(%rip),%rdi
  call   <are_equal@plt>
  lea    D46(%rip),%rsi
  lea    D82(%rip),%rdi
  call   <are_equal@plt>
  lea    D70(%rip),%rsi
  lea    D41(%rip),%rdi
  call   <are_equal@plt>
  add    $0x8,%rsp
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D119
datatype: string
name: retrieve_data
arguments: data_tag: D102
datatype: string
name: retrieve_data
arguments: data_tag: D67
datatype: string
name: retrieve_data
arguments: data_tag: D16
datatype: string
name: retrieve_data
arguments: data_tag: D103
datatype: string
name: retrieve_data
arguments: data_tag: D30
datatype: string
name: retrieve_data
arguments: data_tag: D51
datatype: string
name: retrieve_data
arguments: data_tag: D97
datatype: string
name: retrieve_data
arguments: data_tag: D46
datatype: string
name: retrieve_data
arguments: data_tag: D82
datatype: string
name: retrieve_data
arguments: data_tag: D70
datatype: string
name: retrieve_data
arguments: data_tag: D41
datatype: string

tool: D119: [left_paren,(][symbol,set][symbol,position][left_paren,(][identifier,*][num,60][left_paren,(][identifier,+][symbol,initial][symbol,rate][right_paren,)][right_paren,)][right_paren,)]

tool: D102: (set position (* 60 (+ initial rate)))

tool: D67: [left_paren,(][identifier,+][num,137][num,349][right_paren,)]

tool: D16: (+ 137 349)

tool: D103: [left_paren,(][identifier,-][num,1000][num,334][right_paren,)]

tool: D30: (- 1000 334)

tool: D51: [left_paren,(][identifier,*][num,5][num,99][right_paren,)]

tool: D97: (* 5 99) 

tool: D46: [left_paren,(][identifier,/][num,10][num,5][right_paren,)]

tool: D82: (/ 10 5)

tool: D70: [left_paren,(][identifier,+][num,2.7][num,10][right_paren,)]

tool: D41: (+ 2.7 10 ) 

assistant: ```c
void lexer_tests() {
  are_equal("(set position (* 60 (+ initial rate)))", "[left_paren,(][symbol,set][symbol,position][left_paren,(][identifier,*][num,60][left_paren,(][identifier,+][symbol,initial][symbol,rate][right_paren,)][right_paren,)][right_paren,)]");
  are_equal("(+ 137 349)", "[left_paren,(][identifier,+][num,137][num,349][right_paren,)]");
  are_equal("(- 1000 334)", "[left_paren,(][identifier,-][num,1000][num,334][right_paren,)]");
  are_equal("(* 5 99) ", "[left_paren,(][identifier,*][num,5][num,99][right_paren,)]");
  are_equal("(/ 10 5)", "[left_paren,(][identifier,/][num,10][num,5][right_paren,)]");
  are_equal("(+ 2.7 10 ) ", "[left_paren,(][identifier,+][num,2.7][num,10][right_paren,)]");
}
```
user: Translate the below assembly code into C programming language:

```asm
<lexer_tests>:
  endbr64
  sub    $0x8,%rsp
  lea    D66(%rip),%rsi
  lea    D25(%rip),%rdi
  call   <are_equal@plt>
  lea    D36(%rip),%rsi
  lea    D70(%rip),%rdi
  call   <are_equal@plt>
  lea    D18(%rip),%rsi
  lea    D16(%rip),%rdi
  call   <are_equal@plt>
  lea    D33(%rip),%rsi
  lea    D39(%rip),%rdi
  call   <are_equal@plt>
  lea    D98(%rip),%rsi
  lea    D78(%rip),%rdi
  call   <are_equal@plt>
  lea    D101(%rip),%rsi
  lea    D48(%rip),%rdi
  add    $0x8,%rsp
  jmp    1050 <are_equal@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D66
data_type: string
name: extract_symbolic_data
arguments: tag: D25
data_type: string
name: extract_symbolic_data
arguments: tag: D36
data_type: string
name: extract_symbolic_data
arguments: tag: D70
data_type: string
name: extract_symbolic_data
arguments: tag: D18
data_type: string
name: extract_symbolic_data
arguments: tag: D16
data_type: string
name: extract_symbolic_data
arguments: tag: D33
data_type: string
name: extract_symbolic_data
arguments: tag: D39
data_type: string
name: extract_symbolic_data
arguments: tag: D98
data_type: string
name: extract_symbolic_data
arguments: tag: D78
data_type: string
name: extract_symbolic_data
arguments: tag: D101
data_type: string
name: extract_symbolic_data
arguments: tag: D48
data_type: string

tool: D66: [left_paren,(][symbol,set][symbol,position][left_paren,(][identifier,*][num,60][left_paren,(][identifier,+][symbol,initial][symbol,rate][right_paren,)][right_paren,)][right_paren,)]

tool: D25: (set position (* 60 (+ initial rate)))

tool: D36: [left_paren,(][identifier,+][num,137][num,349][right_paren,)]

tool: D70: (+ 137 349)

tool: D18: [left_paren,(][identifier,-][num,1000][num,334][right_paren,)]

tool: D16: (- 1000 334)

tool: D33: [left_paren,(][identifier,*][num,5][num,99][right_paren,)]

tool: D39: (* 5 99) 

tool: D98: [left_paren,(][identifier,/][num,10][num,5][right_paren,)]

tool: D78: (/ 10 5)

tool: D101: [left_paren,(][identifier,+][num,2.7][num,10][right_paren,)]

tool: D48: (+ 2.7 10 ) 

assistant: ```c
void lexer_tests() {
  are_equal("(set position (* 60 (+ initial rate)))", "[left_paren,(][symbol,set][symbol,position][left_paren,(][identifier,*][num,60][left_paren,(][identifier,+][symbol,initial][symbol,rate][right_paren,)][right_paren,)][right_paren,)]");
  are_equal("(+ 137 349)", "[left_paren,(][identifier,+][num,137][num,349][right_paren,)]");
  are_equal("(- 1000 334)", "[left_paren,(][identifier,-][num,1000][num,334][right_paren,)]");
  are_equal("(* 5 99) ", "[left_paren,(][identifier,*][num,5][num,99][right_paren,)]");
  are_equal("(/ 10 5)", "[left_paren,(][identifier,/][num,10][num,5][right_paren,)]");
  are_equal("(+ 2.7 10 ) ", "[left_paren,(][identifier,+][num,2.7][num,10][right_paren,)]");
}
```
user: What is the c source code of the assembly code below?

```asm
<lexer_tests>:
  endbr64
  sub    $0x8,%rsp
  lea    D13(%rip),%rsi
  lea    D79(%rip),%rdi
  call   <are_equal@plt>
  lea    D80(%rip),%rsi
  lea    D60(%rip),%rdi
  call   <are_equal@plt>
  lea    D50(%rip),%rsi
  lea    D82(%rip),%rdi
  call   <are_equal@plt>
  lea    D70(%rip),%rsi
  lea    D77(%rip),%rdi
  call   <are_equal@plt>
  lea    D31(%rip),%rsi
  lea    D87(%rip),%rdi
  call   <are_equal@plt>
  lea    D81(%rip),%rsi
  lea    D41(%rip),%rdi
  add    $0x8,%rsp
  jmp    1050 <are_equal@plt>
```

tool_calls: name: disassemble_data
arguments: label: D13
type: string
name: disassemble_data
arguments: label: D79
type: string
name: disassemble_data
arguments: label: D80
type: string
name: disassemble_data
arguments: label: D60
type: string
name: disassemble_data
arguments: label: D50
type: string
name: disassemble_data
arguments: label: D82
type: string
name: disassemble_data
arguments: label: D70
type: string
name: disassemble_data
arguments: label: D77
type: string
name: disassemble_data
arguments: label: D31
type: string
name: disassemble_data
arguments: label: D87
type: string
name: disassemble_data
arguments: label: D81
type: string
name: disassemble_data
arguments: label: D41
type: string

tool: D13: [left_paren,(][symbol,set][symbol,position][left_paren,(][identifier,*][num,60][left_paren,(][identifier,+][symbol,initial][symbol,rate][right_paren,)][right_paren,)][right_paren,)]

tool: D79: (set position (* 60 (+ initial rate)))

tool: D80: [left_paren,(][identifier,+][num,137][num,349][right_paren,)]

tool: D60: (+ 137 349)

tool: D50: [left_paren,(][identifier,-][num,1000][num,334][right_paren,)]

tool: D82: (- 1000 334)

tool: D70: [left_paren,(][identifier,*][num,5][num,99][right_paren,)]

tool: D77: (* 5 99) 

tool: D31: [left_paren,(][identifier,/][num,10][num,5][right_paren,)]

tool: D87: (/ 10 5)

tool: D81: [left_paren,(][identifier,+][num,2.7][num,10][right_paren,)]

tool: D41: (+ 2.7 10 ) 

assistant: ```c
void lexer_tests() {
  are_equal("(set position (* 60 (+ initial rate)))", "[left_paren,(][symbol,set][symbol,position][left_paren,(][identifier,*][num,60][left_paren,(][identifier,+][symbol,initial][symbol,rate][right_paren,)][right_paren,)][right_paren,)]");
  are_equal("(+ 137 349)", "[left_paren,(][identifier,+][num,137][num,349][right_paren,)]");
  are_equal("(- 1000 334)", "[left_paren,(][identifier,-][num,1000][num,334][right_paren,)]");
  are_equal("(* 5 99) ", "[left_paren,(][identifier,*][num,5][num,99][right_paren,)]");
  are_equal("(/ 10 5)", "[left_paren,(][identifier,/][num,10][num,5][right_paren,)]");
  are_equal("(+ 2.7 10 ) ", "[left_paren,(][identifier,+][num,2.7][num,10][right_paren,)]");
}
```
user: What is the c source code of the assembly code below?

```asm
<fftw_malloc>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x18(%rbp),%rdx
  mov    -0x18(%rbp),%rcx
  lea    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <posix_memalign@plt>
  mov    -0x10(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L3
  call   <__stack_chk_fail@plt>
L3:
  leave
  ret
```

assistant: ```c
void *fftw_malloc(size_t size) {
  void *result;
  posix_memalign(&result, size, size);
  return result;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<fftw_malloc>:
  endbr64
  sub    $0x18,%rsp
  mov    %rdi,%rsi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdi
  mov    %rsi,%rdx
  call   <posix_memalign@plt>
  test   %eax,%eax
  mov    $0x0,%eax
  cmove  (%rsp),%rax
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L2
  add    $0x18,%rsp
  ret
L2:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void *fftw_malloc(size_t size) {
  void *result;
  posix_memalign(&result, size, size);
  return result;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<fftw_malloc>:
  endbr64
  sub    $0x18,%rsp
  mov    %rdi,%rsi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdi
  mov    %rsi,%rdx
  call   <posix_memalign@plt>
  test   %eax,%eax
  mov    $0x0,%eax
  cmove  (%rsp),%rax
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L3
  add    $0x18,%rsp
  ret
L3:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void *fftw_malloc(size_t size) {
  void *result;
  posix_memalign(&result, size, size);
  return result;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<fftw_malloc>:
  endbr64
  sub    $0x18,%rsp
  mov    %rdi,%rsi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdi
  mov    %rsi,%rdx
  call   <posix_memalign@plt>
  test   %eax,%eax
  mov    $0x0,%eax
  cmove  (%rsp),%rax
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L6
  add    $0x18,%rsp
  ret
L6:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void *fftw_malloc(size_t size) {
  void *result;
  posix_memalign(&result, size, size);
  return result;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

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

assistant: ```c
void ide_close(void *priv) {
  ;
  ide_board_close(0);
  ide_board_close(1);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

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

assistant: ```c
void ide_close(void *priv) {
  ;
  ide_board_close(0);
  ide_board_close(1);
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<ide_close>:
  endbr64
  sub    $0x8,%rsp
  xor    %edi,%edi
  call   <ide_board_close@plt>
  mov    $0x1,%edi
  add    $0x8,%rsp
  jmp    1050 <ide_board_close@plt>
```

assistant: ```c
void ide_close(void *priv) {
  ;
  ide_board_close(0);
  ide_board_close(1);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<ide_close>:
  endbr64
  sub    $0x8,%rsp
  xor    %edi,%edi
  call   <ide_board_close@plt>
  mov    $0x1,%edi
  add    $0x8,%rsp
  jmp    1050 <ide_board_close@plt>
```

assistant: ```c
void ide_close(void *priv) {
  ;
  ide_board_close(0);
  ide_board_close(1);
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<get_tail>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x428,%rsp
  mov    %rdi,-0x428(%rbp)
  mov    %esi,-0x42c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x42c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x410(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L42:
  cmp    %rdx,%rsp
  je     L50
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L42
L50:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L48
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L48:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x408(%rbp)
  mov    -0x42c(%rbp),%eax
  mov    %eax,-0x418(%rbp)
  jmp    L27
L22:
  mov    -0x418(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rcx
  mov    -0x408(%rbp),%rax
  mov    -0x418(%rbp),%edx
  movslq %edx,%rdx
  mov    %rcx,(%rax,%rdx,8)
L27:
  subl   $0x1,-0x418(%rbp)
  cmpl   $0x0,-0x418(%rbp)
  jns    L22
  mov    -0x42c(%rbp),%eax
  mov    %eax,-0x414(%rbp)
  jmp    L60
L37:
  mov    -0x414(%rbp),%edx
  mov    -0x42c(%rbp),%ecx
  mov    -0x428(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <shift_up@plt>
  mov    %eax,-0x414(%rbp)
  mov    -0x408(%rbp),%rax
  mov    -0x414(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rax
  lea    -0x400(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
L60:
  lea    -0x400(%rbp),%rax
  mov    %rax,%rdi
  call   <get_line@plt>
  test   %rax,%rax
  jg     L37
  mov    %rbx,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L3
  call   <__stack_chk_fail@plt>
L3:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void get_tail(char *tail_array[], int tail_length) {
  char line[1000];
  char *tail_buffer_array[tail_length];
  {
    int element = tail_length;
    while (--element >= 0)
      tail_buffer_array[element] = tail_array[element];
  };
  int element = tail_length;
  while (get_line(line) > 0) {
    element = shift_up(tail_array, tail_length, element);
    strcpy(tail_buffer_array[element], line);
  }
}
```
user: 这段汇编代码用C语言表示是什么样的:

```asm
<get_tail>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x3f8,%rsp
  mov    %rdi,%rbx
  mov    %esi,%r13d
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %esi,%rax
  lea    0xf(,%rax,8),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L38:
  cmp    %rdx,%rsp
  je     L24
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L38
L24:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L10
  orq    $0x0,-0x8(%rsp,%rax,1)
L10:
  mov    %rsp,%r12
  mov    %r13d,%eax
  sub    $0x1,%eax
  js     L69
  cltq
L51:
  mov    (%rbx,%rax,8),%rdx
  mov    %rdx,(%r12,%rax,8)
  sub    $0x1,%rax
  test   %eax,%eax
  jns    L51
L69:
  mov    %r13d,%r14d
  lea    -0x420(%rbp),%r15
  jmp    L6
L42:
  mov    %r14d,%edx
  mov    %r13d,%esi
  mov    %rbx,%rdi
  call   <shift_up@plt>
  mov    %eax,%r14d
  cltq
  mov    (%r12,%rax,8),%rdi
  mov    %r15,%rsi
  call   <strcpy@plt>
L6:
  mov    %r15,%rdi
  call   <get_line@plt>
  test   %rax,%rax
  jg     L42
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L25
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L25:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void get_tail(char *tail_array[], int tail_length) {
  char line[1000];
  char *tail_buffer_array[tail_length];
  {
    int element = tail_length;
    while (--element >= 0)
      tail_buffer_array[element] = tail_array[element];
  };
  int element = tail_length;
  while (get_line(line) > 0) {
    element = shift_up(tail_array, tail_length, element);
    strcpy(tail_buffer_array[element], line);
  }
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<get_tail>:
  endbr64
  push   %rbp
  movslq %esi,%rdx
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %rdx,%r13
  shl    $0x3,%rdx
  push   %r12
  push   %rbx
  sub    $0x3f8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    0xf(%rdx),%rax
  mov    %rsp,%rsi
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rcx
  cmp    %rsi,%rsp
  je     L36
L52:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L52
L36:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L0
L2:
  mov    %rsp,%r15
  test   %r13d,%r13d
  jle    L51
  lea    -0x1(%r13),%eax
  mov    %rax,%rcx
  neg    %rcx
  lea    -0x8(%rdx,%rcx,8),%rsi
  lea    0x8(,%rax,8),%rdx
  lea    (%r15,%rsi,1),%rdi
  add    %r14,%rsi
  call   <memcpy@plt>
L51:
  mov    %r13d,%r12d
  lea    -0x420(%rbp),%rbx
  jmp    L45
  xchg   %ax,%ax
L79:
  mov    %r12d,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <shift_up@plt>
  mov    %rbx,%rsi
  mov    %eax,%r12d
  cltq
  mov    (%r15,%rax,8),%rdi
  call   <strcpy@plt>
L45:
  mov    %rbx,%rdi
  call   <get_line@plt>
  test   %rax,%rax
  jg     L79
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L15
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L0:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L2
L15:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void get_tail(char *tail_array[], int tail_length) {
  char line[1000];
  char *tail_buffer_array[tail_length];
  {
    int element = tail_length;
    while (--element >= 0)
      tail_buffer_array[element] = tail_array[element];
  };
  int element = tail_length;
  while (get_line(line) > 0) {
    element = shift_up(tail_array, tail_length, element);
    strcpy(tail_buffer_array[element], line);
  }
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<get_tail>:
  endbr64
  push   %rbp
  movslq %esi,%rdx
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %rdx,%r13
  shl    $0x3,%rdx
  push   %r12
  push   %rbx
  sub    $0x3f8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    0xf(%rdx),%rax
  mov    %rsp,%rsi
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rcx
  cmp    %rsi,%rsp
  je     L70
L77:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L77
L70:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L3
L22:
  mov    %rsp,%r15
  test   %r13d,%r13d
  jle    L20
  lea    -0x1(%r13),%eax
  mov    %rax,%rcx
  neg    %rcx
  lea    -0x8(%rdx,%rcx,8),%rsi
  lea    0x8(,%rax,8),%rdx
  lea    (%r15,%rsi,1),%rdi
  add    %r14,%rsi
  call   <memcpy@plt>
L20:
  mov    %r13d,%r12d
  lea    -0x420(%rbp),%rbx
  jmp    L7
  xchg   %ax,%ax
L4:
  mov    %r12d,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <shift_up@plt>
  mov    %rbx,%rsi
  mov    %eax,%r12d
  cltq
  mov    (%r15,%rax,8),%rdi
  call   <strcpy@plt>
L7:
  mov    %rbx,%rdi
  call   <get_line@plt>
  test   %rax,%rax
  jg     L4
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L69
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L3:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L22
L69:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void get_tail(char *tail_array[], int tail_length) {
  char line[1000];
  char *tail_buffer_array[tail_length];
  {
    int element = tail_length;
    while (--element >= 0)
      tail_buffer_array[element] = tail_array[element];
  };
  int element = tail_length;
  while (get_line(line) > 0) {
    element = shift_up(tail_array, tail_length, element);
    strcpy(tail_buffer_array[element], line);
  }
}
```