ylfeng/ReF-Decompile-dataset huggingface dataset:
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<Is_Function>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movq   $0x0,-0x8(%rbp)
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x10(%rbp)
  jmp    L6
L24:
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  jle    L37
  mov    -0x28(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L184
L135:
  subq   $0x1,-0x18(%rbp)
L184:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L135
  jmp    L101
L46:
  addq   $0x1,-0x10(%rbp)
L101:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L46
L37:
  cmpq   $0x0,-0x8(%rbp)
  je     L151
  cmpq   $0x0,-0x18(%rbp)
  je     L151
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x28,%al
  jne    L151
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L64
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L151
L64:
  mov    $0x1,%eax
  jmp    L87
L151:
  cmpq   $0x0,-0x8(%rbp)
  je     L8
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  jne    L8
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  je     L8
  mov    $0x1,%eax
  jmp    L87
L8:
  cmpq   $0x0,-0x8(%rbp)
  je     L197
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  jne    L197
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  jne    L197
  mov    $0x0,%eax
  jmp    L87
L197:
  addq   $0x1,-0x28(%rbp)
  addl   $0x1,-0x1c(%rbp)
L6:
  mov    -0x1c(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L24
  mov    $0x0,%eax
L87:
  leave
  ret
```

assistant: ```c
int Is_Function(char *str, int len) {
  int i = 0;
  char *the_char = NULL;
  char *previews_char = NULL;
  char *the_next = NULL;
  while (i < len) {
    the_char = str;
    if (i > 0) {
      previews_char = str - 1;
      the_next = str + 1;
      while (isspace(*previews_char))
        previews_char--;
      while (isspace(*the_next))
        the_next++;
    }
    if (the_char && previews_char && *the_char == '(' && (isdigit(*previews_char) || isalpha(*previews_char))) {
      return 1;
    } else if (the_char && *the_char == '=' && *the_next != '=') {
      return 1;
    } else if (the_char && *the_char == '=' && *the_next == '=') {
      return 0;
    }
    str++;
    i++;
  }
  return 0;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<Is_Function>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r15
  mov    %esi,%r14d
  mov    $0x0,%r12d
  mov    $0x0,%ebp
  mov    $0x0,%ebx
  mov    $0x0,%eax
  test   %esi,%esi
  jg     L108
  jmp    L117
L23:
  sub    $0x1,%rbx
L67:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L23
  jmp    L214
L162:
  add    $0x1,%rbp
L214:
  movsbl 0x0(%rbp),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L162
L175:
  mov    %r13,%r15
L108:
  test   %r15,%r15
  je     L9
  test   %rbx,%rbx
  je     L9
  cmpb   $0x28,(%r15)
  je     L146
L166:
  cmpb   $0x3d,(%r15)
  je     L83
L133:
  lea    0x1(%r15),%r13
  add    $0x1,%r12d
  cmp    %r12d,%r14d
  je     L200
  test   %r12d,%r12d
  jle    L175
  lea    0x1(%r13),%rbp
  mov    %r15,%rbx
  jmp    L67
L146:
  movsbl (%rbx),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L153
  movsbl (%rbx),%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L166
  mov    $0x1,%eax
  jmp    L117
L9:
  test   %r15,%r15
  jne    L166
  jmp    L133
L83:
  cmpb   $0x3d,0x0(%rbp)
  jne    L22
  cmpb   $0x3d,0x0(%rbp)
  jne    L133
  mov    $0x0,%eax
  jmp    L117
L200:
  mov    $0x0,%eax
L117:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L153:
  mov    $0x1,%eax
  jmp    L117
L22:
  mov    $0x1,%eax
  jmp    L117
```

assistant: ```c
int Is_Function(char *str, int len) {
  int i = 0;
  char *the_char = NULL;
  char *previews_char = NULL;
  char *the_next = NULL;
  while (i < len) {
    the_char = str;
    if (i > 0) {
      previews_char = str - 1;
      the_next = str + 1;
      while (isspace(*previews_char))
        previews_char--;
      while (isspace(*the_next))
        the_next++;
    }
    if (the_char && previews_char && *the_char == '(' && (isdigit(*previews_char) || isalpha(*previews_char))) {
      return 1;
    } else if (the_char && *the_char == '=' && *the_next != '=') {
      return 1;
    } else if (the_char && *the_char == '=' && *the_next == '=') {
      return 0;
    }
    str++;
    i++;
  }
  return 0;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<Is_Function>:
  endbr64
  test   %esi,%esi
  jle    L151
  movslq %esi,%rsi
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  lea    (%rdi,%rsi,1),%r13
  push   %r12
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  mov    %rdi,%rbx
  nopl   0x0(%rax,%rax,1)
L21:
  test   %rbx,%rbx
  je     L100
  test   %r14,%r14
  je     L159
  movzbl (%rbx),%eax
  cmp    $0x28,%al
  je     L91
L34:
  cmp    $0x3d,%al
  je     L23
L100:
  lea    0x1(%rbx),%r12
  cmp    %r12,%r13
  jne    L59
  jmp    L101
  nopl   0x0(%rax,%rax,1)
L90:
  sub    $0x1,%rbx
L59:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L90
  lea    0x1(%r12),%rbp
  jmp    L29
  nopl   0x0(%rax,%rax,1)
L50:
  add    $0x1,%rbp
L29:
  movsbl 0x0(%rbp),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L50
  mov    %rbx,%r14
  mov    %r12,%rbx
  jmp    L21
  nopw   0x0(%rax,%rax,1)
L23:
  cmpb   $0x3d,0x0(%rbp)
  jne    L143
L101:
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L159:
  test   %rbx,%rbx
  je     L100
L103:
  movzbl (%rbx),%eax
  jmp    L34
  nopw   0x0(%rax,%rax,1)
L91:
  movsbl (%r14),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L143
  movsbl (%r14),%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L103
L143:
  pop    %rbx
  mov    $0x1,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L151:
  xor    %eax,%eax
  ret
```

assistant: ```c
int Is_Function(char *str, int len) {
  int i = 0;
  char *the_char = NULL;
  char *previews_char = NULL;
  char *the_next = NULL;
  while (i < len) {
    the_char = str;
    if (i > 0) {
      previews_char = str - 1;
      the_next = str + 1;
      while (isspace(*previews_char))
        previews_char--;
      while (isspace(*the_next))
        the_next++;
    }
    if (the_char && previews_char && *the_char == '(' && (isdigit(*previews_char) || isalpha(*previews_char))) {
      return 1;
    } else if (the_char && *the_char == '=' && *the_next != '=') {
      return 1;
    } else if (the_char && *the_char == '=' && *the_next == '=') {
      return 0;
    }
    str++;
    i++;
  }
  return 0;
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<Is_Function>:
  endbr64
  test   %esi,%esi
  jle    L129
  movslq %esi,%rsi
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  lea    (%rdi,%rsi,1),%r13
  push   %r12
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  mov    %rdi,%rbx
  nopl   0x0(%rax,%rax,1)
L63:
  test   %rbx,%rbx
  je     L130
  test   %r14,%r14
  je     L7
  movzbl (%rbx),%eax
  cmp    $0x28,%al
  je     L89
L4:
  cmp    $0x3d,%al
  je     L55
L130:
  lea    0x1(%rbx),%r12
  cmp    %r12,%r13
  jne    L1
  jmp    L115
  nopl   0x0(%rax,%rax,1)
L149:
  sub    $0x1,%rbx
L1:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L149
  lea    0x1(%r12),%rbp
  jmp    L128
  nopl   0x0(%rax,%rax,1)
L103:
  add    $0x1,%rbp
L128:
  movsbl 0x0(%rbp),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L103
  mov    %rbx,%r14
  mov    %r12,%rbx
  jmp    L63
  nopw   0x0(%rax,%rax,1)
L55:
  cmpb   $0x3d,0x0(%rbp)
  jne    L40
L115:
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L7:
  test   %rbx,%rbx
  je     L130
L108:
  movzbl (%rbx),%eax
  jmp    L4
  nopw   0x0(%rax,%rax,1)
L89:
  movsbl (%r14),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L40
  movsbl (%r14),%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L108
L40:
  pop    %rbx
  mov    $0x1,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L129:
  xor    %eax,%eax
  ret
```

assistant: ```c
int Is_Function(char *str, int len) {
  int i = 0;
  char *the_char = NULL;
  char *previews_char = NULL;
  char *the_next = NULL;
  while (i < len) {
    the_char = str;
    if (i > 0) {
      previews_char = str - 1;
      the_next = str + 1;
      while (isspace(*previews_char))
        previews_char--;
      while (isspace(*the_next))
        the_next++;
    }
    if (the_char && previews_char && *the_char == '(' && (isdigit(*previews_char) || isalpha(*previews_char))) {
      return 1;
    } else if (the_char && *the_char == '=' && *the_next != '=') {
      return 1;
    } else if (the_char && *the_char == '=' && *the_next == '=') {
      return 0;
    }
    str++;
    i++;
  }
  return 0;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<invPerspective>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  movss  %xmm0,-0x1c(%rbp)
  movss  %xmm1,-0x20(%rbp)
  movss  %xmm2,-0x24(%rbp)
  movss  %xmm3,-0x28(%rbp)
  movss  -0x1c(%rbp),%xmm1
  movss  D3(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movss  -0x1c(%rbp),%xmm1
  movss  D16(%rip),%xmm0
  mulss  %xmm0,%xmm1
  movd   %xmm1,%eax
  movd   %eax,%xmm0
  call   <tan@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  movss  -0x24(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x10(%rbp),%xmm0
  movss  D21(%rip),%xmm1
  xorps  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0x10(%rbp),%xmm0
  mulss  -0x20(%rbp),%xmm0
  movss  %xmm0,-0x8(%rbp)
  movss  -0x8(%rbp),%xmm0
  movss  D21(%rip),%xmm1
  xorps  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rbp)
  movss  -0x28(%rbp),%xmm4
  movss  -0x24(%rbp),%xmm3
  movss  -0x10(%rbp),%xmm2
  movss  -0xc(%rbp),%xmm1
  movss  -0x8(%rbp),%xmm0
  mov    -0x4(%rbp),%edx
  mov    -0x18(%rbp),%rax
  movaps %xmm4,%xmm5
  movaps %xmm3,%xmm4
  movaps %xmm2,%xmm3
  movaps %xmm1,%xmm2
  movaps %xmm0,%xmm1
  movd   %edx,%xmm0
  mov    %rax,%rdi
  call   <invFrustum16fv@plt>
  mov    -0x18(%rbp),%rax
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D3
type: byte[4]
name: retrieve_data
arguments: data_label: D16
type: byte[4]
name: retrieve_data
arguments: data_label: D21
type: byte[4]

tool: {"D3": [0x03,0xfa,0x8e,0x3c]}

tool: {"D16": [0x00,0x00,0x00,0x3f]}

tool: {"D21": [0x00,0x00,0x00,0x80]}

assistant: ```c
float *invPerspective(float *M, float Yfov, float Aspect, float Ndist, float Fdist) {
  Yfov *= 0.0174532f;
  float wT = (float)tan(Yfov * 0.5f) * Ndist, wB = -wT;
  float wR = wT * Aspect, wL = -wR;
  invFrustum16fv(M, wL, wR, wB, wT, Ndist, Fdist);
  return (M);
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<invPerspective>:
  endbr64
  push   %rbx
  sub    $0x10,%rsp
  mov    %rdi,%rbx
  movss  %xmm1,0x4(%rsp)
  movss  %xmm2,0x8(%rsp)
  movss  %xmm3,0xc(%rsp)
  mulss  D16(%rip),%xmm0
  mulss  D27(%rip),%xmm0
  call   <tan@plt>
  pxor   %xmm3,%xmm3
  cvtsi2ss %rax,%xmm3
  movss  0x8(%rsp),%xmm4
  mulss  %xmm4,%xmm3
  movss  0x4(%rsp),%xmm1
  mulss  %xmm3,%xmm1
  movss  D8(%rip),%xmm0
  movaps %xmm3,%xmm2
  xorps  %xmm0,%xmm2
  xorps  %xmm1,%xmm0
  movss  0xc(%rsp),%xmm5
  mov    %rbx,%rdi
  call   <invFrustum16fv@plt>
  mov    %rbx,%rax
  add    $0x10,%rsp
  pop    %rbx
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D16
datatype: byte[4]
name: disassemble_data
arguments: tag: D27
datatype: byte[4]
name: disassemble_data
arguments: tag: D8
datatype: byte[4]

tool: {"D16": [0x03,0xfa,0x8e,0x3c]}

tool: {"D27": [0x00,0x00,0x00,0x3f]}

tool: {"D8": [0x00,0x00,0x00,0x80]}

assistant: ```c
float *invPerspective(float *M, float Yfov, float Aspect, float Ndist, float Fdist) {
  Yfov *= 0.0174532f;
  float wT = (float)tan(Yfov * 0.5f) * Ndist, wB = -wT;
  float wR = wT * Aspect, wL = -wR;
  invFrustum16fv(M, wL, wR, wB, wT, Ndist, Fdist);
  return (M);
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<invPerspective>:
  endbr64
  push   %r12
  mov    %rdi,%r12
  sub    $0x10,%rsp
  mulss  D18(%rip),%xmm0
  movss  %xmm1,0xc(%rsp)
  mulss  D23(%rip),%xmm0
  movss  %xmm2,0x8(%rsp)
  movss  %xmm3,0x4(%rsp)
  call   <tan@plt>
  pxor   %xmm3,%xmm3
  mov    %r12,%rdi
  movss  0x8(%rsp),%xmm4
  cvtsi2ss %rax,%xmm3
  movss  0xc(%rsp),%xmm1
  movss  D17(%rip),%xmm0
  movss  0x4(%rsp),%xmm5
  mulss  %xmm4,%xmm3
  mulss  %xmm3,%xmm1
  movaps %xmm3,%xmm2
  xorps  %xmm0,%xmm2
  xorps  %xmm1,%xmm0
  call   <invFrustum16fv@plt>
  add    $0x10,%rsp
  mov    %r12,%rax
  pop    %r12
  ret
```

tool_calls: name: read_data
arguments: label: D18
data_type: byte[4]
name: read_data
arguments: label: D23
data_type: byte[4]
name: read_data
arguments: label: D17
data_type: byte[4]

tool: {"D18": [0x03,0xfa,0x8e,0x3c]}

tool: {"D23": [0x00,0x00,0x00,0x3f]}

tool: {"D17": [0x00,0x00,0x00,0x80]}

assistant: ```c
float *invPerspective(float *M, float Yfov, float Aspect, float Ndist, float Fdist) {
  Yfov *= 0.0174532f;
  float wT = (float)tan(Yfov * 0.5f) * Ndist, wB = -wT;
  float wR = wT * Aspect, wL = -wR;
  invFrustum16fv(M, wL, wR, wB, wT, Ndist, Fdist);
  return (M);
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<invPerspective>:
  endbr64
  push   %r12
  mov    %rdi,%r12
  sub    $0x10,%rsp
  mulss  D7(%rip),%xmm0
  movss  %xmm1,0xc(%rsp)
  mulss  D23(%rip),%xmm0
  movss  %xmm2,0x8(%rsp)
  movss  %xmm3,0x4(%rsp)
  call   <tan@plt>
  pxor   %xmm3,%xmm3
  mov    %r12,%rdi
  movss  0x8(%rsp),%xmm4
  cvtsi2ss %rax,%xmm3
  movss  0xc(%rsp),%xmm1
  movss  D27(%rip),%xmm0
  movss  0x4(%rsp),%xmm5
  mulss  %xmm4,%xmm3
  mulss  %xmm3,%xmm1
  movaps %xmm3,%xmm2
  xorps  %xmm0,%xmm2
  xorps  %xmm1,%xmm0
  call   <invFrustum16fv@plt>
  add    $0x10,%rsp
  mov    %r12,%rax
  pop    %r12
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D7
type: byte[4]
name: retrieve_data
arguments: data_label: D23
type: byte[4]
name: retrieve_data
arguments: data_label: D27
type: byte[4]

tool: {"D7": [0x03,0xfa,0x8e,0x3c]}

tool: {"D23": [0x00,0x00,0x00,0x3f]}

tool: {"D27": [0x00,0x00,0x00,0x80]}

assistant: ```c
float *invPerspective(float *M, float Yfov, float Aspect, float Ndist, float Fdist) {
  Yfov *= 0.0174532f;
  float wT = (float)tan(Yfov * 0.5f) * Ndist, wB = -wT;
  float wR = wT * Aspect, wL = -wR;
  invFrustum16fv(M, wL, wR, wB, wT, Ndist, Fdist);
  return (M);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<getconfig>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x238,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x228(%rsp)
  xor    %eax,%eax
  lea    D20(%rip),%rdi
  call   <getenv@plt>
  mov    %rax,%rdx
  lea    0x120(%rsp),%rbx
  lea    D7(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  lea    D34(%rip),%rsi
  mov    %rbx,%rdi
  call   <fopen@plt>
  test   %rax,%rax
  je     L30
  mov    %rax,%rbp
  lea    D41(%rip),%r14
  lea    D58(%rip),%r15
  lea    D52(%rip),%r13
L42:
  lea    D22(%rip),%r12
  jmp    L86
L91:
  mov    %rbx,%rdi
  mov    0x8(%rsp),%rdx
  mov    %r15,%rsi
  call   <sscanf@plt>
  jmp    L29
L32:
  lea    0x20(%rsp),%rdi
  mov    $0x4,%edx
  mov    %r12,%rsi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L52
L86:
  lea    0x20(%rsp),%rdi
  mov    %rbp,%rdx
  mov    $0x100,%esi
  call   <fgets@plt>
  test   %rax,%rax
  je     L27
  lea    0x20(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  sub    $0x1,%eax
  cltq
  movb   $0x0,0x20(%rsp,%rax,1)
  mov    $0x3,%edx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L91
L29:
  lea    0x20(%rsp),%rdi
  mov    $0x3,%edx
  mov    %r13,%rsi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L32
  lea    0x20(%rsp),%rdi
  mov    0x10(%rsp),%rdx
  mov    %r15,%rsi
  call   <sscanf@plt>
  jmp    L32
L52:
  lea    0x20(%rsp),%rdi
  mov    0x18(%rsp),%rdx
  lea    D18(%rip),%rsi
  call   <sscanf@plt>
  jmp    L42
L27:
  mov    %rbp,%rdi
  call   <fclose@plt>
L30:
  mov    0x228(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L54
  add    $0x238,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L54:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D20
type: string
name: parse_data
arguments: tag: D7
type: string
name: parse_data
arguments: tag: D34
type: string
name: parse_data
arguments: tag: D41
type: string
name: parse_data
arguments: tag: D58
type: string
name: parse_data
arguments: tag: D52
type: string
name: parse_data
arguments: tag: D22
type: string
name: parse_data
arguments: tag: D18
type: string

tool: D20: HOME

tool: D7: %s/.fmrc

tool: D34: r

tool: D41: VOL

tool: D58: %*s %i

tool: D52: INCR

tool: D22: TIME

tool: D18: %*s %s

assistant: ```c
void getconfig(int *defaultvol, int *increment, char *wait_time) {
  FILE *conf;
  char buf[256], fn[256];
  sprintf(fn, "%s/.fmrc", getenv("HOME"));
  conf = fopen(fn, "r");
  if (!conf)
    return;
  while (fgets(buf, sizeof(buf), conf)) {
    buf[strlen(buf) - 1] = 0;
    if (!strncmp(buf, "VOL", 3))
      sscanf(buf, "%*s %i", defaultvol);
    if (!strncmp(buf, "INCR", 3))
      sscanf(buf, "%*s %i", increment);
    if (!strncmp(buf, "TIME", 4))
      sscanf(buf, "%*s %s", wait_time);
  }
  fclose(conf);
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<getconfig>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x238,%rsp
  mov    %rdi,0x8(%rsp)
  lea    D70(%rip),%rdi
  lea    0x120(%rsp),%rbp
  mov    %rsi,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x228(%rsp)
  xor    %eax,%eax
  call   <getenv@plt>
  lea    D72(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rax,%rdx
  call   <sprintf@plt>
  lea    D36(%rip),%rsi
  mov    %rbp,%rdi
  call   <fopen@plt>
  test   %rax,%rax
  je     L51
  mov    %rax,%rbp
  lea    0x20(%rsp),%rbx
  lea    D39(%rip),%r14
  lea    D45(%rip),%r15
  lea    D13(%rip),%r13
L84:
  lea    D38(%rip),%r12
  jmp    L70
  nopl   0x0(%rax,%rax,1)
L9:
  mov    $0x3,%edx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L10
L87:
  mov    $0x4,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L18
L70:
  mov    %rbp,%rdx
  mov    $0x100,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L32
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    $0x3,%edx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  sub    $0x1,%eax
  cltq
  movb   $0x0,0x20(%rsp,%rax,1)
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L9
  mov    0x8(%rsp),%rdx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <sscanf@plt>
  jmp    L9
  nopl   0x0(%rax)
L10:
  mov    0x10(%rsp),%rdx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <sscanf@plt>
  jmp    L87
  nopw   0x0(%rax,%rax,1)
L32:
  mov    %rbp,%rdi
  call   <fclose@plt>
L51:
  mov    0x228(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L73
  add    $0x238,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L18:
  mov    0x18(%rsp),%rdx
  lea    D30(%rip),%rsi
  mov    %rbx,%rdi
  call   <sscanf@plt>
  jmp    L84
L73:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D70
datatype: string
name: extract_symbolic_data
arguments: label: D72
datatype: string
name: extract_symbolic_data
arguments: label: D36
datatype: string
name: extract_symbolic_data
arguments: label: D39
datatype: string
name: extract_symbolic_data
arguments: label: D45
datatype: string
name: extract_symbolic_data
arguments: label: D13
datatype: string
name: extract_symbolic_data
arguments: label: D38
datatype: string
name: extract_symbolic_data
arguments: label: D30
datatype: string

tool: D70: HOME

tool: D72: %s/.fmrc

tool: D36: r

tool: D39: VOL

tool: D45: %*s %i

tool: D13: INCR

tool: D38: TIME

tool: D30: %*s %s

assistant: ```c
void getconfig(int *defaultvol, int *increment, char *wait_time) {
  FILE *conf;
  char buf[256], fn[256];
  sprintf(fn, "%s/.fmrc", getenv("HOME"));
  conf = fopen(fn, "r");
  if (!conf)
    return;
  while (fgets(buf, sizeof(buf), conf)) {
    buf[strlen(buf) - 1] = 0;
    if (!strncmp(buf, "VOL", 3))
      sscanf(buf, "%*s %i", defaultvol);
    if (!strncmp(buf, "INCR", 3))
      sscanf(buf, "%*s %i", increment);
    if (!strncmp(buf, "TIME", 4))
      sscanf(buf, "%*s %s", wait_time);
  }
  fclose(conf);
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<getconfig>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x238,%rsp
  mov    %rdi,0x8(%rsp)
  lea    D64(%rip),%rdi
  lea    0x120(%rsp),%rbp
  mov    %rsi,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x228(%rsp)
  xor    %eax,%eax
  call   <getenv@plt>
  lea    D77(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rax,%rdx
  call   <sprintf@plt>
  lea    D65(%rip),%rsi
  mov    %rbp,%rdi
  call   <fopen@plt>
  test   %rax,%rax
  je     L20
  mov    %rax,%rbp
  lea    0x20(%rsp),%rbx
  lea    D28(%rip),%r14
  lea    D17(%rip),%r15
  lea    D51(%rip),%r13
L95:
  lea    D42(%rip),%r12
  jmp    L74
  nopl   0x0(%rax,%rax,1)
L96:
  mov    $0x3,%edx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L97
L68:
  mov    $0x4,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L53
L74:
  mov    %rbp,%rdx
  mov    $0x100,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L13
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    $0x3,%edx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  sub    $0x1,%eax
  cltq
  movb   $0x0,0x20(%rsp,%rax,1)
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L96
  mov    0x8(%rsp),%rdx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <sscanf@plt>
  jmp    L96
  nopl   0x0(%rax)
L97:
  mov    0x10(%rsp),%rdx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <sscanf@plt>
  jmp    L68
  nopw   0x0(%rax,%rax,1)
L13:
  mov    %rbp,%rdi
  call   <fclose@plt>
L20:
  mov    0x228(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L39
  add    $0x238,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L53:
  mov    0x18(%rsp),%rdx
  lea    D5(%rip),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <sscanf@plt>
  jmp    L95
L39:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D64
type: string
name: retrieve_data
arguments: data_tag: D77
type: string
name: retrieve_data
arguments: data_tag: D65
type: string
name: retrieve_data
arguments: data_tag: D28
type: string
name: retrieve_data
arguments: data_tag: D17
type: string
name: retrieve_data
arguments: data_tag: D51
type: string
name: retrieve_data
arguments: data_tag: D42
type: string
name: retrieve_data
arguments: data_tag: D5
type: string

tool: D64: HOME

tool: D77: %s/.fmrc

tool: D65: r

tool: D28: VOL

tool: D17: %*s %i

tool: D51: INCR

tool: D42: TIME

tool: D5: %*s %s

assistant: ```c
void getconfig(int *defaultvol, int *increment, char *wait_time) {
  FILE *conf;
  char buf[256], fn[256];
  sprintf(fn, "%s/.fmrc", getenv("HOME"));
  conf = fopen(fn, "r");
  if (!conf)
    return;
  while (fgets(buf, sizeof(buf), conf)) {
    buf[strlen(buf) - 1] = 0;
    if (!strncmp(buf, "VOL", 3))
      sscanf(buf, "%*s %i", defaultvol);
    if (!strncmp(buf, "INCR", 3))
      sscanf(buf, "%*s %i", increment);
    if (!strncmp(buf, "TIME", 4))
      sscanf(buf, "%*s %s", wait_time);
  }
  fclose(conf);
}
```