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

```asm
<Fdisk>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  movapd %xmm1,%xmm6
  movapd %xmm2,%xmm5
  movapd %xmm3,%xmm2
  movapd %xmm4,%xmm1
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x28(%rbp)
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm6,%xmm0
  movss  %xmm0,-0x30(%rbp)
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm5,%xmm0
  movss  %xmm0,-0x38(%rbp)
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm2,%xmm0
  movss  %xmm0,-0x40(%rbp)
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm0
  movss  %xmm0,-0x48(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movss  -0x28(%rbp),%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movss  -0x30(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  -0x38(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  -0x40(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x48(%rbp),%xmm0
  movss  %xmm0,-0xc(%rbp)
  lea    -0xc(%rbp),%rdi
  lea    -0x10(%rbp),%rcx
  lea    -0x14(%rbp),%rdx
  lea    -0x18(%rbp),%rsi
  lea    -0x1c(%rbp),%rax
  mov    %rdi,%r8
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <diskdf5ez_@plt>
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L1
  call   <__stack_chk_fail@plt>
L1:
  leave
  ret
```

assistant: ```c
float Fdisk(vr, vp, vz, R, z)
float vr, vp, vz, R, z;
{
  float vr0, vp0, vz0, R0, z0;
  float diskdf5ez_();
  vr0 = vr;
  vp0 = vp;
  vz0 = vz;
  R0 = R;
  z0 = z;
  return diskdf5ez_(&vr0, &vp0, &vz0, &R0, &z0);
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<Fdisk>:
  endbr64
  sub    $0x28,%rsp
  cvtsd2ss %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm1
  cvtsd2ss %xmm2,%xmm2
  cvtsd2ss %xmm3,%xmm3
  cvtsd2ss %xmm4,%xmm4
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movss  %xmm0,0x4(%rsp)
  movss  %xmm1,0x8(%rsp)
  movss  %xmm2,0xc(%rsp)
  movss  %xmm3,0x10(%rsp)
  movss  %xmm4,0x14(%rsp)
  lea    0x10(%rsp),%rcx
  lea    0xc(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  lea    0x4(%rsp),%rdi
  lea    0x14(%rsp),%r8
  call   <diskdf5ez_@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0x28,%rsp
  ret
L7:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
float Fdisk(vr, vp, vz, R, z)
float vr, vp, vz, R, z;
{
  float vr0, vp0, vz0, R0, z0;
  float diskdf5ez_();
  vr0 = vr;
  vp0 = vp;
  vz0 = vz;
  R0 = R;
  z0 = z;
  return diskdf5ez_(&vr0, &vp0, &vz0, &R0, &z0);
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<Fdisk>:
  endbr64
  sub    $0x28,%rsp
  cvtsd2ss %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm1
  cvtsd2ss %xmm2,%xmm2
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rcx
  lea    0xc(%rsp),%rdx
  cvtsd2ss %xmm3,%xmm3
  lea    0x8(%rsp),%rsi
  lea    0x4(%rsp),%rdi
  cvtsd2ss %xmm4,%xmm4
  movss  %xmm0,0x4(%rsp)
  lea    0x14(%rsp),%r8
  movss  %xmm1,0x8(%rsp)
  movss  %xmm2,0xc(%rsp)
  movss  %xmm3,0x10(%rsp)
  movss  %xmm4,0x14(%rsp)
  call   <diskdf5ez_@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0x28,%rsp
  ret
L1:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
float Fdisk(vr, vp, vz, R, z)
float vr, vp, vz, R, z;
{
  float vr0, vp0, vz0, R0, z0;
  float diskdf5ez_();
  vr0 = vr;
  vp0 = vp;
  vz0 = vz;
  R0 = R;
  z0 = z;
  return diskdf5ez_(&vr0, &vp0, &vz0, &R0, &z0);
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<Fdisk>:
  endbr64
  sub    $0x28,%rsp
  cvtsd2ss %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm1
  cvtsd2ss %xmm2,%xmm2
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rcx
  lea    0xc(%rsp),%rdx
  cvtsd2ss %xmm3,%xmm3
  lea    0x8(%rsp),%rsi
  lea    0x4(%rsp),%rdi
  cvtsd2ss %xmm4,%xmm4
  movss  %xmm0,0x4(%rsp)
  lea    0x14(%rsp),%r8
  movss  %xmm1,0x8(%rsp)
  movss  %xmm2,0xc(%rsp)
  movss  %xmm3,0x10(%rsp)
  movss  %xmm4,0x14(%rsp)
  call   <diskdf5ez_@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  add    $0x28,%rsp
  ret
L6:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
float Fdisk(vr, vp, vz, R, z)
float vr, vp, vz, R, z;
{
  float vr0, vp0, vz0, R0, z0;
  float diskdf5ez_();
  vr0 = vr;
  vp0 = vp;
  vz0 = vz;
  R0 = R;
  z0 = z;
  return diskdf5ez_(&vr0, &vp0, &vz0, &R0, &z0);
}
```
user: Translate the below assembly code into C programming language:

```asm
<memchr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  jmp    L16
L11:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  cmp    %eax,-0x1c(%rbp)
  jne    L39
  mov    -0x8(%rbp),%rax
  jmp    L25
L39:
  addq   $0x1,-0x8(%rbp)
L16:
  mov    -0x28(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  test   %rax,%rax
  jne    L11
  mov    $0x0,%eax
L25:
  pop    %rbp
  ret
```

assistant: ```c
void *memchr(const void *s, int c, size_t n) {
  const unsigned char *pc = (unsigned char *)s;
  for (; n--; pc++)
    if (*pc == c)
      return ((void *)pc);
  return 0;
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<memchr>:
  endbr64
  mov    %rdi,%rax
  test   %rdx,%rdx
  je     L27
  add    %rdi,%rdx
L21:
  movzbl (%rax),%ecx
  cmp    %esi,%ecx
  je     L14
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L21
  mov    $0x0,%eax
  ret
L27:
  mov    $0x0,%eax
L14:
  ret
```

assistant: ```c
void *memchr(const void *s, int c, size_t n) {
  const unsigned char *pc = (unsigned char *)s;
  for (; n--; pc++)
    if (*pc == c)
      return ((void *)pc);
  return 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<memchr>:
  endbr64
  mov    %rdi,%rax
  test   %rdx,%rdx
  je     L6
  add    %rdi,%rdx
  jmp    L12
  nopl   0x0(%rax)
L2:
  add    $0x1,%rax
  cmp    %rax,%rdx
  je     L6
L12:
  movzbl (%rax),%ecx
  cmp    %esi,%ecx
  jne    L2
  ret
  nopl   0x0(%rax)
L6:
  xor    %eax,%eax
  ret
```

assistant: ```c
void *memchr(const void *s, int c, size_t n) {
  const unsigned char *pc = (unsigned char *)s;
  for (; n--; pc++)
    if (*pc == c)
      return ((void *)pc);
  return 0;
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<memchr>:
  endbr64
  mov    %rdi,%rax
  test   %rdx,%rdx
  je     L35
  add    %rdi,%rdx
  jmp    L2
  nopl   0x0(%rax)
L39:
  add    $0x1,%rax
  cmp    %rax,%rdx
  je     L35
L2:
  movzbl (%rax),%ecx
  cmp    %esi,%ecx
  jne    L39
  ret
  nopl   0x0(%rax)
L35:
  xor    %eax,%eax
  ret
```

assistant: ```c
void *memchr(const void *s, int c, size_t n) {
  const unsigned char *pc = (unsigned char *)s;
  for (; n--; pc++)
    if (*pc == c)
      return ((void *)pc);
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<ADCComparatorIntDisable>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x8(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rsi
  mov    -0x10(%rbp),%rax
  mov    $0x10000,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  not    %eax
  movslq %eax,%rcx
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    %rax,%rdx
  mov    %rsi,%rax
  and    %rcx,%rax
  mov    %rax,(%rdx)
  nop
  pop    %rbp
  ret
```

assistant: ```c
void ADCComparatorIntDisable(unsigned long ulBase, unsigned long ulSequenceNum) {
  ;
  ;
  (*((volatile unsigned long *)(ulBase + 0x00000008))) &= ~(0x10000 << ulSequenceNum);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<ADCComparatorIntDisable>:
  endbr64
  mov    0x8(%rdi),%rdx
  mov    $0x10000,%eax
  mov    %esi,%ecx
  shl    %cl,%eax
  not    %eax
  cltq
  and    %rdx,%rax
  mov    %rax,0x8(%rdi)
  ret
```

assistant: ```c
void ADCComparatorIntDisable(unsigned long ulBase, unsigned long ulSequenceNum) {
  ;
  ;
  (*((volatile unsigned long *)(ulBase + 0x00000008))) &= ~(0x10000 << ulSequenceNum);
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<ADCComparatorIntDisable>:
  endbr64
  mov    $0x10000,%eax
  mov    %esi,%ecx
  mov    0x8(%rdi),%rdx
  shl    %cl,%eax
  not    %eax
  cltq
  and    %rdx,%rax
  mov    %rax,0x8(%rdi)
  ret
```

assistant: ```c
void ADCComparatorIntDisable(unsigned long ulBase, unsigned long ulSequenceNum) {
  ;
  ;
  (*((volatile unsigned long *)(ulBase + 0x00000008))) &= ~(0x10000 << ulSequenceNum);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<ADCComparatorIntDisable>:
  endbr64
  mov    $0x10000,%eax
  mov    %esi,%ecx
  mov    0x8(%rdi),%rdx
  shl    %cl,%eax
  not    %eax
  cltq
  and    %rdx,%rax
  mov    %rax,0x8(%rdi)
  ret
```

assistant: ```c
void ADCComparatorIntDisable(unsigned long ulBase, unsigned long ulSequenceNum) {
  ;
  ;
  (*((volatile unsigned long *)(ulBase + 0x00000008))) &= ~(0x10000 << ulSequenceNum);
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<sock_cmpaddr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  je     L113
  mov    -0x28(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x30(%rbp),%rax
  mov    (%rax),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  jmp    L89
L113:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0x80,%eax
  je     L70
  cmp    $0x81,%eax
  jne    L19
  cmpl   $0x0,-0x34(%rbp)
  je     L35
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  je     L35
  mov    -0x18(%rbp),%eax
  sub    -0x14(%rbp),%eax
  jmp    L89
L35:
  mov    -0x28(%rbp),%rax
  add    $0x4,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x30(%rbp),%rax
  add    $0x4,%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x4,-0x1c(%rbp)
  jmp    L36
L70:
  cmpl   $0x0,-0x34(%rbp)
  je     L50
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  je     L50
  mov    -0x18(%rbp),%eax
  sub    -0x14(%rbp),%eax
  jmp    L89
L50:
  mov    -0x28(%rbp),%rax
  add    $0x4,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x30(%rbp),%rax
  add    $0x4,%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x4,-0x1c(%rbp)
  jmp    L36
L19:
  mov    $0xffffffff,%eax
  jmp    L89
L36:
  mov    -0x1c(%rbp),%edx
  mov    -0x8(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcmp@plt>
L89:
  leave
  ret
```

assistant: ```c
int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2, int cmpport) {
  uint8_t *s1, *s2;
  int p1, p2;
  int slen;
  if (addr1->sa_family != addr2->sa_family) {
    return addr1->sa_family - addr2->sa_family;
  }
  switch (addr1->sa_family) {
  case AF_INET:
    if (cmpport) {
      p1 = ((struct sockaddr_in *)addr1)->sin_port;
      p2 = ((struct sockaddr_in *)addr2)->sin_port;
      if (p1 != p2)
        return p1 - p2;
    }
    s1 = (uint8_t *)&(((struct sockaddr_in *)addr1)->sin_addr);
    s2 = (uint8_t *)&(((struct sockaddr_in *)addr2)->sin_addr);
    slen = sizeof(struct in_addr);
    break;
  case AF_INET6:
    if (cmpport) {
      p1 = ((struct sockaddr_in6 *)addr1)->sin6_port;
      p2 = ((struct sockaddr_in6 *)addr2)->sin6_port;
      if (p1 != p2)
        return p1 - p2;
    }
    s1 = (uint8_t *)&(((struct sockaddr_in6 *)addr1)->sin6_addr);
    s2 = (uint8_t *)&(((struct sockaddr_in6 *)addr2)->sin6_addr);
    slen = sizeof(struct in6_addr);
    break;
  default:
    return -1;
  }
  return memcmp(s1, s2, slen);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<sock_cmpaddr>:
  endbr64
  mov    (%rdi),%edx
  mov    (%rsi),%ecx
  cmp    %ecx,%edx
  je     L24
  mov    %edx,%eax
  sub    %ecx,%eax
  ret
L24:
  cmp    $0x80,%edx
  je     L19
  mov    $0xffffffff,%eax
  cmp    $0x81,%edx
  jne    L22
  add    $0x4,%rdi
  add    $0x4,%rsi
L10:
  sub    $0x8,%rsp
  mov    $0x4,%edx
  call   <memcmp@plt>
  add    $0x8,%rsp
  ret
L19:
  add    $0x4,%rdi
  add    $0x4,%rsi
  jmp    L10
L22:
  ret
```

assistant: ```c
int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2, int cmpport) {
  uint8_t *s1, *s2;
  int p1, p2;
  int slen;
  if (addr1->sa_family != addr2->sa_family) {
    return addr1->sa_family - addr2->sa_family;
  }
  switch (addr1->sa_family) {
  case AF_INET:
    if (cmpport) {
      p1 = ((struct sockaddr_in *)addr1)->sin_port;
      p2 = ((struct sockaddr_in *)addr2)->sin_port;
      if (p1 != p2)
        return p1 - p2;
    }
    s1 = (uint8_t *)&(((struct sockaddr_in *)addr1)->sin_addr);
    s2 = (uint8_t *)&(((struct sockaddr_in *)addr2)->sin_addr);
    slen = sizeof(struct in_addr);
    break;
  case AF_INET6:
    if (cmpport) {
      p1 = ((struct sockaddr_in6 *)addr1)->sin6_port;
      p2 = ((struct sockaddr_in6 *)addr2)->sin6_port;
      if (p1 != p2)
        return p1 - p2;
    }
    s1 = (uint8_t *)&(((struct sockaddr_in6 *)addr1)->sin6_addr);
    s2 = (uint8_t *)&(((struct sockaddr_in6 *)addr2)->sin6_addr);
    slen = sizeof(struct in6_addr);
    break;
  default:
    return -1;
  }
  return memcmp(s1, s2, slen);
}
```
user: Translate the below assembly code into C programming language:

```asm
<sock_cmpaddr>:
  endbr64
  mov    (%rdi),%eax
  mov    (%rsi),%edx
  cmp    %edx,%eax
  je     L0
  sub    %edx,%eax
  ret
  nop
L0:
  add    $0xffffff80,%eax
  cmp    $0x1,%eax
  ja     L8
  add    $0x4,%rsi
  add    $0x4,%rdi
  mov    $0x4,%edx
  jmp    1050 <memcmp@plt>
  nopw   0x0(%rax,%rax,1)
L8:
  mov    $0xffffffff,%eax
  ret
```

assistant: ```c
int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2, int cmpport) {
  uint8_t *s1, *s2;
  int p1, p2;
  int slen;
  if (addr1->sa_family != addr2->sa_family) {
    return addr1->sa_family - addr2->sa_family;
  }
  switch (addr1->sa_family) {
  case AF_INET:
    if (cmpport) {
      p1 = ((struct sockaddr_in *)addr1)->sin_port;
      p2 = ((struct sockaddr_in *)addr2)->sin_port;
      if (p1 != p2)
        return p1 - p2;
    }
    s1 = (uint8_t *)&(((struct sockaddr_in *)addr1)->sin_addr);
    s2 = (uint8_t *)&(((struct sockaddr_in *)addr2)->sin_addr);
    slen = sizeof(struct in_addr);
    break;
  case AF_INET6:
    if (cmpport) {
      p1 = ((struct sockaddr_in6 *)addr1)->sin6_port;
      p2 = ((struct sockaddr_in6 *)addr2)->sin6_port;
      if (p1 != p2)
        return p1 - p2;
    }
    s1 = (uint8_t *)&(((struct sockaddr_in6 *)addr1)->sin6_addr);
    s2 = (uint8_t *)&(((struct sockaddr_in6 *)addr2)->sin6_addr);
    slen = sizeof(struct in6_addr);
    break;
  default:
    return -1;
  }
  return memcmp(s1, s2, slen);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<sock_cmpaddr>:
  endbr64
  mov    (%rdi),%eax
  mov    (%rsi),%edx
  cmp    %edx,%eax
  je     L6
  sub    %edx,%eax
  ret
  nop
L6:
  add    $0xffffff80,%eax
  cmp    $0x1,%eax
  ja     L7
  add    $0x4,%rsi
  add    $0x4,%rdi
  mov    $0x4,%edx
  jmp    1050 <memcmp@plt>
  nopw   0x0(%rax,%rax,1)
L7:
  mov    $0xffffffff,%eax
  ret
```

assistant: ```c
int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2, int cmpport) {
  uint8_t *s1, *s2;
  int p1, p2;
  int slen;
  if (addr1->sa_family != addr2->sa_family) {
    return addr1->sa_family - addr2->sa_family;
  }
  switch (addr1->sa_family) {
  case AF_INET:
    if (cmpport) {
      p1 = ((struct sockaddr_in *)addr1)->sin_port;
      p2 = ((struct sockaddr_in *)addr2)->sin_port;
      if (p1 != p2)
        return p1 - p2;
    }
    s1 = (uint8_t *)&(((struct sockaddr_in *)addr1)->sin_addr);
    s2 = (uint8_t *)&(((struct sockaddr_in *)addr2)->sin_addr);
    slen = sizeof(struct in_addr);
    break;
  case AF_INET6:
    if (cmpport) {
      p1 = ((struct sockaddr_in6 *)addr1)->sin6_port;
      p2 = ((struct sockaddr_in6 *)addr2)->sin6_port;
      if (p1 != p2)
        return p1 - p2;
    }
    s1 = (uint8_t *)&(((struct sockaddr_in6 *)addr1)->sin6_addr);
    s2 = (uint8_t *)&(((struct sockaddr_in6 *)addr2)->sin6_addr);
    slen = sizeof(struct in6_addr);
    break;
  default:
    return -1;
  }
  return memcmp(s1, s2, slen);
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<insert_station_datatype>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x450,%rsp
  mov    %rdi,-0x438(%rbp)
  mov    %rsi,-0x440(%rbp)
  mov    %rdx,-0x448(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x438(%rbp),%rax
  lea    D21(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <get_table_name@plt>
  mov    %rax,-0x428(%rbp)
  lea    D1(%rip),%rax
  mov    %rax,-0x420(%rbp)
  mov    -0x420(%rbp),%rcx
  mov    -0x428(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  lea    D8(%rip),%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  lea    -0x410(%rbp),%rax
  lea    D29(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <popen@plt>
  mov    %rax,-0x418(%rbp)
  mov    -0x448(%rbp),%rcx
  mov    -0x440(%rbp),%rdx
  mov    -0x418(%rbp),%rax
  lea    D30(%rip),%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    -0x418(%rbp),%rax
  mov    %rax,%rdi
  call   <pclose@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L8
  call   <__stack_chk_fail@plt>
L8:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D21
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D1
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D8
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D29
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D30
type_infered: string

tool: D21: station_datatype

tool: D1: station,datatype

tool: D8: insert_statement.e table=%s field=%s | sql.e 2>&1 | grep -vi duplicate

tool: D29: w

tool: D30: %s|%s


assistant: ```c
void insert_station_datatype(char *application_name, char *station, char *oxygen_solubility_datatype) {
  char sys_string[1024];
  char *table_name;
  char *field_list_string;
  FILE *output_pipe;
  table_name = get_table_name(application_name, "station_datatype");
  field_list_string = "station,datatype";
  sprintf(sys_string, "insert_statement.e table=%s field=%s | sql.e 2>&1 | grep -vi duplicate", table_name, field_list_string);
  output_pipe = popen(sys_string, "w");
  fprintf(output_pipe, "%s|%s\n", station, oxygen_solubility_datatype);
  pclose(output_pipe);
}
```
user: Translate the below assembly code into C programming language:

```asm
<insert_station_datatype>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x410,%rsp
  mov    %rsi,%rbp
  mov    %rdx,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  lea    D6(%rip),%rsi
  call   <get_table_name@plt>
  mov    %rax,%rdx
  mov    %rsp,%rbx
  lea    D28(%rip),%rcx
  lea    D2(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  lea    D14(%rip),%rsi
  mov    %rbx,%rdi
  call   <popen@plt>
  mov    %rax,%rbx
  mov    %r12,%rcx
  mov    %rbp,%rdx
  lea    D27(%rip),%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    %rbx,%rdi
  call   <pclose@plt>
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0x410,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D6
type: string
name: extract_symbolic_data
arguments: data_label: D28
type: string
name: extract_symbolic_data
arguments: data_label: D2
type: string
name: extract_symbolic_data
arguments: data_label: D14
type: string
name: extract_symbolic_data
arguments: data_label: D27
type: string

tool: D6: station_datatype

tool: D28: station,datatype

tool: D2: insert_statement.e table=%s field=%s | sql.e 2>&1 | grep -vi duplicate

tool: D14: w

tool: D27: %s|%s


assistant: ```c
void insert_station_datatype(char *application_name, char *station, char *oxygen_solubility_datatype) {
  char sys_string[1024];
  char *table_name;
  char *field_list_string;
  FILE *output_pipe;
  table_name = get_table_name(application_name, "station_datatype");
  field_list_string = "station,datatype";
  sprintf(sys_string, "insert_statement.e table=%s field=%s | sql.e 2>&1 | grep -vi duplicate", table_name, field_list_string);
  output_pipe = popen(sys_string, "w");
  fprintf(output_pipe, "%s|%s\n", station, oxygen_solubility_datatype);
  pclose(output_pipe);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<insert_station_datatype>:
  endbr64
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rsi,%r12
  lea    D38(%rip),%rsi
  push   %rbp
  sub    $0x410,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbp
  call   <get_table_name@plt>
  lea    D31(%rip),%rcx
  mov    %rbp,%rdi
  lea    D7(%rip),%rsi
  mov    %rax,%rdx
  call   <sprintf@plt>
  mov    %rbp,%rdi
  lea    D11(%rip),%rsi
  call   <popen@plt>
  mov    %r13,%rcx
  mov    %r12,%rdx
  lea    D9(%rip),%rsi
  mov    %rax,%rbp
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  call   <pclose@plt>
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0x410,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D38
type: string
name: unpack_data
arguments: data_label: D31
type: string
name: unpack_data
arguments: data_label: D7
type: string
name: unpack_data
arguments: data_label: D11
type: string
name: unpack_data
arguments: data_label: D9
type: string

tool: D38: station_datatype

tool: D31: station,datatype

tool: D7: insert_statement.e table=%s field=%s | sql.e 2>&1 | grep -vi duplicate

tool: D11: w

tool: D9: %s|%s


assistant: ```c
void insert_station_datatype(char *application_name, char *station, char *oxygen_solubility_datatype) {
  char sys_string[1024];
  char *table_name;
  char *field_list_string;
  FILE *output_pipe;
  table_name = get_table_name(application_name, "station_datatype");
  field_list_string = "station,datatype";
  sprintf(sys_string, "insert_statement.e table=%s field=%s | sql.e 2>&1 | grep -vi duplicate", table_name, field_list_string);
  output_pipe = popen(sys_string, "w");
  fprintf(output_pipe, "%s|%s\n", station, oxygen_solubility_datatype);
  pclose(output_pipe);
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<insert_station_datatype>:
  endbr64
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rsi,%r12
  lea    D39(%rip),%rsi
  push   %rbp
  sub    $0x410,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbp
  call   <get_table_name@plt>
  lea    D13(%rip),%rcx
  mov    %rbp,%rdi
  lea    D14(%rip),%rsi
  mov    %rax,%rdx
  call   <sprintf@plt>
  mov    %rbp,%rdi
  lea    D2(%rip),%rsi
  call   <popen@plt>
  mov    %r13,%rcx
  mov    %r12,%rdx
  lea    D7(%rip),%rsi
  mov    %rax,%rbp
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  call   <pclose@plt>
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x410,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D39
datatype: string
name: parse_data
arguments: tag: D13
datatype: string
name: parse_data
arguments: tag: D14
datatype: string
name: parse_data
arguments: tag: D2
datatype: string
name: parse_data
arguments: tag: D7
datatype: string

tool: D39: station_datatype

tool: D13: station,datatype

tool: D14: insert_statement.e table=%s field=%s | sql.e 2>&1 | grep -vi duplicate

tool: D2: w

tool: D7: %s|%s


assistant: ```c
void insert_station_datatype(char *application_name, char *station, char *oxygen_solubility_datatype) {
  char sys_string[1024];
  char *table_name;
  char *field_list_string;
  FILE *output_pipe;
  table_name = get_table_name(application_name, "station_datatype");
  field_list_string = "station,datatype";
  sprintf(sys_string, "insert_statement.e table=%s field=%s | sql.e 2>&1 | grep -vi duplicate", table_name, field_list_string);
  output_pipe = popen(sys_string, "w");
  fprintf(output_pipe, "%s|%s\n", station, oxygen_solubility_datatype);
  pclose(output_pipe);
}
```