ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 请从给定的汇编指令推导出C源代码:

```asm
<posix_get_process_name>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  mov    D5(%rip),%rax
  mov    %rsp,%rcx
  mov    (%rax),%esi
  add    $0x1,%esi
  movslq %esi,%rax
  add    $0xf,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L61
L91:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L91
L61:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L84
L27:
  cmpb   $0x2f,(%r12)
  je     L88
  mov    %rsp,%rdi
  xor    %r13d,%r13d
  call   <getcwd@plt>
  test   %rax,%rax
  je     L94
  mov    %r12,%rsi
  mov    %rsp,%rdi
  call   <FN_make_path@plt>
  mov    %rax,%r14
  mov    D8(%rip),%rax
  mov    %r14,%rdi
  mov    (%rax),%esi
  call   <access@plt>
  mov    %r14,%rdi
  test   %eax,%eax
  je     L32
  call   <free@plt>
  mov    %r12,%rdi
  call   <posix_search_in_path@plt>
  mov    %rax,%r13
L94:
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L45
  lea    -0x18(%rbp),%rsp
  mov    %r13,%rax
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
  nop
L88:
  mov    %r12,%rdi
  call   <strdup@plt>
  mov    %rax,%r13
  jmp    L94
  nopl   (%rax)
L84:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L27
  nopl   0x0(%rax,%rax,1)
L32:
  call   <FN_normalize@plt>
  mov    %r14,%rdi
  mov    %rax,%r13
  call   <free@plt>
  jmp    L94
L45:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
char *posix_get_process_name(const char *argv) {
  char dir[PATH_MAX + 1], *path, *ret;
  if (argv[0] == '/')
    return strdup(argv);
  if (getcwd(dir, sizeof(dir)) == 0)
    return 0;
  path = FN_make_path(dir, argv);
  if (!access(path, R_OK)) {
    ret = FN_normalize(path);
    free(path);
    return ret;
  }
  free(path);
  return posix_search_in_path(argv);
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<sigint_handler>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  lea    D42(%rip),%rax
  mov    %rax,%rsi
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <print_message@plt>
  lea    D3(%rip),%rax
  mov    %rax,%rsi
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  call   <print_message@plt>
  mov    $0x0,%edi
  call   <wait@plt>
  lea    D20(%rip),%rax
  mov    %rax,%rsi
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  call   <print_message@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  nop
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D42
data_type: string
name: read_data
arguments: tag: D25
data_type: string
name: read_data
arguments: tag: D3
data_type: string
name: read_data
arguments: tag: D55
data_type: string
name: read_data
arguments: tag: D20
data_type: string
name: read_data
arguments: tag: D45
data_type: string

tool: D42: Received SIGINT signal.

tool: D25: IRCP009

tool: D3: Waiting for any child processes to die.

tool: D55: IRCP010

tool: D20: Terminating execution.

tool: D45: IRCP011

assistant: ```c
void sigint_handler(int arg) {
  print_message("IRCP009", "Received SIGINT signal.");
  print_message("IRCP010", "Waiting for any child processes to die.");
  wait(0);
  print_message("IRCP011", "Terminating execution.");
  exit(1);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<sigint_handler>:
  endbr64
  sub    $0x8,%rsp
  lea    D40(%rip),%rsi
  lea    D1(%rip),%rdi
  call   <print_message@plt>
  lea    D29(%rip),%rsi
  lea    D20(%rip),%rdi
  call   <print_message@plt>
  mov    $0x0,%edi
  call   <wait@plt>
  lea    D7(%rip),%rsi
  lea    D28(%rip),%rdi
  call   <print_message@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  add    $0x8,%rsp
  ret
```

tool_calls: name: unpack_data
arguments: label: D40
data_type: string
name: unpack_data
arguments: label: D1
data_type: string
name: unpack_data
arguments: label: D29
data_type: string
name: unpack_data
arguments: label: D20
data_type: string
name: unpack_data
arguments: label: D7
data_type: string
name: unpack_data
arguments: label: D28
data_type: string

tool: D40: Received SIGINT signal.

tool: D1: IRCP009

tool: D29: Waiting for any child processes to die.

tool: D20: IRCP010

tool: D7: Terminating execution.

tool: D28: IRCP011

assistant: ```c
void sigint_handler(int arg) {
  print_message("IRCP009", "Received SIGINT signal.");
  print_message("IRCP010", "Waiting for any child processes to die.");
  wait(0);
  print_message("IRCP011", "Terminating execution.");
  exit(1);
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<sigint_handler>:
  endbr64
  sub    $0x8,%rsp
  lea    D30(%rip),%rsi
  lea    D40(%rip),%rdi
  call   <print_message@plt>
  lea    D50(%rip),%rsi
  lea    D33(%rip),%rdi
  call   <print_message@plt>
  xor    %edi,%edi
  call   <wait@plt>
  lea    D25(%rip),%rdi
  lea    D15(%rip),%rsi
  call   <print_message@plt>
  mov    $0x1,%edi
  add    $0x8,%rsp
  jmp    1080 <exit@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D30
type_infered: string
name: disassemble_data
arguments: data_tag: D40
type_infered: string
name: disassemble_data
arguments: data_tag: D50
type_infered: string
name: disassemble_data
arguments: data_tag: D33
type_infered: string
name: disassemble_data
arguments: data_tag: D25
type_infered: string
name: disassemble_data
arguments: data_tag: D15
type_infered: string

tool: D30: Received SIGINT signal.

tool: D40: IRCP009

tool: D50: Waiting for any child processes to die.

tool: D33: IRCP010

tool: D25: IRCP011

tool: D15: Terminating execution.

assistant: ```c
void sigint_handler(int arg) {
  print_message("IRCP009", "Received SIGINT signal.");
  print_message("IRCP010", "Waiting for any child processes to die.");
  wait(0);
  print_message("IRCP011", "Terminating execution.");
  exit(1);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<sigint_handler>:
  endbr64
  sub    $0x8,%rsp
  lea    D51(%rip),%rsi
  lea    D37(%rip),%rdi
  call   <print_message@plt>
  lea    D45(%rip),%rsi
  lea    D6(%rip),%rdi
  call   <print_message@plt>
  xor    %edi,%edi
  call   <wait@plt>
  lea    D15(%rip),%rdi
  lea    D26(%rip),%rsi
  call   <print_message@plt>
  mov    $0x1,%edi
  add    $0x8,%rsp
  jmp    1080 <exit@plt>
```

tool_calls: name: read_data
arguments: data_label: D51
datatype: string
name: read_data
arguments: data_label: D37
datatype: string
name: read_data
arguments: data_label: D45
datatype: string
name: read_data
arguments: data_label: D6
datatype: string
name: read_data
arguments: data_label: D15
datatype: string
name: read_data
arguments: data_label: D26
datatype: string

tool: D51: Received SIGINT signal.

tool: D37: IRCP009

tool: D45: Waiting for any child processes to die.

tool: D6: IRCP010

tool: D15: IRCP011

tool: D26: Terminating execution.

assistant: ```c
void sigint_handler(int arg) {
  print_message("IRCP009", "Received SIGINT signal.");
  print_message("IRCP010", "Waiting for any child processes to die.");
  wait(0);
  print_message("IRCP011", "Terminating execution.");
  exit(1);
}
```
user: Translate the below assembly code into C programming language:

```asm
<relax_snode>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x28(%rbp)
  mov    %rcx,-0x38(%rbp)
  mov    %r8,-0x40(%rbp)
  mov    -0x24(%rbp),%ecx
  mov    -0x40(%rbp),%rax
  mov    $0xffffffff,%edx
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <ifill@plt>
  mov    $0x0,%ebx
  jmp    L22
L76:
  movslq %ebx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  add    $0x1,%ebx
L22:
  cmp    -0x24(%rbp),%ebx
  jl     L76
  mov    $0x0,%ebx
  jmp    L19
L117:
  movslq %ebx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%r12d
  cmp    -0x24(%rbp),%r12d
  je     L88
  movslq %r12d,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  movslq %ebx,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%ecx
  movslq %r12d,%rax
  lea    0x0(,%rax,4),%rsi
  mov    -0x38(%rbp),%rax
  add    %rsi,%rax
  add    %ecx,%edx
  mov    %edx,(%rax)
L88:
  add    $0x1,%ebx
L19:
  cmp    -0x24(%rbp),%ebx
  jl     L117
  mov    $0x0,%ebx
  jmp    L71
L8:
  movslq %ebx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%r12d
  mov    %ebx,%r13d
  jmp    L50
L80:
  mov    %r12d,%ebx
  movslq %ebx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%r12d
L50:
  cmp    -0x24(%rbp),%r12d
  je     L58
  movslq %r12d,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x28(%rbp)
  jg     L80
L58:
  movslq %r13d,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    %ebx,(%rax)
  add    $0x1,%ebx
  jmp    L101
L96:
  add    $0x1,%ebx
L101:
  cmp    -0x24(%rbp),%ebx
  jge    L71
  movslq %ebx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L96
L71:
  cmp    -0x24(%rbp),%ebx
  jl     L8
  nop
  nop
  add    $0x28,%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %rbp
  ret
```

assistant: ```c
void relax_snode(const int n, int *et, const int relax_columns, int *descendants, int *relax_end) {
  register int j, parent;
  register int snode_start;
  ifill(relax_end, n, (-1));
  for (j = 0; j < n; j++)
    descendants[j] = 0;
  for (j = 0; j < n; j++) {
    parent = et[j];
    if (parent != n)
      descendants[parent] += descendants[j] + 1;
  }
  for (j = 0; j < n;) {
    parent = et[j];
    snode_start = j;
    while (parent != n && descendants[parent] < relax_columns) {
      j = parent;
      parent = et[j];
    }
    relax_end[snode_start] = j;
    j++;
    while (j < n && descendants[j] != 0)
      j++;
  }
}
```
user: What is the c source code of the assembly code below:

```asm
<relax_snode>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  mov    %rsi,%r12
  mov    %edx,%r13d
  mov    %rcx,%rbp
  mov    %r8,%r14
  mov    $0xffffffff,%edx
  mov    %edi,%esi
  mov    %r8,%rdi
  call   <ifill@plt>
  test   %ebx,%ebx
  jle    L115
  mov    %rbp,%rax
  lea    -0x1(%rbx),%edx
  lea    0x4(%rbp,%rdx,4),%rdx
L77:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L77
  mov    %ebx,%esi
  mov    $0x0,%eax
  jmp    L85
L125:
  add    $0x1,%rax
  cmp    %rax,%rsi
  je     L123
L85:
  mov    (%r12,%rax,4),%edx
  cmp    %edx,%ebx
  je     L125
  movslq %edx,%rdx
  mov    0x0(%rbp,%rax,4),%edi
  lea    0x1(%rdi),%ecx
  add    %ecx,0x0(%rbp,%rdx,4)
  jmp    L125
L123:
  mov    $0x0,%ecx
  jmp    L7
L80:
  mov    %ecx,(%r14,%rsi,4)
  add    $0x1,%ecx
  cmp    %ecx,%ebx
  jle    L115
  movslq %ecx,%rax
L86:
  mov    %eax,%ecx
  cmpl   $0x0,0x0(%rbp,%rax,4)
  je     L23
  add    $0x1,%rax
  cmp    %eax,%ebx
  jg     L86
L115:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L23:
  cmp    %eax,%ebx
  jle    L115
L7:
  movslq %ecx,%rsi
  mov    (%r12,%rsi,4),%eax
  cmp    %eax,%ebx
  je     L80
L65:
  movslq %eax,%rdx
  cmp    %r13d,0x0(%rbp,%rdx,4)
  jge    L80
  mov    (%r12,%rdx,4),%edx
  mov    %eax,%ecx
  cmp    %edx,%ebx
  je     L80
  mov    %edx,%eax
  jmp    L65
```

assistant: ```c
void relax_snode(const int n, int *et, const int relax_columns, int *descendants, int *relax_end) {
  register int j, parent;
  register int snode_start;
  ifill(relax_end, n, (-1));
  for (j = 0; j < n; j++)
    descendants[j] = 0;
  for (j = 0; j < n; j++) {
    parent = et[j];
    if (parent != n)
      descendants[parent] += descendants[j] + 1;
  }
  for (j = 0; j < n;) {
    parent = et[j];
    snode_start = j;
    while (parent != n && descendants[parent] < relax_columns) {
      j = parent;
      parent = et[j];
    }
    relax_end[snode_start] = j;
    j++;
    while (j < n && descendants[j] != 0)
      j++;
  }
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<relax_snode>:
  endbr64
  push   %r15
  push   %r14
  mov    %r8,%r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %edx,%r12d
  mov    $0xffffffff,%edx
  push   %rbp
  mov    %rsi,%rbp
  mov    %edi,%esi
  push   %rbx
  mov    %edi,%ebx
  mov    %r8,%rdi
  sub    $0x8,%rsp
  call   <ifill@plt>
  test   %ebx,%ebx
  jle    L115
  movslq %ebx,%r15
  xor    %esi,%esi
  mov    %r13,%rdi
  lea    0x0(,%r15,4),%rdx
  call   <memset@plt>
  xor    %eax,%eax
  xchg   %ax,%ax
L107:
  movslq 0x0(%rbp,%rax,4),%rdx
  cmp    %edx,%ebx
  je     L32
  mov    0x0(%r13,%rax,4),%edi
  lea    0x1(%rdi),%ecx
  add    %ecx,0x0(%r13,%rdx,4)
L32:
  add    $0x1,%rax
  cmp    %r15,%rax
  jne    L107
  xor    %ecx,%ecx
  nopl   0x0(%rax)
L37:
  movslq %ecx,%rsi
  mov    0x0(%rbp,%rsi,4),%eax
  cmp    %eax,%ebx
  jne    L83
  jmp    L96
  nopl   (%rax)
L46:
  mov    0x0(%rbp,%rdx,4),%edx
  mov    %eax,%ecx
  cmp    %edx,%ebx
  je     L96
  mov    %edx,%eax
L83:
  movslq %eax,%rdx
  cmp    %r12d,0x0(%r13,%rdx,4)
  jl     L46
L96:
  mov    %ecx,(%r14,%rsi,4)
  add    $0x1,%ecx
  cmp    %ecx,%ebx
  jle    L115
  movslq %ecx,%rax
  jmp    L47
  xchg   %ax,%ax
L106:
  add    $0x1,%rax
  cmp    %eax,%ebx
  jle    L115
L47:
  mov    0x0(%r13,%rax,4),%edx
  mov    %eax,%ecx
  test   %edx,%edx
  jne    L106
  cmp    %eax,%ebx
  jg     L37
L115:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void relax_snode(const int n, int *et, const int relax_columns, int *descendants, int *relax_end) {
  register int j, parent;
  register int snode_start;
  ifill(relax_end, n, (-1));
  for (j = 0; j < n; j++)
    descendants[j] = 0;
  for (j = 0; j < n; j++) {
    parent = et[j];
    if (parent != n)
      descendants[parent] += descendants[j] + 1;
  }
  for (j = 0; j < n;) {
    parent = et[j];
    snode_start = j;
    while (parent != n && descendants[parent] < relax_columns) {
      j = parent;
      parent = et[j];
    }
    relax_end[snode_start] = j;
    j++;
    while (j < n && descendants[j] != 0)
      j++;
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<relax_snode>:
  endbr64
  push   %r15
  push   %r14
  mov    %r8,%r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %edx,%r12d
  mov    $0xffffffff,%edx
  push   %rbp
  mov    %rsi,%rbp
  mov    %edi,%esi
  push   %rbx
  mov    %edi,%ebx
  mov    %r8,%rdi
  sub    $0x8,%rsp
  call   <ifill@plt>
  test   %ebx,%ebx
  jle    L62
  movslq %ebx,%r15
  xor    %esi,%esi
  mov    %r13,%rdi
  lea    0x0(,%r15,4),%rdx
  call   <memset@plt>
  xor    %eax,%eax
  xchg   %ax,%ax
L21:
  movslq 0x0(%rbp,%rax,4),%rdx
  cmp    %edx,%ebx
  je     L74
  mov    0x0(%r13,%rax,4),%edi
  lea    0x1(%rdi),%ecx
  add    %ecx,0x0(%r13,%rdx,4)
L74:
  add    $0x1,%rax
  cmp    %r15,%rax
  jne    L21
  xor    %ecx,%ecx
  nopl   0x0(%rax)
L82:
  movslq %ecx,%rsi
  mov    0x0(%rbp,%rsi,4),%eax
  cmp    %eax,%ebx
  jne    L101
  jmp    L41
  nopl   (%rax)
L40:
  mov    0x0(%rbp,%rdx,4),%edx
  mov    %eax,%ecx
  cmp    %edx,%ebx
  je     L41
  mov    %edx,%eax
L101:
  movslq %eax,%rdx
  cmp    %r12d,0x0(%r13,%rdx,4)
  jl     L40
L41:
  mov    %ecx,(%r14,%rsi,4)
  add    $0x1,%ecx
  cmp    %ecx,%ebx
  jle    L62
  movslq %ecx,%rax
  jmp    L27
  xchg   %ax,%ax
L23:
  add    $0x1,%rax
  cmp    %eax,%ebx
  jle    L62
L27:
  mov    0x0(%r13,%rax,4),%edx
  mov    %eax,%ecx
  test   %edx,%edx
  jne    L23
  cmp    %eax,%ebx
  jg     L82
L62:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void relax_snode(const int n, int *et, const int relax_columns, int *descendants, int *relax_end) {
  register int j, parent;
  register int snode_start;
  ifill(relax_end, n, (-1));
  for (j = 0; j < n; j++)
    descendants[j] = 0;
  for (j = 0; j < n; j++) {
    parent = et[j];
    if (parent != n)
      descendants[parent] += descendants[j] + 1;
  }
  for (j = 0; j < n;) {
    parent = et[j];
    snode_start = j;
    while (parent != n && descendants[parent] < relax_columns) {
      j = parent;
      parent = et[j];
    }
    relax_end[snode_start] = j;
    j++;
    while (j < n && descendants[j] != 0)
      j++;
  }
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<multiply37>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %edi,-0x44(%rbp)
  mov    %esi,-0x48(%rbp)
  mov    %rdx,-0x50(%rbp)
  mov    %rcx,-0x58(%rbp)
  mov    %r8,-0x60(%rbp)
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x38(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  mov    -0x44(%rbp),%edx
  movslq %edx,%rcx
  sub    $0x1,%rcx
  mov    %rcx,-0x30(%rbp)
  movslq %edx,%rcx
  mov    %rcx,%r12
  mov    $0x0,%r13d
  mov    -0x44(%rbp),%ecx
  movslq %ecx,%rsi
  sub    $0x1,%rsi
  mov    %rsi,-0x28(%rbp)
  movslq %ecx,%rsi
  mov    %rsi,%r10
  mov    $0x0,%r11d
  movl   $0x0,-0x40(%rbp)
  jmp    L16
L3:
  movl   $0x0,-0x3c(%rbp)
  jmp    L30
L32:
  mov    -0x40(%rbp),%esi
  movslq %esi,%rdi
  movslq %eax,%rsi
  imul   %rdi,%rsi
  lea    0x0(,%rsi,4),%rdi
  mov    -0x50(%rbp),%rsi
  add    %rsi,%rdi
  mov    -0x3c(%rbp),%esi
  movslq %esi,%rsi
  mov    (%rdi,%rsi,4),%esi
  imul   -0x48(%rbp),%esi
  mov    %esi,%r9d
  mov    -0x40(%rbp),%esi
  movslq %esi,%rdi
  movslq %edx,%rsi
  imul   %rdi,%rsi
  lea    0x0(,%rsi,4),%rdi
  mov    -0x58(%rbp),%rsi
  add    %rsi,%rdi
  mov    -0x3c(%rbp),%esi
  movslq %esi,%rsi
  mov    (%rdi,%rsi,4),%r8d
  mov    -0x40(%rbp),%esi
  movslq %esi,%rdi
  movslq %ecx,%rsi
  imul   %rdi,%rsi
  lea    0x0(,%rsi,4),%rdi
  mov    -0x60(%rbp),%rsi
  add    %rsi,%rdi
  add    %r9d,%r8d
  mov    -0x3c(%rbp),%esi
  movslq %esi,%rsi
  mov    %r8d,(%rdi,%rsi,4)
  addl   $0x1,-0x3c(%rbp)
L30:
  mov    -0x3c(%rbp),%esi
  cmp    -0x44(%rbp),%esi
  jl     L32
  addl   $0x1,-0x40(%rbp)
L16:
  mov    -0x40(%rbp),%esi
  cmp    -0x44(%rbp),%esi
  jl     L3
  nop
  nop
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
void multiply37(int n, int a, int tab1[n][n], int tab2[n][n], int tab3[n][n]) {
  int i, j, k;
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      tab3[i][j] = a * tab1[i][j] + tab2[i][j];
    }
  }
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<multiply37>:
  endbr64
  test   %edi,%edi
  jle    L20
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  mov    %esi,%r10d
  movslq %edi,%r12
  shl    $0x2,%r12
  mov    %rdx,%rbp
  mov    $0x0,%r13d
  mov    %edi,%r11d
L23:
  mov    %rbp,%r9
  mov    %rcx,%rdi
  mov    %r8,%rsi
  mov    $0x0,%eax
L19:
  mov    %r10d,%edx
  imul   (%r9,%rax,4),%edx
  add    (%rdi,%rax,4),%edx
  mov    %edx,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%r11
  jne    L19
  add    $0x1,%r13d
  add    %r12,%rbp
  add    %r12,%rcx
  add    %r12,%r8
  cmp    %r13d,%ebx
  jne    L23
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L20:
  ret
```

assistant: ```c
void multiply37(int n, int a, int tab1[n][n], int tab2[n][n], int tab3[n][n]) {
  int i, j, k;
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      tab3[i][j] = a * tab1[i][j] + tab2[i][j];
    }
  }
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<multiply37>:
  endbr64
  test   %edi,%edi
  jle    L17
  movslq %edi,%r10
  push   %rbx
  mov    %esi,%r9d
  xor    %r11d,%r11d
  lea    0x0(,%r10,4),%rbx
  nopw   0x0(%rax,%rax,1)
L10:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L20:
  mov    (%rdx,%rax,4),%esi
  imul   %r9d,%esi
  add    (%rcx,%rax,4),%esi
  mov    %esi,(%r8,%rax,4)
  add    $0x1,%rax
  cmp    %r10,%rax
  jne    L20
  add    $0x1,%r11d
  add    %rbx,%rdx
  add    %rbx,%rcx
  add    %rbx,%r8
  cmp    %r11d,%edi
  jne    L10
  pop    %rbx
  ret
L17:
  ret
```

assistant: ```c
void multiply37(int n, int a, int tab1[n][n], int tab2[n][n], int tab3[n][n]) {
  int i, j, k;
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      tab3[i][j] = a * tab1[i][j] + tab2[i][j];
    }
  }
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<multiply37>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  movslq %edi,%rbp
  push   %rbx
  test   %ebp,%ebp
  jle    L92
  mov    %rbp,%r11
  mov    %esi,%ebx
  lea    0x4(%rdx),%r10
  mov    %r8,%rax
  mov    %r11d,%edx
  mov    %r11d,%esi
  lea    0x4(%rcx),%r9
  shl    $0x2,%rbp
  and    $0xfffffffc,%esi
  shr    $0x2,%edx
  movd   %ebx,%xmm4
  xor    %r12d,%r12d
  lea    0x1(%rsi),%ecx
  lea    0x2(%rsi),%edi
  mov    %esi,-0x24(%rsp)
  movslq %esi,%r13
  lea    -0x1(%rdx),%r8d
  mov    %r11d,%esi
  lea    -0x1(%r11),%edx
  mov    %ecx,-0x20(%rsp)
  pshufd $0x0,%xmm4,%xmm2
  mov    %edi,-0x1c(%rsp)
  add    $0x1,%r8
  movslq %ecx,%r14
  mov    %edx,-0x28(%rsp)
  movdqa %xmm2,%xmm3
  shl    $0x4,%r8
  movslq %edi,%r15
  mov    %rsi,-0x10(%rsp)
  psrlq  $0x20,%xmm3
  nopl   (%rax)
L11:
  mov    %rax,%rdx
  lea    -0x4(%r10),%rcx
  lea    -0x4(%r9),%rsi
  sub    %r10,%rdx
  cmp    $0x8,%rdx
  mov    %rax,%rdx
  seta   %dil
  sub    %r9,%rdx
  cmp    $0x8,%rdx
  seta   %dl
  test   %dl,%dil
  je     L53
  xor    %edx,%edx
  cmpl   $0x2,-0x28(%rsp)
  jbe    L53
  nopl   0x0(%rax)
L86:
  movdqu (%rcx,%rdx,1),%xmm0
  movdqu (%rcx,%rdx,1),%xmm1
  psrlq  $0x20,%xmm0
  pmuludq %xmm2,%xmm1
  pmuludq %xmm3,%xmm0
  pshufd $0x8,%xmm1,%xmm1
  pshufd $0x8,%xmm0,%xmm0
  punpckldq %xmm0,%xmm1
  movdqu (%rsi,%rdx,1),%xmm0
  paddd  %xmm1,%xmm0
  movups %xmm0,(%rax,%rdx,1)
  add    $0x10,%rdx
  cmp    %r8,%rdx
  jne    L86
  cmp    -0x24(%rsp),%r11d
  je     L9
  mov    (%rcx,%r13,4),%edx
  imul   %ebx,%edx
  add    (%rsi,%r13,4),%edx
  mov    %edx,(%rax,%r13,4)
  cmp    -0x20(%rsp),%r11d
  jle    L9
  mov    (%rcx,%r14,4),%edx
  imul   %ebx,%edx
  add    (%rsi,%r14,4),%edx
  mov    %edx,(%rax,%r14,4)
  cmp    -0x1c(%rsp),%r11d
  jle    L9
  mov    (%rcx,%r15,4),%edx
  imul   %ebx,%edx
  add    (%rsi,%r15,4),%edx
  mov    %edx,(%rax,%r15,4)
L9:
  add    $0x1,%r12d
  add    %rbp,%rax
  add    %rbp,%r10
  add    %rbp,%r9
  cmp    %r12d,%r11d
  jne    L11
L92:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L53:
  mov    %r8,-0x18(%rsp)
  mov    -0x10(%rsp),%r8
  xor    %edx,%edx
  nopl   0x0(%rax)
L34:
  mov    (%rcx,%rdx,4),%edi
  imul   %ebx,%edi
  add    (%rsi,%rdx,4),%edi
  mov    %edi,(%rax,%rdx,4)
  add    $0x1,%rdx
  cmp    %rdx,%r8
  jne    L34
  mov    -0x18(%rsp),%r8
  jmp    L9
```

assistant: ```c
void multiply37(int n, int a, int tab1[n][n], int tab2[n][n], int tab3[n][n]) {
  int i, j, k;
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      tab3[i][j] = a * tab1[i][j] + tab2[i][j];
    }
  }
}
```