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

```asm
<P>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  jle    L0
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  lea    -0x1(%rax),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,(%rax)
L0:
  mov    -0x4(%rbp),%eax
  pop    %rbp
  ret
```

assistant: ```c
int P(int *s) {
  int res = (*s);
  if (res > 0) {
    (*s)--;
  }
  return res;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<P>:
  endbr64
  mov    (%rdi),%eax
  test   %eax,%eax
  jle    L8
  lea    -0x1(%rax),%edx
  mov    %edx,(%rdi)
L8:
  ret
```

assistant: ```c
int P(int *s) {
  int res = (*s);
  if (res > 0) {
    (*s)--;
  }
  return res;
}
```
user: Translate the below assembly code into C programming language:

```asm
<P>:
  endbr64
  mov    (%rdi),%eax
  test   %eax,%eax
  jle    L8
  lea    -0x1(%rax),%edx
  mov    %edx,(%rdi)
L8:
  ret
```

assistant: ```c
int P(int *s) {
  int res = (*s);
  if (res > 0) {
    (*s)--;
  }
  return res;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<P>:
  endbr64
  mov    (%rdi),%eax
  test   %eax,%eax
  jle    L8
  lea    -0x1(%rax),%edx
  mov    %edx,(%rdi)
L8:
  ret
```

assistant: ```c
int P(int *s) {
  int res = (*s);
  if (res > 0) {
    (*s)--;
  }
  return res;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<setWRMR>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    $0x1,%edi
  call   <startSPI@plt>
  mov    $0x8,%esi
  mov    $0x1,%edi
  call   <writeSPI@plt>
  mov    $0x8,%esi
  mov    $0x40,%edi
  call   <writeSPI@plt>
  mov    $0x1,%edi
  call   <endSPI@plt>
  nop
  pop    %rbp
  ret
```

assistant: ```c
void setWRMR() {
  startSPI(1);
  writeSPI(0x00000001, 8);
  writeSPI(0x40, 8);
  endSPI(1);
}
```
user: Translate the below assembly code into C programming language:

```asm
<setWRMR>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x1,%edi
  call   <startSPI@plt>
  mov    $0x8,%esi
  mov    $0x1,%edi
  call   <writeSPI@plt>
  mov    $0x8,%esi
  mov    $0x40,%edi
  call   <writeSPI@plt>
  mov    $0x1,%edi
  call   <endSPI@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
void setWRMR() {
  startSPI(1);
  writeSPI(0x00000001, 8);
  writeSPI(0x40, 8);
  endSPI(1);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<setWRMR>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x1,%edi
  call   <startSPI@plt>
  mov    $0x8,%esi
  mov    $0x1,%edi
  call   <writeSPI@plt>
  mov    $0x40,%edi
  mov    $0x8,%esi
  call   <writeSPI@plt>
  mov    $0x1,%edi
  add    $0x8,%rsp
  jmp    1070 <endSPI@plt>
```

assistant: ```c
void setWRMR() {
  startSPI(1);
  writeSPI(0x00000001, 8);
  writeSPI(0x40, 8);
  endSPI(1);
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<setWRMR>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x1,%edi
  call   <startSPI@plt>
  mov    $0x8,%esi
  mov    $0x1,%edi
  call   <writeSPI@plt>
  mov    $0x40,%edi
  mov    $0x8,%esi
  call   <writeSPI@plt>
  mov    $0x1,%edi
  add    $0x8,%rsp
  jmp    1070 <endSPI@plt>
```

assistant: ```c
void setWRMR() {
  startSPI(1);
  writeSPI(0x00000001, 8);
  writeSPI(0x40, 8);
  endSPI(1);
}
```
user: Translate the below assembly code into C programming language:

```asm
<substr>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r15
  mov    %rsi,%r12
  mov    %rdx,%r13
  mov    %rdx,%rdi
  call   <strlen@plt>
  mov    %eax,%ebp
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%r14d
  cmp    %eax,%ebp
  jg     L57
  mov    (%r15),%rbx
  movslq %eax,%r14
  jmp    L50
L57:
  mov    %ebp,%ebx
  sub    %eax,%ebx
  mov    %r12,%rsi
  mov    (%r15),%rdi
  call   <strnoc@plt>
  imul   %eax,%ebx
  mov    (%r15),%rdi
  call   <strlen@plt>
  lea    0x1(%rbx,%rax,1),%esi
  mov    (%r15),%rdi
  call   <realloc@plt>
  mov    %rax,%rdi
  mov    %rax,(%r15)
  movslq %r14d,%r14
  jmp    L47
L4:
  lea    (%rbx,%r14,1),%r15
  mov    %r15,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edx
  movslq %ebp,%rdi
  add    %rbx,%rdi
  mov    %r15,%rsi
  call   <memmove@plt>
  mov    %ebp,%edx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <memcpy@plt>
  lea    0x1(%rbx),%rdi
L47:
  mov    %r12,%rsi
  call   <strstr@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  jne    L4
  jmp    L59
L54:
  mov    %ebp,%edx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <memcpy@plt>
  lea    (%rbx,%r14,1),%r15
  mov    %r15,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edx
  movslq %ebp,%rdi
  add    %rbx,%rdi
  mov    %r15,%rsi
  call   <memmove@plt>
L50:
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strstr@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  jne    L54
L59:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void substr(char **text, const char *sub, const char *repl) {
  int l_repl, l_sub;
  l_repl = strlen(repl);
  l_sub = strlen(sub);
  char *match;
  if (l_repl > l_sub) {
    int nsize = (l_repl - l_sub) * strnoc(*text, sub) + strlen(*text) + 1;
    *text = realloc(*text, sizeof(char) * nsize);
    match = *text;
    while ((match = strstr(match, sub)) != NULL) {
      memmove(match + l_repl, match + l_sub, strlen(match + l_sub) + 1);
      memcpy(match, repl, l_repl);
      match += 1;
    }
  } else {
    match = *text;
    while ((match = strstr(match, sub)) != NULL) {
      memcpy(match, repl, l_repl);
      memmove(match + l_repl, match + l_sub, strlen(match + l_sub) + 1);
    }
  }
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<substr>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  mov    %rdx,%rdi
  push   %rbx
  sub    $0x8,%rsp
  call   <strlen@plt>
  mov    %r12,%rdi
  mov    %eax,%ebx
  call   <strlen@plt>
  movslq %eax,%r14
  cmp    %r14d,%ebx
  jg     L29
  mov    0x0(%rbp),%rbp
  jmp    L9
  nopl   0x0(%rax,%rax,1)
L11:
  mov    %ebx,%edx
  mov    %r13,%rsi
  lea    0x0(%rbp,%r14,1),%r15
  mov    %rbp,%rdi
  call   <memcpy@plt>
  mov    %r15,%rdi
  call   <strlen@plt>
  movslq %ebx,%rdi
  mov    %r15,%rsi
  lea    0x1(%rax),%edx
  add    %rbp,%rdi
  call   <memmove@plt>
L9:
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <strstr@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  jne    L11
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L29:
  mov    0x0(%rbp),%rdi
  mov    %r12,%rsi
  mov    %ebx,%r15d
  sub    %r14d,%r15d
  call   <strnoc@plt>
  mov    0x0(%rbp),%rdi
  imul   %eax,%r15d
  call   <strlen@plt>
  mov    0x0(%rbp),%rdi
  lea    0x1(%r15,%rax,1),%esi
  call   <realloc@plt>
  mov    %rax,0x0(%rbp)
  mov    %rax,%rdi
  jmp    L7
  cs nopw 0x0(%rax,%rax,1)
L23:
  lea    0x0(%rbp,%r14,1),%r15
  mov    %r15,%rdi
  call   <strlen@plt>
  movslq %ebx,%rdi
  mov    %r15,%rsi
  lea    0x1(%rax),%edx
  add    %rbp,%rdi
  call   <memmove@plt>
  mov    %rbp,%rdi
  mov    %ebx,%edx
  mov    %r13,%rsi
  call   <memcpy@plt>
  lea    0x1(%rbp),%rdi
L7:
  mov    %r12,%rsi
  call   <strstr@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  jne    L23
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void substr(char **text, const char *sub, const char *repl) {
  int l_repl, l_sub;
  l_repl = strlen(repl);
  l_sub = strlen(sub);
  char *match;
  if (l_repl > l_sub) {
    int nsize = (l_repl - l_sub) * strnoc(*text, sub) + strlen(*text) + 1;
    *text = realloc(*text, sizeof(char) * nsize);
    match = *text;
    while ((match = strstr(match, sub)) != NULL) {
      memmove(match + l_repl, match + l_sub, strlen(match + l_sub) + 1);
      memcpy(match, repl, l_repl);
      match += 1;
    }
  } else {
    match = *text;
    while ((match = strstr(match, sub)) != NULL) {
      memcpy(match, repl, l_repl);
      memmove(match + l_repl, match + l_sub, strlen(match + l_sub) + 1);
    }
  }
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<substr>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  mov    %rdx,%rdi
  push   %rbx
  sub    $0x8,%rsp
  call   <strlen@plt>
  mov    %r12,%rdi
  mov    %eax,%ebx
  call   <strlen@plt>
  movslq %eax,%r14
  cmp    %r14d,%ebx
  jg     L43
  mov    0x0(%rbp),%rbp
  jmp    L20
  nopl   0x0(%rax,%rax,1)
L17:
  mov    %ebx,%edx
  mov    %r13,%rsi
  lea    0x0(%rbp,%r14,1),%r15
  mov    %rbp,%rdi
  call   <memcpy@plt>
  mov    %r15,%rdi
  call   <strlen@plt>
  movslq %ebx,%rdi
  mov    %r15,%rsi
  lea    0x1(%rax),%edx
  add    %rbp,%rdi
  call   <memmove@plt>
L20:
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <strstr@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  jne    L17
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L43:
  mov    0x0(%rbp),%rdi
  mov    %r12,%rsi
  mov    %ebx,%r15d
  sub    %r14d,%r15d
  call   <strnoc@plt>
  mov    0x0(%rbp),%rdi
  imul   %eax,%r15d
  call   <strlen@plt>
  mov    0x0(%rbp),%rdi
  lea    0x1(%r15,%rax,1),%esi
  call   <realloc@plt>
  mov    %rax,0x0(%rbp)
  mov    %rax,%rdi
  jmp    L24
  cs nopw 0x0(%rax,%rax,1)
L33:
  lea    0x0(%rbp,%r14,1),%r15
  mov    %r15,%rdi
  call   <strlen@plt>
  movslq %ebx,%rdi
  mov    %r15,%rsi
  lea    0x1(%rax),%edx
  add    %rbp,%rdi
  call   <memmove@plt>
  mov    %rbp,%rdi
  mov    %ebx,%edx
  mov    %r13,%rsi
  call   <memcpy@plt>
  lea    0x1(%rbp),%rdi
L24:
  mov    %r12,%rsi
  call   <strstr@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  jne    L33
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void substr(char **text, const char *sub, const char *repl) {
  int l_repl, l_sub;
  l_repl = strlen(repl);
  l_sub = strlen(sub);
  char *match;
  if (l_repl > l_sub) {
    int nsize = (l_repl - l_sub) * strnoc(*text, sub) + strlen(*text) + 1;
    *text = realloc(*text, sizeof(char) * nsize);
    match = *text;
    while ((match = strstr(match, sub)) != NULL) {
      memmove(match + l_repl, match + l_sub, strlen(match + l_sub) + 1);
      memcpy(match, repl, l_repl);
      match += 1;
    }
  } else {
    match = *text;
    while ((match = strstr(match, sub)) != NULL) {
      memcpy(match, repl, l_repl);
      memmove(match + l_repl, match + l_sub, strlen(match + l_sub) + 1);
    }
  }
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<read_vecs>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%r13
  mov    %rdx,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  lea    D41(%rip),%rsi
  lea    D56(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  mov    %rsp,%r14
  mov    %rbx,%rcx
  mov    %r14,%rdx
  lea    D78(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  lea    D62(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L6
  mov    (%rbx),%r14d
  test   %r14d,%r14d
  jle    L6
  mov    %rsp,%rdx
  lea    D53(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  mov    %r13,%rbx
  lea    -0x1(%r14),%r14d
  shl    $0x3,%r14
  lea    0x8(%r13,%r14,1),%r15
  lea    D0(%rip),%r13
L11:
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  add    $0x8,%rbx
  cmp    %r15,%rbx
  jne    L11
  mov    %rsp,%rdx
  lea    D53(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  mov    %r12,%rbx
  lea    0x8(%r12,%r14,1),%r13
  lea    D0(%rip),%r12
L48:
  mov    %rbx,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  add    $0x8,%rbx
  cmp    %rbx,%r13
  jne    L48
  mov    %rbp,%rdi
  call   <fclose@plt>
  jmp    L7
L6:
  mov    $0xffffffff,%eax
L7:
  mov    0x68(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L43
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L43:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D41
type: string
name: disassemble_data
arguments: label: D56
type: string
name: disassemble_data
arguments: label: D78
type: string
name: disassemble_data
arguments: label: D62
type: string
name: disassemble_data
arguments: label: D53
type: string
name: disassemble_data
arguments: label: D0
type: string

tool: D41: r

tool: D56: vector_in.dat

tool: D78: %s %d

tool: D62: dim

tool: D53: %s

tool: D0: %lf

assistant: ```c
int read_vecs(int *one, double *two, double *three) {
  FILE *fp;
  char line[100];
  fp = fopen("vector_in.dat", "r");
  fscanf(fp, "%s %d", line, one);
  if (strcmp(line, "dim") != 0 || *one < 1) {
    return -1;
  }
  int count = *one, count2 = *one;
  fscanf(fp, "%s", line);
  int i = 0;
  while (count-- != 0) {
    fscanf(fp, "%lf", (two + i++));
  }
  fscanf(fp, "%s", line);
  i = 0;
  while (count2-- != 0) {
    fscanf(fp, "%lf", (three + i++));
  }
  fclose(fp);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<read_vecs>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdi,%r13
  lea    D42(%rip),%rdi
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  lea    D15(%rip),%rsi
  sub    $0x88,%rsp
  mov    %rdx,0x8(%rsp)
  lea    0x10(%rsp),%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  call   <fopen@plt>
  lea    D52(%rip),%rsi
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    %rax,%rdi
  mov    %rax,%r15
  xor    %eax,%eax
  call   <fscanf@plt>
  lea    D32(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L26
  mov    0x0(%r13),%r13d
  test   %r13d,%r13d
  jle    L26
  lea    -0x1(%r13),%r14d
  mov    %r12,%rdx
  lea    D33(%rip),%rsi
  xor    %eax,%eax
  mov    %r15,%rdi
  shl    $0x3,%r14
  lea    D59(%rip),%rbp
  call   <fscanf@plt>
  lea    0x8(%rbx,%r14,1),%r13
  nop
L31:
  mov    %rbx,%rdx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  add    $0x8,%rbx
  cmp    %r13,%rbx
  jne    L31
  mov    %r12,%rdx
  lea    D33(%rip),%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x8(%rsp),%rbx
  lea    0x8(%rbx,%r14,1),%r12
  nopw   0x0(%rax,%rax,1)
L15:
  mov    %rbx,%rdx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  add    $0x8,%rbx
  cmp    %rbx,%r12
  jne    L15
  mov    %r15,%rdi
  call   <fclose@plt>
  jmp    L33
  nopl   0x0(%rax,%rax,1)
L26:
  mov    $0xffffffff,%eax
L33:
  mov    0x78(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L3
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D42
datatype: string
name: disassemble_data
arguments: label: D15
datatype: string
name: disassemble_data
arguments: label: D52
datatype: string
name: disassemble_data
arguments: label: D32
datatype: string
name: disassemble_data
arguments: label: D33
datatype: string
name: disassemble_data
arguments: label: D59
datatype: string

tool: D42: vector_in.dat

tool: D15: r

tool: D52: %s %d

tool: D32: dim

tool: D33: %s

tool: D59: %lf

assistant: ```c
int read_vecs(int *one, double *two, double *three) {
  FILE *fp;
  char line[100];
  fp = fopen("vector_in.dat", "r");
  fscanf(fp, "%s %d", line, one);
  if (strcmp(line, "dim") != 0 || *one < 1) {
    return -1;
  }
  int count = *one, count2 = *one;
  fscanf(fp, "%s", line);
  int i = 0;
  while (count-- != 0) {
    fscanf(fp, "%lf", (two + i++));
  }
  fscanf(fp, "%s", line);
  i = 0;
  while (count2-- != 0) {
    fscanf(fp, "%lf", (three + i++));
  }
  fclose(fp);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<read_vecs>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdi,%r13
  lea    D26(%rip),%rdi
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  lea    D66(%rip),%rsi
  sub    $0x88,%rsp
  mov    %rdx,0x8(%rsp)
  lea    0x10(%rsp),%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  call   <fopen@plt>
  lea    D62(%rip),%rsi
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    %rax,%rdi
  mov    %rax,%r15
  xor    %eax,%eax
  call   <fscanf@plt>
  lea    D10(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L29
  mov    0x0(%r13),%r13d
  test   %r13d,%r13d
  jle    L29
  lea    -0x1(%r13),%r14d
  mov    %r12,%rdx
  lea    D50(%rip),%rsi
  xor    %eax,%eax
  mov    %r15,%rdi
  shl    $0x3,%r14
  lea    D25(%rip),%rbp
  call   <fscanf@plt>
  lea    0x8(%rbx,%r14,1),%r13
  nop
L27:
  mov    %rbx,%rdx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  add    $0x8,%rbx
  cmp    %r13,%rbx
  jne    L27
  mov    %r12,%rdx
  lea    D50(%rip),%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x8(%rsp),%rbx
  lea    0x8(%rbx,%r14,1),%r12
  nopw   0x0(%rax,%rax,1)
L31:
  mov    %rbx,%rdx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  add    $0x8,%rbx
  cmp    %rbx,%r12
  jne    L31
  mov    %r15,%rdi
  call   <fclose@plt>
  jmp    L11
  nopl   0x0(%rax,%rax,1)
L29:
  mov    $0xffffffff,%eax
L11:
  mov    0x78(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L32
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L32:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D26
data_type: string
name: extract_symbolic_data
arguments: label: D66
data_type: string
name: extract_symbolic_data
arguments: label: D62
data_type: string
name: extract_symbolic_data
arguments: label: D10
data_type: string
name: extract_symbolic_data
arguments: label: D50
data_type: string
name: extract_symbolic_data
arguments: label: D25
data_type: string

tool: D26: vector_in.dat

tool: D66: r

tool: D62: %s %d

tool: D10: dim

tool: D50: %s

tool: D25: %lf

assistant: ```c
int read_vecs(int *one, double *two, double *three) {
  FILE *fp;
  char line[100];
  fp = fopen("vector_in.dat", "r");
  fscanf(fp, "%s %d", line, one);
  if (strcmp(line, "dim") != 0 || *one < 1) {
    return -1;
  }
  int count = *one, count2 = *one;
  fscanf(fp, "%s", line);
  int i = 0;
  while (count-- != 0) {
    fscanf(fp, "%lf", (two + i++));
  }
  fscanf(fp, "%s", line);
  i = 0;
  while (count2-- != 0) {
    fscanf(fp, "%lf", (three + i++));
  }
  fclose(fp);
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<ComputeTemperature>:
  endbr64
  sub    $0x28,%rsp
  movapd %xmm0,%xmm3
  movsd  D77(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm4
  subsd  D25(%rip),%xmm4
  movapd %xmm4,%xmm5
  mulsd  %xmm4,%xmm4
  movsd  %xmm5,0x8(%rsp)
  movapd %xmm5,%xmm2
  mulsd  D119(%rip),%xmm2
  subsd  D26(%rip),%xmm2
  movsd  %xmm4,0x18(%rsp)
  movapd %xmm4,%xmm1
  mulsd  D128(%rip),%xmm1
  addsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm3
  movsd  %xmm3,0x10(%rsp)
  movsd  D45(%rip),%xmm1
  call   <pow@plt>
  movapd %xmm0,%xmm3
  movsd  0x10(%rsp),%xmm6
  movapd %xmm6,%xmm0
  mulsd  %xmm6,%xmm0
  mulsd  D13(%rip),%xmm0
  addsd  %xmm6,%xmm0
  movsd  0x8(%rsp),%xmm5
  mulsd  D65(%rip),%xmm5
  movapd %xmm5,%xmm1
  addsd  D48(%rip),%xmm1
  movsd  0x18(%rsp),%xmm2
  mulsd  D107(%rip),%xmm2
  addsd  %xmm2,%xmm1
  mulsd  D3(%rip),%xmm1
  divsd  %xmm1,%xmm0
  addsd  %xmm3,%xmm0
  movsd  D113(%rip),%xmm1
  call   <pow@plt>
  subsd  D77(%rip),%xmm0
  add    $0x28,%rsp
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D77
type_guessed: f64
name: disassemble_data
arguments: data_label: D25
type_guessed: f64
name: disassemble_data
arguments: data_label: D119
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D26
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D128
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D45
type_guessed: f64
name: disassemble_data
arguments: data_label: D13
type_guessed: f64
name: disassemble_data
arguments: data_label: D65
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D48
type_guessed: f64
name: disassemble_data
arguments: data_label: D107
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D3
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D113
type_guessed: byte[8]

tool: D77: 273.15

tool: D25: 298.15

tool: {"D119": [0xe4,0x3c,0x73,0x41,0x43,0x20,0xa3,0xbe]}

tool: {"D26": [0x4d,0xb1,0xb4,0x9d,0x00,0xd4,0xfe,0x3e]}

tool: {"D128": [0x75,0x46,0x65,0x24,0xbd,0xe2,0x33,0x3e]}

tool: D45: 4

tool: D13: 13.4

tool: {"D65": [0x79,0xe9,0x26,0x31,0x08,0xac,0x5c,0x3f]}

tool: D48: 1

tool: {"D107": [0xe4,0x46,0xd3,0xd1,0x58,0x98,0xf1,0xbe]}

tool: {"D3": [0x16,0x56,0xe7,0x9e,0xaf,0x03,0x32,0x3d]}

tool: {"D113": [0x00,0x00,0x00,0x00,0x00,0x00,0xd0,0x3f]}

assistant: ```c
double ComputeTemperature(double dVobject, double dTAmbient) {
  double Tdie2 = dTAmbient + 273.15;
  const double S0 = 6.4E-14;
  const double a1 = 1.75E-3;
  const double a2 = -1.678E-5;
  const double b0 = -2.94E-5;
  const double b1 = -5.7E-7;
  const double b2 = 4.63E-9;
  const double c2 = 13.4;
  const double Tref = 298.15;
  double S = S0 * (1 + a1 * (Tdie2 - Tref) + a2 * pow((Tdie2 - Tref), 2));
  double Vos = b0 + b1 * (Tdie2 - Tref) + b2 * pow((Tdie2 - Tref), 2);
  double fObj = (dVobject - Vos) + c2 * pow((dVobject - Vos), 2);
  double tObj = pow(pow(Tdie2, 4) + (fObj / S), .25);
  tObj = (tObj - 273.15);
  return tObj;
}
```