ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 请将以下的汇编代码转换成C语言代码：

```asm
<matrix_mul_double>:
  endbr64
  test   %r8d,%r8d
  je     L42
  push   %r15
  mov    %rdi,%r10
  mov    %rsi,%r11
  mov    %ecx,%edi
  push   %r14
  mov    %ecx,%esi
  xor    %r14d,%r14d
  pxor   %xmm2,%xmm2
  push   %r13
  mov    %r8d,%r13d
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  xor    %ebx,%ebx
  nopl   0x0(%rax,%rax,1)
L30:
  xor    %r8d,%r8d
  test   %r9d,%r9d
  je     L53
L15:
  mov    %r8d,%edx
  mov    %r12d,%eax
  movapd %xmm2,%xmm1
  test   %esi,%esi
  je     L3
  xchg   %ax,%ax
L44:
  mov    %eax,%r15d
  mov    %edx,%ecx
  add    $0x1,%eax
  add    %esi,%edx
  movsd  (%r10,%r15,8),%xmm0
  mulsd  (%r11,%rcx,8),%xmm0
  addsd  %xmm0,%xmm1
  cmp    %edi,%eax
  jne    L44
L3:
  lea    (%r8,%rbx,1),%eax
  add    $0x1,%r8d
  movsd  %xmm1,0x0(%rbp,%rax,8)
  cmp    %r8d,%r9d
  jne    L15
L53:
  add    $0x1,%r14d
  add    %esi,%ebx
  add    %r9d,%r12d
  add    %r9d,%edi
  cmp    %r14d,%r13d
  jne    L30
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L42:
  ret
```

assistant: ```c
void matrix_mul_double(const double *a, const double *b, double *c, const unsigned int dimX1Y2, const unsigned int dimY1, const unsigned int dimX2) {
  for (unsigned int y = 0; y < dimY1; y++) {
    for (unsigned int x = 0; x < dimX2; x++) {
      double val = 0.0;
      for (unsigned int k = 0; k < dimX1Y2; k++) {
        val += a[y * dimX2 + k] * b[k * dimX1Y2 + x];
      }
      c[y * dimX1Y2 + x] = val;
    }
  }
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<matrix_mul_double>:
  endbr64
  test   %r8d,%r8d
  je     L32
  test   %r9d,%r9d
  je     L18
  push   %r15
  mov    %rdi,%r10
  mov    %rsi,%r11
  mov    %ecx,%edi
  push   %r14
  mov    %ecx,%esi
  xor    %r14d,%r14d
  pxor   %xmm2,%xmm2
  push   %r13
  mov    %r8d,%r13d
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  xor    %ebx,%ebx
  nopl   0x0(%rax)
L56:
  xor    %r8d,%r8d
  nopl   0x0(%rax,%rax,1)
L35:
  mov    %r8d,%edx
  mov    %r12d,%eax
  movapd %xmm2,%xmm1
  test   %esi,%esi
  je     L17
  cs nopw 0x0(%rax,%rax,1)
L10:
  mov    %eax,%r15d
  mov    %edx,%ecx
  add    $0x1,%eax
  add    %esi,%edx
  movsd  (%r10,%r15,8),%xmm0
  mulsd  (%r11,%rcx,8),%xmm0
  addsd  %xmm0,%xmm1
  cmp    %edi,%eax
  jne    L10
L17:
  lea    (%r8,%rbx,1),%eax
  add    $0x1,%r8d
  movsd  %xmm1,0x0(%rbp,%rax,8)
  cmp    %r8d,%r9d
  jne    L35
  add    $0x1,%r14d
  add    %esi,%ebx
  add    %r9d,%r12d
  add    %r9d,%edi
  cmp    %r14d,%r13d
  jne    L56
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L32:
  ret
L18:
  ret
```

assistant: ```c
void matrix_mul_double(const double *a, const double *b, double *c, const unsigned int dimX1Y2, const unsigned int dimY1, const unsigned int dimX2) {
  for (unsigned int y = 0; y < dimY1; y++) {
    for (unsigned int x = 0; x < dimX2; x++) {
      double val = 0.0;
      for (unsigned int k = 0; k < dimX1Y2; k++) {
        val += a[y * dimX2 + k] * b[k * dimX1Y2 + x];
      }
      c[y * dimX1Y2 + x] = val;
    }
  }
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<refmalloc>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x8,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movq   $0x0,(%rax)
  addq   $0x8,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  leave
  ret
```

assistant: ```c
void *refmalloc(size_t size) {
  void *ptr = malloc(sizeof(size_t) + size);
  size_t *cnt = (size_t *)ptr;
  *cnt = 0;
  ptr += sizeof(size_t);
  return ptr;
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<refmalloc>:
  endbr64
  sub    $0x8,%rsp
  add    $0x8,%edi
  call   <malloc@plt>
  movq   $0x0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rsp
  ret
```

assistant: ```c
void *refmalloc(size_t size) {
  void *ptr = malloc(sizeof(size_t) + size);
  size_t *cnt = (size_t *)ptr;
  *cnt = 0;
  ptr += sizeof(size_t);
  return ptr;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<refmalloc>:
  endbr64
  sub    $0x8,%rsp
  add    $0x8,%edi
  call   <malloc@plt>
  movq   $0x0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rsp
  ret
```

assistant: ```c
void *refmalloc(size_t size) {
  void *ptr = malloc(sizeof(size_t) + size);
  size_t *cnt = (size_t *)ptr;
  *cnt = 0;
  ptr += sizeof(size_t);
  return ptr;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<refmalloc>:
  endbr64
  sub    $0x8,%rsp
  add    $0x8,%edi
  call   <malloc@plt>
  movq   $0x0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rsp
  ret
```

assistant: ```c
void *refmalloc(size_t size) {
  void *ptr = malloc(sizeof(size_t) + size);
  size_t *cnt = (size_t *)ptr;
  *cnt = 0;
  ptr += sizeof(size_t);
  return ptr;
}
```
user: Translate the below assembly code into C programming language:

```asm
<calculoRegressaoFibonacci>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x28,%rsp
  movsd  %xmm0,-0x28(%rbp)
  mov    %edi,-0x2c(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,%edi
  call   <calculoSuporte@plt>
  movq   %xmm0,%rbx
  mov    -0x2c(%rbp),%eax
  mov    %eax,%edi
  call   <calculoResistencia@plt>
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x18(%rbp),%xmm0
  mulsd  -0x28(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
double calculoRegressaoFibonacci(double fatorDeRegressao, int quantidadeVelas) {
  double variacaoDePontos = calculoSuporte(quantidadeVelas) - calculoResistencia(quantidadeVelas);
  return variacaoDePontos * fatorDeRegressao;
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<calculoRegressaoFibonacci>:
  endbr64
  push   %r14
  push   %rbp
  push   %rbx
  movq   %xmm0,%r14
  mov    %edi,%ebp
  call   <calculoSuporte@plt>
  movq   %xmm0,%rbx
  mov    %ebp,%edi
  call   <calculoResistencia@plt>
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  subsd  %xmm1,%xmm0
  movq   %r14,%xmm2
  mulsd  %xmm2,%xmm0
  pop    %rbx
  pop    %rbp
  pop    %r14
  ret
```

assistant: ```c
double calculoRegressaoFibonacci(double fatorDeRegressao, int quantidadeVelas) {
  double variacaoDePontos = calculoSuporte(quantidadeVelas) - calculoResistencia(quantidadeVelas);
  return variacaoDePontos * fatorDeRegressao;
}
```
user: What is the c source code of the assembly code below?

```asm
<calculoRegressaoFibonacci>:
  endbr64
  push   %rbp
  mov    %edi,%ebp
  sub    $0x10,%rsp
  movsd  %xmm0,(%rsp)
  call   <calculoSuporte@plt>
  mov    %ebp,%edi
  movsd  %xmm0,0x8(%rsp)
  call   <calculoResistencia@plt>
  movsd  0x8(%rsp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  (%rsp),%xmm0
  add    $0x10,%rsp
  pop    %rbp
  mulsd  %xmm1,%xmm0
  ret
```

assistant: ```c
double calculoRegressaoFibonacci(double fatorDeRegressao, int quantidadeVelas) {
  double variacaoDePontos = calculoSuporte(quantidadeVelas) - calculoResistencia(quantidadeVelas);
  return variacaoDePontos * fatorDeRegressao;
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<calculoRegressaoFibonacci>:
  endbr64
  push   %rbp
  mov    %edi,%ebp
  sub    $0x10,%rsp
  movsd  %xmm0,(%rsp)
  call   <calculoSuporte@plt>
  mov    %ebp,%edi
  movsd  %xmm0,0x8(%rsp)
  call   <calculoResistencia@plt>
  movsd  0x8(%rsp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  (%rsp),%xmm0
  add    $0x10,%rsp
  pop    %rbp
  mulsd  %xmm1,%xmm0
  ret
```

assistant: ```c
double calculoRegressaoFibonacci(double fatorDeRegressao, int quantidadeVelas) {
  double variacaoDePontos = calculoSuporte(quantidadeVelas) - calculoResistencia(quantidadeVelas);
  return variacaoDePontos * fatorDeRegressao;
}
```
user: What is the c source code of the assembly code below?

```asm
<bpf_decoder>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <LIRC_IS_PULSE@plt>
  test   %rax,%rax
  je     L17
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <LIRC_VALUE@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  and    $0x10000,%eax
  test   %eax,%eax
  je     L17
  mov    -0x4(%rbp),%eax
  movzwl %ax,%edx
  mov    -0x18(%rbp),%rax
  mov    $0x0,%ecx
  mov    $0x40,%esi
  mov    %rax,%rdi
  call   <bpf_rc_keydown@plt>
L17:
  mov    $0x0,%eax
  leave
  ret
```

assistant: ```c
__attribute__((section("lirc_mode2"), used)) int bpf_decoder(unsigned int *sample) {
  if (LIRC_IS_PULSE(*sample)) {
    unsigned int duration = LIRC_VALUE(*sample);
    if (duration & 0x10000)
      bpf_rc_keydown(sample, 0x40, duration & 0xffff, 0);
  }
  return 0;
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<bpf_decoder>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  mov    (%rdi),%edi
  call   <LIRC_IS_PULSE@plt>
  test   %rax,%rax
  jne    L25
L28:
  mov    $0x0,%eax
  pop    %rbx
  ret
L25:
  mov    (%rbx),%edi
  call   <LIRC_VALUE@plt>
  test   $0x10000,%eax
  je     L28
  movzwl %ax,%edx
  mov    $0x0,%ecx
  mov    $0x40,%esi
  mov    %rbx,%rdi
  call   <bpf_rc_keydown@plt>
  jmp    L28
```

assistant: ```c
__attribute__((section("lirc_mode2"), used)) int bpf_decoder(unsigned int *sample) {
  if (LIRC_IS_PULSE(*sample)) {
    unsigned int duration = LIRC_VALUE(*sample);
    if (duration & 0x10000)
      bpf_rc_keydown(sample, 0x40, duration & 0xffff, 0);
  }
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<bpf_decoder>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  mov    (%rdi),%edi
  call   <LIRC_IS_PULSE@plt>
  test   %rax,%rax
  jne    L12
L7:
  xor    %eax,%eax
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L12:
  mov    0x0(%rbp),%edi
  call   <LIRC_VALUE@plt>
  test   $0x10000,%eax
  je     L7
  mov    %rbp,%rdi
  movzwl %ax,%edx
  xor    %ecx,%ecx
  mov    $0x40,%esi
  call   <bpf_rc_keydown@plt>
  xor    %eax,%eax
  pop    %rbp
  ret
```

assistant: ```c
__attribute__((section("lirc_mode2"), used)) int bpf_decoder(unsigned int *sample) {
  if (LIRC_IS_PULSE(*sample)) {
    unsigned int duration = LIRC_VALUE(*sample);
    if (duration & 0x10000)
      bpf_rc_keydown(sample, 0x40, duration & 0xffff, 0);
  }
  return 0;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<bpf_decoder>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  mov    (%rdi),%edi
  call   <LIRC_IS_PULSE@plt>
  test   %rax,%rax
  jne    L4
L1:
  xor    %eax,%eax
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L4:
  mov    0x0(%rbp),%edi
  call   <LIRC_VALUE@plt>
  test   $0x10000,%eax
  je     L1
  mov    %rbp,%rdi
  movzwl %ax,%edx
  xor    %ecx,%ecx
  mov    $0x40,%esi
  call   <bpf_rc_keydown@plt>
  xor    %eax,%eax
  pop    %rbp
  ret
```

assistant: ```c
__attribute__((section("lirc_mode2"), used)) int bpf_decoder(unsigned int *sample) {
  if (LIRC_IS_PULSE(*sample)) {
    unsigned int duration = LIRC_VALUE(*sample);
    if (duration & 0x10000)
      bpf_rc_keydown(sample, 0x40, duration & 0xffff, 0);
  }
  return 0;
}
```
user: 这段汇编代码用C语言表示是什么样的:

```asm
<make_window8>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %rdi,%rbp
  mov    %esi,%ebx
  mov    %edx,%r14d
  mov    %rcx,0x8(%rsp)
  mov    %r8d,0x14(%rsp)
  lea    -0x1(%rsi),%r13d
  push   $0x0
  mov    %r13d,%r9d
  mov    $0x0,%r8d
  mov    $0x0,%ecx
  mov    $0x8,%edx
  call   <boxfill8@plt>
  lea    -0x2(%rbx),%r15d
  movl   $0x1,(%rsp)
  mov    %r15d,%r9d
  mov    $0x1,%r8d
  mov    $0x1,%ecx
  mov    $0x7,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <boxfill8@plt>
  lea    -0x1(%r14),%r12d
  mov    %r12d,(%rsp)
  mov    $0x0,%r9d
  mov    $0x0,%r8d
  mov    $0x0,%ecx
  mov    $0x8,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <boxfill8@plt>
  mov    %r14d,0x18(%rsp)
  sub    $0x2,%r14d
  mov    %r14d,(%rsp)
  mov    $0x1,%r9d
  mov    $0x1,%r8d
  mov    $0x1,%ecx
  mov    $0x7,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <boxfill8@plt>
  mov    %r14d,(%rsp)
  mov    %r15d,%r9d
  mov    $0x1,%r8d
  mov    %r15d,%ecx
  mov    $0xf,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <boxfill8@plt>
  mov    %r12d,(%rsp)
  mov    %r13d,%r9d
  mov    $0x0,%r8d
  mov    %r13d,%ecx
  mov    $0x0,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <boxfill8@plt>
  mov    0x18(%rsp),%eax
  sub    $0x3,%eax
  mov    %eax,(%rsp)
  lea    -0x3(%rbx),%r9d
  mov    $0x2,%r8d
  mov    $0x2,%ecx
  mov    $0x8,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <boxfill8@plt>
  mov    %r14d,(%rsp)
  mov    %r15d,%r9d
  mov    %r14d,%r8d
  mov    $0x1,%ecx
  mov    $0xf,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <boxfill8@plt>
  mov    %r12d,(%rsp)
  mov    %r13d,%r9d
  mov    %r12d,%r8d
  mov    $0x0,%ecx
  mov    $0x0,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <boxfill8@plt>
  movsbl 0x1c(%rsp),%ecx
  mov    0x10(%rsp),%rdx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <make_wtitle8@plt>
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void make_window8(unsigned char *buf, int xsize, int ysize, char *title, char act) {
  boxfill8(buf, xsize, 8, 0, 0, xsize - 1, 0);
  boxfill8(buf, xsize, 7, 1, 1, xsize - 2, 1);
  boxfill8(buf, xsize, 8, 0, 0, 0, ysize - 1);
  boxfill8(buf, xsize, 7, 1, 1, 1, ysize - 2);
  boxfill8(buf, xsize, 15, xsize - 2, 1, xsize - 2, ysize - 2);
  boxfill8(buf, xsize, 0, xsize - 1, 0, xsize - 1, ysize - 1);
  boxfill8(buf, xsize, 8, 2, 2, xsize - 3, ysize - 3);
  boxfill8(buf, xsize, 15, 1, ysize - 2, xsize - 2, ysize - 2);
  boxfill8(buf, xsize, 0, 0, ysize - 1, xsize - 1, ysize - 1);
  make_wtitle8(buf, xsize, title, act);
  return;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<make_window8>:
  endbr64
  push   %r15
  push   %r14
  lea    -0x1(%rsi),%r14d
  push   %r13
  mov    %r14d,%r9d
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %edx,%ebx
  mov    $0x8,%edx
  lea    -0x1(%rbx),%r13d
  lea    -0x2(%rbx),%r15d
  sub    $0x3,%ebx
  sub    $0x20,%rsp
  mov    %rcx,0x10(%rsp)
  xor    %ecx,%ecx
  mov    %r8d,0x8(%rsp)
  xor    %r8d,%r8d
  push   $0x0
  call   <boxfill8@plt>
  lea    -0x2(%rbp),%r10d
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    %r10d,%r9d
  mov    $0x1,%r8d
  mov    $0x1,%ecx
  mov    $0x7,%edx
  mov    %r10d,0x14(%rsp)
  movl   $0x1,(%rsp)
  call   <boxfill8@plt>
  mov    %ebp,%esi
  mov    %r12,%rdi
  xor    %r9d,%r9d
  xor    %r8d,%r8d
  xor    %ecx,%ecx
  mov    $0x8,%edx
  mov    %r13d,(%rsp)
  call   <boxfill8@plt>
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    $0x1,%r9d
  mov    $0x1,%r8d
  mov    $0x1,%ecx
  mov    $0x7,%edx
  mov    %r15d,(%rsp)
  call   <boxfill8@plt>
  mov    0x14(%rsp),%r10d
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    $0x1,%r8d
  mov    $0xf,%edx
  mov    %r15d,(%rsp)
  mov    %r10d,%r9d
  mov    %r10d,%ecx
  call   <boxfill8@plt>
  mov    %r14d,%r9d
  mov    %r14d,%ecx
  mov    %ebp,%esi
  mov    %r12,%rdi
  xor    %r8d,%r8d
  xor    %edx,%edx
  mov    %r13d,(%rsp)
  call   <boxfill8@plt>
  lea    -0x3(%rbp),%r9d
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    $0x2,%r8d
  mov    $0x2,%ecx
  mov    $0x8,%edx
  mov    %ebx,(%rsp)
  call   <boxfill8@plt>
  mov    0x14(%rsp),%r9d
  mov    %r15d,%r8d
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    $0x1,%ecx
  mov    $0xf,%edx
  mov    %r15d,(%rsp)
  call   <boxfill8@plt>
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    %r14d,%r9d
  mov    %r13d,%r8d
  xor    %ecx,%ecx
  xor    %edx,%edx
  mov    %r13d,(%rsp)
  call   <boxfill8@plt>
  movsbl 0x10(%rsp),%ecx
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    0x18(%rsp),%rdx
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <make_wtitle8@plt>
```

assistant: ```c
void make_window8(unsigned char *buf, int xsize, int ysize, char *title, char act) {
  boxfill8(buf, xsize, 8, 0, 0, xsize - 1, 0);
  boxfill8(buf, xsize, 7, 1, 1, xsize - 2, 1);
  boxfill8(buf, xsize, 8, 0, 0, 0, ysize - 1);
  boxfill8(buf, xsize, 7, 1, 1, 1, ysize - 2);
  boxfill8(buf, xsize, 15, xsize - 2, 1, xsize - 2, ysize - 2);
  boxfill8(buf, xsize, 0, xsize - 1, 0, xsize - 1, ysize - 1);
  boxfill8(buf, xsize, 8, 2, 2, xsize - 3, ysize - 3);
  boxfill8(buf, xsize, 15, 1, ysize - 2, xsize - 2, ysize - 2);
  boxfill8(buf, xsize, 0, 0, ysize - 1, xsize - 1, ysize - 1);
  make_wtitle8(buf, xsize, title, act);
  return;
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<make_window8>:
  endbr64
  push   %r15
  push   %r14
  lea    -0x1(%rsi),%r14d
  push   %r13
  mov    %r14d,%r9d
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %edx,%ebx
  mov    $0x8,%edx
  lea    -0x1(%rbx),%r13d
  lea    -0x2(%rbx),%r15d
  sub    $0x3,%ebx
  sub    $0x20,%rsp
  mov    %rcx,0x10(%rsp)
  xor    %ecx,%ecx
  mov    %r8d,0x8(%rsp)
  xor    %r8d,%r8d
  push   $0x0
  call   <boxfill8@plt>
  lea    -0x2(%rbp),%r10d
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    %r10d,%r9d
  mov    $0x1,%r8d
  mov    $0x1,%ecx
  mov    $0x7,%edx
  mov    %r10d,0x14(%rsp)
  movl   $0x1,(%rsp)
  call   <boxfill8@plt>
  mov    %ebp,%esi
  mov    %r12,%rdi
  xor    %r9d,%r9d
  xor    %r8d,%r8d
  xor    %ecx,%ecx
  mov    $0x8,%edx
  mov    %r13d,(%rsp)
  call   <boxfill8@plt>
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    $0x1,%r9d
  mov    $0x1,%r8d
  mov    $0x1,%ecx
  mov    $0x7,%edx
  mov    %r15d,(%rsp)
  call   <boxfill8@plt>
  mov    0x14(%rsp),%r10d
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    $0x1,%r8d
  mov    $0xf,%edx
  mov    %r15d,(%rsp)
  mov    %r10d,%r9d
  mov    %r10d,%ecx
  call   <boxfill8@plt>
  mov    %r14d,%r9d
  mov    %r14d,%ecx
  mov    %ebp,%esi
  mov    %r12,%rdi
  xor    %r8d,%r8d
  xor    %edx,%edx
  mov    %r13d,(%rsp)
  call   <boxfill8@plt>
  lea    -0x3(%rbp),%r9d
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    $0x2,%r8d
  mov    $0x2,%ecx
  mov    $0x8,%edx
  mov    %ebx,(%rsp)
  call   <boxfill8@plt>
  mov    0x14(%rsp),%r9d
  mov    %r15d,%r8d
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    $0x1,%ecx
  mov    $0xf,%edx
  mov    %r15d,(%rsp)
  call   <boxfill8@plt>
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    %r14d,%r9d
  mov    %r13d,%r8d
  xor    %ecx,%ecx
  xor    %edx,%edx
  mov    %r13d,(%rsp)
  call   <boxfill8@plt>
  movsbl 0x10(%rsp),%ecx
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    0x18(%rsp),%rdx
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <make_wtitle8@plt>
```

assistant: ```c
void make_window8(unsigned char *buf, int xsize, int ysize, char *title, char act) {
  boxfill8(buf, xsize, 8, 0, 0, xsize - 1, 0);
  boxfill8(buf, xsize, 7, 1, 1, xsize - 2, 1);
  boxfill8(buf, xsize, 8, 0, 0, 0, ysize - 1);
  boxfill8(buf, xsize, 7, 1, 1, 1, ysize - 2);
  boxfill8(buf, xsize, 15, xsize - 2, 1, xsize - 2, ysize - 2);
  boxfill8(buf, xsize, 0, xsize - 1, 0, xsize - 1, ysize - 1);
  boxfill8(buf, xsize, 8, 2, 2, xsize - 3, ysize - 3);
  boxfill8(buf, xsize, 15, 1, ysize - 2, xsize - 2, ysize - 2);
  boxfill8(buf, xsize, 0, 0, ysize - 1, xsize - 1, ysize - 1);
  make_wtitle8(buf, xsize, title, act);
  return;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<loop_g_3>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x5,-0x1014(%rbp)
  movl   $0x0,-0x101c(%rbp)
  jmp    L74
L79:
  mov    -0x101c(%rbp),%eax
  cltq
  mov    -0x101c(%rbp),%edx
  mov    %edx,-0x1010(%rbp,%rax,4)
  addl   $0x1,-0x101c(%rbp)
L74:
  cmpl   $0x3ff,-0x101c(%rbp)
  jle    L79
  movl   $0x0,-0x101c(%rbp)
  jmp    L38
L41:
  mov    -0x101c(%rbp),%eax
  add    %eax,%eax
  mov    %eax,-0x1014(%rbp)
  movl   $0x0,-0x1018(%rbp)
  jmp    L25
L11:
  mov    -0x101c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x1018(%rbp),%eax
  add    %edx,%eax
  cltq
  mov    -0x1010(%rbp,%rax,4),%ecx
  mov    -0x101c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x1018(%rbp),%eax
  add    %edx,%eax
  mov    -0x1014(%rbp),%edx
  add    %ecx,%edx
  cltq
  mov    %edx,-0x1010(%rbp,%rax,4)
  addl   $0x1,-0x1018(%rbp)
L25:
  cmpl   $0x1f,-0x1018(%rbp)
  jle    L11
  addl   $0x1,-0x101c(%rbp)
L38:
  cmpl   $0x1f,-0x101c(%rbp)
  jle    L41
  movl   $0x0,-0x101c(%rbp)
  jmp    L61
L50:
  mov    -0x101c(%rbp),%eax
  cltq
  mov    -0x1010(%rbp,%rax,4),%edx
  mov    -0x101c(%rbp),%eax
  lea    0x1f(%rax),%ecx
  test   %eax,%eax
  cmovs  %ecx,%eax
  sar    $0x5,%eax
  lea    (%rax,%rax,1),%ecx
  mov    -0x101c(%rbp),%eax
  add    %ecx,%eax
  cmp    %eax,%edx
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  addl   $0x1,-0x101c(%rbp)
L61:
  cmpl   $0x3ff,-0x101c(%rbp)
  jle    L50
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L57
  call   <__stack_chk_fail@plt>
L57:
  leave
  ret
```

assistant: ```c
void loop_g_3() {
  int x = 5, i, arr[32 * 32];
  for (i = 0; i < 32 * 32; i++)
    arr[i] = i;
#pragma acc parallel copy(arr) num_gangs(32) num_workers(8) vector_length(32)
  {
#pragma acc loop gang private(x)
    for (i = 0; i < 32; i++) {
      x = i * 2;
#pragma acc loop vector
      for (int j = 0; j < 32; j++)
        arr[i * 32 + j] += x;
    }
  }
  for (i = 0; i < 32 * 32; i++)
    assert(arr[i] == i + (i / 32) * 2);
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<loop_g_3>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1008(%rsp)
  xor    %eax,%eax
L26:
  mov    %eax,(%rsp,%rax,4)
  add    $0x1,%rax
  cmp    $0x400,%rax
  jne    L26
  lea    0x80(%rsp),%rdx
  mov    $0x0,%esi
L8:
  mov    %esi,%ecx
  lea    -0x80(%rdx),%rax
L18:
  add    %ecx,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L18
  add    $0x2,%esi
  sub    $0xffffffffffffff80,%rdx
  cmp    $0x40,%esi
  jne    L8
  mov    $0x0,%ebx
  mov    %rsp,%rbp
L29:
  lea    0x1f(%rbx),%eax
  test   %ebx,%ebx
  cmovns %ebx,%eax
  sar    $0x5,%eax
  lea    (%rbx,%rax,2),%eax
  cmp    0x0(%rbp,%rbx,4),%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  add    $0x1,%rbx
  cmp    $0x400,%rbx
  jne    L29
  mov    0x1008(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L34
  add    $0x1018,%rsp
  pop    %rbx
  pop    %rbp
  ret
L34:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void loop_g_3() {
  int x = 5, i, arr[32 * 32];
  for (i = 0; i < 32 * 32; i++)
    arr[i] = i;
#pragma acc parallel copy(arr) num_gangs(32) num_workers(8) vector_length(32)
  {
#pragma acc loop gang private(x)
    for (i = 0; i < 32; i++) {
      x = i * 2;
#pragma acc loop vector
      for (int j = 0; j < 32; j++)
        arr[i * 32 + j] += x;
    }
  }
  for (i = 0; i < 32 * 32; i++)
    assert(arr[i] == i + (i / 32) * 2);
}
```