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

```asm
<old_arr3alloc>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  lea    0x0(,%rbp,8),%edi
  mov    %ecx,%ebx
  sub    $0x18,%rsp
  call   <malloc@plt>
  mov    %rax,0x8(%rsp)
  test   %ebp,%ebp
  jle    L0
  mov    %rax,%r15
  lea    (%rax,%rbp,8),%rax
  lea    0x0(,%r12,8),%r14d
  shl    $0x2,%ebx
  mov    %rax,(%rsp)
  lea    -0x1(%r12),%eax
  lea    0x8(,%rax,8),%rbp
  nopl   0x0(%rax)
L34:
  mov    %r14d,%edi
  call   <malloc@plt>
  mov    %rax,(%r15)
  test   %r12d,%r12d
  jle    L29
  xor    %r13d,%r13d
  nopl   0x0(%rax,%rax,1)
L18:
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    (%r15),%rdx
  mov    %rax,(%rdx,%r13,1)
  add    $0x8,%r13
  cmp    %r13,%rbp
  jne    L18
L29:
  add    $0x8,%r15
  cmp    (%rsp),%r15
  jne    L34
L0:
  mov    0x8(%rsp),%rax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void ***old_arr3alloc(const int size, const int n1, const int n2, const int n3) {
  int i, j;
  int ***aa;
  aa = (int ***)malloc(n1 * sizeof(int **));
  for (i = 0; i < n1; i++) {
    aa[i] = (int **)malloc(n2 * sizeof(int *));
    for (j = 0; j < n2; j++)
      aa[i][j] = (int *)malloc(n3 * sizeof(size));
  }
  return (void ***)aa;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<slp_dtime>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x20(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <gettimeofday@plt>
  mov    -0x18(%rbp),%rax
  pxor   %xmm1,%xmm1
  cvtsi2sd %rax,%xmm1
  mov    -0x20(%rbp),%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  movsd  D0(%rip),%xmm2
  divsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L8
  call   <__stack_chk_fail@plt>
L8:
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D0
type: f64

tool: D0: 1000000

assistant: ```c
double slp_dtime(void) {
  struct timeval tv;
  gettimeofday(&tv, (struct timezone *)0);
  return ((double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0));
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<slp_dtime>:
  endbr64
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdi
  mov    $0x0,%esi
  call   <gettimeofday@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sdq (%rsp),%xmm0
  divsd  D1(%rip),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdq 0x8(%rsp),%xmm1
  addsd  %xmm1,%xmm0
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0x28,%rsp
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D1
type_infered: f64

tool: D1: 1000000

assistant: ```c
double slp_dtime(void) {
  struct timeval tv;
  gettimeofday(&tv, (struct timezone *)0);
  return ((double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0));
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<slp_dtime>:
  endbr64
  sub    $0x28,%rsp
  xor    %esi,%esi
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdi
  call   <gettimeofday@plt>
  pxor   %xmm1,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdq 0x8(%rsp),%xmm1
  cvtsi2sdq (%rsp),%xmm0
  divsd  D5(%rip),%xmm0
  addsd  %xmm1,%xmm0
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0x28,%rsp
  ret
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D5
datatype: f64

tool: D5: 1000000

assistant: ```c
double slp_dtime(void) {
  struct timeval tv;
  gettimeofday(&tv, (struct timezone *)0);
  return ((double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0));
}
```
user: What is the c source code of the assembly code below?

```asm
<slp_dtime>:
  endbr64
  sub    $0x28,%rsp
  xor    %esi,%esi
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdi
  call   <gettimeofday@plt>
  pxor   %xmm1,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdq 0x8(%rsp),%xmm1
  cvtsi2sdq (%rsp),%xmm0
  divsd  D0(%rip),%xmm0
  addsd  %xmm1,%xmm0
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x28,%rsp
  ret
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D0
type_guessed: f64

tool: D0: 1000000

assistant: ```c
double slp_dtime(void) {
  struct timeval tv;
  gettimeofday(&tv, (struct timezone *)0);
  return ((double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0));
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<get>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <ll_read@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  jne    L18
  cmpq   $0x0,-0x8(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  jmp    L8
L18:
  cmpq   $0x0,-0x8(%rbp)
  setne  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x28(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
L8:
  nop
  leave
  ret
```

assistant: ```c
void get(const char *filename, const char *predicate, const char *expected_result) {
  char *got_result = ll_read(filename, predicate);
  if (expected_result == NULL) {
    assert(got_result == NULL);
  } else {
    assert(got_result != NULL);
    assert(strcmp(got_result, expected_result) == 0);
  }
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<get>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdx,%rbp
  call   <ll_read@plt>
  mov    %rax,%rbx
  test   %rbp,%rbp
  je     L0
  test   %rax,%rax
  setne  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
L16:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
L0:
  test   %rax,%rax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  jmp    L16
```

assistant: ```c
void get(const char *filename, const char *predicate, const char *expected_result) {
  char *got_result = ll_read(filename, predicate);
  if (expected_result == NULL) {
    assert(got_result == NULL);
  } else {
    assert(got_result != NULL);
    assert(strcmp(got_result, expected_result) == 0);
  }
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<get>:
  endbr64
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  sub    $0x8,%rsp
  call   <ll_read@plt>
  mov    %rax,%rbp
  test   %r12,%r12
  je     L19
  xor    %edi,%edi
  test   %rax,%rax
  setne  %dil
  call   <assert@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
L4:
  sete   %dil
  add    $0x8,%rsp
  pop    %rbp
  movzbl %dil,%edi
  pop    %r12
  jmp    1080 <assert@plt>
  nopl   0x0(%rax,%rax,1)
L19:
  test   %rax,%rax
  jmp    L4
```

assistant: ```c
void get(const char *filename, const char *predicate, const char *expected_result) {
  char *got_result = ll_read(filename, predicate);
  if (expected_result == NULL) {
    assert(got_result == NULL);
  } else {
    assert(got_result != NULL);
    assert(strcmp(got_result, expected_result) == 0);
  }
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<get>:
  endbr64
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  sub    $0x8,%rsp
  call   <ll_read@plt>
  mov    %rax,%rbp
  test   %r12,%r12
  je     L12
  xor    %edi,%edi
  test   %rax,%rax
  setne  %dil
  call   <assert@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
L11:
  sete   %dil
  add    $0x8,%rsp
  pop    %rbp
  movzbl %dil,%edi
  pop    %r12
  jmp    1080 <assert@plt>
  nopl   0x0(%rax,%rax,1)
L12:
  test   %rax,%rax
  jmp    L11
```

assistant: ```c
void get(const char *filename, const char *predicate, const char *expected_result) {
  char *got_result = ll_read(filename, predicate);
  if (expected_result == NULL) {
    assert(got_result == NULL);
  } else {
    assert(got_result != NULL);
    assert(strcmp(got_result, expected_result) == 0);
  }
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<aan_ecuacion_propagacion_frentes>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    %r8,-0x38(%rbp)
  mov    %r9,-0x40(%rbp)
  movss  %xmm0,-0x44(%rbp)
  mov    0x10(%rbp),%eax
  cltq
  mov    %eax,%edx
  mov    0x18(%rbp),%eax
  cltq
  imul   %edx,%eax
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L51
L23:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x10(%rbp)
L51:
  mov    0x10(%rbp),%eax
  imul   0x18(%rbp),%eax
  cmp    %eax,-0x10(%rbp)
  jl     L23
  mov    0x10(%rbp),%eax
  cltq
  mov    %eax,%edx
  mov    0x18(%rbp),%eax
  cltq
  imul   %edx,%eax
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    0x10(%rbp),%eax
  cltq
  mov    %eax,%edx
  mov    0x18(%rbp),%eax
  cltq
  imul   %edx,%eax
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rcx
  mov    -0x40(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  movl   $0x0,-0x10(%rbp)
  jmp    L25
L32:
  mov    0x28(%rbp),%rdi
  mov    -0x44(%rbp),%ecx
  mov    0x18(%rbp),%edx
  mov    -0x30(%rbp),%rsi
  mov    -0x8(%rbp),%rax
  mov    %rdi,%r8
  movd   %ecx,%xmm0
  mov    %edx,%ecx
  mov    0x10(%rbp),%edx
  mov    %rax,%rdi
  call   <aan_propagacion_canal@plt>
  movl   $0x0,-0xc(%rbp)
  jmp    L18
L2:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0xc(%rbp)
L18:
  mov    0x10(%rbp),%eax
  imul   0x18(%rbp),%eax
  cmp    %eax,-0xc(%rbp)
  jl     L2
  addl   $0x1,-0x10(%rbp)
L25:
  mov    -0x10(%rbp),%eax
  cmp    0x20(%rbp),%eax
  jl     L32
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  leave
  ret
```

assistant: ```c
void aan_ecuacion_propagacion_frentes(float *red_input, float *green_input, float *blue_input, float *red_output, float *green_output, float *blue_output, int width, int height, float dt, int Niter, float *F) {
  int i;
  float *red_tmp = (float *)malloc(sizeof(float) * width * height);
  for (i = 0; i < (width * height); i++)
    red_tmp[i] = red_input[i];
  memcpy(green_output, green_input, sizeof(float) * width * height);
  memcpy(blue_output, blue_input, sizeof(float) * width * height);
  for (i = 0; i < Niter; i++) {
    int j;
    aan_propagacion_canal(red_tmp, red_output, width, height, dt, F);
    for (j = 0; j < width * height; j++)
      red_tmp[j] = red_output[j];
  }
  free(red_tmp);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<aan_ecuacion_propagacion_frentes>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    %rdx,0x18(%rsp)
  mov    %rcx,0x8(%rsp)
  mov    %r8,0x20(%rsp)
  mov    %r9,0x28(%rsp)
  movss  %xmm0,0x14(%rsp)
  mov    0x80(%rsp),%r15d
  mov    0x70(%rsp),%eax
  imul   0x78(%rsp),%eax
  lea    0x0(,%rax,4),%ebx
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    0x70(%rsp),%r14d
  imul   0x78(%rsp),%r14d
  test   %r14d,%r14d
  jle    L54
  mov    %r14d,%eax
  lea    0x0(%r13,%rax,4),%rdx
  mov    %r13,%rax
  sub    %r13,%rbp
L17:
  movss  0x0(%rbp,%rax,1),%xmm0
  movss  %xmm0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L17
L54:
  mov    %ebx,%edx
  mov    %r12,%rsi
  mov    0x20(%rsp),%rdi
  call   <memcpy@plt>
  mov    %ebx,%edx
  mov    0x18(%rsp),%rsi
  mov    0x28(%rsp),%rdi
  call   <memcpy@plt>
  test   %r15d,%r15d
  jle    L6
  lea    -0x1(%r14),%eax
  lea    0x4(%r13,%rax,4),%rbp
  mov    $0x0,%r12d
  mov    0x8(%rsp),%rbx
  sub    %r13,%rbx
L33:
  mov    0x88(%rsp),%r8
  movss  0x14(%rsp),%xmm0
  mov    0x78(%rsp),%ecx
  mov    0x70(%rsp),%edx
  mov    0x8(%rsp),%rsi
  mov    %r13,%rdi
  call   <aan_propagacion_canal@plt>
  test   %r14d,%r14d
  jle    L40
  mov    %r13,%rax
L4:
  movss  (%rbx,%rax,1),%xmm0
  movss  %xmm0,(%rax)
  add    $0x4,%rax
  cmp    %rax,%rbp
  jne    L4
L40:
  add    $0x1,%r12d
  cmp    %r12d,%r15d
  jne    L33
L6:
  mov    %r13,%rdi
  call   <free@plt>
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void aan_ecuacion_propagacion_frentes(float *red_input, float *green_input, float *blue_input, float *red_output, float *green_output, float *blue_output, int width, int height, float dt, int Niter, float *F) {
  int i;
  float *red_tmp = (float *)malloc(sizeof(float) * width * height);
  for (i = 0; i < (width * height); i++)
    red_tmp[i] = red_input[i];
  memcpy(green_output, green_input, sizeof(float) * width * height);
  memcpy(blue_output, blue_input, sizeof(float) * width * height);
  for (i = 0; i < Niter; i++) {
    int j;
    aan_propagacion_canal(red_tmp, red_output, width, height, dt, F);
    for (j = 0; j < width * height; j++)
      red_tmp[j] = red_output[j];
  }
  free(red_tmp);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<aan_ecuacion_propagacion_frentes>:
  endbr64
  push   %r15
  mov    %rdx,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x48,%rsp
  mov    0x90(%rsp),%eax
  mov    0x80(%rsp),%r13d
  mov    %rsi,0x38(%rsp)
  mov    0x88(%rsp),%r14d
  mov    %r8,0x30(%rsp)
  mov    %eax,0x18(%rsp)
  mov    0x98(%rsp),%rax
  mov    %rcx,0x10(%rsp)
  mov    %rax,0x20(%rsp)
  mov    %r13d,%eax
  imul   %r14d,%eax
  mov    %r9,0x28(%rsp)
  movss  %xmm0,0x1c(%rsp)
  lea    0x0(,%rax,4),%r12d
  mov    %eax,0xc(%rsp)
  mov    %r12d,%edi
  call   <malloc@plt>
  mov    0x30(%rsp),%r8
  mov    0x38(%rsp),%rsi
  mov    %rax,%rbp
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jle    L14
  lea    0x0(%rbp,%rax,4),%rcx
  sub    %rbp,%rbx
  mov    %rbp,%rax
  nopl   (%rax)
L20:
  movss  (%rbx,%rax,1),%xmm0
  add    $0x4,%rax
  movss  %xmm0,-0x4(%rax)
  cmp    %rcx,%rax
  jne    L20
L14:
  mov    %r8,%rdi
  mov    %r12d,%edx
  call   <memcpy@plt>
  mov    0x28(%rsp),%rdi
  mov    %r12d,%edx
  mov    %r15,%rsi
  call   <memcpy@plt>
  mov    0x18(%rsp),%edx
  test   %edx,%edx
  jle    L57
  mov    0xc(%rsp),%eax
  mov    0x10(%rsp),%rbx
  xor    %r15d,%r15d
  sub    %rbp,%rbx
  sub    $0x1,%eax
  lea    0x4(%rbp,%rax,4),%r12
  mov    %rbx,%rax
  mov    %r12,%rbx
  mov    %rbp,%r12
  mov    %r15d,%ebp
  mov    %rax,%r15
  nopl   0x0(%rax)
L7:
  mov    0x20(%rsp),%r8
  mov    0x10(%rsp),%rsi
  mov    %r14d,%ecx
  mov    %r13d,%edx
  movss  0x1c(%rsp),%xmm0
  mov    %r12,%rdi
  call   <aan_propagacion_canal@plt>
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jle    L26
  mov    %r12,%rax
  nopl   0x0(%rax)
L49:
  movss  (%r15,%rax,1),%xmm0
  add    $0x4,%rax
  movss  %xmm0,-0x4(%rax)
  cmp    %rax,%rbx
  jne    L49
L26:
  add    $0x1,%ebp
  cmp    %ebp,0x18(%rsp)
  jne    L7
  mov    %r12,%rbp
L57:
  add    $0x48,%rsp
  mov    %rbp,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <free@plt>
```

assistant: ```c
void aan_ecuacion_propagacion_frentes(float *red_input, float *green_input, float *blue_input, float *red_output, float *green_output, float *blue_output, int width, int height, float dt, int Niter, float *F) {
  int i;
  float *red_tmp = (float *)malloc(sizeof(float) * width * height);
  for (i = 0; i < (width * height); i++)
    red_tmp[i] = red_input[i];
  memcpy(green_output, green_input, sizeof(float) * width * height);
  memcpy(blue_output, blue_input, sizeof(float) * width * height);
  for (i = 0; i < Niter; i++) {
    int j;
    aan_propagacion_canal(red_tmp, red_output, width, height, dt, F);
    for (j = 0; j < width * height; j++)
      red_tmp[j] = red_output[j];
  }
  free(red_tmp);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<AT_histo_add_multi>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x18(%rbp)
  movsd  %xmm0,-0x20(%rbp)
  movsd  %xmm1,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %r9,-0x50(%rbp)
  movq   $0x0,-0x8(%rbp)
  jmp    L0
L15:
  mov    -0x8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  mov    -0x8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rdx
  mov    -0x30(%rbp),%rsi
  movsd  -0x28(%rbp),%xmm0
  mov    -0x20(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  movapd %xmm2,%xmm3
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    %rax,%rdi
  call   <AT_histo_add_single@plt>
  addq   $0x1,-0x8(%rbp)
L0:
  mov    -0x8(%rbp),%rax
  cmp    -0x38(%rbp),%rax
  jl     L15
  nop
  nop
  leave
  ret
```

assistant: ```c
void AT_histo_add_multi(const long number_of_bins, const double lowest_left_limit, const double step, const long histo_type, const long n_values, const double value[], const double weight[], double frequency[]) {
  long i;
  for (i = 0; i < n_values; i++) {
    AT_histo_add_single(number_of_bins, lowest_left_limit, step, histo_type, value[i], weight[i], frequency);
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<AT_histo_add_multi>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  movsd  %xmm0,0x8(%rsp)
  movsd  %xmm1,0x10(%rsp)
  mov    %rsi,0x18(%rsp)
  test   %rdx,%rdx
  jle    L5
  mov    %rdi,%r12
  mov    %rdx,%rbp
  mov    %rcx,%r13
  mov    %r8,%r14
  mov    %r9,%r15
  mov    $0x0,%ebx
L14:
  mov    %r15,%rdx
  movsd  (%r14,%rbx,8),%xmm3
  movsd  0x0(%r13,%rbx,8),%xmm2
  mov    0x18(%rsp),%rsi
  movsd  0x10(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm0
  mov    %r12,%rdi
  call   <AT_histo_add_single@plt>
  add    $0x1,%rbx
  cmp    %rbx,%rbp
  jne    L14
L5:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void AT_histo_add_multi(const long number_of_bins, const double lowest_left_limit, const double step, const long histo_type, const long n_values, const double value[], const double weight[], double frequency[]) {
  long i;
  for (i = 0; i < n_values; i++) {
    AT_histo_add_single(number_of_bins, lowest_left_limit, step, histo_type, value[i], weight[i], frequency);
  }
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<AT_histo_add_multi>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdx,0x18(%rsp)
  movsd  %xmm0,0x10(%rsp)
  test   %rdx,%rdx
  jle    L18
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    %rcx,%r13
  mov    %r8,%r14
  mov    %r9,%r15
  xor    %ebx,%ebx
  nopl   0x0(%rax,%rax,1)
L15:
  movsd  (%r14,%rbx,8),%xmm3
  mov    %r15,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  movsd  0x0(%r13,%rbx,8),%xmm2
  movsd  0x10(%rsp),%xmm0
  movsd  %xmm1,0x8(%rsp)
  add    $0x1,%rbx
  call   <AT_histo_add_single@plt>
  cmp    %rbx,0x18(%rsp)
  movsd  0x8(%rsp),%xmm1
  jne    L15
L18:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void AT_histo_add_multi(const long number_of_bins, const double lowest_left_limit, const double step, const long histo_type, const long n_values, const double value[], const double weight[], double frequency[]) {
  long i;
  for (i = 0; i < n_values; i++) {
    AT_histo_add_single(number_of_bins, lowest_left_limit, step, histo_type, value[i], weight[i], frequency);
  }
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<AT_histo_add_multi>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdx,0x18(%rsp)
  movsd  %xmm0,0x10(%rsp)
  test   %rdx,%rdx
  jle    L19
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    %rcx,%r13
  mov    %r8,%r14
  mov    %r9,%r15
  xor    %ebx,%ebx
  nopl   0x0(%rax,%rax,1)
L9:
  movsd  (%r14,%rbx,8),%xmm3
  mov    %r15,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  movsd  0x0(%r13,%rbx,8),%xmm2
  movsd  0x10(%rsp),%xmm0
  movsd  %xmm1,0x8(%rsp)
  add    $0x1,%rbx
  call   <AT_histo_add_single@plt>
  cmp    %rbx,0x18(%rsp)
  movsd  0x8(%rsp),%xmm1
  jne    L9
L19:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void AT_histo_add_multi(const long number_of_bins, const double lowest_left_limit, const double step, const long histo_type, const long n_values, const double value[], const double weight[], double frequency[]) {
  long i;
  for (i = 0; i < n_values; i++) {
    AT_histo_add_single(number_of_bins, lowest_left_limit, step, histo_type, value[i], weight[i], frequency);
  }
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<itoa>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  addq   $0x1,-0x20(%rbp)
  mov    -0x14(%rbp),%eax
  shr    $0x1f,%eax
  movzbl %al,%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  je     L14
  addq   $0x1,-0x20(%rbp)
  negl   -0x14(%rbp)
L14:
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x8(%rbp)
L27:
  addq   $0x1,-0x20(%rbp)
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x8(%rbp)
  cmpl   $0x0,-0x8(%rbp)
  jg     L27
  subq   $0x1,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  movb   $0x0,(%rax)
L13:
  mov    -0x14(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  mov    %edx,%ecx
  sub    %eax,%ecx
  mov    %ecx,%eax
  add    $0x30,%eax
  subq   $0x1,-0x20(%rbp)
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  jg     L13
  cmpl   $0x0,-0x4(%rbp)
  je     L35
  subq   $0x1,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  movb   $0x2d,(%rax)
L35:
  nop
  pop    %rbp
  ret
```

assistant: ```c
void itoa(int number, char *buf) {
  buf++;
  int negative = number < 0;
  if (negative) {
    buf++;
    number = -number;
  }
  int shifter = number;
  do {
    buf++;
    shifter /= 10;
  } while (shifter > 0);
  *--buf = '\0';
  do {
    *--buf = '0' + (number % 10);
    number /= 10;
  } while (number > 0);
  if (negative)
    *--buf = '-';
}
```