ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbx
  mov    $0x0,%edx
  lea    D10(%rip),%rsi
  lea    D28(%rip),%rdi
  call   <setenv@plt>
  mov    $0x0,%eax
  call   <fork@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  js     L33
  je     L41
L7:
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <waitpid@plt>
  cmp    %rbx,%rax
  jne    L44
L17:
  mov    $0x0,%eax
  pop    %rbx
  ret
L33:
  lea    D40(%rip),%rdi
  call   <err_sys@plt>
  jmp    L7
L41:
  mov    $0x0,%r8d
  lea    D9(%rip),%rcx
  lea    D31(%rip),%rdx
  lea    D65(%rip),%rdi
  mov    %rdi,%rsi
  call   <execlp@plt>
  test   %rax,%rax
  jns    L7
  lea    D18(%rip),%rdi
  call   <err_sys@plt>
  jmp    L7
L44:
  lea    D19(%rip),%rdi
  call   <err_sys@plt>
  jmp    L17
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D10
datatype: string
name: extract_symbolic_data
arguments: data_label: D28
datatype: string
name: extract_symbolic_data
arguments: data_label: D40
datatype: string
name: extract_symbolic_data
arguments: data_label: D9
datatype: string
name: extract_symbolic_data
arguments: data_label: D31
datatype: string
name: extract_symbolic_data
arguments: data_label: D65
datatype: string
name: extract_symbolic_data
arguments: data_label: D18
datatype: string
name: extract_symbolic_data
arguments: data_label: D19
datatype: string

tool: D10: .

tool: D28: PATH

tool: D40: error on fork

tool: D9: MY ARG2

tool: D31: myarg1

tool: D65: testinterp

tool: D18: error on execl

tool: D19: error on waitpid

assistant: ```c
int main(int argc, char **argv) {
  setenv("PATH", ".", 0);
  pid_t pid;
  if ((pid = fork()) < 0) {
    err_sys("error on fork");
  } else if (pid == 0) {
    if (execlp("testinterp", "testinterp", "myarg1", "MY ARG2", NULL) < 0) {
      err_sys("error on execl");
    }
  }
  if (waitpid(pid, NULL, 0) != pid) {
    err_sys("error on waitpid");
  }
  return 0;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  push   %rbx
  xor    %edx,%edx
  lea    D20(%rip),%rsi
  lea    D31(%rip),%rdi
  call   <setenv@plt>
  xor    %eax,%eax
  call   <fork@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  js     L18
  je     L38
L35:
  xor    %edx,%edx
  xor    %esi,%esi
  mov    %rbx,%rdi
  call   <waitpid@plt>
  cmp    %rbx,%rax
  je     L33
  lea    D42(%rip),%rdi
  call   <err_sys@plt>
L33:
  xor    %eax,%eax
  pop    %rbx
  ret
L38:
  lea    D75(%rip),%rdi
  xor    %r8d,%r8d
  lea    D5(%rip),%rcx
  lea    D40(%rip),%rdx
  mov    %rdi,%rsi
  call   <execlp@plt>
  test   %rax,%rax
  jns    L35
  lea    D17(%rip),%rdi
  call   <err_sys@plt>
  jmp    L35
L18:
  lea    D45(%rip),%rdi
  call   <err_sys@plt>
  jmp    L35
```

tool_calls: name: read_data
arguments: label: D20
type_guessed: string
name: read_data
arguments: label: D31
type_guessed: string
name: read_data
arguments: label: D42
type_guessed: string
name: read_data
arguments: label: D75
type_guessed: string
name: read_data
arguments: label: D5
type_guessed: string
name: read_data
arguments: label: D40
type_guessed: string
name: read_data
arguments: label: D17
type_guessed: string
name: read_data
arguments: label: D45
type_guessed: string

tool: D20: .

tool: D31: PATH

tool: D42: error on waitpid

tool: D75: testinterp

tool: D5: MY ARG2

tool: D40: myarg1

tool: D17: error on execl

tool: D45: error on fork

assistant: ```c
int main(int argc, char **argv) {
  setenv("PATH", ".", 0);
  pid_t pid;
  if ((pid = fork()) < 0) {
    err_sys("error on fork");
  } else if (pid == 0) {
    if (execlp("testinterp", "testinterp", "myarg1", "MY ARG2", NULL) < 0) {
      err_sys("error on execl");
    }
  }
  if (waitpid(pid, NULL, 0) != pid) {
    err_sys("error on waitpid");
  }
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbx
  xor    %edx,%edx
  lea    D67(%rip),%rsi
  lea    D58(%rip),%rdi
  call   <setenv@plt>
  xor    %eax,%eax
  call   <fork@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  js     L16
  je     L38
L14:
  xor    %edx,%edx
  xor    %esi,%esi
  mov    %rbx,%rdi
  call   <waitpid@plt>
  cmp    %rbx,%rax
  je     L55
  lea    D57(%rip),%rdi
  call   <err_sys@plt>
L55:
  xor    %eax,%eax
  pop    %rbx
  ret
L38:
  lea    D55(%rip),%rdi
  xor    %r8d,%r8d
  lea    D54(%rip),%rcx
  lea    D3(%rip),%rdx
  mov    %rdi,%rsi
  call   <execlp@plt>
  test   %rax,%rax
  jns    L14
  lea    D38(%rip),%rdi
  call   <err_sys@plt>
  jmp    L14
L16:
  lea    D48(%rip),%rdi
  call   <err_sys@plt>
  jmp    L14
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D67
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D58
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D57
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D55
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D54
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D3
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D38
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D48
type_guessed: string

tool: D67: .

tool: D58: PATH

tool: D57: error on waitpid

tool: D55: testinterp

tool: D54: MY ARG2

tool: D3: myarg1

tool: D38: error on execl

tool: D48: error on fork

assistant: ```c
int main(int argc, char **argv) {
  setenv("PATH", ".", 0);
  pid_t pid;
  if ((pid = fork()) < 0) {
    err_sys("error on fork");
  } else if (pid == 0) {
    if (execlp("testinterp", "testinterp", "myarg1", "MY ARG2", NULL) < 0) {
      err_sys("error on execl");
    }
  }
  if (waitpid(pid, NULL, 0) != pid) {
    err_sys("error on waitpid");
  }
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<clEnqueueMarker>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x18(%rbp),%rax
  mov    %eax,-0x10(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %eax,-0xc(%rbp)
  lea    -0x10(%rbp),%rax
  mov    %rax,%rdx
  mov    $0x42e,%esi
  mov    $0x145,%edi
  call   <syscall@plt>
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  leave
  ret
```

assistant: ```c
cl_int clEnqueueMarker(cl_command_queue command_queue, cl_event *event) {
  unsigned int sys_args[2];
  sys_args[0] = (unsigned int)command_queue;
  sys_args[1] = (unsigned int)event;
  return (cl_int)syscall(325, 1070, sys_args);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<clEnqueueMarker>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %edi,(%rsp)
  mov    %esi,0x4(%rsp)
  mov    %rsp,%rdx
  mov    $0x42e,%esi
  mov    $0x145,%edi
  call   <syscall@plt>
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L5
  add    $0x18,%rsp
  ret
L5:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
cl_int clEnqueueMarker(cl_command_queue command_queue, cl_event *event) {
  unsigned int sys_args[2];
  sys_args[0] = (unsigned int)command_queue;
  sys_args[1] = (unsigned int)event;
  return (cl_int)syscall(325, 1070, sys_args);
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<clEnqueueMarker>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdx
  mov    %edi,(%rsp)
  mov    $0x145,%edi
  mov    %esi,0x4(%rsp)
  mov    $0x42e,%esi
  call   <syscall@plt>
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L5
  add    $0x18,%rsp
  ret
L5:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
cl_int clEnqueueMarker(cl_command_queue command_queue, cl_event *event) {
  unsigned int sys_args[2];
  sys_args[0] = (unsigned int)command_queue;
  sys_args[1] = (unsigned int)event;
  return (cl_int)syscall(325, 1070, sys_args);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<clEnqueueMarker>:
  endbr64
  sub    $0x18,%rsp
  movd   %edi,%xmm0
  movd   %esi,%xmm1
  mov    $0x145,%edi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  punpckldq %xmm1,%xmm0
  mov    %rsp,%rdx
  mov    $0x42e,%esi
  movq   %xmm0,(%rsp)
  call   <syscall@plt>
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L3
  add    $0x18,%rsp
  ret
L3:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
cl_int clEnqueueMarker(cl_command_queue command_queue, cl_event *event) {
  unsigned int sys_args[2];
  sys_args[0] = (unsigned int)command_queue;
  sys_args[1] = (unsigned int)event;
  return (cl_int)syscall(325, 1070, sys_args);
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<mysql>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  movl   $0x1,-0x4(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  movl   $0x1,-0x4(%rbp)
  mov    $0x0,%eax
  leave
  ret
```

assistant: ```c
int mysql(char *text) {
  int num = 1;
  printf(text);
  if (num = 1) {
    return 0;
  } else {
    return 1;
  }
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<mysql>:
  endbr64
  sub    $0x8,%rsp
  call   <printf@plt>
  mov    $0x0,%eax
  add    $0x8,%rsp
  ret
```

assistant: ```c
int mysql(char *text) {
  int num = 1;
  printf(text);
  if (num = 1) {
    return 0;
  } else {
    return 1;
  }
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<mysql>:
  endbr64
  sub    $0x8,%rsp
  call   <printf@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

assistant: ```c
int mysql(char *text) {
  int num = 1;
  printf(text);
  if (num = 1) {
    return 0;
  } else {
    return 1;
  }
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<mysql>:
  endbr64
  sub    $0x8,%rsp
  call   <printf@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

assistant: ```c
int mysql(char *text) {
  int num = 1;
  printf(text);
  if (num = 1) {
    return 0;
  } else {
    return 1;
  }
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<printRatesRest>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  movl   $0x0,-0xc(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L31
L5:
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L12
L27:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rcx
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rsi
  mov    -0x28(%rbp),%rax
  add    %rsi,%rax
  mov    (%rax),%rax
  movq   %rcx,%xmm0
  mov    %rax,%rsi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <printBothOpen@plt>
  addl   $0x1,-0x4(%rbp)
  addl   $0x1,-0x8(%rbp)
L12:
  mov    -0x8(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L27
  addl   $0x1,-0xc(%rbp)
L31:
  mov    -0xc(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L5
  nop
  nop
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D9
type_guessed: string

tool: D9: rate %s <-> %s: %f


assistant: ```c
void printRatesRest(int n, double *r, char **names) {
  int i, j, c;
  for (i = 0, c = 0; i < n; i++) {
    for (j = i + 1; j < n; j++) {
      printBothOpen("rate %s <-> %s: %f\n", names[i], names[j], r[c]);
      c++;
    }
  }
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<printRatesRest>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rsi,0x8(%rsp)
  test   %edi,%edi
  jle    L9
  mov    %edi,%r15d
  lea    0x8(%rdx),%r12
  movl   $0x0,0x4(%rsp)
  lea    D5(%rip),%r14
L25:
  cmp    $0x1,%r15d
  je     L9
  movslq 0x4(%rsp),%rdx
  mov    0x8(%rsp),%rcx
  lea    (%rcx,%rdx,8),%rbx
  lea    -0x2(%r15),%eax
  add    %rdx,%rax
  lea    0x8(%rcx,%rax,8),%r13
  mov    %r12,%rbp
L24:
  mov    -0x8(%r12),%rsi
  movsd  (%rbx),%xmm0
  mov    0x0(%rbp),%rdx
  mov    %r14,%rdi
  call   <printBothOpen@plt>
  add    $0x8,%rbx
  add    $0x8,%rbp
  cmp    %r13,%rbx
  jne    L24
  mov    0x4(%rsp),%eax
  lea    -0x1(%rax,%r15,1),%eax
  mov    %eax,0x4(%rsp)
  sub    $0x1,%r15d
  add    $0x8,%r12
  jmp    L25
L9:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D5
datatype: string

tool: D5: rate %s <-> %s: %f


assistant: ```c
void printRatesRest(int n, double *r, char **names) {
  int i, j, c;
  for (i = 0, c = 0; i < n; i++) {
    for (j = i + 1; j < n; j++) {
      printBothOpen("rate %s <-> %s: %f\n", names[i], names[j], r[c]);
      c++;
    }
  }
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<printRatesRest>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rsi,0x8(%rsp)
  test   %edi,%edi
  jle    L2
  mov    %edi,%r13d
  movl   $0x0,0x4(%rsp)
  lea    0x8(%rdx),%r15
  lea    D3(%rip),%r12
  cmp    $0x1,%r13d
  je     L2
  nopl   0x0(%rax,%rax,1)
L27:
  movslq 0x4(%rsp),%rdx
  mov    0x8(%rsp),%rcx
  lea    -0x2(%r13),%eax
  mov    %r15,%r14
  add    %rdx,%rax
  lea    (%rcx,%rdx,8),%rbx
  lea    0x8(%rcx,%rax,8),%rbp
  nopl   (%rax)
L37:
  movsd  (%rbx),%xmm0
  mov    (%r14),%rdx
  mov    %r12,%rdi
  add    $0x8,%rbx
  mov    -0x8(%r15),%rsi
  add    $0x8,%r14
  call   <printBothOpen@plt>
  cmp    %rbp,%rbx
  jne    L37
  mov    0x4(%rsp),%eax
  add    $0x8,%r15
  lea    -0x1(%rax,%r13,1),%eax
  sub    $0x1,%r13d
  mov    %eax,0x4(%rsp)
  cmp    $0x1,%r13d
  jne    L27
L2:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: data_label: D3
type: string

tool: D3: rate %s <-> %s: %f


assistant: ```c
void printRatesRest(int n, double *r, char **names) {
  int i, j, c;
  for (i = 0, c = 0; i < n; i++) {
    for (j = i + 1; j < n; j++) {
      printBothOpen("rate %s <-> %s: %f\n", names[i], names[j], r[c]);
      c++;
    }
  }
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<printRatesRest>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rsi,0x18(%rsp)
  cmp    $0x1,%edi
  jle    L28
  lea    -0x1(%rdi),%eax
  movq   $0x0,(%rsp)
  mov    %edi,%ebx
  mov    %rdx,%r15
  mov    %eax,0x2c(%rsp)
  lea    D3(%rip),%rbp
  mov    %rax,0x20(%rsp)
  movq   $0xfffffffffffffff8,0x10(%rsp)
  movl   $0x0,0xc(%rsp)
  nopl   0x0(%rax)
L6:
  mov    (%rsp),%r14
  movslq 0xc(%rsp),%rax
  mov    0x10(%rsp),%rcx
  mov    %r14d,0x28(%rsp)
  mov    %r14,%r12
  add    $0x1,%r14
  lea    (%rcx,%rax,8),%r9
  mov    %r14,(%rsp)
  mov    0x18(%rsp),%rax
  lea    (%rax,%r9,1),%r13
  nopl   0x0(%rax,%rax,1)
L27:
  movsd  0x0(%r13,%r14,8),%xmm0
  mov    (%r15,%r14,8),%rdx
  mov    %rbp,%rdi
  add    $0x1,%r14
  mov    (%r15,%r12,8),%rsi
  call   <printBothOpen@plt>
  cmp    %r14d,%ebx
  jg     L27
  mov    0xc(%rsp),%r13d
  add    0x2c(%rsp),%r13d
  sub    0x28(%rsp),%r13d
  subq   $0x8,0x10(%rsp)
  mov    %r13d,0xc(%rsp)
  mov    (%rsp),%rcx
  cmp    %rcx,0x20(%rsp)
  jne    L6
L28:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: data_label: D3
type: string

tool: D3: rate %s <-> %s: %f


assistant: ```c
void printRatesRest(int n, double *r, char **names) {
  int i, j, c;
  for (i = 0, c = 0; i < n; i++) {
    for (j = i + 1; j < n; j++) {
      printBothOpen("rate %s <-> %s: %f\n", names[i], names[j], r[c]);
      c++;
    }
  }
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<BatchInterpolatedGradY2DTranMirr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %rcx,-0x50(%rbp)
  movsd  %xmm0,-0x58(%rbp)
  movsd  %xmm1,-0x60(%rbp)
  movsd  %xmm2,-0x68(%rbp)
  movsd  %xmm3,-0x70(%rbp)
  movsd  %xmm4,-0x78(%rbp)
  movsd  %xmm5,-0x80(%rbp)
  mov    %r8,-0x88(%rbp)
  movq   $0x0,-0x28(%rbp)
  jmp    L19
L7:
  mov    -0x28(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movss  %xmm0,(%rax)
  addq   $0x1,-0x28(%rbp)
L19:
  pxor   %xmm1,%xmm1
  cvtsi2sdq -0x28(%rbp),%xmm1
  movsd  -0x58(%rbp),%xmm0
  mulsd  -0x70(%rbp),%xmm0
  comisd %xmm1,%xmm0
  ja     L7
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x18(%rbp)
  jmp    L3
L46:
  movq   $0x0,-0x20(%rbp)
  jmp    L60
L76:
  pxor   %xmm0,%xmm0
  cvtsi2sdq -0x20(%rbp),%xmm0
  subsd  -0x60(%rbp),%xmm0
  divsd  -0x68(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdq -0x18(%rbp),%xmm0
  subsd  -0x78(%rbp),%xmm0
  divsd  -0x80(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x88(%rbp),%rcx
  movsd  -0x8(%rbp),%xmm3
  movsd  -0x10(%rbp),%xmm2
  movsd  -0x70(%rbp),%xmm0
  mov    -0x58(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  movapd %xmm3,%xmm4
  movapd %xmm2,%xmm3
  movaps %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rdx,%xmm0
  mov    %rax,%rdi
  call   <InterpolatedGradYTranMirr@plt>
  addq   $0x1,-0x20(%rbp)
L60:
  mov    -0x20(%rbp),%rax
  cmp    -0x48(%rbp),%rax
  jl     L76
  addq   $0x1,-0x18(%rbp)
L3:
  mov    -0x18(%rbp),%rax
  cmp    -0x50(%rbp),%rax
  jl     L46
  movq   $0x0,-0x28(%rbp)
  jmp    L45
L65:
  mov    -0x28(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  divsd  -0x80(%rbp),%xmm0
  mov    -0x28(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rax)
  addq   $0x1,-0x28(%rbp)
L45:
  pxor   %xmm1,%xmm1
  cvtsi2sdq -0x28(%rbp),%xmm1
  movsd  -0x58(%rbp),%xmm0
  mulsd  -0x70(%rbp),%xmm0
  comisd %xmm1,%xmm0
  ja     L65
  nop
  nop
  leave
  ret
```

assistant: ```c
extern void BatchInterpolatedGradY2DTranMirr(float *Bout, float *Bcoeff, long Width, long Height, double nx, double offx, double mx, double ny, double offy, double my, long SplineDegree) {
  double x, y;
  long idx;
  long idcoordx, idcoordy;
  for (idx = 0; idx < nx * ny; idx++)
    Bout[idx] = 0;
  idx = 0;
  for (idcoordy = 0; idcoordy < Height; idcoordy++) {
    for (idcoordx = 0; idcoordx < Width; idcoordx++) {
      x = (idcoordx - offx) / mx;
      y = (idcoordy - offy) / my;
      InterpolatedGradYTranMirr(Bout, nx, ny, Bcoeff[idx++], x, y, SplineDegree);
    }
  }
  for (idx = 0; idx < nx * ny; idx++)
    Bout[idx] = Bout[idx] / my;
}
```
user: What is the c source code of the assembly code below?

```asm
<BatchInterpolatedGradY2DTranMirr>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %r8,%r12
  push   %rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x68,%rsp
  movsd  %xmm0,0x18(%rsp)
  mulsd  %xmm3,%xmm0
  movsd  %xmm2,0x28(%rsp)
  pxor   %xmm2,%xmm2
  movsd  %xmm1,0x20(%rsp)
  movapd %xmm3,%xmm1
  mov    %rsi,0x50(%rsp)
  mov    %rcx,0x48(%rsp)
  comisd %xmm2,%xmm0
  movsd  %xmm4,0x58(%rsp)
  movsd  %xmm5,0x38(%rsp)
  movsd  %xmm0,0x30(%rsp)
  jbe    L32
  xor    %eax,%eax
  nopl   0x0(%rax)
L44:
  movl   $0x0,(%r15,%rax,4)
  pxor   %xmm0,%xmm0
  add    $0x1,%rax
  movsd  0x30(%rsp),%xmm5
  cvtsi2sd %rax,%xmm0
  comisd %xmm0,%xmm5
  ja     L44
  cmpq   $0x0,0x48(%rsp)
  jle    L71
L39:
  movq   $0x0,0x40(%rsp)
  xor    %r13d,%r13d
  nopl   0x0(%rax)
L50:
  test   %rbx,%rbx
  jle    L16
  mov    0x50(%rsp),%rax
  mov    0x40(%rsp),%rdx
  pxor   %xmm4,%xmm4
  xor    %r14d,%r14d
  cvtsi2sd %r13,%xmm4
  subsd  0x58(%rsp),%xmm4
  divsd  0x38(%rsp),%xmm4
  lea    (%rax,%rdx,4),%rbp
  nopl   0x0(%rax,%rax,1)
L22:
  movsd  0x18(%rsp),%xmm0
  pxor   %xmm3,%xmm3
  mov    %r12,%rsi
  mov    %r15,%rdi
  movss  0x0(%rbp,%r14,4),%xmm2
  cvtsi2sd %r14,%xmm3
  add    $0x1,%r14
  subsd  0x20(%rsp),%xmm3
  movsd  %xmm4,0x10(%rsp)
  divsd  0x28(%rsp),%xmm3
  movsd  %xmm1,0x8(%rsp)
  call   <InterpolatedGradYTranMirr@plt>
  cmp    %r14,%rbx
  movsd  0x8(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm4
  jne    L22
  add    %rbx,0x40(%rsp)
L16:
  add    $0x1,%r13
  cmp    %r13,0x48(%rsp)
  jg     L50
L42:
  movsd  0x30(%rsp),%xmm2
  pxor   %xmm5,%xmm5
  comisd %xmm5,%xmm2
  jbe    L47
L71:
  xor    %eax,%eax
  nopl   0x0(%rax)
L6:
  pxor   %xmm0,%xmm0
  movsd  0x30(%rsp),%xmm5
  cvtss2sd (%r15,%rax,4),%xmm0
  divsd  0x38(%rsp),%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%r15,%rax,4)
  add    $0x1,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  comisd %xmm0,%xmm5
  ja     L6
L47:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L32:
  cmpq   $0x0,0x48(%rsp)
  jg     L39
  jmp    L42
```

assistant: ```c
extern void BatchInterpolatedGradY2DTranMirr(float *Bout, float *Bcoeff, long Width, long Height, double nx, double offx, double mx, double ny, double offy, double my, long SplineDegree) {
  double x, y;
  long idx;
  long idcoordx, idcoordy;
  for (idx = 0; idx < nx * ny; idx++)
    Bout[idx] = 0;
  idx = 0;
  for (idcoordy = 0; idcoordy < Height; idcoordy++) {
    for (idcoordx = 0; idcoordx < Width; idcoordx++) {
      x = (idcoordx - offx) / mx;
      y = (idcoordy - offy) / my;
      InterpolatedGradYTranMirr(Bout, nx, ny, Bcoeff[idx++], x, y, SplineDegree);
    }
  }
  for (idx = 0; idx < nx * ny; idx++)
    Bout[idx] = Bout[idx] / my;
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<BatchInterpolatedGradY2DTranMirr>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  mov    %r8,%r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x58,%rsp
  movsd  %xmm0,0x10(%rsp)
  mulsd  %xmm3,%xmm0
  movsd  %xmm2,0x20(%rsp)
  pxor   %xmm2,%xmm2
  movsd  %xmm1,0x18(%rsp)
  movapd %xmm3,%xmm1
  mov    %rcx,0x38(%rsp)
  movsd  %xmm4,0x40(%rsp)
  comisd %xmm2,%xmm0
  movsd  %xmm5,0x30(%rsp)
  movsd  %xmm0,0x28(%rsp)
  jbe    L55
  xor    %eax,%eax
  nop
L82:
  movl   $0x0,(%r14,%rax,4)
  pxor   %xmm0,%xmm0
  add    $0x1,%rax
  movsd  0x28(%rsp),%xmm5
  cvtsi2sd %rax,%xmm0
  comisd %xmm0,%xmm5
  ja     L82
  cmpq   $0x0,0x38(%rsp)
  jle    L21
  test   %rbp,%rbp
  jle    L21
L7:
  lea    0x0(,%rbp,4),%rax
  xor    %r13d,%r13d
  mov    %rax,0x48(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L103:
  pxor   %xmm4,%xmm4
  xor    %r15d,%r15d
  cvtsi2sd %r13,%xmm4
  subsd  0x40(%rsp),%xmm4
  divsd  0x30(%rsp),%xmm4
  nopl   0x0(%rax,%rax,1)
L73:
  movss  (%rbx,%r15,4),%xmm2
  pxor   %xmm3,%xmm3
  mov    %r12,%rsi
  mov    %r14,%rdi
  movsd  0x10(%rsp),%xmm0
  cvtsi2sd %r15,%xmm3
  add    $0x1,%r15
  subsd  0x18(%rsp),%xmm3
  movsd  %xmm4,0x8(%rsp)
  divsd  0x20(%rsp),%xmm3
  movsd  %xmm1,(%rsp)
  call   <InterpolatedGradYTranMirr@plt>
  cmp    %r15,%rbp
  movsd  (%rsp),%xmm1
  movsd  0x8(%rsp),%xmm4
  jne    L73
  add    $0x1,%r13
  add    0x48(%rsp),%rbx
  cmp    %r13,0x38(%rsp)
  jg     L103
L16:
  movsd  0x28(%rsp),%xmm2
  pxor   %xmm5,%xmm5
  comisd %xmm5,%xmm2
  jbe    L4
L21:
  xor    %eax,%eax
  nopl   (%rax)
L27:
  pxor   %xmm0,%xmm0
  movsd  0x28(%rsp),%xmm5
  cvtss2sd (%r14,%rax,4),%xmm0
  divsd  0x30(%rsp),%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%r14,%rax,4)
  add    $0x1,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  comisd %xmm0,%xmm5
  ja     L27
L4:
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L55:
  cmpq   $0x0,0x38(%rsp)
  jle    L16
  test   %rdx,%rdx
  jg     L7
  jmp    L16
```

assistant: ```c
extern void BatchInterpolatedGradY2DTranMirr(float *Bout, float *Bcoeff, long Width, long Height, double nx, double offx, double mx, double ny, double offy, double my, long SplineDegree) {
  double x, y;
  long idx;
  long idcoordx, idcoordy;
  for (idx = 0; idx < nx * ny; idx++)
    Bout[idx] = 0;
  idx = 0;
  for (idcoordy = 0; idcoordy < Height; idcoordy++) {
    for (idcoordx = 0; idcoordx < Width; idcoordx++) {
      x = (idcoordx - offx) / mx;
      y = (idcoordy - offy) / my;
      InterpolatedGradYTranMirr(Bout, nx, ny, Bcoeff[idx++], x, y, SplineDegree);
    }
  }
  for (idx = 0; idx < nx * ny; idx++)
    Bout[idx] = Bout[idx] / my;
}
```