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

```asm
<res_hnok>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  movl   $0x0,-0x8(%rbp)
  movl   $0x2e,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L61
L212:
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x2e,-0xc(%rbp)
  je     L258
  cmpl   $0x2e,-0x10(%rbp)
  jne    L218
  cmpl   $0x40,-0xc(%rbp)
  jle    L219
  cmpl   $0x5a,-0xc(%rbp)
  jle    L258
L219:
  cmpl   $0x60,-0xc(%rbp)
  jle    L266
  cmpl   $0x7a,-0xc(%rbp)
  jle    L258
L266:
  cmpl   $0x2f,-0xc(%rbp)
  jle    L264
  cmpl   $0x39,-0xc(%rbp)
  jle    L258
L264:
  mov    $0x0,%eax
  jmp    L45
L218:
  cmpl   $0x2e,-0x4(%rbp)
  je     L242
  cmpl   $0x0,-0x4(%rbp)
  jne    L119
L242:
  cmpl   $0x40,-0xc(%rbp)
  jle    L190
  cmpl   $0x5a,-0xc(%rbp)
  jle    L91
L190:
  cmpl   $0x60,-0xc(%rbp)
  jle    L116
  cmpl   $0x7a,-0xc(%rbp)
  jle    L91
L116:
  cmpl   $0x2f,-0xc(%rbp)
  jle    L145
  cmpl   $0x39,-0xc(%rbp)
  jle    L91
L145:
  mov    $0x0,%eax
  jmp    L45
L119:
  cmpl   $0x40,-0xc(%rbp)
  jle    L125
  cmpl   $0x5a,-0xc(%rbp)
  jle    L258
L125:
  cmpl   $0x60,-0xc(%rbp)
  jle    L30
  cmpl   $0x7a,-0xc(%rbp)
  jle    L258
L30:
  cmpl   $0x2f,-0xc(%rbp)
  jle    L8
  cmpl   $0x39,-0xc(%rbp)
  jle    L258
L8:
  cmpl   $0x2d,-0xc(%rbp)
  je     L258
  mov    $0x0,%eax
  jmp    L45
L91:
  nop
L258:
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,-0xc(%rbp)
L61:
  cmpl   $0x0,-0xc(%rbp)
  jne    L212
  mov    $0x1,%eax
L45:
  pop    %rbp
  ret
```

assistant: ```c
int res_hnok(const char *dn) {
  int ppch = '\0', pch = 0x2e, ch = *dn++;
  while (ch != '\0') {
    int nch = *dn++;
    if (((ch) == 0x2e)) {
      (void)NULL;
    } else if (((pch) == 0x2e)) {
      if (!((((ch) >= 0x41 && (ch) <= 0x5a) || ((ch) >= 0x61 && (ch) <= 0x7a)) || ((ch) >= 0x30 && (ch) <= 0x39)))
        return (0);
    } else if (((nch) == 0x2e) || nch == '\0') {
      if (!((((ch) >= 0x41 && (ch) <= 0x5a) || ((ch) >= 0x61 && (ch) <= 0x7a)) || ((ch) >= 0x30 && (ch) <= 0x39)))
        return (0);
    } else {
      if (!(((((ch) >= 0x41 && (ch) <= 0x5a) || ((ch) >= 0x61 && (ch) <= 0x7a)) || ((ch) >= 0x30 && (ch) <= 0x39)) || ((ch) == 0x2d)))
        return (0);
    }
    ppch = pch, pch = ch, ch = nch;
  }
  return (1);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<res_hnok>:
  endbr64
  lea    0x1(%rdi),%rcx
  movsbl (%rdi),%eax
  test   %eax,%eax
  je     L138
  mov    $0x2e,%esi
  jmp    L49
L26:
  mov    %eax,%esi
  and    $0xffffffdf,%esi
  sub    $0x41,%esi
  cmp    $0x19,%esi
  jbe    L90
  lea    -0x30(%rax),%esi
  cmp    $0x9,%esi
  ja     L89
L90:
  test   %edx,%edx
  je     L42
L37:
  mov    %eax,%esi
  mov    %edx,%eax
L49:
  add    $0x1,%rcx
  movsbl -0x1(%rcx),%edx
  cmp    $0x2e,%eax
  je     L90
  cmp    $0x2e,%esi
  je     L26
  cmp    $0x2e,%edx
  je     L127
  test   %edx,%edx
  je     L127
  mov    %eax,%esi
  and    $0xffffffdf,%esi
  sub    $0x41,%esi
  cmp    $0x19,%esi
  jbe    L37
  lea    -0x30(%rax),%esi
  cmp    $0x9,%esi
  jbe    L37
  cmp    $0x2d,%eax
  je     L37
  mov    $0x0,%eax
  ret
L127:
  mov    %eax,%esi
  and    $0xffffffdf,%esi
  sub    $0x41,%esi
  cmp    $0x19,%esi
  jbe    L90
  lea    -0x30(%rax),%esi
  cmp    $0x9,%esi
  jbe    L90
  mov    $0x0,%eax
  ret
L138:
  mov    $0x1,%eax
  ret
L89:
  mov    $0x0,%eax
  ret
L42:
  mov    $0x1,%eax
  ret
```

assistant: ```c
int res_hnok(const char *dn) {
  int ppch = '\0', pch = 0x2e, ch = *dn++;
  while (ch != '\0') {
    int nch = *dn++;
    if (((ch) == 0x2e)) {
      (void)NULL;
    } else if (((pch) == 0x2e)) {
      if (!((((ch) >= 0x41 && (ch) <= 0x5a) || ((ch) >= 0x61 && (ch) <= 0x7a)) || ((ch) >= 0x30 && (ch) <= 0x39)))
        return (0);
    } else if (((nch) == 0x2e) || nch == '\0') {
      if (!((((ch) >= 0x41 && (ch) <= 0x5a) || ((ch) >= 0x61 && (ch) <= 0x7a)) || ((ch) >= 0x30 && (ch) <= 0x39)))
        return (0);
    } else {
      if (!(((((ch) >= 0x41 && (ch) <= 0x5a) || ((ch) >= 0x61 && (ch) <= 0x7a)) || ((ch) >= 0x30 && (ch) <= 0x39)) || ((ch) == 0x2d)))
        return (0);
    }
    ppch = pch, pch = ch, ch = nch;
  }
  return (1);
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<res_hnok>:
  endbr64
  movsbl (%rdi),%eax
  lea    0x1(%rdi),%rcx
  test   %eax,%eax
  je     L78
  mov    $0x2e,%edi
  nopl   0x0(%rax,%rax,1)
L141:
  add    $0x1,%rcx
  movsbl -0x1(%rcx),%edx
  cmp    $0x2e,%eax
  je     L2
  mov    %eax,%esi
  cmp    $0x2e,%edi
  je     L149
  mov    %esi,%edi
  and    $0xffffffdf,%edi
  sub    $0x41,%edi
  cmp    $0x2e,%edx
  je     L12
L94:
  test   %edx,%edx
  je     L12
  cmp    $0x19,%edi
  jbe    L17
  sub    $0x30,%esi
  cmp    $0x9,%esi
  jbe    L17
  cmp    $0x2d,%eax
  jne    L107
  mov    %edx,%esi
  add    $0x1,%rcx
  mov    %edx,%eax
  mov    %esi,%edi
  movsbl -0x1(%rcx),%edx
  and    $0xffffffdf,%edi
  sub    $0x41,%edi
  cmp    $0x2e,%edx
  jne    L94
L12:
  cmp    $0x19,%edi
  jbe    L2
  sub    $0x30,%esi
  cmp    $0x9,%esi
  ja     L107
  nopl   (%rax)
L2:
  test   %edx,%edx
  je     L78
L17:
  mov    %eax,%edi
  mov    %edx,%eax
  jmp    L141
  nopw   0x0(%rax,%rax,1)
L149:
  and    $0xffffffdf,%esi
  sub    $0x41,%esi
  cmp    $0x19,%esi
  jbe    L2
  lea    -0x30(%rax),%esi
  cmp    $0x9,%esi
  jbe    L2
L107:
  xor    %eax,%eax
  ret
  cs nopw 0x0(%rax,%rax,1)
L78:
  mov    $0x1,%eax
  ret
```

assistant: ```c
int res_hnok(const char *dn) {
  int ppch = '\0', pch = 0x2e, ch = *dn++;
  while (ch != '\0') {
    int nch = *dn++;
    if (((ch) == 0x2e)) {
      (void)NULL;
    } else if (((pch) == 0x2e)) {
      if (!((((ch) >= 0x41 && (ch) <= 0x5a) || ((ch) >= 0x61 && (ch) <= 0x7a)) || ((ch) >= 0x30 && (ch) <= 0x39)))
        return (0);
    } else if (((nch) == 0x2e) || nch == '\0') {
      if (!((((ch) >= 0x41 && (ch) <= 0x5a) || ((ch) >= 0x61 && (ch) <= 0x7a)) || ((ch) >= 0x30 && (ch) <= 0x39)))
        return (0);
    } else {
      if (!(((((ch) >= 0x41 && (ch) <= 0x5a) || ((ch) >= 0x61 && (ch) <= 0x7a)) || ((ch) >= 0x30 && (ch) <= 0x39)) || ((ch) == 0x2d)))
        return (0);
    }
    ppch = pch, pch = ch, ch = nch;
  }
  return (1);
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<res_hnok>:
  endbr64
  movsbl (%rdi),%eax
  lea    0x1(%rdi),%rcx
  test   %eax,%eax
  je     L40
  mov    $0x2e,%edi
  nopl   0x0(%rax,%rax,1)
L74:
  add    $0x1,%rcx
  movsbl -0x1(%rcx),%edx
  cmp    $0x2e,%eax
  je     L127
  mov    %eax,%esi
  cmp    $0x2e,%edi
  je     L7
  mov    %esi,%edi
  and    $0xffffffdf,%edi
  sub    $0x41,%edi
  cmp    $0x2e,%edx
  je     L124
L105:
  test   %edx,%edx
  je     L124
  cmp    $0x19,%edi
  jbe    L100
  sub    $0x30,%esi
  cmp    $0x9,%esi
  jbe    L100
  cmp    $0x2d,%eax
  jne    L58
  mov    %edx,%esi
  add    $0x1,%rcx
  mov    %edx,%eax
  mov    %esi,%edi
  movsbl -0x1(%rcx),%edx
  and    $0xffffffdf,%edi
  sub    $0x41,%edi
  cmp    $0x2e,%edx
  jne    L105
L124:
  cmp    $0x19,%edi
  jbe    L127
  sub    $0x30,%esi
  cmp    $0x9,%esi
  ja     L58
  nopl   (%rax)
L127:
  test   %edx,%edx
  je     L40
L100:
  mov    %eax,%edi
  mov    %edx,%eax
  jmp    L74
  nopw   0x0(%rax,%rax,1)
L7:
  and    $0xffffffdf,%esi
  sub    $0x41,%esi
  cmp    $0x19,%esi
  jbe    L127
  lea    -0x30(%rax),%esi
  cmp    $0x9,%esi
  jbe    L127
L58:
  xor    %eax,%eax
  ret
  cs nopw 0x0(%rax,%rax,1)
L40:
  mov    $0x1,%eax
  ret
```

assistant: ```c
int res_hnok(const char *dn) {
  int ppch = '\0', pch = 0x2e, ch = *dn++;
  while (ch != '\0') {
    int nch = *dn++;
    if (((ch) == 0x2e)) {
      (void)NULL;
    } else if (((pch) == 0x2e)) {
      if (!((((ch) >= 0x41 && (ch) <= 0x5a) || ((ch) >= 0x61 && (ch) <= 0x7a)) || ((ch) >= 0x30 && (ch) <= 0x39)))
        return (0);
    } else if (((nch) == 0x2e) || nch == '\0') {
      if (!((((ch) >= 0x41 && (ch) <= 0x5a) || ((ch) >= 0x61 && (ch) <= 0x7a)) || ((ch) >= 0x30 && (ch) <= 0x39)))
        return (0);
    } else {
      if (!(((((ch) >= 0x41 && (ch) <= 0x5a) || ((ch) >= 0x61 && (ch) <= 0x7a)) || ((ch) >= 0x30 && (ch) <= 0x39)) || ((ch) == 0x2d)))
        return (0);
    }
    ppch = pch, pch = ch, ch = nch;
  }
  return (1);
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<test_max_with_posneg_numbers>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  movl   $0x23d1f,-0x8(%rbp)
  movl   $0xfffff861,-0x4(%rbp)
  mov    -0x4(%rbp),%edx
  mov    -0x8(%rbp),%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  mov    $0x34,%ecx
  lea    D7(%rip),%rdx
  mov    %eax,%esi
  mov    $0x23d1f,%edi
  mov    $0x0,%eax
  call   <seatest_assert_int_equal@plt>
  nop
  leave
  ret
```

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

tool: D7: test_max_with_posneg_numbers

assistant: ```c
void test_max_with_posneg_numbers(void) {
  do {
    seatest_assert_int_equal(146719, ({
                               typeof(146719) _a = (146719);
                               typeof(-1951) _b = (-1951);
                               (_a > _b) ? _a : _b;
                             }),
                             __FUNCTION__, 52);
  } while (0);
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<test_max_with_posneg_numbers>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x34,%ecx
  lea    D8(%rip),%rdx
  mov    $0x23d1f,%esi
  mov    $0x23d1f,%edi
  mov    $0x0,%eax
  call   <seatest_assert_int_equal@plt>
  add    $0x8,%rsp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D8
type_infered: string

tool: D8: test_max_with_posneg_numbers

assistant: ```c
void test_max_with_posneg_numbers(void) {
  do {
    seatest_assert_int_equal(146719, ({
                               typeof(146719) _a = (146719);
                               typeof(-1951) _b = (-1951);
                               (_a > _b) ? _a : _b;
                             }),
                             __FUNCTION__, 52);
  } while (0);
}
```
user: What is the c source code of the assembly code below:

```asm
<test_max_with_posneg_numbers>:
  endbr64
  mov    $0x34,%ecx
  lea    D0(%rip),%rdx
  mov    $0x23d1f,%esi
  xor    %eax,%eax
  mov    $0x23d1f,%edi
  jmp    1050 <seatest_assert_int_equal@plt>
```

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

tool: D0: test_max_with_posneg_numbers

assistant: ```c
void test_max_with_posneg_numbers(void) {
  do {
    seatest_assert_int_equal(146719, ({
                               typeof(146719) _a = (146719);
                               typeof(-1951) _b = (-1951);
                               (_a > _b) ? _a : _b;
                             }),
                             __FUNCTION__, 52);
  } while (0);
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<test_max_with_posneg_numbers>:
  endbr64
  mov    $0x34,%ecx
  lea    D4(%rip),%rdx
  mov    $0x23d1f,%esi
  xor    %eax,%eax
  mov    $0x23d1f,%edi
  jmp    1050 <seatest_assert_int_equal@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D4
data_type: string

tool: D4: test_max_with_posneg_numbers

assistant: ```c
void test_max_with_posneg_numbers(void) {
  do {
    seatest_assert_int_equal(146719, ({
                               typeof(146719) _a = (146719);
                               typeof(-1951) _b = (-1951);
                               (_a > _b) ? _a : _b;
                             }),
                             __FUNCTION__, 52);
  } while (0);
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<s2e_disable_timer_interrupt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  (bad)
  add    %dl,0x1(%rax)
  add    %al,(%rax)
  add    %al,(%rax)
  .byte 0x0
  nop
  pop    %rbp
  ret
```

assistant: ```c
void s2e_disable_timer_interrupt() {
  __asm__ __volatile__(".byte 0x0f, 0x3f\n"
                       ".byte 0x00, 0x50, 0x01, 0x00\n"
                       ".byte 0x00, 0x00, 0x00, 0x00\n");
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<s2e_disable_timer_interrupt>:
  endbr64
  (bad)
  add    %dl,0x1(%rax)
  add    %al,(%rax)
  add    %al,(%rax)
  add    %al,%bl
```

assistant: ```c
void s2e_disable_timer_interrupt() {
  __asm__ __volatile__(".byte 0x0f, 0x3f\n"
                       ".byte 0x00, 0x50, 0x01, 0x00\n"
                       ".byte 0x00, 0x00, 0x00, 0x00\n");
}
```
user: What is the c source code of the assembly code below:

```asm
<s2e_disable_timer_interrupt>:
  endbr64
  (bad)
  add    %dl,0x1(%rax)
  add    %al,(%rax)
  add    %al,(%rax)
  add    %al,%bl
```

assistant: ```c
void s2e_disable_timer_interrupt() {
  __asm__ __volatile__(".byte 0x0f, 0x3f\n"
                       ".byte 0x00, 0x50, 0x01, 0x00\n"
                       ".byte 0x00, 0x00, 0x00, 0x00\n");
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<s2e_disable_timer_interrupt>:
  endbr64
  (bad)
  add    %dl,0x1(%rax)
  add    %al,(%rax)
  add    %al,(%rax)
  add    %al,%bl
```

assistant: ```c
void s2e_disable_timer_interrupt() {
  __asm__ __volatile__(".byte 0x0f, 0x3f\n"
                       ".byte 0x00, 0x50, 0x01, 0x00\n"
                       ".byte 0x00, 0x00, 0x00, 0x00\n");
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<SysCtlXPllClockDividerSet>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  movq   $0x0,-0x10(%rbp)
  mov    $0x400fb980,%eax
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    $0x400fb980,%eax
  mov    $0xa5a5a5a5,%esi
  mov    %rsi,(%rax)
  mov    $0x400fb850,%eax
  mov    (%rax),%rax
  shl    $0x10,%rax
  and    $0x30000,%eax
  mov    %rax,-0x10(%rbp)
  jmp    L21
L18:
  cmpq   $0x30000,-0x10(%rbp)
  jne    L37
  mov    $0x400fb850,%eax
  mov    (%rax),%rax
  and    $0xfffffffffffffffc,%rax
  mov    $0x400fb850,%edx
  or     $0x2,%rax
  mov    %rax,(%rdx)
  movq   $0x20000,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  and    $0x30000,%eax
  cmp    %rax,-0x10(%rbp)
  je     L21
  mov    $0xf,%edi
  call   <SysCtlDelay@plt>
  jmp    L21
L37:
  mov    -0x18(%rbp),%rax
  shr    $0x10,%rax
  and    $0x3,%eax
  mov    %rax,%rcx
  mov    $0x400fb850,%eax
  mov    (%rax),%rax
  and    $0xfffffffffffffffc,%rax
  mov    $0x400fb850,%edx
  or     %rcx,%rax
  mov    %rax,(%rdx)
  mov    $0x400fb850,%eax
  mov    (%rax),%rax
  shl    $0x10,%rax
  and    $0x30000,%eax
  mov    %rax,-0x10(%rbp)
L21:
  mov    -0x18(%rbp),%rax
  and    $0x30000,%eax
  cmp    %rax,-0x10(%rbp)
  jne    L18
  mov    $0x400fb980,%edx
  mov    -0x8(%rbp),%rax
  mov    %rax,(%rdx)
  nop
  leave
  ret
```

assistant: ```c
void SysCtlXPllClockDividerSet(unsigned long XPllClkDivReq) {
  unsigned long ulMWRAllow;
  unsigned long cur_xpll_val = 0x0;
  ulMWRAllow = (*((volatile unsigned long *)(0x400FB980)));
  (*((volatile unsigned long *)(0x400FB980))) = 0xA5A5A5A5;
  cur_xpll_val = (((*((volatile unsigned long *)(0x400FB850))) & (0x00030000 >> 16)) << 16);
  while ((XPllClkDivReq & 0x00030000) != cur_xpll_val) {
    if (cur_xpll_val == 0x00030000) {
      (*((volatile unsigned long *)(0x400FB850))) = ((0x00020000) >> 16) | ((*((volatile unsigned long *)(0x400FB850))) & ~(0x00030000 >> 16));
      cur_xpll_val = 0x00020000;
      if ((XPllClkDivReq & 0x00030000) != cur_xpll_val)
        SysCtlDelay(15);
    } else {
      (*((volatile unsigned long *)(0x400FB850))) = ((XPllClkDivReq & 0x00030000) >> 16) | ((*((volatile unsigned long *)(0x400FB850))) & ~(0x00030000 >> 16));
      cur_xpll_val = (((*((volatile unsigned long *)(0x400FB850))) & (0x00030000 >> 16)) << 16);
    }
  }
  (*((volatile unsigned long *)(0x400FB980))) = ulMWRAllow;
}
```
user: 这段汇编代码用C语言表示是什么样的:

```asm
<SysCtlXPllClockDividerSet>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    0x400fb980,%r13
  mov    $0xa5a5a5a5,%eax
  mov    %rax,0x400fb980
  mov    0x400fb850,%rax
  shl    $0x10,%rax
  and    $0x30000,%eax
  mov    %rdi,%rbp
  and    $0x30000,%ebp
  cmp    %rbp,%rax
  je     L1
  mov    %rdi,%rbx
  shr    $0x10,%rbx
  and    $0x3,%ebx
  mov    $0x20000,%r12d
  jmp    L21
L59:
  mov    $0xf,%edi
  call   <SysCtlDelay@plt>
  mov    %r12,%rax
  jmp    L21
L4:
  mov    0x400fb850,%rax
  and    $0xfffffffffffffffc,%rax
  or     %rbx,%rax
  mov    %rax,0x400fb850
  mov    0x400fb850,%rax
  shl    $0x10,%rax
  and    $0x30000,%eax
  cmp    %rbp,%rax
  je     L1
L21:
  cmp    $0x30000,%rax
  jne    L4
  mov    0x400fb850,%rax
  and    $0xfffffffffffffffc,%rax
  or     $0x2,%rax
  mov    %rax,0x400fb850
  cmp    $0x20000,%rbp
  jne    L59
L1:
  mov    %r13,0x400fb980
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

assistant: ```c
void SysCtlXPllClockDividerSet(unsigned long XPllClkDivReq) {
  unsigned long ulMWRAllow;
  unsigned long cur_xpll_val = 0x0;
  ulMWRAllow = (*((volatile unsigned long *)(0x400FB980)));
  (*((volatile unsigned long *)(0x400FB980))) = 0xA5A5A5A5;
  cur_xpll_val = (((*((volatile unsigned long *)(0x400FB850))) & (0x00030000 >> 16)) << 16);
  while ((XPllClkDivReq & 0x00030000) != cur_xpll_val) {
    if (cur_xpll_val == 0x00030000) {
      (*((volatile unsigned long *)(0x400FB850))) = ((0x00020000) >> 16) | ((*((volatile unsigned long *)(0x400FB850))) & ~(0x00030000 >> 16));
      cur_xpll_val = 0x00020000;
      if ((XPllClkDivReq & 0x00030000) != cur_xpll_val)
        SysCtlDelay(15);
    } else {
      (*((volatile unsigned long *)(0x400FB850))) = ((XPllClkDivReq & 0x00030000) >> 16) | ((*((volatile unsigned long *)(0x400FB850))) & ~(0x00030000 >> 16));
      cur_xpll_val = (((*((volatile unsigned long *)(0x400FB850))) & (0x00030000 >> 16)) << 16);
    }
  }
  (*((volatile unsigned long *)(0x400FB980))) = ulMWRAllow;
}
```
user: Translate the below assembly code into C programming language:

```asm
<SysCtlXPllClockDividerSet>:
  endbr64
  mov    $0xa5a5a5a5,%eax
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  and    $0x30000,%r12d
  push   %rbx
  mov    0x400fb980,%rbp
  mov    %rdi,%rbx
  mov    %rax,0x400fb980
  mov    0x400fb850,%rax
  shr    $0x10,%rbx
  and    $0x3,%ebx
  shl    $0x10,%rax
  and    $0x30000,%eax
  cmp    %r12,%rax
  jne    L7
  jmp    L5
  nopl   0x0(%rax)
L18:
  mov    $0xf,%edi
  call   <SysCtlDelay@plt>
L32:
  mov    0x400fb850,%rax
  and    $0xfffffffffffffffc,%rax
  or     %rbx,%rax
  mov    %rax,0x400fb850
  mov    0x400fb850,%rax
  shl    $0x10,%rax
  and    $0x30000,%eax
  cmp    %r12,%rax
  je     L5
L7:
  cmp    $0x30000,%rax
  jne    L32
  mov    0x400fb850,%rax
  and    $0xfffffffffffffffc,%rax
  or     $0x2,%rax
  mov    %rax,0x400fb850
  cmp    $0x20000,%r12
  jne    L18
L5:
  mov    %rbp,0x400fb980
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
void SysCtlXPllClockDividerSet(unsigned long XPllClkDivReq) {
  unsigned long ulMWRAllow;
  unsigned long cur_xpll_val = 0x0;
  ulMWRAllow = (*((volatile unsigned long *)(0x400FB980)));
  (*((volatile unsigned long *)(0x400FB980))) = 0xA5A5A5A5;
  cur_xpll_val = (((*((volatile unsigned long *)(0x400FB850))) & (0x00030000 >> 16)) << 16);
  while ((XPllClkDivReq & 0x00030000) != cur_xpll_val) {
    if (cur_xpll_val == 0x00030000) {
      (*((volatile unsigned long *)(0x400FB850))) = ((0x00020000) >> 16) | ((*((volatile unsigned long *)(0x400FB850))) & ~(0x00030000 >> 16));
      cur_xpll_val = 0x00020000;
      if ((XPllClkDivReq & 0x00030000) != cur_xpll_val)
        SysCtlDelay(15);
    } else {
      (*((volatile unsigned long *)(0x400FB850))) = ((XPllClkDivReq & 0x00030000) >> 16) | ((*((volatile unsigned long *)(0x400FB850))) & ~(0x00030000 >> 16));
      cur_xpll_val = (((*((volatile unsigned long *)(0x400FB850))) & (0x00030000 >> 16)) << 16);
    }
  }
  (*((volatile unsigned long *)(0x400FB980))) = ulMWRAllow;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<SysCtlXPllClockDividerSet>:
  endbr64
  mov    $0xa5a5a5a5,%eax
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  and    $0x30000,%r12d
  push   %rbx
  mov    0x400fb980,%rbx
  mov    %rax,0x400fb980
  mov    0x400fb850,%rax
  shl    $0x10,%rax
  and    $0x30000,%eax
  cmp    %r12,%rax
  je     L27
  mov    %rdi,%rbp
  shr    $0x10,%rbp
  and    $0x3,%ebp
  cmp    $0x20000,%r12
  jne    L25
L33:
  cmp    $0x30000,%rax
  mov    0x400fb850,%rax
  jne    L14
  and    $0xfffffffffffffffc,%rax
  or     $0x2,%rax
  mov    %rax,0x400fb850
L27:
  mov    %rbx,0x400fb980
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L37:
  and    $0xfffffffffffffffc,%rax
  or     %rbp,%rax
  mov    %rax,0x400fb850
  mov    0x400fb850,%rax
  shl    $0x10,%rax
  and    $0x30000,%eax
  cmp    %r12,%rax
  je     L27
L25:
  cmp    $0x30000,%rax
  mov    0x400fb850,%rax
  jne    L37
  and    $0xfffffffffffffffc,%rax
  mov    $0xf,%edi
  or     $0x2,%rax
  mov    %rax,0x400fb850
  call   <SysCtlDelay@plt>
  mov    0x400fb850,%rax
  and    $0xfffffffffffffffc,%rax
  or     %rbp,%rax
  mov    %rax,0x400fb850
  mov    0x400fb850,%rax
  shl    $0x10,%rax
  and    $0x30000,%eax
  cmp    %rax,%r12
  jne    L25
  mov    %rbx,0x400fb980
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L14:
  and    $0xfffffffffffffffc,%rax
  or     %rbp,%rax
  mov    %rax,0x400fb850
  mov    0x400fb850,%rax
  shl    $0x10,%rax
  and    $0x30000,%eax
  cmp    $0x20000,%rax
  jne    L33
  mov    %rbx,0x400fb980
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
void SysCtlXPllClockDividerSet(unsigned long XPllClkDivReq) {
  unsigned long ulMWRAllow;
  unsigned long cur_xpll_val = 0x0;
  ulMWRAllow = (*((volatile unsigned long *)(0x400FB980)));
  (*((volatile unsigned long *)(0x400FB980))) = 0xA5A5A5A5;
  cur_xpll_val = (((*((volatile unsigned long *)(0x400FB850))) & (0x00030000 >> 16)) << 16);
  while ((XPllClkDivReq & 0x00030000) != cur_xpll_val) {
    if (cur_xpll_val == 0x00030000) {
      (*((volatile unsigned long *)(0x400FB850))) = ((0x00020000) >> 16) | ((*((volatile unsigned long *)(0x400FB850))) & ~(0x00030000 >> 16));
      cur_xpll_val = 0x00020000;
      if ((XPllClkDivReq & 0x00030000) != cur_xpll_val)
        SysCtlDelay(15);
    } else {
      (*((volatile unsigned long *)(0x400FB850))) = ((XPllClkDivReq & 0x00030000) >> 16) | ((*((volatile unsigned long *)(0x400FB850))) & ~(0x00030000 >> 16));
      cur_xpll_val = (((*((volatile unsigned long *)(0x400FB850))) & (0x00030000 >> 16)) << 16);
    }
  }
  (*((volatile unsigned long *)(0x400FB980))) = ulMWRAllow;
}
```