ylfeng/ReF-Decompile-dataset huggingface dataset:
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  cmp    $0x1,%edi
  jle    L11
  mov    0x8(%rsi),%rdi
  call   <atoi@plt>
  lea    D4(%rip),%rdi
  lea    0x1(%rax),%edx
  mov    %eax,%esi
  imul   %eax,%edx
  lea    0x1(%rax,%rax,1),%eax
  imul   %edx,%eax
  mov    %edx,%ecx
  shr    $0x1f,%ecx
  add    %edx,%ecx
  movslq %eax,%rdx
  sar    %ecx
  imul   $0x2aaaaaab,%rdx,%rdx
  movslq %ecx,%rcx
  sar    $0x1f,%eax
  imul   %rcx,%rcx
  shr    $0x20,%rdx
  sub    %eax,%edx
  mov    %rcx,%r8
  xor    %eax,%eax
  movslq %edx,%rdx
  sub    %rdx,%r8
  call   <printf@plt>
  xor    %eax,%eax
L19:
  add    $0x8,%rsp
  ret
L11:
  lea    D12(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L19
```

tool_calls: name: parse_data
arguments: tag: D4
datatype: string
name: parse_data
arguments: tag: D12
datatype: string

tool: D4:  n = %d, sum_of_square %lu square_of_sum %lu diff %lu


tool: D12: Usage:<prog> <value>

assistant: ```c
int main(int argc, char *argv[]) {
  if (argc < 2) {
    printf("Usage:<prog> <value>\n");
    return 1;
  }
  int n = atoi(argv[1]);
  unsigned long sq_of_sum = (n * (n + 1)) / 2;
  sq_of_sum *= sq_of_sum;
  unsigned long sum_of_sq = (n * (n + 1) * (2 * n + 1)) / 6;
  unsigned long val = sq_of_sum - sum_of_sq;
  printf(" n = %d, sum_of_square %lu square_of_sum %lu diff %lu\n", n, sum_of_sq, sq_of_sum, val);
  return 0;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  cmp    $0x1,%edi
  jle    L14
  mov    0x8(%rsi),%rdi
  call   <atoi@plt>
  lea    D0(%rip),%rdi
  lea    0x1(%rax),%edx
  mov    %eax,%esi
  imul   %eax,%edx
  lea    0x1(%rax,%rax,1),%eax
  imul   %edx,%eax
  mov    %edx,%ecx
  shr    $0x1f,%ecx
  add    %edx,%ecx
  movslq %eax,%rdx
  sar    %ecx
  imul   $0x2aaaaaab,%rdx,%rdx
  movslq %ecx,%rcx
  sar    $0x1f,%eax
  imul   %rcx,%rcx
  shr    $0x20,%rdx
  sub    %eax,%edx
  mov    %rcx,%r8
  xor    %eax,%eax
  movslq %edx,%rdx
  sub    %rdx,%r8
  call   <printf@plt>
  xor    %eax,%eax
L0:
  add    $0x8,%rsp
  ret
L14:
  lea    D11(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L0
```

tool_calls: name: parse_data
arguments: tag: D0
type: string
name: parse_data
arguments: tag: D11
type: string

tool: D0:  n = %d, sum_of_square %lu square_of_sum %lu diff %lu


tool: D11: Usage:<prog> <value>

assistant: ```c
int main(int argc, char *argv[]) {
  if (argc < 2) {
    printf("Usage:<prog> <value>\n");
    return 1;
  }
  int n = atoi(argv[1]);
  unsigned long sq_of_sum = (n * (n + 1)) / 2;
  sq_of_sum *= sq_of_sum;
  unsigned long sum_of_sq = (n * (n + 1) * (2 * n + 1)) / 6;
  unsigned long val = sq_of_sum - sum_of_sq;
  printf(" n = %d, sum_of_square %lu square_of_sum %lu diff %lu\n", n, sum_of_sq, sq_of_sum, val);
  return 0;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<d_fetchsw>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,%rax
  mov    %rsi,%rdx
  mov    (%rax),%rcx
  movzbl (%rcx),%ecx
  movzbl %cl,%ecx
  shl    $0x8,%ecx
  mov    %ecx,%esi
  mov    (%rax),%rcx
  add    $0x1,%rcx
  movzbl (%rcx),%ecx
  movzbl %cl,%ecx
  or     %esi,%ecx
  mov    %cx,(%rdx)
  mov    (%rax),%rdx
  add    $0x2,%rdx
  mov    %rdx,(%rax)
  nop
  pop    %rbp
  ret
```

assistant: ```c
void d_fetchsw(register const unsigned char **ptr, register signed short *dest) {
  *dest = (((signed short)(*ptr)[0] << 8) | ((unsigned short)(*ptr)[1] << 0));
  *ptr += 2;
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<d_fetchsw>:
  endbr64
  mov    (%rdi),%rax
  movzbl (%rax),%edx
  shl    $0x8,%edx
  movzbl 0x1(%rax),%eax
  or     %edx,%eax
  mov    %ax,(%rsi)
  addq   $0x2,(%rdi)
  ret
```

assistant: ```c
void d_fetchsw(register const unsigned char **ptr, register signed short *dest) {
  *dest = (((signed short)(*ptr)[0] << 8) | ((unsigned short)(*ptr)[1] << 0));
  *ptr += 2;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<d_fetchsw>:
  endbr64
  mov    (%rdi),%rax
  movzwl (%rax),%edx
  add    $0x2,%rax
  rol    $0x8,%dx
  mov    %dx,(%rsi)
  mov    %rax,(%rdi)
  ret
```

assistant: ```c
void d_fetchsw(register const unsigned char **ptr, register signed short *dest) {
  *dest = (((signed short)(*ptr)[0] << 8) | ((unsigned short)(*ptr)[1] << 0));
  *ptr += 2;
}
```
user: Translate the below assembly code into C programming language:

```asm
<d_fetchsw>:
  endbr64
  mov    (%rdi),%rax
  movzwl (%rax),%edx
  add    $0x2,%rax
  rol    $0x8,%dx
  mov    %dx,(%rsi)
  mov    %rax,(%rdi)
  ret
```

assistant: ```c
void d_fetchsw(register const unsigned char **ptr, register signed short *dest) {
  *dest = (((signed short)(*ptr)[0] << 8) | ((unsigned short)(*ptr)[1] << 0));
  *ptr += 2;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<foo>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  cmpl   $0x5,-0x4(%rbp)
  je     L3
  mov    $0x0,%eax
  call   <abort@plt>
L3:
  nop
  leave
  ret
```

assistant: ```c
void foo(int arg) {
  if (arg != 5)
    abort();
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<foo>:
  endbr64
  cmp    $0x5,%edi
  jne    L4
  ret
L4:
  sub    $0x8,%rsp
  mov    $0x0,%eax
  call   <abort@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
void foo(int arg) {
  if (arg != 5)
    abort();
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<foo>:
  endbr64
  cmp    $0x5,%edi
  jne    L2
  ret
  nopw   0x0(%rax,%rax,1)
L2:
  xor    %eax,%eax
  jmp    1050 <abort@plt>
```

assistant: ```c
void foo(int arg) {
  if (arg != 5)
    abort();
}
```
user: Translate the below assembly code into C programming language:

```asm
<foo>:
  endbr64
  cmp    $0x5,%edi
  jne    L0
  ret
  nopw   0x0(%rax,%rax,1)
L0:
  xor    %eax,%eax
  jmp    1050 <abort@plt>
```

assistant: ```c
void foo(int arg) {
  if (arg != 5)
    abort();
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<childGreetings>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D9
type: string

tool: D9: Greetings from child #%lu of %lu


assistant: ```c
void *childGreetings(void *id) {
  unsigned long *buf = (unsigned long *)id;
  unsigned long childID = buf[0];
  unsigned long numThreads = buf[1];
  printf("Greetings from child #%lu of %lu\n", childID, numThreads);
  return NULL;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<childGreetings>:
  endbr64
  sub    $0x8,%rsp
  mov    0x8(%rdi),%rdx
  mov    (%rdi),%rsi
  lea    D7(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D7
type_guessed: string

tool: D7: Greetings from child #%lu of %lu


assistant: ```c
void *childGreetings(void *id) {
  unsigned long *buf = (unsigned long *)id;
  unsigned long childID = buf[0];
  unsigned long numThreads = buf[1];
  printf("Greetings from child #%lu of %lu\n", childID, numThreads);
  return NULL;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<childGreetings>:
  endbr64
  sub    $0x8,%rsp
  mov    0x8(%rdi),%rdx
  mov    (%rdi),%rsi
  lea    D5(%rip),%rdi
  call   <printf@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: parse_data
arguments: data_label: D5
datatype: string

tool: D5: Greetings from child #%lu of %lu


assistant: ```c
void *childGreetings(void *id) {
  unsigned long *buf = (unsigned long *)id;
  unsigned long childID = buf[0];
  unsigned long numThreads = buf[1];
  printf("Greetings from child #%lu of %lu\n", childID, numThreads);
  return NULL;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<childGreetings>:
  endbr64
  sub    $0x8,%rsp
  mov    0x8(%rdi),%rdx
  mov    (%rdi),%rsi
  lea    D5(%rip),%rdi
  call   <printf@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

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

tool: D5: Greetings from child #%lu of %lu


assistant: ```c
void *childGreetings(void *id) {
  unsigned long *buf = (unsigned long *)id;
  unsigned long childID = buf[0];
  unsigned long numThreads = buf[1];
  printf("Greetings from child #%lu of %lu\n", childID, numThreads);
  return NULL;
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<ndb_osdep_createBatchImportAll_end>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x36,%edx
  mov    $0x1,%esi
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x10(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  lea    D13(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <fflush@plt>
  nop
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D16
type: string
name: disassemble_data
arguments: tag: D13
type: string

tool: D16: # === create chapter list for check by user =========


tool: D13: ndbl %s_new


assistant: ```c
void ndb_osdep_createBatchImportAll_end(FILE *fBatch, char *pFName) {
  fprintf(fBatch, "# === create chapter list for check by user =========\n");
  fprintf(fBatch, "ndbl %s_new\n", pFName);
  fflush(fBatch);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<ndb_osdep_createBatchImportAll_end>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  mov    %rdi,%rcx
  mov    $0x36,%edx
  mov    $0x1,%esi
  lea    D13(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rdx
  lea    D18(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbx,%rdi
  call   <fflush@plt>
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: tag: D13
type_guessed: string
name: unpack_data
arguments: tag: D18
type_guessed: string

tool: D13: # === create chapter list for check by user =========


tool: D18: ndbl %s_new


assistant: ```c
void ndb_osdep_createBatchImportAll_end(FILE *fBatch, char *pFName) {
  fprintf(fBatch, "# === create chapter list for check by user =========\n");
  fprintf(fBatch, "ndbl %s_new\n", pFName);
  fflush(fBatch);
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<ndb_osdep_createBatchImportAll_end>:
  endbr64
  push   %r12
  mov    %rdi,%rcx
  mov    %rsi,%r12
  mov    $0x36,%edx
  push   %rbp
  mov    $0x1,%esi
  mov    %rdi,%rbp
  lea    D10(%rip),%rdi
  sub    $0x8,%rsp
  call   <fwrite@plt>
  mov    %rbp,%rdi
  mov    %r12,%rdx
  xor    %eax,%eax
  lea    D8(%rip),%rsi
  call   <fprintf@plt>
  add    $0x8,%rsp
  mov    %rbp,%rdi
  pop    %rbp
  pop    %r12
  jmp    1080 <fflush@plt>
```

tool_calls: name: parse_data
arguments: tag: D10
datatype: string
name: parse_data
arguments: tag: D8
datatype: string

tool: D10: # === create chapter list for check by user =========


tool: D8: ndbl %s_new


assistant: ```c
void ndb_osdep_createBatchImportAll_end(FILE *fBatch, char *pFName) {
  fprintf(fBatch, "# === create chapter list for check by user =========\n");
  fprintf(fBatch, "ndbl %s_new\n", pFName);
  fflush(fBatch);
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<ndb_osdep_createBatchImportAll_end>:
  endbr64
  push   %r12
  mov    %rdi,%rcx
  mov    %rsi,%r12
  mov    $0x36,%edx
  push   %rbp
  mov    $0x1,%esi
  mov    %rdi,%rbp
  lea    D16(%rip),%rdi
  sub    $0x8,%rsp
  call   <fwrite@plt>
  mov    %rbp,%rdi
  mov    %r12,%rdx
  xor    %eax,%eax
  lea    D4(%rip),%rsi
  call   <fprintf@plt>
  add    $0x8,%rsp
  mov    %rbp,%rdi
  pop    %rbp
  pop    %r12
  jmp    1080 <fflush@plt>
```

tool_calls: name: unpack_data
arguments: tag: D16
type_guessed: string
name: unpack_data
arguments: tag: D4
type_guessed: string

tool: D16: # === create chapter list for check by user =========


tool: D4: ndbl %s_new


assistant: ```c
void ndb_osdep_createBatchImportAll_end(FILE *fBatch, char *pFName) {
  fprintf(fBatch, "# === create chapter list for check by user =========\n");
  fprintf(fBatch, "ndbl %s_new\n", pFName);
  fflush(fBatch);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<mean>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L15
L14:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x8(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  addl   $0x1,-0xc(%rbp)
L15:
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L14
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x1c(%rbp),%xmm1
  movsd  -0x8(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  pop    %rbp
  ret
```

assistant: ```c
double mean(double arr[], int n) {
  double ret = 0;
  for (int i = 0; i < n; i++)
    ret += arr[i];
  return ret / n;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<mean>:
  endbr64
  test   %esi,%esi
  jle    L27
  mov    %rdi,%rax
  lea    -0x1(%rsi),%edx
  lea    0x8(%rdi,%rdx,8),%rdx
  pxor   %xmm0,%xmm0
L2:
  addsd  (%rax),%xmm0
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L2
L13:
  pxor   %xmm1,%xmm1
  cvtsi2sd %esi,%xmm1
  divsd  %xmm1,%xmm0
  ret
L27:
  pxor   %xmm0,%xmm0
  jmp    L13
```

assistant: ```c
double mean(double arr[], int n) {
  double ret = 0;
  for (int i = 0; i < n; i++)
    ret += arr[i];
  return ret / n;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<mean>:
  endbr64
  test   %esi,%esi
  jle    L1
  lea    -0x1(%rsi),%eax
  pxor   %xmm0,%xmm0
  lea    0x8(%rdi,%rax,8),%rax
  nopl   0x0(%rax)
L4:
  addsd  (%rdi),%xmm0
  add    $0x8,%rdi
  cmp    %rax,%rdi
  jne    L4
  pxor   %xmm1,%xmm1
  cvtsi2sd %esi,%xmm1
  divsd  %xmm1,%xmm0
  ret
  nopw   0x0(%rax,%rax,1)
L1:
  pxor   %xmm1,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %esi,%xmm1
  divsd  %xmm1,%xmm0
  ret
```

assistant: ```c
double mean(double arr[], int n) {
  double ret = 0;
  for (int i = 0; i < n; i++)
    ret += arr[i];
  return ret / n;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<mean>:
  endbr64
  test   %esi,%esi
  jle    L32
  cmp    $0x1,%esi
  je     L39
  mov    %esi,%edx
  mov    %rdi,%rax
  pxor   %xmm0,%xmm0
  shr    %edx
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%rdi,%rdx,1),%rdx
  nopl   0x0(%rax)
L15:
  movsd  (%rax),%xmm1
  add    $0x10,%rax
  addsd  %xmm1,%xmm0
  movsd  -0x8(%rax),%xmm1
  addsd  %xmm1,%xmm0
  cmp    %rdx,%rax
  jne    L15
  mov    %esi,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%sil
  je     L9
L18:
  cltq
  addsd  (%rdi,%rax,8),%xmm0
L9:
  pxor   %xmm1,%xmm1
  cvtsi2sd %esi,%xmm1
  divsd  %xmm1,%xmm0
  ret
  nopl   0x0(%rax)
L32:
  pxor   %xmm1,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %esi,%xmm1
  divsd  %xmm1,%xmm0
  ret
L39:
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  jmp    L18
```

assistant: ```c
double mean(double arr[], int n) {
  double ret = 0;
  for (int i = 0; i < n; i++)
    ret += arr[i];
  return ret / n;
}
```
user: What is the c source code of the assembly code below?

```asm
<pmu_set_clk_init>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    $0xdf81,%edx
  mov    $0x17,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0xdf81,%edx
  mov    $0x17,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0xdaaa,%edx
  mov    $0x18,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x1f81,%edx
  mov    $0x19,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x1aaa,%edx
  mov    $0x1a,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0xdf81,%edx
  mov    $0x15,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0xdaaa,%edx
  mov    $0x16,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x82f,%edx
  mov    $0x5,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x2aaf,%edx
  mov    $0x5,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x1,%edi
  call   <pmu_set_adc_period@plt>
  nop
  pop    %rbp
  ret
```

assistant: ```c
void pmu_set_clk_init() {
  mbus_remote_register_write(0x6, 0x17, ((3 << 14) | (0 << 13) | (0xF << 9) | (0xC << 5) | (1)));
  delay(100);
  mbus_remote_register_write(0x6, 0x17, ((3 << 14) | (0 << 13) | (0xF << 9) | (0xC << 5) | (1)));
  delay(100);
  mbus_remote_register_write(0x6, 0x18, ((3 << 14) | (0 << 13) | (0xD << 9) | (5 << 5) | (10)));
  delay(100);
  mbus_remote_register_write(0x6, 0x19, ((0 << 13) | (0xF << 9) | (0xC << 5) | (1)));
  delay(100);
  mbus_remote_register_write(0x6, 0x1A, ((0 << 13) | (0xD << 9) | (5 << 5) | (10)));
  delay(100);
  mbus_remote_register_write(0x6, 0x15, ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) | (0 << 13) | (0xF << 9) | (0xC << 5) | (1)));
  delay(100);
  mbus_remote_register_write(0x6, 0x16, ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) | (0 << 13) | (0xD << 9) | (5 << 5) | (10)));
  delay(100);
  mbus_remote_register_write(0x6, 0x05, ((0 << 13) | (0 << 12) | (1 << 11) | (0 << 10) | (0 << 9) | (0 << 8) | (0 << 7) | (47)));
  delay(100);
  mbus_remote_register_write(0x6, 0x05, ((1 << 13) | (0 << 12) | (1 << 11) | (0 << 10) | (1 << 9) | (0 << 8) | (1 << 7) | (47)));
  delay(100);
  pmu_set_adc_period(1);
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<pmu_set_clk_init>:
  endbr64
  sub    $0x8,%rsp
  mov    $0xdf81,%edx
  mov    $0x17,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0xdf81,%edx
  mov    $0x17,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0xdaaa,%edx
  mov    $0x18,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x1f81,%edx
  mov    $0x19,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x1aaa,%edx
  mov    $0x1a,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0xdf81,%edx
  mov    $0x15,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0xdaaa,%edx
  mov    $0x16,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x82f,%edx
  mov    $0x5,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x2aaf,%edx
  mov    $0x5,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x1,%edi
  call   <pmu_set_adc_period@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
void pmu_set_clk_init() {
  mbus_remote_register_write(0x6, 0x17, ((3 << 14) | (0 << 13) | (0xF << 9) | (0xC << 5) | (1)));
  delay(100);
  mbus_remote_register_write(0x6, 0x17, ((3 << 14) | (0 << 13) | (0xF << 9) | (0xC << 5) | (1)));
  delay(100);
  mbus_remote_register_write(0x6, 0x18, ((3 << 14) | (0 << 13) | (0xD << 9) | (5 << 5) | (10)));
  delay(100);
  mbus_remote_register_write(0x6, 0x19, ((0 << 13) | (0xF << 9) | (0xC << 5) | (1)));
  delay(100);
  mbus_remote_register_write(0x6, 0x1A, ((0 << 13) | (0xD << 9) | (5 << 5) | (10)));
  delay(100);
  mbus_remote_register_write(0x6, 0x15, ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) | (0 << 13) | (0xF << 9) | (0xC << 5) | (1)));
  delay(100);
  mbus_remote_register_write(0x6, 0x16, ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) | (0 << 13) | (0xD << 9) | (5 << 5) | (10)));
  delay(100);
  mbus_remote_register_write(0x6, 0x05, ((0 << 13) | (0 << 12) | (1 << 11) | (0 << 10) | (0 << 9) | (0 << 8) | (0 << 7) | (47)));
  delay(100);
  mbus_remote_register_write(0x6, 0x05, ((1 << 13) | (0 << 12) | (1 << 11) | (0 << 10) | (1 << 9) | (0 << 8) | (1 << 7) | (47)));
  delay(100);
  pmu_set_adc_period(1);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<pmu_set_clk_init>:
  endbr64
  sub    $0x8,%rsp
  mov    $0xdf81,%edx
  mov    $0x17,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0xdf81,%edx
  mov    $0x17,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0xdaaa,%edx
  mov    $0x18,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x1f81,%edx
  mov    $0x19,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x1aaa,%edx
  mov    $0x1a,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0xdf81,%edx
  mov    $0x15,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0xdaaa,%edx
  mov    $0x16,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x82f,%edx
  mov    $0x5,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x2aaf,%edx
  mov    $0x5,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0x64,%edi
  call   <delay@plt>
  mov    $0x1,%edi
  add    $0x8,%rsp
  jmp    1080 <pmu_set_adc_period@plt>
```

assistant: ```c
void pmu_set_clk_init() {
  mbus_remote_register_write(0x6, 0x17, ((3 << 14) | (0 << 13) | (0xF << 9) | (0xC << 5) | (1)));
  delay(100);
  mbus_remote_register_write(0x6, 0x17, ((3 << 14) | (0 << 13) | (0xF << 9) | (0xC << 5) | (1)));
  delay(100);
  mbus_remote_register_write(0x6, 0x18, ((3 << 14) | (0 << 13) | (0xD << 9) | (5 << 5) | (10)));
  delay(100);
  mbus_remote_register_write(0x6, 0x19, ((0 << 13) | (0xF << 9) | (0xC << 5) | (1)));
  delay(100);
  mbus_remote_register_write(0x6, 0x1A, ((0 << 13) | (0xD << 9) | (5 << 5) | (10)));
  delay(100);
  mbus_remote_register_write(0x6, 0x15, ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) | (0 << 13) | (0xF << 9) | (0xC << 5) | (1)));
  delay(100);
  mbus_remote_register_write(0x6, 0x16, ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) | (0 << 13) | (0xD << 9) | (5 << 5) | (10)));
  delay(100);
  mbus_remote_register_write(0x6, 0x05, ((0 << 13) | (0 << 12) | (1 << 11) | (0 << 10) | (0 << 9) | (0 << 8) | (0 << 7) | (47)));
  delay(100);
  mbus_remote_register_write(0x6, 0x05, ((1 << 13) | (0 << 12) | (1 << 11) | (0 << 10) | (1 << 9) | (0 << 8) | (1 << 7) | (47)));
  delay(100);
  pmu_set_adc_period(1);
}
```