ylfeng/ReF-Decompile-dataset huggingface dataset:
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<sld_string_reverse>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  movq   $0x0,-0x8(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  je     L12
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  test   %rax,%rax
  jle    L12
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <sld_string_allocate@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x28(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  movl   $0x0,-0x14(%rbp)
  jmp    L15
L3:
  mov    -0x14(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  addl   $0x1,-0x14(%rbp)
L15:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L3
  movl   $0x0,-0x10(%rbp)
  jmp    L42
L5:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  subl   $0x1,-0xc(%rbp)
  addl   $0x1,-0x10(%rbp)
L42:
  mov    -0x14(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jg     L5
L12:
  mov    -0x8(%rbp),%rax
  leave
  ret
```

assistant: ```c
char *sld_string_reverse(char *string) {
  char *reversed_string = NULL;
  int i, j, end_index;
  if (string != NULL && strlen(string) > 0) {
    reversed_string = sld_string_allocate(string);
    strcpy(reversed_string, string);
    for (i = 0; string[i] != '\0'; i++)
      end_index = i;
    for (j = 0; j <= i - 1; j++) {
      reversed_string[j] = string[end_index];
      end_index--;
    }
  }
  return reversed_string;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<sld_string_reverse>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  test   %rdi,%rdi
  je     L39
  call   <strlen@plt>
  mov    $0x0,%ebx
  test   %rax,%rax
  jle    L13
  mov    %rbp,%rdi
  call   <sld_string_allocate@plt>
  mov    %rax,%rbx
  mov    %rbp,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  cmpb   $0x0,0x0(%rbp)
  je     L13
  lea    0x1(%rbp),%rdx
  mov    $0x0,%eax
L53:
  mov    %eax,%ecx
  add    $0x1,%eax
  add    $0x1,%rdx
  cmpb   $0x0,-0x1(%rdx)
  jne    L53
  test   %eax,%eax
  jle    L13
  movslq %ecx,%rdi
  add    %rbp,%rdi
  mov    %rbx,%rdx
  mov    %rdi,%rax
  sub    $0x1,%edi
L56:
  movzbl (%rax),%esi
  mov    %sil,(%rdx)
  sub    $0x1,%rax
  add    $0x1,%rdx
  mov    %edi,%esi
  sub    %eax,%esi
  cmp    %ecx,%esi
  jl     L56
L13:
  mov    %rbx,%rax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
L39:
  mov    %rdi,%rbx
  jmp    L13
```

assistant: ```c
char *sld_string_reverse(char *string) {
  char *reversed_string = NULL;
  int i, j, end_index;
  if (string != NULL && strlen(string) > 0) {
    reversed_string = sld_string_allocate(string);
    strcpy(reversed_string, string);
    for (i = 0; string[i] != '\0'; i++)
      end_index = i;
    for (j = 0; j <= i - 1; j++) {
      reversed_string[j] = string[end_index];
      end_index--;
    }
  }
  return reversed_string;
}
```
user: Translate the below assembly code into C programming language:

```asm
<sld_string_reverse>:
  endbr64
  push   %r12
  push   %rbx
  sub    $0x8,%rsp
  test   %rdi,%rdi
  je     L38
  mov    %rdi,%rbx
  xor    %r12d,%r12d
  call   <strlen@plt>
  test   %rax,%rax
  je     L24
  mov    %rbx,%rdi
  call   <sld_string_allocate@plt>
  mov    %rbx,%rsi
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <strcpy@plt>
  cmpb   $0x0,(%rbx)
  je     L24
  xor    %eax,%eax
  nopl   (%rax)
L17:
  movslq %eax,%rdx
  mov    %rax,%rcx
  add    $0x1,%rax
  cmpb   $0x0,(%rbx,%rax,1)
  jne    L17
  lea    (%rbx,%rdx,1),%rdi
  mov    %r12,%rax
  lea    0x1(%r12,%rcx,1),%rcx
  nopl   0x0(%rax)
L44:
  movzbl (%rdi),%edx
  add    $0x1,%rax
  sub    $0x1,%rdi
  mov    %dl,-0x1(%rax)
  cmp    %rcx,%rax
  jne    L44
L24:
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  ret
  xchg   %ax,%ax
L38:
  xor    %r12d,%r12d
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  ret
```

assistant: ```c
char *sld_string_reverse(char *string) {
  char *reversed_string = NULL;
  int i, j, end_index;
  if (string != NULL && strlen(string) > 0) {
    reversed_string = sld_string_allocate(string);
    strcpy(reversed_string, string);
    for (i = 0; string[i] != '\0'; i++)
      end_index = i;
    for (j = 0; j <= i - 1; j++) {
      reversed_string[j] = string[end_index];
      end_index--;
    }
  }
  return reversed_string;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<sld_string_reverse>:
  endbr64
  push   %r12
  push   %rbx
  sub    $0x8,%rsp
  test   %rdi,%rdi
  je     L9
  mov    %rdi,%rbx
  xor    %r12d,%r12d
  call   <strlen@plt>
  test   %rax,%rax
  je     L1
  mov    %rbx,%rdi
  call   <sld_string_allocate@plt>
  mov    %rbx,%rsi
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <strcpy@plt>
  cmpb   $0x0,(%rbx)
  je     L1
  xor    %eax,%eax
  nopl   (%rax)
L0:
  movslq %eax,%rdx
  mov    %rax,%rcx
  add    $0x1,%rax
  cmpb   $0x0,(%rbx,%rax,1)
  jne    L0
  lea    (%rbx,%rdx,1),%rdi
  mov    %r12,%rax
  lea    0x1(%r12,%rcx,1),%rcx
  nopl   0x0(%rax)
L46:
  movzbl (%rdi),%edx
  add    $0x1,%rax
  sub    $0x1,%rdi
  mov    %dl,-0x1(%rax)
  cmp    %rax,%rcx
  jne    L46
L1:
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  ret
  xchg   %ax,%ax
L9:
  xor    %r12d,%r12d
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  ret
```

assistant: ```c
char *sld_string_reverse(char *string) {
  char *reversed_string = NULL;
  int i, j, end_index;
  if (string != NULL && strlen(string) > 0) {
    reversed_string = sld_string_allocate(string);
    strcpy(reversed_string, string);
    for (i = 0; string[i] != '\0'; i++)
      end_index = i;
    for (j = 0; j <= i - 1; j++) {
      reversed_string[j] = string[end_index];
      end_index--;
    }
  }
  return reversed_string;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<test_buf_size_concrete>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0xb(%rbp),%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <__buf_size_arg_constraint@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L9
  call   <__stack_chk_fail@plt>
L9:
  leave
  ret
```

assistant: ```c
void test_buf_size_concrete() {
  char buf[3];
  __buf_size_arg_constraint(buf, 4);
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<test_buf_size_concrete>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x5(%rsp),%rdi
  mov    $0x4,%esi
  call   <__buf_size_arg_constraint@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x18,%rsp
  ret
L2:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void test_buf_size_concrete() {
  char buf[3];
  __buf_size_arg_constraint(buf, 4);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<test_buf_size_concrete>:
  endbr64
  sub    $0x18,%rsp
  mov    $0x4,%esi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x5(%rsp),%rdi
  call   <__buf_size_arg_constraint@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0x18,%rsp
  ret
L1:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void test_buf_size_concrete() {
  char buf[3];
  __buf_size_arg_constraint(buf, 4);
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  movl   $0x0,-0x4(%rbp)
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  call   <getenv@plt>
  mov    %rax,%rsi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <getenv@plt>
  mov    %rax,%rsi
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <getenv@plt>
  test   %rax,%rax
  jne    L16
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L17
L16:
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L17:
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D34
type_guessed: string
name: parse_data
arguments: tag: D3
type_guessed: string
name: parse_data
arguments: tag: D26
type_guessed: string
name: parse_data
arguments: tag: D39
type_guessed: string
name: parse_data
arguments: tag: D31
type_guessed: string
name: parse_data
arguments: tag: D58
type_guessed: string
name: parse_data
arguments: tag: D54
type_guessed: string

tool: D34: ONE

tool: D3: The env ONE is -%s-


tool: D26: TWO

tool: D39: The env TWO is -%s-


tool: D31: THREE

tool: D58: Not found THREE

tool: D54: Found THREE

assistant: ```c
int main(int argc, char *argv[]) {
  int i = 0;
  printf("The env ONE is -%s-\n", getenv("ONE"));
  printf("The env TWO is -%s-\n", getenv("TWO"));
  if (getenv("THREE") == NULL) {
    printf("Not found THREE");
  } else {
    printf("Found THREE");
  }
  return 0;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  lea    D59(%rip),%rdi
  call   <getenv@plt>
  mov    %rax,%rsi
  lea    D37(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D51(%rip),%rdi
  call   <getenv@plt>
  mov    %rax,%rsi
  lea    D64(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D23(%rip),%rdi
  call   <getenv@plt>
  test   %rax,%rax
  je     L16
  lea    D2(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L3:
  mov    $0x0,%eax
  add    $0x8,%rsp
  ret
L16:
  lea    D12(%rip),%rdi
  call   <printf@plt>
  jmp    L3
```

tool_calls: name: parse_data
arguments: data_label: D59
type_guessed: string
name: parse_data
arguments: data_label: D37
type_guessed: string
name: parse_data
arguments: data_label: D51
type_guessed: string
name: parse_data
arguments: data_label: D64
type_guessed: string
name: parse_data
arguments: data_label: D23
type_guessed: string
name: parse_data
arguments: data_label: D2
type_guessed: string
name: parse_data
arguments: data_label: D12
type_guessed: string

tool: D59: ONE

tool: D37: The env ONE is -%s-


tool: D51: TWO

tool: D64: The env TWO is -%s-


tool: D23: THREE

tool: D2: Found THREE

tool: D12: Not found THREE

assistant: ```c
int main(int argc, char *argv[]) {
  int i = 0;
  printf("The env ONE is -%s-\n", getenv("ONE"));
  printf("The env TWO is -%s-\n", getenv("TWO"));
  if (getenv("THREE") == NULL) {
    printf("Not found THREE");
  } else {
    printf("Found THREE");
  }
  return 0;
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  lea    D52(%rip),%rdi
  call   <getenv@plt>
  lea    D40(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D0(%rip),%rdi
  call   <getenv@plt>
  lea    D4(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D59(%rip),%rdi
  call   <getenv@plt>
  test   %rax,%rax
  je     L10
  lea    D61(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L13:
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
L10:
  lea    D13(%rip),%rdi
  call   <printf@plt>
  jmp    L13
```

tool_calls: name: retrieve_data
arguments: tag: D52
type: string
name: retrieve_data
arguments: tag: D40
type: string
name: retrieve_data
arguments: tag: D0
type: string
name: retrieve_data
arguments: tag: D4
type: string
name: retrieve_data
arguments: tag: D59
type: string
name: retrieve_data
arguments: tag: D61
type: string
name: retrieve_data
arguments: tag: D13
type: string

tool: D52: ONE

tool: D40: The env ONE is -%s-


tool: D0: TWO

tool: D4: The env TWO is -%s-


tool: D59: THREE

tool: D61: Found THREE

tool: D13: Not found THREE

assistant: ```c
int main(int argc, char *argv[]) {
  int i = 0;
  printf("The env ONE is -%s-\n", getenv("ONE"));
  printf("The env TWO is -%s-\n", getenv("TWO"));
  if (getenv("THREE") == NULL) {
    printf("Not found THREE");
  } else {
    printf("Found THREE");
  }
  return 0;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  lea    D31(%rip),%rdi
  call   <getenv@plt>
  lea    D55(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D29(%rip),%rdi
  call   <getenv@plt>
  lea    D6(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D60(%rip),%rdi
  call   <getenv@plt>
  test   %rax,%rax
  je     L5
  lea    D48(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L12:
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
L5:
  lea    D68(%rip),%rdi
  call   <printf@plt>
  jmp    L12
```

tool_calls: name: parse_data
arguments: label: D31
data_type: string
name: parse_data
arguments: label: D55
data_type: string
name: parse_data
arguments: label: D29
data_type: string
name: parse_data
arguments: label: D6
data_type: string
name: parse_data
arguments: label: D60
data_type: string
name: parse_data
arguments: label: D48
data_type: string
name: parse_data
arguments: label: D68
data_type: string

tool: D31: ONE

tool: D55: The env ONE is -%s-


tool: D29: TWO

tool: D6: The env TWO is -%s-


tool: D60: THREE

tool: D48: Found THREE

tool: D68: Not found THREE

assistant: ```c
int main(int argc, char *argv[]) {
  int i = 0;
  printf("The env ONE is -%s-\n", getenv("ONE"));
  printf("The env TWO is -%s-\n", getenv("TWO"));
  if (getenv("THREE") == NULL) {
    printf("Not found THREE");
  } else {
    printf("Found THREE");
  }
  return 0;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<pmu_set_clk_init>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    $0xc221,%edx
  mov    $0x17,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc221,%edx
  mov    $0x17,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc410,%edx
  mov    $0x18,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x221,%edx
  mov    $0x19,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x810,%edx
  mov    $0x1a,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc221,%edx
  mov    $0x15,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc810,%edx
  mov    $0x16,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x82f,%edx
  mov    $0x5,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x2aaf,%edx
  mov    $0x5,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%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) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x17, ((3 << 14) | (0 << 13) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x18, ((3 << 14) | (0 << 13) | (2 << 9) | (0 << 5) | (16)));
  delay(200);
  mbus_remote_register_write(0x6, 0x19, ((0 << 13) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x1A, ((0 << 13) | (4 << 9) | (0 << 5) | (16)));
  delay(200);
  mbus_remote_register_write(0x6, 0x15, ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) | (0 << 13) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x16, ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) | (0 << 13) | (4 << 9) | (0 << 5) | (16)));
  delay(200);
  mbus_remote_register_write(0x6, 0x05, ((0 << 13) | (0 << 12) | (1 << 11) | (0 << 10) | (0 << 9) | (0 << 8) | (0 << 7) | (47)));
  delay(200);
  mbus_remote_register_write(0x6, 0x05, ((1 << 13) | (0 << 12) | (1 << 11) | (0 << 10) | (1 << 9) | (0 << 8) | (1 << 7) | (47)));
  delay(200);
  pmu_set_adc_period(1);
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<pmu_set_clk_init>:
  endbr64
  sub    $0x8,%rsp
  mov    $0xc221,%edx
  mov    $0x17,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc221,%edx
  mov    $0x17,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc410,%edx
  mov    $0x18,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x221,%edx
  mov    $0x19,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x810,%edx
  mov    $0x1a,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc221,%edx
  mov    $0x15,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc810,%edx
  mov    $0x16,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x82f,%edx
  mov    $0x5,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x2aaf,%edx
  mov    $0x5,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%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) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x17, ((3 << 14) | (0 << 13) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x18, ((3 << 14) | (0 << 13) | (2 << 9) | (0 << 5) | (16)));
  delay(200);
  mbus_remote_register_write(0x6, 0x19, ((0 << 13) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x1A, ((0 << 13) | (4 << 9) | (0 << 5) | (16)));
  delay(200);
  mbus_remote_register_write(0x6, 0x15, ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) | (0 << 13) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x16, ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) | (0 << 13) | (4 << 9) | (0 << 5) | (16)));
  delay(200);
  mbus_remote_register_write(0x6, 0x05, ((0 << 13) | (0 << 12) | (1 << 11) | (0 << 10) | (0 << 9) | (0 << 8) | (0 << 7) | (47)));
  delay(200);
  mbus_remote_register_write(0x6, 0x05, ((1 << 13) | (0 << 12) | (1 << 11) | (0 << 10) | (1 << 9) | (0 << 8) | (1 << 7) | (47)));
  delay(200);
  pmu_set_adc_period(1);
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<pmu_set_clk_init>:
  endbr64
  sub    $0x8,%rsp
  mov    $0xc221,%edx
  mov    $0x17,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc221,%edx
  mov    $0x17,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc410,%edx
  mov    $0x18,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x221,%edx
  mov    $0x19,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x810,%edx
  mov    $0x1a,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc221,%edx
  mov    $0x15,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc810,%edx
  mov    $0x16,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x82f,%edx
  mov    $0x5,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x2aaf,%edx
  mov    $0x5,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%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) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x17, ((3 << 14) | (0 << 13) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x18, ((3 << 14) | (0 << 13) | (2 << 9) | (0 << 5) | (16)));
  delay(200);
  mbus_remote_register_write(0x6, 0x19, ((0 << 13) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x1A, ((0 << 13) | (4 << 9) | (0 << 5) | (16)));
  delay(200);
  mbus_remote_register_write(0x6, 0x15, ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) | (0 << 13) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x16, ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) | (0 << 13) | (4 << 9) | (0 << 5) | (16)));
  delay(200);
  mbus_remote_register_write(0x6, 0x05, ((0 << 13) | (0 << 12) | (1 << 11) | (0 << 10) | (0 << 9) | (0 << 8) | (0 << 7) | (47)));
  delay(200);
  mbus_remote_register_write(0x6, 0x05, ((1 << 13) | (0 << 12) | (1 << 11) | (0 << 10) | (1 << 9) | (0 << 8) | (1 << 7) | (47)));
  delay(200);
  pmu_set_adc_period(1);
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<pmu_set_clk_init>:
  endbr64
  sub    $0x8,%rsp
  mov    $0xc221,%edx
  mov    $0x17,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc221,%edx
  mov    $0x17,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc410,%edx
  mov    $0x18,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x221,%edx
  mov    $0x19,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x810,%edx
  mov    $0x1a,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc221,%edx
  mov    $0x15,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0xc810,%edx
  mov    $0x16,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x82f,%edx
  mov    $0x5,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%edi
  call   <delay@plt>
  mov    $0x2aaf,%edx
  mov    $0x5,%esi
  mov    $0x6,%edi
  call   <mbus_remote_register_write@plt>
  mov    $0xc8,%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) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x17, ((3 << 14) | (0 << 13) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x18, ((3 << 14) | (0 << 13) | (2 << 9) | (0 << 5) | (16)));
  delay(200);
  mbus_remote_register_write(0x6, 0x19, ((0 << 13) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x1A, ((0 << 13) | (4 << 9) | (0 << 5) | (16)));
  delay(200);
  mbus_remote_register_write(0x6, 0x15, ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) | (0 << 13) | (1 << 9) | (1 << 5) | (1)));
  delay(200);
  mbus_remote_register_write(0x6, 0x16, ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) | (0 << 13) | (4 << 9) | (0 << 5) | (16)));
  delay(200);
  mbus_remote_register_write(0x6, 0x05, ((0 << 13) | (0 << 12) | (1 << 11) | (0 << 10) | (0 << 9) | (0 << 8) | (0 << 7) | (47)));
  delay(200);
  mbus_remote_register_write(0x6, 0x05, ((1 << 13) | (0 << 12) | (1 << 11) | (0 << 10) | (1 << 9) | (0 << 8) | (1 << 7) | (47)));
  delay(200);
  pmu_set_adc_period(1);
}
```