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

```asm
<test_pmaddubsw_c>:
  endbr64
  mov    $0x4,%r9d
  mov    %edx,%ecx
  shl    %cl,%r9d
  test   %r9d,%r9d
  jle    L11
  movslq %r9d,%r9
  xor    %edx,%edx
  nopl   0x0(%rax)
L4:
  movzbl (%rdi,%rdx,2),%ecx
  movsbl (%rsi,%rdx,2),%eax
  movzbl 0x1(%rdi,%rdx,2),%r8d
  imul   %ecx,%eax
  movsbl 0x1(%rsi,%rdx,2),%ecx
  imul   %r8d,%ecx
  add    %ecx,%eax
  mov    $0x7fff,%ecx
  cmp    %ecx,%eax
  cmovg  %ecx,%eax
  mov    $0xffff8000,%ecx
  cmp    %ecx,%eax
  cmovl  %ecx,%eax
  mov    %ax,(%rdi,%rdx,2)
  add    $0x1,%rdx
  cmp    %rdx,%r9
  jne    L4
L11:
  ret
```

assistant: ```c
void test_pmaddubsw_c(unsigned char *pDst, signed char *pSrc, int xmm) {
  int i;
  for (i = 0; i < (4 << xmm); i++) {
    int a = pSrc[2 * i] * pDst[2 * i] + pSrc[2 * i + 1] * pDst[2 * i + 1];
    ((signed short *)pDst)[i] = (((a) < -32768) ? -32768 : (((a) > 32767) ? 32767 : (a)));
  }
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<test_pmaddubsw_c>:
  endbr64
  mov    $0x4,%r9d
  mov    %edx,%ecx
  shl    %cl,%r9d
  test   %r9d,%r9d
  jle    L5
  movslq %r9d,%r9
  xor    %edx,%edx
  nopl   0x0(%rax)
L7:
  movzbl (%rdi,%rdx,2),%ecx
  movsbl (%rsi,%rdx,2),%eax
  movzbl 0x1(%rdi,%rdx,2),%r8d
  imul   %ecx,%eax
  movsbl 0x1(%rsi,%rdx,2),%ecx
  imul   %r8d,%ecx
  add    %ecx,%eax
  mov    $0x7fff,%ecx
  cmp    %ecx,%eax
  cmovg  %ecx,%eax
  mov    $0xffff8000,%ecx
  cmp    %ecx,%eax
  cmovl  %ecx,%eax
  mov    %ax,(%rdi,%rdx,2)
  add    $0x1,%rdx
  cmp    %r9,%rdx
  jne    L7
L5:
  ret
```

assistant: ```c
void test_pmaddubsw_c(unsigned char *pDst, signed char *pSrc, int xmm) {
  int i;
  for (i = 0; i < (4 << xmm); i++) {
    int a = pSrc[2 * i] * pDst[2 * i] + pSrc[2 * i + 1] * pDst[2 * i + 1];
    ((signed short *)pDst)[i] = (((a) < -32768) ? -32768 : (((a) > 32767) ? 32767 : (a)));
  }
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0xc(%rbp),%rcx
  lea    -0x10(%rbp),%rdx
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0xc(%rbp),%edx
  mov    -0x10(%rbp),%ecx
  mov    -0x14(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <min3@plt>
  mov    %eax,%esi
  mov    -0xc(%rbp),%ecx
  mov    -0x10(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    %esi,%r8d
  mov    %eax,%esi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L3
  call   <__stack_chk_fail@plt>
L3:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D16
data_type: string
name: parse_data
arguments: data_tag: D24
data_type: string
name: parse_data
arguments: data_tag: D1
data_type: string

tool: D16: a, b, c? 

tool: D24: %d %d %d

tool: D1: Min od (%d %d %d) je %d

assistant: ```c
main() {
  int a, b, c;
  printf("a, b, c? ");
  scanf("%d %d %d", &a, &b, &c);
  printf("Min od (%d %d %d) je %d", a, b, c, min3(a, b, c));
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    D1(%rip),%rdi
  call   <printf@plt>
  lea    0x14(%rsp),%rcx
  lea    0x10(%rsp),%rdx
  lea    0xc(%rsp),%rsi
  lea    D2(%rip),%rdi
  call   <scanf@plt>
  mov    0x14(%rsp),%edx
  mov    0x10(%rsp),%esi
  mov    0xc(%rsp),%edi
  call   <min3@plt>
  mov    %eax,%r8d
  mov    0x14(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    0xc(%rsp),%esi
  lea    D13(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  mov    $0x0,%eax
  add    $0x28,%rsp
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D1
datatype: string
name: retrieve_data
arguments: data_tag: D2
datatype: string
name: retrieve_data
arguments: data_tag: D13
datatype: string

tool: D1: a, b, c? 

tool: D2: %d %d %d

tool: D13: Min od (%d %d %d) je %d

assistant: ```c
main() {
  int a, b, c;
  printf("a, b, c? ");
  scanf("%d %d %d", &a, &b, &c);
  printf("Min od (%d %d %d) je %d", a, b, c, min3(a, b, c));
}
```
user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  sub    $0x28,%rsp
  lea    D17(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rcx
  lea    0x10(%rsp),%rdx
  lea    0xc(%rsp),%rsi
  lea    D20(%rip),%rdi
  call   <scanf@plt>
  mov    0x14(%rsp),%edx
  mov    0x10(%rsp),%esi
  mov    0xc(%rsp),%edi
  call   <min3@plt>
  mov    0x14(%rsp),%ecx
  mov    0x10(%rsp),%edx
  lea    D26(%rip),%rdi
  mov    0xc(%rsp),%esi
  mov    %eax,%r8d
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  xor    %eax,%eax
  add    $0x28,%rsp
  ret
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D17
type_infered: string
name: extract_symbolic_data
arguments: tag: D20
type_infered: string
name: extract_symbolic_data
arguments: tag: D26
type_infered: string

tool: D17: a, b, c? 

tool: D20: %d %d %d

tool: D26: Min od (%d %d %d) je %d

assistant: ```c
main() {
  int a, b, c;
  printf("a, b, c? ");
  scanf("%d %d %d", &a, &b, &c);
  printf("Min od (%d %d %d) je %d", a, b, c, min3(a, b, c));
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  sub    $0x28,%rsp
  lea    D14(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rcx
  lea    0x10(%rsp),%rdx
  lea    0xc(%rsp),%rsi
  lea    D18(%rip),%rdi
  call   <scanf@plt>
  mov    0x14(%rsp),%edx
  mov    0x10(%rsp),%esi
  mov    0xc(%rsp),%edi
  call   <min3@plt>
  mov    0x14(%rsp),%ecx
  mov    0x10(%rsp),%edx
  lea    D29(%rip),%rdi
  mov    0xc(%rsp),%esi
  mov    %eax,%r8d
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  xor    %eax,%eax
  add    $0x28,%rsp
  ret
L0:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D14
datatype: string
name: retrieve_data
arguments: label: D18
datatype: string
name: retrieve_data
arguments: label: D29
datatype: string

tool: D14: a, b, c? 

tool: D18: %d %d %d

tool: D29: Min od (%d %d %d) je %d

assistant: ```c
main() {
  int a, b, c;
  printf("a, b, c? ");
  scanf("%d %d %d", &a, &b, &c);
  printf("Min od (%d %d %d) je %d", a, b, c, min3(a, b, c));
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    $0x800000,%edi
  call   <malloc@plt>
  mov    %rax,%rbx
  mov    $0x400000,%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  mov    $0x0,%edx
L12:
  mov    %edx,%ecx
  imul   %edx,%ecx
  movslq %ecx,%rax
  imul   $0xffffffff84210843,%rax,%rax
  shr    $0x20,%rax
  add    %ecx,%eax
  sar    $0x4,%eax
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,(%rbx,%rdx,8)
  add    $0x1,%rdx
  cmp    $0x100000,%rdx
  jne    L12
  mov    $0x100000,%esi
  mov    %rbx,%rdi
  call   <example_function1@plt>
  movsd  %xmm0,(%rsp)
  mov    $0x0,%edx
L20:
  mov    %edx,%ecx
  imul   %edx,%ecx
  movslq %ecx,%rax
  imul   $0xffffffff84210843,%rax,%rax
  shr    $0x20,%rax
  add    %ecx,%eax
  sar    $0x4,%eax
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,(%rbx,%rdx,8)
  add    $0x1,%rdx
  cmp    $0x100000,%rdx
  jne    L20
  mov    $0x100000,%esi
  mov    %rbx,%rdi
  call   <example_static_function@plt>
  movsd  %xmm0,0x8(%rsp)
  mov    $0x0,%edx
L25:
  movslq %edx,%rax
  imul   $0x78787879,%rax,%rax
  sar    $0x23,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,%ecx
  shl    $0x4,%ecx
  add    %ecx,%eax
  mov    %edx,%ecx
  sub    %eax,%ecx
  mov    %ecx,0x0(%rbp,%rdx,4)
  add    $0x1,%rdx
  cmp    $0x100000,%rdx
  jne    L25
  mov    $0x100000,%esi
  mov    %rbp,%rdi
  call   <example_function2@plt>
  mov    %eax,%ebx
  cvttsd2si (%rsp),%esi
  lea    D19(%rip),%rdi
  call   <printf@plt>
  cvttsd2si 0x8(%rsp),%esi
  lea    D27(%rip),%rdi
  call   <printf@plt>
  mov    %ebx,%esi
  lea    D24(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: label: D19
datatype: string
name: retrieve_data
arguments: label: D27
datatype: string
name: retrieve_data
arguments: label: D24
datatype: string

tool: D19: sum double = %lf


tool: D27: static sum double = %lf


tool: D24: sum int = %d


assistant: ```c
int main(int argc, char **argv) {
  double *double_array = malloc(sizeof(double) * (1024 * 1024));
  int *int_array = malloc(sizeof(int) * (1024 * 1024));
  int i;
  for (i = 0; i < (1024 * 1024); i++) {
    double_array[i] = (i * i) / 31;
  }
  double sum_double = example_function1(double_array, (1024 * 1024));
  for (i = 0; i < (1024 * 1024); i++) {
    double_array[i] = (i * i) / 31;
  }
  double static_sum_double = example_static_function(double_array, (1024 * 1024));
  for (i = 0; i < (1024 * 1024); i++) {
    int_array[i] = i % 17;
  }
  int sum_int = example_function2(int_array, (1024 * 1024));
  printf("sum double = %lf\n", sum_double);
  printf("static sum double = %lf\n", static_sum_double);
  printf("sum int = %d\n", sum_int);
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  push   %r12
  mov    $0x800000,%edi
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  call   <malloc@plt>
  mov    $0x400000,%edi
  mov    %rax,%rbp
  call   <malloc@plt>
  xor    %ecx,%ecx
  mov    %rax,%r12
  nopl   0x0(%rax,%rax,1)
L11:
  mov    %ecx,%eax
  pxor   %xmm0,%xmm0
  imul   %ecx,%eax
  mov    %eax,%edx
  imul   $0x8421085,%rdx,%rdx
  shr    $0x20,%rdx
  sub    %edx,%eax
  shr    %eax
  add    %edx,%eax
  shr    $0x4,%eax
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,0x0(%rbp,%rcx,8)
  add    $0x1,%rcx
  cmp    $0x100000,%rcx
  jne    L11
  mov    $0x100000,%esi
  mov    %rbp,%rdi
  call   <example_function1@plt>
  xor    %ecx,%ecx
  movq   %xmm0,%rbx
  nopw   0x0(%rax,%rax,1)
L29:
  mov    %ecx,%eax
  pxor   %xmm0,%xmm0
  imul   %ecx,%eax
  mov    %eax,%edx
  imul   $0x8421085,%rdx,%rdx
  shr    $0x20,%rdx
  sub    %edx,%eax
  shr    %eax
  add    %edx,%eax
  shr    $0x4,%eax
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,0x0(%rbp,%rcx,8)
  add    $0x1,%rcx
  cmp    $0x100000,%rcx
  jne    L29
  mov    $0x100000,%esi
  mov    %rbp,%rdi
  call   <example_static_function@plt>
  xor    %edx,%edx
  mov    $0xf0f0f0f1,%esi
  nopw   0x0(%rax,%rax,1)
L24:
  mov    %edx,%eax
  imul   %rsi,%rax
  shr    $0x24,%rax
  mov    %eax,%ecx
  shl    $0x4,%ecx
  add    %ecx,%eax
  mov    %edx,%ecx
  sub    %eax,%ecx
  mov    %ecx,(%r12,%rdx,4)
  add    $0x1,%rdx
  cmp    $0x100000,%rdx
  jne    L24
  mov    %r12,%rdi
  mov    $0x100000,%esi
  movsd  %xmm0,0x8(%rsp)
  call   <example_function2@plt>
  movq   %rbx,%xmm1
  lea    D20(%rip),%rdi
  cvttsd2si %xmm1,%esi
  mov    %eax,%ebp
  call   <printf@plt>
  movsd  0x8(%rsp),%xmm0
  lea    D29(%rip),%rdi
  cvttsd2si %xmm0,%esi
  call   <printf@plt>
  mov    %ebp,%esi
  lea    D8(%rip),%rdi
  call   <printf@plt>
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

tool_calls: name: read_data
arguments: tag: D20
type: string
name: read_data
arguments: tag: D29
type: string
name: read_data
arguments: tag: D8
type: string

tool: D20: sum double = %lf


tool: D29: static sum double = %lf


tool: D8: sum int = %d


assistant: ```c
int main(int argc, char **argv) {
  double *double_array = malloc(sizeof(double) * (1024 * 1024));
  int *int_array = malloc(sizeof(int) * (1024 * 1024));
  int i;
  for (i = 0; i < (1024 * 1024); i++) {
    double_array[i] = (i * i) / 31;
  }
  double sum_double = example_function1(double_array, (1024 * 1024));
  for (i = 0; i < (1024 * 1024); i++) {
    double_array[i] = (i * i) / 31;
  }
  double static_sum_double = example_static_function(double_array, (1024 * 1024));
  for (i = 0; i < (1024 * 1024); i++) {
    int_array[i] = i % 17;
  }
  int sum_int = example_function2(int_array, (1024 * 1024));
  printf("sum double = %lf\n", sum_double);
  printf("static sum double = %lf\n", static_sum_double);
  printf("sum int = %d\n", sum_int);
  return 0;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<iterator_end>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <endmntent@plt>
  mov    -0x8(%rbp),%rax
  movq   $0x0,(%rax)
  nop
  leave
  ret
```

assistant: ```c
void iterator_end(FILE **fp) {
  endmntent(*fp);
  *fp = NULL;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<iterator_end>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  mov    (%rdi),%rdi
  call   <endmntent@plt>
  movq   $0x0,(%rbx)
  pop    %rbx
  ret
```

assistant: ```c
void iterator_end(FILE **fp) {
  endmntent(*fp);
  *fp = NULL;
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<iterator_end>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  mov    (%rdi),%rdi
  call   <endmntent@plt>
  movq   $0x0,(%rbx)
  pop    %rbx
  ret
```

assistant: ```c
void iterator_end(FILE **fp) {
  endmntent(*fp);
  *fp = NULL;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<iterator_end>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  mov    (%rdi),%rdi
  call   <endmntent@plt>
  movq   $0x0,(%rbx)
  pop    %rbx
  ret
```

assistant: ```c
void iterator_end(FILE **fp) {
  endmntent(*fp);
  *fp = NULL;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<crc32c_zeros>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %rdi,-0xb8(%rbp)
  mov    %rsi,-0xc0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    -0xc0(%rbp),%rdx
  lea    -0xa0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <crc32c_zeros_op@plt>
  movl   $0x0,-0xa4(%rbp)
  jmp    L15
L29:
  mov    -0xa4(%rbp),%edx
  lea    -0xa0(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <gf2_matrix_times@plt>
  mov    -0xb8(%rbp),%rdx
  mov    -0xa4(%rbp),%ecx
  movslq %ecx,%rcx
  mov    %eax,(%rdx,%rcx,4)
  mov    -0xa4(%rbp),%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0xb8(%rbp),%rax
  lea    0x400(%rax),%rbx
  lea    -0xa0(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <gf2_matrix_times@plt>
  mov    -0xa4(%rbp),%edx
  movslq %edx,%rdx
  mov    %eax,(%rbx,%rdx,4)
  mov    -0xa4(%rbp),%eax
  shl    $0x10,%eax
  mov    %eax,%edx
  mov    -0xb8(%rbp),%rax
  lea    0x800(%rax),%rbx
  lea    -0xa0(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <gf2_matrix_times@plt>
  mov    -0xa4(%rbp),%edx
  movslq %edx,%rdx
  mov    %eax,(%rbx,%rdx,4)
  mov    -0xa4(%rbp),%eax
  shl    $0x18,%eax
  mov    %eax,%edx
  mov    -0xb8(%rbp),%rax
  lea    0xc00(%rax),%rbx
  lea    -0xa0(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <gf2_matrix_times@plt>
  mov    -0xa4(%rbp),%edx
  movslq %edx,%rdx
  mov    %eax,(%rbx,%rdx,4)
  addl   $0x1,-0xa4(%rbp)
L15:
  cmpl   $0xff,-0xa4(%rbp)
  jle    L29
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L22
  call   <__stack_chk_fail@plt>
L22:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void crc32c_zeros(uint32_t zeros[][256], size_t len) {
  uint32_t n;
  uint32_t op[32];
  crc32c_zeros_op(op, len);
  for (n = 0; n < 256; n++) {
    zeros[0][n] = gf2_matrix_times(op, n);
    zeros[1][n] = gf2_matrix_times(op, n << 8);
    zeros[2][n] = gf2_matrix_times(op, n << 16);
    zeros[3][n] = gf2_matrix_times(op, n << 24);
  }
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<crc32c_zeros>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x90,%rsp
  mov    %rdi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdi
  call   <crc32c_zeros_op@plt>
  mov    $0x0,%ebx
  mov    %rsp,%r12
L19:
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <gf2_matrix_times@plt>
  mov    %eax,0x0(%rbp,%rbx,4)
  mov    %ebx,%esi
  shl    $0x8,%esi
  mov    %r12,%rdi
  call   <gf2_matrix_times@plt>
  mov    %eax,0x400(%rbp,%rbx,4)
  mov    %ebx,%esi
  shl    $0x10,%esi
  mov    %r12,%rdi
  call   <gf2_matrix_times@plt>
  mov    %eax,0x800(%rbp,%rbx,4)
  mov    %ebx,%esi
  shl    $0x18,%esi
  mov    %r12,%rdi
  call   <gf2_matrix_times@plt>
  mov    %eax,0xc00(%rbp,%rbx,4)
  add    $0x1,%rbx
  cmp    $0x100,%rbx
  jne    L19
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0x90,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L7:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void crc32c_zeros(uint32_t zeros[][256], size_t len) {
  uint32_t n;
  uint32_t op[32];
  crc32c_zeros_op(op, len);
  for (n = 0; n < 256; n++) {
    zeros[0][n] = gf2_matrix_times(op, n);
    zeros[1][n] = gf2_matrix_times(op, n << 8);
    zeros[2][n] = gf2_matrix_times(op, n << 16);
    zeros[3][n] = gf2_matrix_times(op, n << 24);
  }
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<crc32c_zeros>:
  endbr64
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x90,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r12
  mov    %r12,%rdi
  call   <crc32c_zeros_op@plt>
  nopw   0x0(%rax,%rax,1)
L1:
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <gf2_matrix_times@plt>
  mov    %ebx,%esi
  mov    %r12,%rdi
  mov    %eax,0x0(%rbp,%rbx,4)
  shl    $0x8,%esi
  call   <gf2_matrix_times@plt>
  mov    %ebx,%esi
  mov    %r12,%rdi
  mov    %eax,0x400(%rbp,%rbx,4)
  shl    $0x10,%esi
  call   <gf2_matrix_times@plt>
  mov    %ebx,%esi
  mov    %r12,%rdi
  mov    %eax,0x800(%rbp,%rbx,4)
  shl    $0x18,%esi
  call   <gf2_matrix_times@plt>
  mov    %eax,0xc00(%rbp,%rbx,4)
  add    $0x1,%rbx
  cmp    $0x100,%rbx
  jne    L1
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L10
  add    $0x90,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L10:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void crc32c_zeros(uint32_t zeros[][256], size_t len) {
  uint32_t n;
  uint32_t op[32];
  crc32c_zeros_op(op, len);
  for (n = 0; n < 256; n++) {
    zeros[0][n] = gf2_matrix_times(op, n);
    zeros[1][n] = gf2_matrix_times(op, n << 8);
    zeros[2][n] = gf2_matrix_times(op, n << 16);
    zeros[3][n] = gf2_matrix_times(op, n << 24);
  }
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<crc32c_zeros>:
  endbr64
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x90,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r12
  mov    %r12,%rdi
  call   <crc32c_zeros_op@plt>
  nopw   0x0(%rax,%rax,1)
L0:
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <gf2_matrix_times@plt>
  mov    %ebx,%esi
  mov    %r12,%rdi
  mov    %eax,0x0(%rbp,%rbx,4)
  shl    $0x8,%esi
  call   <gf2_matrix_times@plt>
  mov    %ebx,%esi
  mov    %r12,%rdi
  mov    %eax,0x400(%rbp,%rbx,4)
  shl    $0x10,%esi
  call   <gf2_matrix_times@plt>
  mov    %ebx,%esi
  mov    %r12,%rdi
  mov    %eax,0x800(%rbp,%rbx,4)
  shl    $0x18,%esi
  call   <gf2_matrix_times@plt>
  mov    %eax,0xc00(%rbp,%rbx,4)
  add    $0x1,%rbx
  cmp    $0x100,%rbx
  jne    L0
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L17
  add    $0x90,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L17:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void crc32c_zeros(uint32_t zeros[][256], size_t len) {
  uint32_t n;
  uint32_t op[32];
  crc32c_zeros_op(op, len);
  for (n = 0; n < 256; n++) {
    zeros[0][n] = gf2_matrix_times(op, n);
    zeros[1][n] = gf2_matrix_times(op, n << 8);
    zeros[2][n] = gf2_matrix_times(op, n << 16);
    zeros[3][n] = gf2_matrix_times(op, n << 24);
  }
}
```
user: What is the c source code of the assembly code below:

```asm
<plane_down>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  mov    %rdi,-0x10(%rbp)
  mov    %esi,-0x14(%rbp)
  mov    %edx,-0x18(%rbp)
  mov    %rcx,-0x20(%rbp)
  mov    %r8,-0x28(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  divsd  %xmm1,%xmm0
  movapd %xmm0,%xmm4
  mov    $0x0,%ebx
  jmp    L14
L33:
  movslq %ebx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movslq %ebx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movapd %xmm4,%xmm2
  mulsd  %xmm2,%xmm1
  movslq %ebx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%ebx
L14:
  cmp    -0x14(%rbp),%ebx
  jl     L33
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%ebx
  jmp    L24
L10:
  movslq %ebx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movslq %ebx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movapd %xmm4,%xmm3
  mulsd  %xmm3,%xmm1
  movslq %ebx,%rax
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%ebx
L24:
  cmp    -0x18(%rbp),%ebx
  jle    L10
  nop
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void plane_down(double elim_eqn[], int ivar, int idim, double old_plane[], double new_plane[]) {
  register double crit;
  register int i;
  crit = old_plane[ivar] / elim_eqn[ivar];
  for (i = 0; i < ivar; i++) {
    new_plane[i] = old_plane[i] - elim_eqn[i] * crit;
  }
  for (i = ivar + 1; i <= idim; i++) {
    new_plane[i - 1] = old_plane[i] - elim_eqn[i] * crit;
  }
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<plane_down>:
  endbr64
  mov    %esi,%eax
  mov    %edx,%esi
  movslq %eax,%rdx
  movsd  (%rcx,%rdx,8),%xmm1
  divsd  (%rdi,%rdx,8),%xmm1
  test   %eax,%eax
  jle    L25
  mov    %eax,%r9d
  mov    $0x0,%edx
L29:
  movapd %xmm1,%xmm2
  mulsd  (%rdi,%rdx,8),%xmm2
  movsd  (%rcx,%rdx,8),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%r8,%rdx,8)
  add    $0x1,%rdx
  cmp    %r9,%rdx
  jne    L29
L25:
  add    $0x1,%eax
  cmp    %esi,%eax
  jg     L26
  cltq
L17:
  movapd %xmm1,%xmm2
  mulsd  (%rdi,%rax,8),%xmm2
  movsd  (%rcx,%rax,8),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,-0x8(%r8,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%esi
  jge    L17
L26:
  ret
```

assistant: ```c
void plane_down(double elim_eqn[], int ivar, int idim, double old_plane[], double new_plane[]) {
  register double crit;
  register int i;
  crit = old_plane[ivar] / elim_eqn[ivar];
  for (i = 0; i < ivar; i++) {
    new_plane[i] = old_plane[i] - elim_eqn[i] * crit;
  }
  for (i = ivar + 1; i <= idim; i++) {
    new_plane[i - 1] = old_plane[i] - elim_eqn[i] * crit;
  }
}
```