ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  sub    $0x18,%rsp
  lea    D10(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rdx
  mov    %rsp,%rsi
  call   <scanf@plt>
  mov    (%rsp),%eax
  cmp    $0x95,%eax
  jle    L43
  mov    0x4(%rsp),%edx
  xor    %esi,%esi
  cmp    $0xb,%edx
  setg   %sil
  cmp    $0xd,%edx
  jg     L44
L61:
  cmp    $0xa9,%eax
  jle    L31
L45:
  add    $0x1,%esi
L55:
  lea    D9(%rip),%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  xor    %eax,%eax
  add    $0x18,%rsp
  ret
L43:
  cmp    $0x8b,%eax
  jg     L8
L64:
  xor    %esi,%esi
L31:
  cmpl   $0xf,0x4(%rsp)
  jle    L55
  jmp    L45
L8:
  cmpl   $0xd,0x4(%rsp)
  jle    L64
  xor    %esi,%esi
L44:
  add    $0x1,%esi
  jmp    L61
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D10
datatype: string
name: disassemble_data
arguments: label: D9
datatype: string

tool: D10: %d%d

tool: D9: %d


assistant: ```c
int main() {
  int F, I, n;
  n = 0;
  scanf("%d%d", &F, &I);
  if (F >= 150 && I >= 12) {
    n = n + 1;
  }
  if (F >= 140 && I >= 14) {
    n = n + 1;
  }
  if (F >= 170 || I >= 16) {
    n = n + 1;
  }
  printf("%d\n", n);
  return 0;
}
```
user: What is the c source code of the assembly code below?

```asm
<proctal_x86_64_dr_rw>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edi
  call   <get_rw_offset@plt>
  mov    %eax,-0x8(%rbp)
  cmpl   $0xffffffff,-0x8(%rbp)
  jne    L11
  mov    $0x0,%eax
  jmp    L13
L11:
  mov    -0x8(%rbp),%eax
  mov    $0x3,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  and    -0x18(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x8(%rbp),%eax
  mov    %eax,%ecx
  shr    %cl,%rdx
  mov    %rdx,%rax
L13:
  leave
  ret
```

assistant: ```c
unsigned int proctal_x86_64_dr_rw(unsigned long long dr7, int r) {
  int offset = get_rw_offset(r);
  if (offset == -1) {
    return 0;
  }
  unsigned int mask = 0x3u << offset;
  return (dr7 & mask) >> offset;
}
```
user: What is the c source code of the assembly code below:

```asm
<proctal_x86_64_dr_rw>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  mov    %esi,%edi
  call   <get_rw_offset@plt>
  mov    %eax,%ecx
  mov    $0x0,%eax
  cmp    $0xffffffff,%ecx
  je     L3
  mov    $0x3,%eax
  shl    %cl,%eax
  and    %rbx,%rax
  shr    %cl,%rax
L3:
  pop    %rbx
  ret
```

assistant: ```c
unsigned int proctal_x86_64_dr_rw(unsigned long long dr7, int r) {
  int offset = get_rw_offset(r);
  if (offset == -1) {
    return 0;
  }
  unsigned int mask = 0x3u << offset;
  return (dr7 & mask) >> offset;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<proctal_x86_64_dr_rw>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  mov    %esi,%edi
  call   <get_rw_offset@plt>
  mov    %eax,%ecx
  xor    %eax,%eax
  cmp    $0xffffffff,%ecx
  je     L6
  mov    $0x3,%eax
  shl    %cl,%eax
  and    %rbx,%rax
  shr    %cl,%rax
L6:
  pop    %rbx
  ret
```

assistant: ```c
unsigned int proctal_x86_64_dr_rw(unsigned long long dr7, int r) {
  int offset = get_rw_offset(r);
  if (offset == -1) {
    return 0;
  }
  unsigned int mask = 0x3u << offset;
  return (dr7 & mask) >> offset;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<proctal_x86_64_dr_rw>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  mov    %esi,%edi
  call   <get_rw_offset@plt>
  mov    %eax,%ecx
  xor    %eax,%eax
  cmp    $0xffffffff,%ecx
  je     L5
  mov    $0x3,%eax
  shl    %cl,%eax
  and    %rbx,%rax
  shr    %cl,%rax
L5:
  pop    %rbx
  ret
```

assistant: ```c
unsigned int proctal_x86_64_dr_rw(unsigned long long dr7, int r) {
  int offset = get_rw_offset(r);
  if (offset == -1) {
    return 0;
  }
  unsigned int mask = 0x3u << offset;
  return (dr7 & mask) >> offset;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<capSet>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  mov    %esi,-0x8(%rbp)
  mov    -0x8(%rbp),%edx
  mov    -0x4(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <capset@plt>
  leave
  ret
```

assistant: ```c
int capSet(cap_user_header_t hdr, cap_user_data_t data) {
  int capset(cap_user_header_t hdr, cap_user_data_t data);
  return capset(hdr, data);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<capSet>:
  endbr64
  sub    $0x8,%rsp
  call   <capset@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
int capSet(cap_user_header_t hdr, cap_user_data_t data) {
  int capset(cap_user_header_t hdr, cap_user_data_t data);
  return capset(hdr, data);
}
```
user: What is the c source code of the assembly code below?

```asm
<capSet>:
  endbr64
  jmp    1050 <capset@plt>
```

assistant: ```c
int capSet(cap_user_header_t hdr, cap_user_data_t data) {
  int capset(cap_user_header_t hdr, cap_user_data_t data);
  return capset(hdr, data);
}
```
user: Translate the below assembly code into C programming language:

```asm
<capSet>:
  endbr64
  jmp    1050 <capset@plt>
```

assistant: ```c
int capSet(cap_user_header_t hdr, cap_user_data_t data) {
  int capset(cap_user_header_t hdr, cap_user_data_t data);
  return capset(hdr, data);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<minmax>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  movl   $0x0,-0x4(%rbp)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L39
L34:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
L33:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jg     L34
  jmp    L5
L27:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
L5:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jl     L27
  addl   $0x1,-0x4(%rbp)
L39:
  mov    -0x4(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L33
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void minmax(int *arr, int size, int *min, int *max) {
  int k = 0;
  *min = arr[0];
  *max = arr[0];
  while (k < size) {
    while (arr[k] > *max)
      *max = arr[k];
    while (arr[k] < *min)
      *min = arr[k];
    k++;
  }
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<minmax>:
  endbr64
  mov    %rdx,%r8
  mov    (%rdi),%eax
  mov    %eax,(%rdx)
  mov    %eax,(%rcx)
  test   %esi,%esi
  jle    L38
  mov    %rdi,%r9
  lea    -0x1(%rsi),%eax
  lea    (%rdi,%rax,4),%rdi
  jmp    L27
L53:
  mov    %eax,(%rcx)
  mov    %eax,%esi
  mov    (%rdx),%eax
  cmp    %esi,%eax
  jg     L53
L61:
  mov    (%rdx),%eax
  cmp    (%r8),%eax
  jge    L43
L12:
  mov    %eax,(%r8)
  mov    %eax,%esi
  mov    (%rdx),%eax
  cmp    %esi,%eax
  jl     L12
L43:
  lea    0x4(%r9),%rax
  cmp    %rdi,%r9
  je     L38
  mov    %rax,%r9
L27:
  mov    %r9,%rdx
  mov    (%r9),%eax
  cmp    (%rcx),%eax
  jg     L53
  jmp    L61
L38:
  ret
```

assistant: ```c
void minmax(int *arr, int size, int *min, int *max) {
  int k = 0;
  *min = arr[0];
  *max = arr[0];
  while (k < size) {
    while (arr[k] > *max)
      *max = arr[k];
    while (arr[k] < *min)
      *min = arr[k];
    k++;
  }
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<minmax>:
  endbr64
  mov    (%rdi),%r8d
  mov    %r8d,(%rdx)
  mov    %r8d,(%rcx)
  test   %esi,%esi
  jle    L19
  lea    -0x1(%rsi),%eax
  lea    (%rdi,%rax,4),%rsi
  jmp    L28
  nopw   0x0(%rax,%rax,1)
L0:
  mov    (%rcx),%r8d
  mov    %rax,%rdi
L28:
  mov    (%rdi),%eax
  cmp    %r8d,%eax
  jle    L42
  mov    %eax,(%rcx)
L42:
  cmp    %eax,(%rdx)
  jle    L18
  mov    %eax,(%rdx)
L18:
  lea    0x4(%rdi),%rax
  cmp    %rdi,%rsi
  jne    L0
L19:
  ret
```

assistant: ```c
void minmax(int *arr, int size, int *min, int *max) {
  int k = 0;
  *min = arr[0];
  *max = arr[0];
  while (k < size) {
    while (arr[k] > *max)
      *max = arr[k];
    while (arr[k] < *min)
      *min = arr[k];
    k++;
  }
}
```
user: What is the c source code of the assembly code below?

```asm
<minmax>:
  endbr64
  mov    (%rdi),%r8d
  mov    %r8d,(%rdx)
  mov    %r8d,(%rcx)
  test   %esi,%esi
  jle    L10
  lea    -0x1(%rsi),%eax
  lea    (%rdi,%rax,4),%rsi
  jmp    L24
  nopw   0x0(%rax,%rax,1)
L39:
  mov    (%rcx),%r8d
  mov    %rax,%rdi
L24:
  mov    (%rdi),%eax
  cmp    %r8d,%eax
  jle    L43
  mov    %eax,(%rcx)
L43:
  cmp    %eax,(%rdx)
  jle    L28
  mov    %eax,(%rdx)
L28:
  lea    0x4(%rdi),%rax
  cmp    %rdi,%rsi
  jne    L39
L10:
  ret
```

assistant: ```c
void minmax(int *arr, int size, int *min, int *max) {
  int k = 0;
  *min = arr[0];
  *max = arr[0];
  while (k < size) {
    while (arr[k] > *max)
      *max = arr[k];
    while (arr[k] < *min)
      *min = arr[k];
    k++;
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x4(%rbp)
  jmp    L2
L4:
  mov    -0x4(%rbp),%edx
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x4(%rbp)
L2:
  cmpl   $0xff,-0x4(%rbp)
  jle    L4
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D10
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D3
type_guessed: string

tool: D10: ASCII TABLE

tool: D3: 
%d - %c

assistant: ```c
int main() {
  int i;
  printf("ASCII TABLE");
  for (i = 0; i <= 255; i++)
    printf("\n%d - %c", i, i);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  lea    D4(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%ebx
  lea    D1(%rip),%rbp
L8:
  mov    %ebx,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%ebx
  cmp    $0x100,%ebx
  jne    L8
  mov    $0x0,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D4
datatype: string
name: disassemble_data
arguments: tag: D1
datatype: string

tool: D4: ASCII TABLE

tool: D1: 
%d - %c

assistant: ```c
int main() {
  int i;
  printf("ASCII TABLE");
  for (i = 0; i <= 255; i++)
    printf("\n%d - %c", i, i);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  lea    D8(%rip),%rdi
  xor    %eax,%eax
  lea    D10(%rip),%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x8,%rsp
  call   <printf@plt>
  nopl   0x0(%rax)
L2:
  mov    %ebx,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  add    $0x1,%ebx
  cmp    $0x100,%ebx
  jne    L2
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D8
type_guessed: string
name: retrieve_data
arguments: data_label: D10
type_guessed: string

tool: D8: ASCII TABLE

tool: D10: 
%d - %c

assistant: ```c
int main() {
  int i;
  printf("ASCII TABLE");
  for (i = 0; i <= 255; i++)
    printf("\n%d - %c", i, i);
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D3(%rip),%rdi
  xor    %eax,%eax
  lea    D1(%rip),%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x8,%rsp
  call   <printf@plt>
  nopl   0x0(%rax)
L5:
  mov    %ebx,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  add    $0x1,%ebx
  cmp    $0x100,%ebx
  jne    L5
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D3
datatype: string
name: parse_data
arguments: data_tag: D1
datatype: string

tool: D3: ASCII TABLE

tool: D1: 
%d - %c

assistant: ```c
int main() {
  int i;
  printf("ASCII TABLE");
  for (i = 0; i <= 255; i++)
    printf("\n%d - %c", i, i);
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<shine_abs_and_sign>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jle    L5
  mov    $0x0,%eax
  jmp    L16
L5:
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  neg    %eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,(%rax)
  mov    $0x1,%eax
L16:
  pop    %rbp
  ret
```

assistant: ```c
int shine_abs_and_sign(int *x) {
  if (*x > 0)
    return 0;
  *x *= -1;
  return 1;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<shine_abs_and_sign>:
  endbr64
  mov    (%rdi),%eax
  mov    $0x0,%edx
  test   %eax,%eax
  jg     L4
  neg    %eax
  mov    %eax,(%rdi)
  mov    $0x1,%edx
L4:
  mov    %edx,%eax
  ret
```

assistant: ```c
int shine_abs_and_sign(int *x) {
  if (*x > 0)
    return 0;
  *x *= -1;
  return 1;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<shine_abs_and_sign>:
  endbr64
  mov    (%rdi),%eax
  xor    %r8d,%r8d
  test   %eax,%eax
  jg     L7
  neg    %eax
  mov    $0x1,%r8d
  mov    %eax,(%rdi)
L7:
  mov    %r8d,%eax
  ret
```

assistant: ```c
int shine_abs_and_sign(int *x) {
  if (*x > 0)
    return 0;
  *x *= -1;
  return 1;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<shine_abs_and_sign>:
  endbr64
  mov    (%rdi),%eax
  xor    %r8d,%r8d
  test   %eax,%eax
  jg     L9
  neg    %eax
  mov    $0x1,%r8d
  mov    %eax,(%rdi)
L9:
  mov    %r8d,%eax
  ret
```

assistant: ```c
int shine_abs_and_sign(int *x) {
  if (*x > 0)
    return 0;
  *x *= -1;
  return 1;
}
```
user: What is the c source code of the assembly code below:

```asm
<cleanup_exit>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,%edx
  lea    D12(%rip),%rax
  mov    %rax,%rsi
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <verbose@plt>
  mov    -0x4(%rbp),%eax
  mov    %eax,%edi
  call   <exit@plt>
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D12
type_guessed: string
name: parse_data
arguments: label: D14
type_guessed: string

tool: D12: seama

tool: D14: %s: exit with code %d


assistant: ```c
void cleanup_exit(int exit_code) {
  verbose("%s: exit with code %d\n", "seama", exit_code);
  exit(exit_code);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<cleanup_exit>:
  endbr64
  push   %rbx
  mov    %edi,%ebx
  mov    %edi,%edx
  lea    D0(%rip),%rsi
  lea    D11(%rip),%rdi
  call   <verbose@plt>
  mov    %ebx,%edi
  call   <exit@plt>
  pop    %rbx
  ret
```

tool_calls: name: read_data
arguments: tag: D0
type: string
name: read_data
arguments: tag: D11
type: string

tool: D0: seama

tool: D11: %s: exit with code %d


assistant: ```c
void cleanup_exit(int exit_code) {
  verbose("%s: exit with code %d\n", "seama", exit_code);
  exit(exit_code);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<cleanup_exit>:
  endbr64
  push   %rbp
  mov    %edi,%edx
  mov    %edi,%ebp
  lea    D0(%rip),%rsi
  lea    D2(%rip),%rdi
  call   <verbose@plt>
  mov    %ebp,%edi
  pop    %rbp
  jmp    1070 <exit@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D0
type_infered: string
name: retrieve_data
arguments: data_label: D2
type_infered: string

tool: D0: seama

tool: D2: %s: exit with code %d


assistant: ```c
void cleanup_exit(int exit_code) {
  verbose("%s: exit with code %d\n", "seama", exit_code);
  exit(exit_code);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<cleanup_exit>:
  endbr64
  push   %rbp
  mov    %edi,%edx
  mov    %edi,%ebp
  lea    D3(%rip),%rsi
  lea    D18(%rip),%rdi
  call   <verbose@plt>
  mov    %ebp,%edi
  pop    %rbp
  jmp    1070 <exit@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D3
type: string
name: extract_symbolic_data
arguments: data_label: D18
type: string

tool: D3: seama

tool: D18: %s: exit with code %d


assistant: ```c
void cleanup_exit(int exit_code) {
  verbose("%s: exit with code %d\n", "seama", exit_code);
  exit(exit_code);
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<get_result>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movzbl (%rdi),%edi
  cmp    $0x3d,%dil
  je     L28
  mov    $0x0,%ebp
  lea    0x1e(%rsp),%r13
  jmp    L88
L99:
  movslq %ebp,%rax
  movzbl (%rbx),%edx
  mov    %dl,0x1e(%rsp,%rax,1)
  add    $0x1,%ebp
L19:
  add    $0x1,%rbx
  movzbl (%rbx),%edi
  cmp    $0x3d,%dil
  je     L125
L88:
  movsbl %dil,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L99
  movslq %ebp,%rbp
  movb   $0x0,0x1e(%rsp,%rbp,1)
  lea    0xa(%rsp),%rdi
  mov    %r13,%rsi
  call   <strcpy@plt>
  movzbl (%rbx),%r12d
  mov    $0x0,%ebp
  jmp    L19
L28:
  mov    $0x0,%ebp
L125:
  movslq %ebp,%rbp
  movb   $0x0,0x1e(%rsp,%rbp,1)
  lea    0x1e(%rsp),%rsi
  lea    0x14(%rsp),%rdi
  call   <strcpy@plt>
  cmp    $0x2d,%r12b
  je     L8
  jg     L25
  cmp    $0x2a,%r12b
  je     L73
  cmp    $0x2b,%r12b
  jne    L112
  lea    0xa(%rsp),%rdi
  call   <atoi@plt>
  mov    %eax,%ebx
  lea    0x14(%rsp),%rdi
  call   <atoi@plt>
  add    %ebx,%eax
L112:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L17
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L25:
  cmp    $0x2f,%r12b
  jne    L112
  lea    0xa(%rsp),%rdi
  call   <atoi@plt>
  mov    %eax,%ebx
  lea    0x14(%rsp),%rdi
  call   <atoi@plt>
  mov    %eax,%ecx
  mov    %ebx,%eax
  cltd
  idiv   %ecx
  jmp    L112
L8:
  lea    0xa(%rsp),%rdi
  call   <atoi@plt>
  mov    %eax,%ebx
  lea    0x14(%rsp),%rdi
  call   <atoi@plt>
  mov    %eax,%edx
  mov    %ebx,%eax
  sub    %edx,%eax
  jmp    L112
L73:
  lea    0xa(%rsp),%rdi
  call   <atoi@plt>
  mov    %eax,%ebx
  lea    0x14(%rsp),%rdi
  call   <atoi@plt>
  imul   %ebx,%eax
  jmp    L112
L17:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int get_result(char buffer[2000]) {
  char left[10];
  char right[10];
  char temp[10];
  int index = 0;
  char operator;
  for (int x = 0; buffer[x] != '='; x++) {
    if (isdigit(buffer[x])) {
      temp[index] = buffer[x];
      index++;
    } else {
      temp[index] = '\0';
      index = 0;
      strcpy(left, temp);
      operator= buffer[x];
    }
  }
  temp[index] = '\0';
  strcpy(right, temp);
  switch (operator) {
  case '+':
    return atoi(left) + atoi(right);
  case '-':
    return atoi(left) - atoi(right);
  case '*':
    return atoi(left) * atoi(right);
  case '/':
    return atoi(left) / atoi(right);
  }
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<get_result>:
  endbr64
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x30,%rsp
  movsbl (%rdi),%edi
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x1e(%rsp),%r12
  cmp    $0x3d,%dil
  je     L90
  lea    0xa(%rsp),%r13
  jmp    L58
  nopl   0x0(%rax,%rax,1)
L111:
  movzbl (%rbx),%edx
  movsbl 0x1(%rbx),%edi
  movslq %r14d,%rax
  add    $0x1,%rbx
  add    $0x1,%r14d
  mov    %dl,0x1e(%rsp,%rax,1)
  cmp    $0x3d,%dil
  je     L90
L58:
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L111
  movslq %r14d,%r14
  mov    %r13,%rdi
  mov    %r12,%rsi
  add    $0x1,%rbx
  movb   $0x0,0x1e(%rsp,%r14,1)
  xor    %r14d,%r14d
  call   <strcpy@plt>
  movzbl -0x1(%rbx),%ebp
  movsbl (%rbx),%edi
  cmp    $0x3d,%dil
  jne    L58
L90:
  lea    0x14(%rsp),%r13
  movslq %r14d,%r14
  mov    %r12,%rsi
  mov    %r13,%rdi
  movb   $0x0,0x1e(%rsp,%r14,1)
  call   <strcpy@plt>
  cmp    $0x2d,%bpl
  je     L10
  jg     L48
  cmp    $0x2a,%bpl
  je     L108
  cmp    $0x2b,%bpl
  jne    L45
  lea    0xa(%rsp),%rdi
  call   <atoi@plt>
  mov    %r13,%rdi
  mov    %eax,%ebx
  call   <atoi@plt>
  add    %ebx,%eax
  nopl   (%rax)
L45:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L127
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   (%rax)
L48:
  cmp    $0x2f,%bpl
  jne    L45
  lea    0xa(%rsp),%rdi
  call   <atoi@plt>
  mov    %r13,%rdi
  mov    %eax,%ebx
  call   <atoi@plt>
  mov    %eax,%r8d
  mov    %ebx,%eax
  cltd
  idiv   %r8d
  jmp    L45
  nopl   (%rax)
L10:
  lea    0xa(%rsp),%rdi
  call   <atoi@plt>
  mov    %r13,%rdi
  mov    %eax,%ebx
  call   <atoi@plt>
  mov    %eax,%r8d
  mov    %ebx,%eax
  sub    %r8d,%eax
  jmp    L45
  xchg   %ax,%ax
L108:
  lea    0xa(%rsp),%rdi
  call   <atoi@plt>
  mov    %r13,%rdi
  mov    %eax,%ebx
  call   <atoi@plt>
  imul   %ebx,%eax
  jmp    L45
L127:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int get_result(char buffer[2000]) {
  char left[10];
  char right[10];
  char temp[10];
  int index = 0;
  char operator;
  for (int x = 0; buffer[x] != '='; x++) {
    if (isdigit(buffer[x])) {
      temp[index] = buffer[x];
      index++;
    } else {
      temp[index] = '\0';
      index = 0;
      strcpy(left, temp);
      operator= buffer[x];
    }
  }
  temp[index] = '\0';
  strcpy(right, temp);
  switch (operator) {
  case '+':
    return atoi(left) + atoi(right);
  case '-':
    return atoi(left) - atoi(right);
  case '*':
    return atoi(left) * atoi(right);
  case '/':
    return atoi(left) / atoi(right);
  }
}
```