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

```asm
<main>:
  endbr64
  push   %r14
  mov    $0x1,%r14d
  push   %r13
  lea    D34(%rip),%r13
  push   %r12
  lea    D32(%rip),%r12
  push   %rbp
  lea    D31(%rip),%rbp
  push   %rbx
  mov    $0xcccccccd,%ebx
  jmp    L44
  xchg   %ax,%ax
L48:
  test   %eax,%eax
  je     L68
  mov    %r13,%rdi
  call   <puts@plt>
L39:
  add    $0x1,%r14d
  cmp    $0x65,%r14d
  je     L4
L44:
  mov    %r14d,%eax
  imul   %rbx,%rax
  shr    $0x22,%rax
  lea    (%rax,%rax,4),%edx
  mov    %r14d,%eax
  sub    %edx,%eax
  imul   $0xaaaaaaab,%r14d,%edx
  cmp    $0x55555555,%edx
  jbe    L48
  test   %eax,%eax
  jne    L57
  mov    %rbp,%rdi
  add    $0x1,%r14d
  call   <puts@plt>
  cmp    $0x65,%r14d
  jne    L44
L4:
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L57:
  mov    %r14d,%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L39
  nop
L68:
  lea    D18(%rip),%rdi
  call   <puts@plt>
  jmp    L39
```

tool_calls: name: retrieve_data
arguments: label: D34
type_infered: string
name: retrieve_data
arguments: label: D32
type_infered: string
name: retrieve_data
arguments: label: D31
type_infered: string
name: retrieve_data
arguments: label: D18
type_infered: string

tool: D34: fizz

tool: D32: %d


tool: D31: buzz

tool: D18: fizzbuzz

assistant: ```c
int main() {
  int i;
  for (i = 1; i <= 100; ++i) {
    if (i % 3 == 0 && i % 5 == 0) {
      printf("fizzbuzz\n");
    } else if (i % 3 == 0) {
      printf("fizz\n");
    } else if (i % 5 == 0) {
      printf("buzz\n");
    } else {
      printf("%d\n", i);
    }
  }
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movsd  D77(%rip),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  D75(%rip),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  D94(%rip),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  D5(%rip),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  D88(%rip),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  D17(%rip),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  D65(%rip),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  D53(%rip),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movl   $0x4,-0x60(%rbp)
  movl   $0x2,-0x5c(%rbp)
  mov    -0x5c(%rbp),%edx
  lea    -0x50(%rbp),%rsi
  mov    D88(%rip),%rcx
  mov    -0x60(%rbp),%eax
  movq   %rcx,%xmm0
  mov    %eax,%edi
  call   <stdlib_strided_dapxsumkbn@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  movq   %rax,%xmm0
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L4
  call   <__stack_chk_fail@plt>
L4:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D77
type: f64
name: disassemble_data
arguments: data_label: D75
type: f64
name: disassemble_data
arguments: data_label: D94
type: f64
name: disassemble_data
arguments: data_label: D5
type: f64
name: disassemble_data
arguments: data_label: D88
type: f64
name: disassemble_data
arguments: data_label: D17
type: f64
name: disassemble_data
arguments: data_label: D65
type: f64
name: disassemble_data
arguments: data_label: D53
type: f64
name: disassemble_data
arguments: data_label: D11
type: string

tool: D77: 1

tool: D75: 2

tool: D94: 3

tool: D5: 4

tool: D88: 5

tool: D17: 6

tool: D65: 7

tool: D53: 8

tool: D11: sum: %lf


assistant: ```c
int main() {
  double x[] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0};
  int64_t N = 4;
  int64_t stride = 2;
  double v = stdlib_strided_dapxsumkbn(N, 5.0, x, stride);
  printf("sum: %lf\n", v);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  mov    D34(%rip),%rax
  mov    %rax,(%rsp)
  mov    D37(%rip),%rax
  mov    %rax,0x8(%rsp)
  mov    D48(%rip),%rax
  mov    %rax,0x10(%rsp)
  mov    D85(%rip),%rax
  mov    %rax,0x18(%rsp)
  movsd  D27(%rip),%xmm0
  movsd  %xmm0,0x20(%rsp)
  mov    D53(%rip),%rax
  mov    %rax,0x28(%rsp)
  mov    D84(%rip),%rax
  mov    %rax,0x30(%rsp)
  mov    D87(%rip),%rax
  mov    %rax,0x38(%rsp)
  mov    %rsp,%rsi
  mov    $0x2,%edx
  mov    $0x4,%edi
  call   <stdlib_strided_dapxsumkbn@plt>
  lea    D42(%rip),%rdi
  call   <printf@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  mov    $0x0,%eax
  add    $0x58,%rsp
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D34
data_type: f64
name: extract_symbolic_data
arguments: data_label: D37
data_type: f64
name: extract_symbolic_data
arguments: data_label: D48
data_type: f64
name: extract_symbolic_data
arguments: data_label: D85
data_type: f64
name: extract_symbolic_data
arguments: data_label: D27
data_type: f64
name: extract_symbolic_data
arguments: data_label: D53
data_type: f64
name: extract_symbolic_data
arguments: data_label: D84
data_type: f64
name: extract_symbolic_data
arguments: data_label: D87
data_type: f64
name: extract_symbolic_data
arguments: data_label: D42
data_type: string

tool: D34: 1

tool: D37: 2

tool: D48: 3

tool: D85: 4

tool: D27: 5

tool: D53: 6

tool: D84: 7

tool: D87: 8

tool: D42: sum: %lf


assistant: ```c
int main() {
  double x[] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0};
  int64_t N = 4;
  int64_t stride = 2;
  double v = stdlib_strided_dapxsumkbn(N, 5.0, x, stride);
  printf("sum: %lf\n", v);
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  sub    $0x58,%rsp
  mov    $0x4,%edi
  mov    $0x2,%edx
  movsd  D64(%rip),%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  mov    D69(%rip),%rax
  mov    %rsp,%rsi
  movsd  %xmm0,0x20(%rsp)
  mov    %rax,(%rsp)
  mov    D45(%rip),%rax
  mov    %rax,0x8(%rsp)
  mov    D62(%rip),%rax
  mov    %rax,0x10(%rsp)
  mov    D28(%rip),%rax
  mov    %rax,0x18(%rsp)
  mov    D68(%rip),%rax
  mov    %rax,0x28(%rsp)
  mov    D39(%rip),%rax
  mov    %rax,0x30(%rsp)
  mov    D57(%rip),%rax
  mov    %rax,0x38(%rsp)
  call   <stdlib_strided_dapxsumkbn@plt>
  lea    D44(%rip),%rdi
  call   <printf@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  xor    %eax,%eax
  add    $0x58,%rsp
  ret
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D64
type_guessed: f64
name: read_data
arguments: data_tag: D69
type_guessed: f64
name: read_data
arguments: data_tag: D45
type_guessed: f64
name: read_data
arguments: data_tag: D62
type_guessed: f64
name: read_data
arguments: data_tag: D28
type_guessed: f64
name: read_data
arguments: data_tag: D68
type_guessed: f64
name: read_data
arguments: data_tag: D39
type_guessed: f64
name: read_data
arguments: data_tag: D57
type_guessed: f64
name: read_data
arguments: data_tag: D44
type_guessed: string

tool: D64: 5

tool: D69: 1

tool: D45: 2

tool: D62: 3

tool: D28: 4

tool: D68: 6

tool: D39: 7

tool: D57: 8

tool: D44: sum: %lf


assistant: ```c
int main() {
  double x[] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0};
  int64_t N = 4;
  int64_t stride = 2;
  double v = stdlib_strided_dapxsumkbn(N, 5.0, x, stride);
  printf("sum: %lf\n", v);
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  sub    $0x58,%rsp
  mov    $0x4,%edi
  mov    $0x2,%edx
  movapd D0(%rip),%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rsi
  movaps %xmm0,(%rsp)
  movapd D44(%rip),%xmm0
  movaps %xmm0,0x10(%rsp)
  movapd D13(%rip),%xmm0
  movaps %xmm0,0x20(%rsp)
  movapd D24(%rip),%xmm0
  movaps %xmm0,0x30(%rsp)
  movsd  D13(%rip),%xmm0
  call   <stdlib_strided_dapxsumkbn@plt>
  lea    D45(%rip),%rdi
  call   <printf@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  xor    %eax,%eax
  add    $0x58,%rsp
  ret
L6:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D0
datatype: f64[2]
name: disassemble_data
arguments: tag: D44
datatype: f64[2]
name: disassemble_data
arguments: tag: D13
datatype: f64[2]
name: disassemble_data
arguments: tag: D24
datatype: f64[2]
name: disassemble_data
arguments: tag: D45
datatype: string

tool: {"D0": [1.0,2.0]}

tool: {"D44": [3.0,4.0]}

tool: {"D13": [5.0,6.0]}

tool: {"D24": [7.0,8.0]}

tool: D45: sum: %lf


assistant: ```c
int main() {
  double x[] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0};
  int64_t N = 4;
  int64_t stride = 2;
  double v = stdlib_strided_dapxsumkbn(N, 5.0, x, stride);
  printf("sum: %lf\n", v);
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<lset>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  mov    %ecx,-0x28(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  jne    L17
  lea    D9(%rip),%rax
  mov    %rax,-0x20(%rbp)
L17:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jle    L28
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x4(%rbp)
L28:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x24(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jle    L16
  mov    -0x24(%rbp),%eax
  sub    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x4(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x18(%rbp),%rax
  add    %rax,%rcx
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  mov    %rcx,%rdi
  call   <memset@plt>
L16:
  nop
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D9
type_infered: string

tool: 

assistant: ```c
void lset(p, s, n, c) char *s;
char *p;
int n;
int c;
{
  int x;
  if (!s)
    s = "";
  x = strlen(s);
  if (x > n)
    x = n;
  memcpy(p, s, x);
  if (n > x)
    memset(p + x, c, n - x);
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<lset>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r13
  mov    %rsi,%rbp
  mov    %edx,%r12d
  mov    %ecx,%r14d
  test   %rsi,%rsi
  lea    D3(%rip),%rax
  cmove  %rax,%rbp
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    %eax,%r12d
  cmovle %r12d,%eax
  mov    %eax,%ebx
  movslq %eax,%r15
  mov    %r15,%rdx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <memcpy@plt>
  cmp    %r12d,%ebx
  jl     L4
L10:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L4:
  sub    %ebx,%r12d
  movslq %r12d,%rdx
  lea    0x0(%r13,%r15,1),%rdi
  mov    %r14d,%esi
  call   <memset@plt>
  jmp    L10
```

tool_calls: name: unpack_data
arguments: tag: D3
type: string

tool: 

assistant: ```c
void lset(p, s, n, c) char *s;
char *p;
int n;
int c;
{
  int x;
  if (!s)
    s = "";
  x = strlen(s);
  if (x > n)
    x = n;
  memcpy(p, s, x);
  if (n > x)
    memset(p + x, c, n - x);
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<lset>:
  endbr64
  push   %r15
  xor    %eax,%eax
  push   %r14
  lea    D3(%rip),%r14
  push   %r13
  mov    %ecx,%r13d
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  sub    $0x8,%rsp
  test   %rsi,%rsi
  je     L4
  mov    %rsi,%rdi
  mov    %rsi,%r14
  call   <strlen@plt>
L4:
  cmp    %eax,%ebp
  mov    %r14,%rsi
  mov    %r12,%rdi
  cmovle %ebp,%eax
  movslq %eax,%r15
  mov    %r15,%rdx
  call   <memcpy@plt>
  cmp    %ebp,%r15d
  jl     L2
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L2:
  add    $0x8,%rsp
  sub    %r15d,%ebp
  lea    (%r12,%r15,1),%rdi
  mov    %r13d,%esi
  pop    %rbx
  movslq %ebp,%rdx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <memset@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D3
type_guessed: string

tool: 

assistant: ```c
void lset(p, s, n, c) char *s;
char *p;
int n;
int c;
{
  int x;
  if (!s)
    s = "";
  x = strlen(s);
  if (x > n)
    x = n;
  memcpy(p, s, x);
  if (n > x)
    memset(p + x, c, n - x);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<lset>:
  endbr64
  push   %r15
  xor    %eax,%eax
  push   %r14
  lea    D0(%rip),%r14
  push   %r13
  mov    %ecx,%r13d
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  sub    $0x8,%rsp
  test   %rsi,%rsi
  je     L7
  mov    %rsi,%rdi
  mov    %rsi,%r14
  call   <strlen@plt>
L7:
  cmp    %eax,%ebp
  mov    %r14,%rsi
  mov    %r12,%rdi
  cmovle %ebp,%eax
  movslq %eax,%r15
  mov    %r15,%rdx
  call   <memcpy@plt>
  cmp    %ebp,%r15d
  jl     L13
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L13:
  add    $0x8,%rsp
  sub    %r15d,%ebp
  lea    (%r12,%r15,1),%rdi
  mov    %r13d,%esi
  pop    %rbx
  movslq %ebp,%rdx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <memset@plt>
```

tool_calls: name: read_data
arguments: tag: D0
type_infered: string

tool: 

assistant: ```c
void lset(p, s, n, c) char *s;
char *p;
int n;
int c;
{
  int x;
  if (!s)
    s = "";
  x = strlen(s);
  if (x > n)
    x = n;
  memcpy(p, s, x);
  if (n > x)
    memset(p + x, c, n - x);
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<negative_scaler_tiny>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L92
L110:
  cmpl   $0x0,-0x18(%rbp)
  je     L50
  movl   $0x0,-0x4(%rbp)
  jmp    L67
L62:
  mov    -0x14(%rbp),%eax
  lea    0x4(%rax),%edx
  mov    -0x8(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x8(%rbp),%eax
  lea    0x16e(%rax),%edx
  mov    -0x14(%rbp),%eax
  sub    $0x4,%eax
  sub    -0x8(%rbp),%eax
  mov    %eax,%esi
  mov    $0x162,%eax
  sub    -0x8(%rbp),%eax
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    %eax,%edi
  call   <set@plt>
  addl   $0x1,-0x4(%rbp)
L67:
  cmpl   $0x5,-0x4(%rbp)
  jle    L62
  jmp    L29
L50:
  mov    -0x14(%rbp),%eax
  lea    0x4(%rax),%edx
  mov    -0x8(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x8(%rbp),%eax
  lea    0x16e(%rax),%edx
  mov    -0x14(%rbp),%eax
  sub    $0x4,%eax
  sub    -0x8(%rbp),%eax
  mov    %eax,%esi
  mov    $0x162,%eax
  sub    -0x8(%rbp),%eax
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    %eax,%edi
  call   <set@plt>
  mov    $0x5,%edi
  call   <pause@plt>
L29:
  addl   $0x1,-0x8(%rbp)
L92:
  cmpl   $0x1d,-0x8(%rbp)
  jle    L110
  movl   $0x1e,-0x8(%rbp)
  jmp    L112
L35:
  cmpl   $0x0,-0x18(%rbp)
  je     L86
  movl   $0x0,-0x4(%rbp)
  jmp    L16
L89:
  mov    -0x14(%rbp),%eax
  lea    0x4(%rax),%edx
  mov    -0x8(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x8(%rbp),%eax
  lea    0x16e(%rax),%edx
  mov    -0x14(%rbp),%eax
  sub    $0x4,%eax
  sub    -0x8(%rbp),%eax
  mov    %eax,%esi
  mov    $0x162,%eax
  sub    -0x8(%rbp),%eax
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    %eax,%edi
  call   <set@plt>
  addl   $0x1,-0x4(%rbp)
L16:
  cmpl   $0x5,-0x4(%rbp)
  jle    L89
  jmp    L7
L86:
  mov    -0x14(%rbp),%eax
  lea    0x4(%rax),%edx
  mov    -0x8(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x8(%rbp),%eax
  lea    0x16e(%rax),%edx
  mov    -0x14(%rbp),%eax
  sub    $0x4,%eax
  sub    -0x8(%rbp),%eax
  mov    %eax,%esi
  mov    $0x162,%eax
  sub    -0x8(%rbp),%eax
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    %eax,%edi
  call   <set@plt>
  mov    $0x5,%edi
  call   <pause@plt>
L7:
  subl   $0x1,-0x8(%rbp)
L112:
  cmpl   $0x0,-0x8(%rbp)
  jg     L35
  nop
  nop
  leave
  ret
```

assistant: ```c
void negative_scaler_tiny(int ystart, int every) {
  int i, t;
  for (i = 0; i < 30; i++) {
    if (every) {
      for (t = 0; t < 6; t++)
        set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
    } else {
      set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
      pause(5);
    }
  }
  for (i = 30; i > 0; i--) {
    if (every) {
      for (t = 0; t < 6; t++)
        set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
    } else {
      set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
      pause(5);
    }
  }
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<negative_scaler_tiny>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edi,0xc(%rsp)
  mov    %esi,%r15d
  lea    -0x4(%rdi),%r14d
  lea    0x4(%rdi),%r13d
  mov    $0x16e,%r12d
  mov    $0x162,%ebx
  jmp    L50
L78:
  mov    $0x6,%ebp
L3:
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    %r13d,%ecx
  mov    %r12d,%edx
  mov    %r14d,%esi
  mov    %ebx,%edi
  call   <set@plt>
  sub    $0x1,%ebp
  jne    L3
L6:
  sub    $0x1,%ebx
  sub    $0x1,%r14d
  add    $0x1,%r12d
  add    $0x1,%r13d
  cmp    $0x144,%ebx
  je     L95
L50:
  test   %r15d,%r15d
  jne    L78
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    %r13d,%ecx
  mov    %r12d,%edx
  mov    %r14d,%esi
  mov    %ebx,%edi
  call   <set@plt>
  mov    $0x5,%edi
  call   <pause@plt>
  jmp    L6
L95:
  mov    0xc(%rsp),%eax
  lea    -0x22(%rax),%r13d
  lea    0x22(%rax),%r12d
  mov    $0x18c,%r14d
  jmp    L30
L12:
  mov    $0x6,%ebp
L99:
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    %r12d,%ecx
  mov    %r14d,%edx
  mov    %r13d,%esi
  mov    %ebx,%edi
  call   <set@plt>
  sub    $0x1,%ebp
  jne    L99
L73:
  add    $0x1,%ebx
  add    $0x1,%r13d
  sub    $0x1,%r14d
  sub    $0x1,%r12d
  cmp    $0x162,%ebx
  je     L22
L30:
  test   %r15d,%r15d
  jne    L12
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    %r12d,%ecx
  mov    %r14d,%edx
  mov    %r13d,%esi
  mov    %ebx,%edi
  call   <set@plt>
  mov    $0x5,%edi
  call   <pause@plt>
  jmp    L73
L22:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void negative_scaler_tiny(int ystart, int every) {
  int i, t;
  for (i = 0; i < 30; i++) {
    if (every) {
      for (t = 0; t < 6; t++)
        set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
    } else {
      set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
      pause(5);
    }
  }
  for (i = 30; i > 0; i--) {
    if (every) {
      for (t = 0; t < 6; t++)
        set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
    } else {
      set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
      pause(5);
    }
  }
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<negative_scaler_tiny>:
  endbr64
  push   %r15
  lea    0x166(%rdi),%eax
  push   %r14
  lea    -0x166(%rdi),%r14d
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    $0x162,%ebx
  sub    $0x18,%rsp
  mov    %esi,0x8(%rsp)
  mov    %eax,0xc(%rsp)
  jmp    L21
  xchg   %ax,%ax
L35:
  mov    %ebx,%edi
  mov    $0x1,%r9d
  xor    %r8d,%r8d
  mov    %r15d,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  call   <set@plt>
  mov    $0x5,%edi
  call   <pause@plt>
L1:
  sub    $0x1,%ebx
  cmp    $0x144,%ebx
  je     L14
L21:
  mov    0xc(%rsp),%r15d
  mov    0x8(%rsp),%edx
  mov    $0x2d0,%r13d
  lea    (%rbx,%r14,1),%r12d
  sub    %ebx,%r13d
  sub    %ebx,%r15d
  test   %edx,%edx
  je     L35
  mov    $0x6,%ebp
L58:
  xor    %r8d,%r8d
  mov    $0x1,%r9d
  mov    %r15d,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebx,%edi
  call   <set@plt>
  sub    $0x1,%ebp
  jne    L58
  jmp    L1
L81:
  mov    %ebx,%edi
  mov    $0x1,%r9d
  xor    %r8d,%r8d
  mov    %r12d,%ecx
  mov    %r13d,%edx
  mov    %r15d,%esi
  add    $0x1,%ebx
  call   <set@plt>
  mov    $0x5,%edi
  call   <pause@plt>
  cmp    $0x162,%ebx
  je     L60
L14:
  mov    0xc(%rsp),%r12d
  mov    0x8(%rsp),%eax
  mov    $0x2d0,%r13d
  lea    (%rbx,%r14,1),%r15d
  sub    %ebx,%r13d
  sub    %ebx,%r12d
  test   %eax,%eax
  je     L81
  mov    $0x6,%ebp
L38:
  xor    %r8d,%r8d
  mov    $0x1,%r9d
  mov    %r12d,%ecx
  mov    %r13d,%edx
  mov    %r15d,%esi
  mov    %ebx,%edi
  call   <set@plt>
  sub    $0x1,%ebp
  jne    L38
  add    $0x1,%ebx
  cmp    $0x162,%ebx
  jne    L14
L60:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void negative_scaler_tiny(int ystart, int every) {
  int i, t;
  for (i = 0; i < 30; i++) {
    if (every) {
      for (t = 0; t < 6; t++)
        set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
    } else {
      set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
      pause(5);
    }
  }
  for (i = 30; i > 0; i--) {
    if (every) {
      for (t = 0; t < 6; t++)
        set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
    } else {
      set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
      pause(5);
    }
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<negative_scaler_tiny>:
  endbr64
  push   %r15
  lea    0x166(%rdi),%eax
  push   %r14
  lea    -0x166(%rdi),%r14d
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    $0x162,%ebx
  sub    $0x18,%rsp
  mov    %esi,0x8(%rsp)
  mov    %eax,0xc(%rsp)
  jmp    L24
  xchg   %ax,%ax
L2:
  mov    %ebx,%edi
  mov    $0x1,%r9d
  xor    %r8d,%r8d
  mov    %r15d,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  call   <set@plt>
  mov    $0x5,%edi
  call   <pause@plt>
L43:
  sub    $0x1,%ebx
  cmp    $0x144,%ebx
  je     L85
L24:
  mov    0xc(%rsp),%r15d
  mov    0x8(%rsp),%edx
  mov    $0x2d0,%r13d
  lea    (%rbx,%r14,1),%r12d
  sub    %ebx,%r13d
  sub    %ebx,%r15d
  test   %edx,%edx
  je     L2
  mov    $0x6,%ebp
L53:
  xor    %r8d,%r8d
  mov    $0x1,%r9d
  mov    %r15d,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebx,%edi
  call   <set@plt>
  sub    $0x1,%ebp
  jne    L53
  jmp    L43
L63:
  mov    %ebx,%edi
  mov    $0x1,%r9d
  xor    %r8d,%r8d
  mov    %r12d,%ecx
  mov    %r13d,%edx
  mov    %r15d,%esi
  add    $0x1,%ebx
  call   <set@plt>
  mov    $0x5,%edi
  call   <pause@plt>
  cmp    $0x162,%ebx
  je     L72
L85:
  mov    0xc(%rsp),%r12d
  mov    0x8(%rsp),%eax
  mov    $0x2d0,%r13d
  lea    (%r14,%rbx,1),%r15d
  sub    %ebx,%r13d
  sub    %ebx,%r12d
  test   %eax,%eax
  je     L63
  mov    $0x6,%ebp
L12:
  xor    %r8d,%r8d
  mov    $0x1,%r9d
  mov    %r12d,%ecx
  mov    %r13d,%edx
  mov    %r15d,%esi
  mov    %ebx,%edi
  call   <set@plt>
  sub    $0x1,%ebp
  jne    L12
  add    $0x1,%ebx
  cmp    $0x162,%ebx
  jne    L85
L72:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void negative_scaler_tiny(int ystart, int every) {
  int i, t;
  for (i = 0; i < 30; i++) {
    if (every) {
      for (t = 0; t < 6; t++)
        set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
    } else {
      set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
      pause(5);
    }
  }
  for (i = 30; i > 0; i--) {
    if (every) {
      for (t = 0; t < 6; t++)
        set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
    } else {
      set(360 - 6 - i, ystart - 4 - i, 360 + 6 + i, ystart + 4 + i, 0, 0x0001);
      pause(5);
    }
  }
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<hashit>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L4
L2:
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x8(%rbp)
L4:
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  jne    L2
  mov    -0x8(%rbp),%eax
  pop    %rbp
  ret
```

assistant: ```c
int hashit(const char *source) {
  unsigned int x = 0;
  unsigned int c;
  while (c = *source++) {
    x = 3 * x + c;
  }
  return x;
}
```