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

```asm
<create_notice_katcp>:
  endbr64
  xor    %ecx,%ecx
  jmp    1050 <create_parse_notice_katcp@plt>
```

assistant: ```c
struct katcp_notice *create_notice_katcp(struct katcp_dispatch *d, char *name, unsigned int tag) {
  struct katcp_notice *n;
  n = create_parse_notice_katcp(d, name, tag, NULL);
  if (n == NULL) {
    return NULL;
  }
  return n;
}
```
user: What is the c source code of the assembly code below:

```asm
<EratosthenesSieve>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  movl   $0x0,-0xc(%rbp)
  mov    -0x24(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L59
L35:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x1,(%rax)
  addl   $0x1,-0x14(%rbp)
L59:
  mov    -0x24(%rbp),%eax
  lea    -0x2(%rax),%edx
  mov    -0x14(%rbp),%eax
  cmp    %eax,%edx
  ja     L35
  movl   $0x2,-0x14(%rbp)
  jmp    L32
L41:
  mov    -0x14(%rbp),%eax
  cltq
  lea    -0x2(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x1,%al
  jne    L57
  movl   $0x0,-0xc(%rbp)
  mov    -0x14(%rbp),%eax
  mov    $0x2,%esi
  mov    %eax,%edi
  call   <pow@plt>
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  imul   -0x14(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x10(%rbp)
  jmp    L31
L39:
  mov    -0x10(%rbp),%eax
  cltq
  lea    -0x2(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  addl   $0x1,-0xc(%rbp)
  mov    -0x14(%rbp),%eax
  mov    $0x2,%esi
  mov    %eax,%edi
  call   <pow@plt>
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  imul   -0x14(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x10(%rbp)
L31:
  mov    -0x10(%rbp),%eax
  cmp    %eax,-0x24(%rbp)
  ja     L39
L57:
  addl   $0x1,-0x14(%rbp)
L32:
  mov    -0x24(%rbp),%eax
  mov    %eax,%edi
  call   <sqrt@plt>
  cmp    %eax,-0x14(%rbp)
  jl     L41
  mov    -0x8(%rbp),%rax
  leave
  ret
```

assistant: ```c
char *EratosthenesSieve(unsigned int num) {
  int i = 0, j = 0, k = 0;
  char *sieve = malloc((num - 2) * sizeof *sieve);
  for (i = 0; i < (num - 2); i++) {
    sieve[i] = 1;
  }
  for (i = 2; i < sqrt(num); i++) {
    if (sieve[i - 2] == 1) {
      k = 0;
      j = (pow(i, 2) + k * i);
      while (j < num) {
        sieve[j - 2] = 0;
        k++;
        j = (pow(i, 2) + k * i);
      }
    }
  }
  return sieve;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<EratosthenesSieve>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %edi,%ebp
  lea    -0x2(%rdi),%ebx
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    %rax,%r12
  test   %ebx,%ebx
  je     L72
  lea    -0x2(%rbp),%edx
  add    %rax,%rdx
L11:
  movb   $0x1,(%rax)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L11
L72:
  mov    $0x2,%ebx
  jmp    L73
L32:
  add    $0x1,%rbx
L73:
  mov    %ebx,%r15d
  mov    %ebx,%r14d
  mov    %ebp,%edi
  call   <sqrt@plt>
  cmp    %ebx,%eax
  jle    L33
  cmpb   $0x1,-0x2(%r12,%rbx,1)
  jne    L32
  mov    $0x2,%esi
  mov    %r14d,%edi
  call   <pow@plt>
  cmp    %eax,%ebp
  jbe    L32
  mov    %r15d,%r13d
L36:
  cltq
  movb   $0x0,-0x2(%r12,%rax,1)
  mov    $0x2,%esi
  mov    %r14d,%edi
  call   <pow@plt>
  add    %r13d,%eax
  add    %r15d,%r13d
  cmp    %ebp,%eax
  jb     L36
  jmp    L32
L33:
  mov    %r12,%rax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
char *EratosthenesSieve(unsigned int num) {
  int i = 0, j = 0, k = 0;
  char *sieve = malloc((num - 2) * sizeof *sieve);
  for (i = 0; i < (num - 2); i++) {
    sieve[i] = 1;
  }
  for (i = 2; i < sqrt(num); i++) {
    if (sieve[i - 2] == 1) {
      k = 0;
      j = (pow(i, 2) + k * i);
      while (j < num) {
        sieve[j - 2] = 0;
        k++;
        j = (pow(i, 2) + k * i);
      }
    }
  }
  return sieve;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<EratosthenesSieve>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  lea    -0x2(%rdi),%ebx
  mov    %ebx,%edi
  sub    $0x8,%rsp
  call   <malloc@plt>
  mov    %rax,%r12
  test   %ebx,%ebx
  je     L57
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <memset@plt>
L57:
  mov    $0x2,%ebx
  jmp    L9
  nopl   0x0(%rax,%rax,1)
L65:
  cmpb   $0x1,-0x2(%r12,%rbx,1)
  je     L25
L62:
  add    $0x1,%rbx
L9:
  mov    %ebp,%edi
  mov    %ebx,%r13d
  mov    %ebx,%r14d
  call   <sqrt@plt>
  cmp    %ebx,%eax
  jg     L65
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L25:
  mov    $0x2,%esi
  mov    %r13d,%edi
  call   <pow@plt>
  cmp    %eax,%ebp
  jbe    L62
  mov    %ebx,%r15d
  nopl   0x0(%rax)
L16:
  cltq
  mov    $0x2,%esi
  mov    %r14d,%edi
  movb   $0x0,-0x2(%r12,%rax,1)
  call   <pow@plt>
  add    %r15d,%eax
  add    %r13d,%r15d
  cmp    %ebp,%eax
  jb     L16
  jmp    L62
```

assistant: ```c
char *EratosthenesSieve(unsigned int num) {
  int i = 0, j = 0, k = 0;
  char *sieve = malloc((num - 2) * sizeof *sieve);
  for (i = 0; i < (num - 2); i++) {
    sieve[i] = 1;
  }
  for (i = 2; i < sqrt(num); i++) {
    if (sieve[i - 2] == 1) {
      k = 0;
      j = (pow(i, 2) + k * i);
      while (j < num) {
        sieve[j - 2] = 0;
        k++;
        j = (pow(i, 2) + k * i);
      }
    }
  }
  return sieve;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<EratosthenesSieve>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  lea    -0x2(%rdi),%ebx
  mov    %ebx,%edi
  sub    $0x8,%rsp
  call   <malloc@plt>
  mov    %rax,%r12
  test   %ebx,%ebx
  je     L3
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <memset@plt>
L3:
  mov    $0x2,%ebx
  jmp    L48
  nopl   0x0(%rax,%rax,1)
L69:
  cmpb   $0x1,-0x2(%r12,%rbx,1)
  je     L52
L15:
  add    $0x1,%rbx
L48:
  mov    %ebp,%edi
  mov    %ebx,%r13d
  mov    %ebx,%r14d
  call   <sqrt@plt>
  cmp    %ebx,%eax
  jg     L69
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L52:
  mov    $0x2,%esi
  mov    %r13d,%edi
  call   <pow@plt>
  cmp    %eax,%ebp
  jbe    L15
  mov    %ebx,%r15d
  nopl   0x0(%rax)
L16:
  cltq
  mov    $0x2,%esi
  mov    %r14d,%edi
  movb   $0x0,-0x2(%r12,%rax,1)
  call   <pow@plt>
  add    %r15d,%eax
  add    %r13d,%r15d
  cmp    %ebp,%eax
  jb     L16
  jmp    L15
```

assistant: ```c
char *EratosthenesSieve(unsigned int num) {
  int i = 0, j = 0, k = 0;
  char *sieve = malloc((num - 2) * sizeof *sieve);
  for (i = 0; i < (num - 2); i++) {
    sieve[i] = 1;
  }
  for (i = 2; i < sqrt(num); i++) {
    if (sieve[i - 2] == 1) {
      k = 0;
      j = (pow(i, 2) + k * i);
      while (j < num) {
        sieve[j - 2] = 0;
        k++;
        j = (pow(i, 2) + k * i);
      }
    }
  }
  return sieve;
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<mystrcpy>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  movl   $0x0,-0x14(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %dl,(%rax)
  jmp    L18
L8:
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x14(%rbp)
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    -0x14(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
L18:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L8
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  movzbl (%rbx),%eax
  mov    %al,(%rdx)
  mov    -0x28(%rbp),%rax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
char *mystrcpy(char *dest, const char *src) {
  int i = 0;
  *dest = *src;
  while (*(src + i))
    *(dest + i) = *(src + i++);
  *(dest + strlen(src)) = *(src + strlen(src));
  return dest;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<mystrcpy>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbp
  mov    %rsi,%rbx
  movzbl (%rsi),%eax
  mov    %al,(%rdi)
  movzbl (%rsi),%edx
  test   %dl,%dl
  je     L5
  mov    $0x1,%eax
L2:
  mov    %dl,0x0(%rbp,%rax,1)
  add    $0x1,%rax
  movzbl -0x1(%rbx,%rax,1),%edx
  test   %dl,%dl
  jne    L2
L5:
  mov    %rbx,%rdi
  call   <strlen@plt>
  movslq %eax,%r12
  add    %rbx,%r12
  mov    %rbx,%rdi
  call   <strlen@plt>
  movzbl (%r12),%edx
  cltq
  mov    %dl,0x0(%rbp,%rax,1)
  mov    %rbp,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
char *mystrcpy(char *dest, const char *src) {
  int i = 0;
  *dest = *src;
  while (*(src + i))
    *(dest + i) = *(src + i++);
  *(dest + strlen(src)) = *(src + strlen(src));
  return dest;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<mystrcpy>:
  endbr64
  movzbl (%rsi),%edx
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %dl,(%rdi)
  test   %dl,%dl
  je     L16
  mov    $0x1,%eax
  nopl   0x0(%rax)
L14:
  mov    %dl,(%r12,%rax,1)
  add    $0x1,%rax
  movzbl -0x1(%rbp,%rax,1),%edx
  test   %dl,%dl
  jne    L14
L16:
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %rbp,%rdi
  movslq %eax,%rbx
  call   <strlen@plt>
  add    %rbp,%rbx
  movzbl (%rbx),%edx
  cltq
  pop    %rbx
  pop    %rbp
  mov    %dl,(%r12,%rax,1)
  mov    %r12,%rax
  pop    %r12
  ret
```

assistant: ```c
char *mystrcpy(char *dest, const char *src) {
  int i = 0;
  *dest = *src;
  while (*(src + i))
    *(dest + i) = *(src + i++);
  *(dest + strlen(src)) = *(src + strlen(src));
  return dest;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<mystrcpy>:
  endbr64
  movzbl (%rsi),%edx
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %dl,(%rdi)
  test   %dl,%dl
  je     L1
  mov    $0x1,%eax
  nopl   0x0(%rax)
L17:
  mov    %dl,(%r12,%rax,1)
  add    $0x1,%rax
  movzbl -0x1(%rbp,%rax,1),%edx
  test   %dl,%dl
  jne    L17
L1:
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %rbp,%rdi
  movslq %eax,%rbx
  call   <strlen@plt>
  add    %rbp,%rbx
  movzbl (%rbx),%edx
  cltq
  pop    %rbx
  pop    %rbp
  mov    %dl,(%r12,%rax,1)
  mov    %r12,%rax
  pop    %r12
  ret
```

assistant: ```c
char *mystrcpy(char *dest, const char *src) {
  int i = 0;
  *dest = *src;
  while (*(src + i))
    *(dest + i) = *(src + i++);
  *(dest + strlen(src)) = *(src + strlen(src));
  return dest;
}
```
user: 这段汇编代码用C语言表示是什么样的:

```asm
<function>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x4(%rbp)
  mov    -0x4(%rbp),%edx
  movslq %edx,%rax
  imul   $0x51eb851f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x7,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x190,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  test   %eax,%eax
  jne    L56
  mov    $0x1d,%eax
  jmp    L24
L56:
  mov    -0x4(%rbp),%edx
  movslq %edx,%rax
  imul   $0x51eb851f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x5,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x64,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  test   %eax,%eax
  jne    L55
  mov    $0x1c,%eax
  jmp    L24
L55:
  mov    -0x4(%rbp),%eax
  and    $0x3,%eax
  test   %eax,%eax
  jne    L29
  mov    $0x1d,%eax
  jmp    L24
L29:
  mov    $0x1c,%eax
L24:
  pop    %rbp
  ret
```

assistant: ```c
int function(int x) {
  if (x % 400 == 0) {
    return 29;
  } else if (x % 100 == 0) {
    return 28;
  } else if (x % 4 == 0) {
    return 29;
  } else {
    return 28;
  }
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<function>:
  endbr64
  movslq %edi,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x27,%rdx
  mov    %edi,%eax
  sar    $0x1f,%eax
  sub    %eax,%edx
  imul   $0x190,%edx,%edx
  mov    $0x1d,%eax
  cmp    %edx,%edi
  je     L10
  movslq %edi,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x25,%rdx
  mov    %edi,%eax
  sar    $0x1f,%eax
  sub    %eax,%edx
  imul   $0x64,%edx,%edx
  mov    $0x1c,%eax
  cmp    %edx,%edi
  je     L10
  mov    %edi,%eax
  and    $0x3,%eax
  cmp    $0x1,%eax
  mov    $0x1c,%eax
  adc    $0x0,%eax
L10:
  ret
```

assistant: ```c
int function(int x) {
  if (x % 400 == 0) {
    return 29;
  } else if (x % 100 == 0) {
    return 28;
  } else if (x % 4 == 0) {
    return 29;
  } else {
    return 28;
  }
}
```
user: What is the c source code of the assembly code below?

```asm
<function>:
  endbr64
  imul   $0xc28f5c29,%edi,%edx
  mov    $0x1d,%eax
  add    $0x51eb850,%edx
  mov    %edx,%ecx
  ror    $0x4,%ecx
  cmp    $0xa3d70a,%ecx
  jbe    L10
  ror    $0x2,%edx
  mov    $0x1c,%eax
  cmp    $0x28f5c28,%edx
  jbe    L10
  mov    %edi,%eax
  and    $0x3,%eax
  cmp    $0x1,%eax
  mov    $0x1c,%eax
  adc    $0x0,%eax
L10:
  ret
```

assistant: ```c
int function(int x) {
  if (x % 400 == 0) {
    return 29;
  } else if (x % 100 == 0) {
    return 28;
  } else if (x % 4 == 0) {
    return 29;
  } else {
    return 28;
  }
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<function>:
  endbr64
  imul   $0xc28f5c29,%edi,%edx
  mov    $0x1d,%eax
  add    $0x51eb850,%edx
  mov    %edx,%ecx
  ror    $0x4,%ecx
  cmp    $0xa3d70a,%ecx
  jbe    L1
  ror    $0x2,%edx
  mov    $0x1c,%eax
  cmp    $0x28f5c28,%edx
  jbe    L1
  mov    %edi,%eax
  and    $0x3,%eax
  cmp    $0x1,%eax
  mov    $0x1c,%eax
  adc    $0x0,%eax
L1:
  ret
```

assistant: ```c
int function(int x) {
  if (x % 400 == 0) {
    return 29;
  } else if (x % 100 == 0) {
    return 28;
  } else if (x % 4 == 0) {
    return 29;
  } else {
    return 28;
  }
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<rintl>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  fldt   0x10(%rbp)
  frndint
  fstpt  0x10(%rbp)
  fldt   0x10(%rbp)
  pop    %rbp
  ret
```

assistant: ```c
long double rintl(long double x) {
  __asm__("frndint" : "+t"(x));
  return x;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<rintl>:
  endbr64
  fldt   0x8(%rsp)
  frndint
  ret
```

assistant: ```c
long double rintl(long double x) {
  __asm__("frndint" : "+t"(x));
  return x;
}
```
user: What is the c source code of the assembly code below:

```asm
<rintl>:
  endbr64
  fldt   0x8(%rsp)
  frndint
  ret
```

assistant: ```c
long double rintl(long double x) {
  __asm__("frndint" : "+t"(x));
  return x;
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<rintl>:
  endbr64
  fldt   0x8(%rsp)
  frndint
  ret
```

assistant: ```c
long double rintl(long double x) {
  __asm__("frndint" : "+t"(x));
  return x;
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<CE_pHCO3_P>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  movsd  %xmm0,-0x18(%rbp)
  movsd  %xmm1,-0x20(%rbp)
  movsd  %xmm2,-0x28(%rbp)
  movsd  %xmm3,-0x30(%rbp)
  movsd  %xmm4,-0x38(%rbp)
  movsd  %xmm5,-0x40(%rbp)
  movsd  D39(%rip),%xmm0
  subsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  mov    D18(%rip),%rax
  mov    %edx,%edi
  movq   %rax,%xmm0
  call   <pow@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  divsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x40(%rbp),%rax
  mov    $0x2,%edi
  movq   %rax,%xmm0
  call   <pow@plt>
  movapd %xmm0,%xmm1
  movsd  -0x28(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x40(%rbp),%rax
  mov    $0x4,%edi
  movq   %rax,%xmm0
  call   <pow@plt>
  movapd %xmm0,%xmm1
  movsd  -0x30(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x40(%rbp),%rax
  mov    $0x2,%edi
  movq   %rax,%xmm0
  call   <pow@plt>
  movapd %xmm0,%xmm1
  movsd  -0x38(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movq   D19(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  mulsd  -0x28(%rbp),%xmm0
  mulsd  -0x30(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x10(%rbp),%xmm1
  movsd  -0x20(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x38(%rbp),%xmm1
  mulsd  -0x28(%rbp),%xmm1
  movapd %xmm1,%xmm2
  mulsd  -0x30(%rbp),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  -0x28(%rbp),%xmm0
  mulsd  -0x30(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movq   D19(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  divsd  -0x28(%rbp),%xmm0
  divsd  -0x30(%rbp),%xmm0
  divsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x8(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D39
data_type: byte[8]
name: disassemble_data
arguments: data_label: D18
data_type: byte[8]
name: disassemble_data
arguments: data_label: D19
data_type: byte[8]

tool: {"D39": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

tool: {"D18": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x40]}

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

assistant: ```c
double CE_pHCO3_P(double pH, double CO3, double K1, double K2, double Kw, double f) {
  double H3O, t0;
  H3O = pow(10, (3 - pH)) / f;
  K1 = K1 / pow(f, 2);
  K2 = K2 / pow(f, 4);
  Kw = Kw / pow(f, 2);
  t0 = -(-CO3 * K1 * K2 * H3O + CO3 * H3O * H3O * H3O - Kw * K1 * K2 + K1 * K2 * H3O * H3O) / K1 / K2 / H3O;
  return t0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<CE_pHCO3_P>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  movapd %xmm0,%xmm6
  movq   %xmm1,%rbx
  movq   %xmm2,%r13
  movq   %xmm3,%r12
  movq   %xmm4,%rbp
  movq   %xmm5,%r14
  movsd  D1(%rip),%xmm0
  subsd  %xmm6,%xmm0
  cvttsd2si %xmm0,%edi
  movsd  D27(%rip),%xmm0
  call   <pow@plt>
  movapd %xmm0,%xmm7
  movq   %r14,%xmm0
  divsd  %xmm0,%xmm7
  movsd  %xmm7,0x8(%rsp)
  mov    $0x2,%edi
  call   <pow@plt>
  movq   %r13,%xmm6
  divsd  %xmm0,%xmm6
  movsd  %xmm6,0x10(%rsp)
  mov    $0x4,%edi
  movq   %r14,%xmm0
  call   <pow@plt>
  movq   %r12,%xmm4
  divsd  %xmm0,%xmm4
  movsd  %xmm4,0x18(%rsp)
  mov    $0x2,%edi
  movq   %r14,%xmm0
  call   <pow@plt>
  movapd %xmm0,%xmm3
  movq   D8(%rip),%xmm1
  movq   %rbx,%xmm2
  xorpd  %xmm1,%xmm2
  movsd  0x10(%rsp),%xmm6
  mulsd  %xmm6,%xmm2
  movsd  0x18(%rsp),%xmm4
  mulsd  %xmm4,%xmm2
  movsd  0x8(%rsp),%xmm7
  mulsd  %xmm7,%xmm2
  movq   %rbx,%xmm0
  mulsd  %xmm7,%xmm0
  mulsd  %xmm7,%xmm0
  mulsd  %xmm7,%xmm0
  addsd  %xmm0,%xmm2
  movq   %rbp,%xmm0
  divsd  %xmm3,%xmm0
  mulsd  %xmm6,%xmm0
  mulsd  %xmm4,%xmm0
  subsd  %xmm0,%xmm2
  movapd %xmm6,%xmm0
  mulsd  %xmm4,%xmm0
  mulsd  %xmm7,%xmm0
  mulsd  %xmm7,%xmm0
  addsd  %xmm2,%xmm0
  xorpd  %xmm1,%xmm0
  divsd  %xmm6,%xmm0
  divsd  %xmm4,%xmm0
  divsd  %xmm7,%xmm0
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D1
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D27
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D8
type_guessed: byte[8]

tool: {"D1": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

tool: {"D27": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x40]}

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

assistant: ```c
double CE_pHCO3_P(double pH, double CO3, double K1, double K2, double Kw, double f) {
  double H3O, t0;
  H3O = pow(10, (3 - pH)) / f;
  K1 = K1 / pow(f, 2);
  K2 = K2 / pow(f, 4);
  Kw = Kw / pow(f, 2);
  t0 = -(-CO3 * K1 * K2 * H3O + CO3 * H3O * H3O * H3O - Kw * K1 * K2 + K1 * K2 * H3O * H3O) / K1 / K2 / H3O;
  return t0;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<CE_pHCO3_P>:
  endbr64
  sub    $0x48,%rsp
  movapd %xmm0,%xmm6
  movsd  D13(%rip),%xmm0
  movsd  %xmm1,0x38(%rsp)
  subsd  %xmm6,%xmm0
  movsd  %xmm4,0x28(%rsp)
  movsd  %xmm3,0x30(%rsp)
  movsd  %xmm2,0x10(%rsp)
  cvttsd2si %xmm0,%edi
  movsd  D0(%rip),%xmm0
  movsd  %xmm5,0x8(%rsp)
  call   <pow@plt>
  movsd  0x8(%rsp),%xmm5
  mov    $0x2,%edi
  movapd %xmm0,%xmm6
  divsd  %xmm5,%xmm6
  movapd %xmm5,%xmm0
  movsd  %xmm6,0x20(%rsp)
  call   <pow@plt>
  movsd  0x10(%rsp),%xmm2
  movsd  0x8(%rsp),%xmm5
  mov    $0x4,%edi
  divsd  %xmm0,%xmm2
  movapd %xmm5,%xmm0
  movsd  %xmm5,0x10(%rsp)
  movsd  %xmm2,0x18(%rsp)
  call   <pow@plt>
  movsd  0x30(%rsp),%xmm3
  movsd  0x10(%rsp),%xmm5
  mov    $0x2,%edi
  divsd  %xmm0,%xmm3
  movapd %xmm5,%xmm0
  movsd  %xmm3,0x8(%rsp)
  call   <pow@plt>
  movsd  0x28(%rsp),%xmm4
  movsd  0x38(%rsp),%xmm1
  movapd %xmm0,%xmm7
  movq   D19(%rip),%xmm0
  movsd  0x20(%rsp),%xmm6
  divsd  %xmm7,%xmm4
  movsd  0x18(%rsp),%xmm2
  movapd %xmm1,%xmm5
  movsd  0x8(%rsp),%xmm3
  mulsd  %xmm6,%xmm1
  xorpd  %xmm0,%xmm5
  add    $0x48,%rsp
  mulsd  %xmm2,%xmm5
  mulsd  %xmm6,%xmm1
  mulsd  %xmm3,%xmm5
  mulsd  %xmm6,%xmm1
  mulsd  %xmm6,%xmm5
  addsd  %xmm1,%xmm5
  movapd %xmm2,%xmm1
  mulsd  %xmm3,%xmm1
  mulsd  %xmm6,%xmm1
  mulsd  %xmm2,%xmm4
  mulsd  %xmm6,%xmm1
  mulsd  %xmm3,%xmm4
  subsd  %xmm4,%xmm5
  addsd  %xmm1,%xmm5
  xorpd  %xmm5,%xmm0
  divsd  %xmm2,%xmm0
  divsd  %xmm3,%xmm0
  divsd  %xmm6,%xmm0
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D13
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D0
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D19
type_guessed: byte[8]

tool: {"D13": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

tool: {"D0": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x40]}

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

assistant: ```c
double CE_pHCO3_P(double pH, double CO3, double K1, double K2, double Kw, double f) {
  double H3O, t0;
  H3O = pow(10, (3 - pH)) / f;
  K1 = K1 / pow(f, 2);
  K2 = K2 / pow(f, 4);
  Kw = Kw / pow(f, 2);
  t0 = -(-CO3 * K1 * K2 * H3O + CO3 * H3O * H3O * H3O - Kw * K1 * K2 + K1 * K2 * H3O * H3O) / K1 / K2 / H3O;
  return t0;
}
```