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

```asm
<UI_SPUnlockMedals_f>:
  endbr64
  push   %r15
  lea    D7(%rip),%r15
  mov    $0x400,%edx
  push   %r14
  mov    %r15,%rdi
  lea    D18(%rip),%r14
  push   %r13
  lea    D15(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x428,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x418(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r12
  mov    %rsp,%rbp
  mov    %r12,%rsi
  call   <trap_Cvar_VariableStringBuffer@plt>
  nopw   0x0(%rax,%rax,1)
L8:
  mov    %ebx,%ecx
  mov    %r14,%rdx
  mov    $0x10,%esi
  mov    %rbp,%rdi
  call   <Com_sprintf@plt>
  add    $0x1,%ebx
  mov    %r13,%rdx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <Info_SetValueForKey@plt>
  cmp    $0x6,%ebx
  jne    L8
  mov    %r15,%rdi
  mov    %r12,%rsi
  call   <trap_Cvar_Set@plt>
  lea    D27(%rip),%rdi
  call   <trap_Print@plt>
  mov    0x418(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  add    $0x428,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L6:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D7
data_type: string
name: retrieve_data
arguments: data_label: D18
data_type: string
name: retrieve_data
arguments: data_label: D15
data_type: string
name: retrieve_data
arguments: data_label: D27
data_type: string

tool: D7: g_spAwards

tool: D18: a%i

tool: D15: 100

tool: D27: All levels unlocked at 100


assistant: ```c
void UI_SPUnlockMedals_f(void) {
  int n;
  char key[16];
  char awardData[1024];
  trap_Cvar_VariableStringBuffer("g_spAwards", awardData, 1024);
  for (n = 0; n < 6; n++) {
    Com_sprintf(key, sizeof(key), "a%i", n);
    Info_SetValueForKey(awardData, key, "100");
  }
  trap_Cvar_Set("g_spAwards", awardData);
  trap_Print("All levels unlocked at 100\n");
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<findonoff>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <efindword@plt>
  lea    -0x30(%rbp),%rax
  lea    D6(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L2
  mov    -0x38(%rbp),%rax
  movl   $0x1,(%rax)
  mov    $0x0,%eax
  jmp    L46
L2:
  lea    -0x30(%rbp),%rax
  lea    D17(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L27
  mov    -0x38(%rbp),%rax
  movl   $0x0,(%rax)
  mov    $0x0,%eax
  jmp    L46
L27:
  mov    $0x1,%eax
L46:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L8
  call   <__stack_chk_fail@plt>
L8:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D6
type_guessed: string
name: unpack_data
arguments: data_tag: D17
type_guessed: string

tool: D6: on

tool: D17: off

assistant: ```c
int findonoff(int *ip) {
  char s[32];
  efindword(s);
  if (!strcmp(s, "on")) {
    *ip = 1;
    return 0;
  }
  if (!strcmp(s, "off")) {
    *ip = 0;
    return 0;
  }
  return 1;
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<findonoff>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
  mov    %rbx,%rdi
  call   <efindword@plt>
  lea    D18(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L13
  mov    %rsp,%rdi
  lea    D0(%rip),%rsi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L12
  mov    $0x1,%eax
L15:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L41
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  ret
L13:
  movl   $0x1,0x0(%rbp)
  jmp    L15
L12:
  movl   $0x0,0x0(%rbp)
  jmp    L15
L41:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D18
data_type: string
name: extract_symbolic_data
arguments: data_tag: D0
data_type: string

tool: D18: on

tool: D0: off

assistant: ```c
int findonoff(int *ip) {
  char s[32];
  efindword(s);
  if (!strcmp(s, "on")) {
    *ip = 1;
    return 0;
  }
  if (!strcmp(s, "off")) {
    *ip = 0;
    return 0;
  }
  return 1;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<findonoff>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdi
  call   <efindword@plt>
  cmpw   $0x6e6f,(%rsp)
  je     L21
L32:
  cmpl   $0x66666f,(%rsp)
  mov    $0x1,%eax
  je     L27
L5:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L11
  add    $0x30,%rsp
  pop    %rbx
  ret
L21:
  cmpb   $0x0,0x2(%rsp)
  jne    L32
  movl   $0x1,(%rbx)
  xor    %eax,%eax
  jmp    L5
  nopl   0x0(%rax)
L27:
  movl   $0x0,(%rbx)
  xor    %eax,%eax
  jmp    L5
L11:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int findonoff(int *ip) {
  char s[32];
  efindword(s);
  if (!strcmp(s, "on")) {
    *ip = 1;
    return 0;
  }
  if (!strcmp(s, "off")) {
    *ip = 0;
    return 0;
  }
  return 1;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<findonoff>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdi
  call   <efindword@plt>
  cmpw   $0x6e6f,(%rsp)
  je     L25
L24:
  cmpl   $0x66666f,(%rsp)
  mov    $0x1,%eax
  je     L33
L30:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L1
  add    $0x30,%rsp
  pop    %rbx
  ret
L25:
  cmpb   $0x0,0x2(%rsp)
  jne    L24
  movl   $0x1,(%rbx)
  xor    %eax,%eax
  jmp    L30
  nopl   0x0(%rax)
L33:
  movl   $0x0,(%rbx)
  xor    %eax,%eax
  jmp    L30
L1:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int findonoff(int *ip) {
  char s[32];
  efindword(s);
  if (!strcmp(s, "on")) {
    *ip = 1;
    return 0;
  }
  if (!strcmp(s, "off")) {
    *ip = 0;
    return 0;
  }
  return 1;
}
```
user: What is the c source code of the assembly code below:

```asm
<rndrm00_get_description>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    D3(%rip),%rax
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: label: D3
type_infered: string

tool: D3: Create a directory named rndrm00_test_dir_pid, where pid is the process id.  Within that directory, randomly create and remove a number of sub-directories and small files, but do more creates than removes. When the total size of all sub-directories and files is greater than the size specified by the size parameter, start to do more removes than creates. The size parameter is given by the -z or --size option, otherwise it defaults to 1000000. A size of zero fills the file system until there is no space left. The task repeats, sleeping in between each iteration. The repeat count is set by the -n or --repeat option, otherwise it defaults to 1. A repeat count of zero repeats forever. The sleep value is given by the -p or --sleep option, otherwise it defaults to 0. Sleep is specified in milliseconds.

assistant: ```c
const char *rndrm00_get_description(void) {
  return "Create a directory named rndrm00_test_dir_pid, where "
         "pid is the process id.  Within that directory, "
         "randomly create and remove "
         "a number of sub-directories and small files, "
         "but do more creates than removes. "
         "When the total size of all sub-directories and files "
         "is greater than the size specified by the size parameter, "
         "start to do more removes than creates. "
         "The size parameter is given by the -z or --size option, "
         "otherwise it defaults to 1000000. "
         "A size of zero fills the file system until there is no "
         "space left. "
         "The task repeats, sleeping in between each iteration. "
         "The repeat count is set by the -n or --repeat option, "
         "otherwise it defaults to 1. "
         "A repeat count of zero repeats forever. "
         "The sleep value is given by the -p or --sleep option, "
         "otherwise it defaults to 0. "
         "Sleep is specified in milliseconds.";
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<rndrm00_get_description>:
  endbr64
  lea    D1(%rip),%rax
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D1
data_type: string

tool: D1: Create a directory named rndrm00_test_dir_pid, where pid is the process id.  Within that directory, randomly create and remove a number of sub-directories and small files, but do more creates than removes. When the total size of all sub-directories and files is greater than the size specified by the size parameter, start to do more removes than creates. The size parameter is given by the -z or --size option, otherwise it defaults to 1000000. A size of zero fills the file system until there is no space left. The task repeats, sleeping in between each iteration. The repeat count is set by the -n or --repeat option, otherwise it defaults to 1. A repeat count of zero repeats forever. The sleep value is given by the -p or --sleep option, otherwise it defaults to 0. Sleep is specified in milliseconds.

assistant: ```c
const char *rndrm00_get_description(void) {
  return "Create a directory named rndrm00_test_dir_pid, where "
         "pid is the process id.  Within that directory, "
         "randomly create and remove "
         "a number of sub-directories and small files, "
         "but do more creates than removes. "
         "When the total size of all sub-directories and files "
         "is greater than the size specified by the size parameter, "
         "start to do more removes than creates. "
         "The size parameter is given by the -z or --size option, "
         "otherwise it defaults to 1000000. "
         "A size of zero fills the file system until there is no "
         "space left. "
         "The task repeats, sleeping in between each iteration. "
         "The repeat count is set by the -n or --repeat option, "
         "otherwise it defaults to 1. "
         "A repeat count of zero repeats forever. "
         "The sleep value is given by the -p or --sleep option, "
         "otherwise it defaults to 0. "
         "Sleep is specified in milliseconds.";
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<rndrm00_get_description>:
  endbr64
  lea    D7(%rip),%rax
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D7
type_guessed: string

tool: D7: Create a directory named rndrm00_test_dir_pid, where pid is the process id.  Within that directory, randomly create and remove a number of sub-directories and small files, but do more creates than removes. When the total size of all sub-directories and files is greater than the size specified by the size parameter, start to do more removes than creates. The size parameter is given by the -z or --size option, otherwise it defaults to 1000000. A size of zero fills the file system until there is no space left. The task repeats, sleeping in between each iteration. The repeat count is set by the -n or --repeat option, otherwise it defaults to 1. A repeat count of zero repeats forever. The sleep value is given by the -p or --sleep option, otherwise it defaults to 0. Sleep is specified in milliseconds.

assistant: ```c
const char *rndrm00_get_description(void) {
  return "Create a directory named rndrm00_test_dir_pid, where "
         "pid is the process id.  Within that directory, "
         "randomly create and remove "
         "a number of sub-directories and small files, "
         "but do more creates than removes. "
         "When the total size of all sub-directories and files "
         "is greater than the size specified by the size parameter, "
         "start to do more removes than creates. "
         "The size parameter is given by the -z or --size option, "
         "otherwise it defaults to 1000000. "
         "A size of zero fills the file system until there is no "
         "space left. "
         "The task repeats, sleeping in between each iteration. "
         "The repeat count is set by the -n or --repeat option, "
         "otherwise it defaults to 1. "
         "A repeat count of zero repeats forever. "
         "The sleep value is given by the -p or --sleep option, "
         "otherwise it defaults to 0. "
         "Sleep is specified in milliseconds.";
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<rndrm00_get_description>:
  endbr64
  lea    D6(%rip),%rax
  ret
```

tool_calls: name: read_data
arguments: data_tag: D6
type_guessed: string

tool: D6: Create a directory named rndrm00_test_dir_pid, where pid is the process id.  Within that directory, randomly create and remove a number of sub-directories and small files, but do more creates than removes. When the total size of all sub-directories and files is greater than the size specified by the size parameter, start to do more removes than creates. The size parameter is given by the -z or --size option, otherwise it defaults to 1000000. A size of zero fills the file system until there is no space left. The task repeats, sleeping in between each iteration. The repeat count is set by the -n or --repeat option, otherwise it defaults to 1. A repeat count of zero repeats forever. The sleep value is given by the -p or --sleep option, otherwise it defaults to 0. Sleep is specified in milliseconds.

assistant: ```c
const char *rndrm00_get_description(void) {
  return "Create a directory named rndrm00_test_dir_pid, where "
         "pid is the process id.  Within that directory, "
         "randomly create and remove "
         "a number of sub-directories and small files, "
         "but do more creates than removes. "
         "When the total size of all sub-directories and files "
         "is greater than the size specified by the size parameter, "
         "start to do more removes than creates. "
         "The size parameter is given by the -z or --size option, "
         "otherwise it defaults to 1000000. "
         "A size of zero fills the file system until there is no "
         "space left. "
         "The task repeats, sleeping in between each iteration. "
         "The repeat count is set by the -n or --repeat option, "
         "otherwise it defaults to 1. "
         "A repeat count of zero repeats forever. "
         "The sleep value is given by the -p or --sleep option, "
         "otherwise it defaults to 0. "
         "Sleep is specified in milliseconds.";
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<reverse_num>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L3
L13:
  mov    -0x4(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x14(%rbp),%eax
  mov    $0x0,%edx
  divl   -0x18(%rbp)
  mov    %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x14(%rbp),%eax
  mov    $0x0,%edx
  divl   -0x18(%rbp)
  mov    %eax,-0x14(%rbp)
L3:
  cmpl   $0x0,-0x14(%rbp)
  jne    L13
  mov    -0x4(%rbp),%eax
  pop    %rbp
  ret
```

assistant: ```c
unsigned reverse_num(unsigned n, unsigned radix) {
  unsigned i = 0;
  while (n > 0) {
    i = i * radix + (n % radix);
    n = n / radix;
  }
  return i;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<reverse_num>:
  endbr64
  test   %edi,%edi
  je     L3
  mov    $0x0,%edx
L19:
  mov    %edx,%ecx
  imul   %esi,%ecx
  mov    %edi,%eax
  mov    $0x0,%edx
  div    %esi
  add    %ecx,%edx
  mov    %edi,%ecx
  mov    %eax,%edi
  cmp    %ecx,%esi
  jbe    L19
L23:
  mov    %edx,%eax
  ret
L3:
  mov    %edi,%edx
  jmp    L23
```

assistant: ```c
unsigned reverse_num(unsigned n, unsigned radix) {
  unsigned i = 0;
  while (n > 0) {
    i = i * radix + (n % radix);
    n = n / radix;
  }
  return i;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<reverse_num>:
  endbr64
  xor    %r8d,%r8d
  test   %edi,%edi
  je     L19
  nopl   0x0(%rax,%rax,1)
L6:
  mov    %edi,%eax
  imul   %esi,%r8d
  xor    %edx,%edx
  div    %esi
  add    %edx,%r8d
  mov    %edi,%edx
  mov    %eax,%edi
  cmp    %edx,%esi
  jbe    L6
L19:
  mov    %r8d,%eax
  ret
```

assistant: ```c
unsigned reverse_num(unsigned n, unsigned radix) {
  unsigned i = 0;
  while (n > 0) {
    i = i * radix + (n % radix);
    n = n / radix;
  }
  return i;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<reverse_num>:
  endbr64
  xor    %r8d,%r8d
  test   %edi,%edi
  je     L11
  nopl   0x0(%rax,%rax,1)
L19:
  mov    %edi,%eax
  imul   %esi,%r8d
  xor    %edx,%edx
  div    %esi
  add    %edx,%r8d
  mov    %edi,%edx
  mov    %eax,%edi
  cmp    %edx,%esi
  jbe    L19
L11:
  mov    %r8d,%eax
  ret
```

assistant: ```c
unsigned reverse_num(unsigned n, unsigned radix) {
  unsigned i = 0;
  while (n > 0) {
    i = i * radix + (n % radix);
    n = n / radix;
  }
  return i;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<lsd_nomem_error>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    %esi,-0xc(%rbp)
  mov    %rdx,-0x18(%rbp)
  mov    -0xc(%rbp),%ecx
  mov    -0x8(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <msg@plt>
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D0
data_type: string

tool: D0: out of memory: %s: %s::%d

assistant: ```c
void *lsd_nomem_error(char *file, int line, char *mesg) {
  msg("out of memory: %s: %s::%d", mesg, file, line);
  return NULL;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<lsd_nomem_error>:
  endbr64
  sub    $0x8,%rsp
  mov    %esi,%ecx
  mov    %rdx,%rsi
  mov    %rdi,%rdx
  lea    D3(%rip),%rdi
  call   <msg@plt>
  mov    $0x0,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D3
type_infered: string

tool: D3: out of memory: %s: %s::%d

assistant: ```c
void *lsd_nomem_error(char *file, int line, char *mesg) {
  msg("out of memory: %s: %s::%d", mesg, file, line);
  return NULL;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<lsd_nomem_error>:
  endbr64
  sub    $0x8,%rsp
  mov    %esi,%ecx
  mov    %rdx,%rsi
  mov    %rdi,%rdx
  lea    D6(%rip),%rdi
  call   <msg@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D6
type: string

tool: D6: out of memory: %s: %s::%d

assistant: ```c
void *lsd_nomem_error(char *file, int line, char *mesg) {
  msg("out of memory: %s: %s::%d", mesg, file, line);
  return NULL;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<lsd_nomem_error>:
  endbr64
  sub    $0x8,%rsp
  mov    %esi,%ecx
  mov    %rdx,%rsi
  mov    %rdi,%rdx
  lea    D9(%rip),%rdi
  call   <msg@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

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

tool: D9: out of memory: %s: %s::%d

assistant: ```c
void *lsd_nomem_error(char *file, int line, char *mesg) {
  msg("out of memory: %s: %s::%d", mesg, file, line);
  return NULL;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<test>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    -0x8(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  movq   %rdx,%xmm1
  movq   %rax,%xmm0
  movq   %xmm1,-0x8(%rbp)
  movq   %xmm0,-0x10(%rbp)
  mov    -0x10(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <_mm_unpackhi_epi8@plt>
  leave
  ret
```

assistant: ```c
__m128i __attribute__((no, unused)) test(__m128i s1, __m128i s2) {
  __asm("" : "+v"(s1), "+v"(s2));
  return _mm_unpackhi_epi8(s1, s2);
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<test>:
  endbr64
  sub    $0x8,%rsp
  movq   %rdi,%xmm0
  movq   %rsi,%xmm1
  movq   %xmm1,%rsi
  movq   %xmm0,%rdi
  call   <_mm_unpackhi_epi8@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
__m128i __attribute__((no, unused)) test(__m128i s1, __m128i s2) {
  __asm("" : "+v"(s1), "+v"(s2));
  return _mm_unpackhi_epi8(s1, s2);
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<test>:
  endbr64
  movq   %rdi,%xmm0
  movq   %rsi,%xmm1
  movq   %xmm1,%rsi
  movq   %xmm0,%rdi
  jmp    1050 <_mm_unpackhi_epi8@plt>
```

assistant: ```c
__m128i __attribute__((no, unused)) test(__m128i s1, __m128i s2) {
  __asm("" : "+v"(s1), "+v"(s2));
  return _mm_unpackhi_epi8(s1, s2);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<test>:
  endbr64
  movq   %rdi,%xmm0
  movq   %rsi,%xmm1
  movq   %xmm1,%rsi
  movq   %xmm0,%rdi
  jmp    1050 <_mm_unpackhi_epi8@plt>
```

assistant: ```c
__m128i __attribute__((no, unused)) test(__m128i s1, __m128i s2) {
  __asm("" : "+v"(s1), "+v"(s2));
  return _mm_unpackhi_epi8(s1, s2);
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<set_rndc_stats>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    %r8d,-0x34(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L34
L67:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jb     L61
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    -0x4(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rdx
  sub    %rdx,%rax
  mov    -0x34(%rbp),%edx
  movslq %edx,%rsi
  mov    $0x0,%edx
  div    %rsi
  mov    -0x4(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rcx
  test   %rax,%rax
  js     L48
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L36
L48:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L36:
  movsd  %xmm0,(%rcx)
  jmp    L56
L61:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
L56:
  addl   $0x1,-0x4(%rbp)
L34:
  cmpl   $0x5,-0x4(%rbp)
  jle    L67
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    -0x20(%rbp),%rdx
  lea    0x30(%rdx),%rcx
  test   %rax,%rax
  js     L15
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L71
L15:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L71:
  movsd  %xmm0,(%rcx)
  nop
  pop    %rbp
  ret
```

assistant: ```c
void set_rndc_stats(struct module *mod, double st_array[], unsigned long long pre_array[], unsigned long long cur_array[], int inter) {
  int i;
  for (i = 0; i < 6; i++) {
    if (cur_array[i] >= pre_array[i]) {
      st_array[i] = (cur_array[i] - pre_array[i]) / inter;
    } else {
      st_array[i] = 0;
    }
  }
  st_array[6] = cur_array[i];
}
```