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

```asm
<mips_ejtag_ctrl>:
  endbr64
  push   %rbx
  mov    %edi,%ebx
  mov    $0xa,%edi
  or     $0x40,%bh
  call   <mips_ejtag_instr@plt>
  mov    %ebx,%edi
  pop    %rbx
  jmp    1070 <mips_ejtag_data@plt>
```

assistant: ```c
int mips_ejtag_ctrl(unsigned int ctrl) {
  mips_ejtag_instr(0x0A);
  ctrl |= 0x00004000;
  return mips_ejtag_data(ctrl);
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<rotateFaceCounterClockwise>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,%eax
  mov    %al,-0x1c(%rbp)
  movb   $0x0,-0x1(%rbp)
  jmp    L7
L17:
  movzbl -0x1c(%rbp),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <rotateFaceClockwise@plt>
  movzbl -0x1(%rbp),%eax
  add    $0x1,%eax
  mov    %al,-0x1(%rbp)
L7:
  cmpb   $0x2,-0x1(%rbp)
  jbe    L17
  nop
  nop
  leave
  ret
```

assistant: ```c
void rotateFaceCounterClockwise(struct rubikCube *cube, unsigned char face) {
  unsigned char i;
  for (i = 0; i < 3; i++) {
    rotateFaceClockwise(cube, face);
  }
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<rotateFaceCounterClockwise>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbx
  movzbl %sil,%ebp
  mov    %ebp,%esi
  call   <rotateFaceClockwise@plt>
  mov    %ebp,%esi
  mov    %rbx,%rdi
  call   <rotateFaceClockwise@plt>
  mov    %ebp,%esi
  mov    %rbx,%rdi
  call   <rotateFaceClockwise@plt>
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
void rotateFaceCounterClockwise(struct rubikCube *cube, unsigned char face) {
  unsigned char i;
  for (i = 0; i < 3; i++) {
    rotateFaceClockwise(cube, face);
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<rotateFaceCounterClockwise>:
  endbr64
  push   %r12
  movzbl %sil,%r12d
  push   %rbp
  mov    %r12d,%esi
  mov    %rdi,%rbp
  sub    $0x8,%rsp
  call   <rotateFaceClockwise@plt>
  mov    %r12d,%esi
  mov    %rbp,%rdi
  call   <rotateFaceClockwise@plt>
  add    $0x8,%rsp
  mov    %r12d,%esi
  mov    %rbp,%rdi
  pop    %rbp
  pop    %r12
  jmp    1050 <rotateFaceClockwise@plt>
```

assistant: ```c
void rotateFaceCounterClockwise(struct rubikCube *cube, unsigned char face) {
  unsigned char i;
  for (i = 0; i < 3; i++) {
    rotateFaceClockwise(cube, face);
  }
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<rotateFaceCounterClockwise>:
  endbr64
  push   %r12
  movzbl %sil,%r12d
  push   %rbp
  mov    %r12d,%esi
  mov    %rdi,%rbp
  sub    $0x8,%rsp
  call   <rotateFaceClockwise@plt>
  mov    %r12d,%esi
  mov    %rbp,%rdi
  call   <rotateFaceClockwise@plt>
  add    $0x8,%rsp
  mov    %r12d,%esi
  mov    %rbp,%rdi
  pop    %rbp
  pop    %r12
  jmp    1050 <rotateFaceClockwise@plt>
```

assistant: ```c
void rotateFaceCounterClockwise(struct rubikCube *cube, unsigned char face) {
  unsigned char i;
  for (i = 0; i < 3; i++) {
    rotateFaceClockwise(cube, face);
  }
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<print_usage>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  lea    D85(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rsi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D80(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D96(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D91(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D62(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D87(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D52(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D85
type: string
name: retrieve_data
arguments: data_tag: D3
type: string
name: retrieve_data
arguments: data_tag: D8
type: string
name: retrieve_data
arguments: data_tag: D80
type: string
name: retrieve_data
arguments: data_tag: D96
type: string
name: retrieve_data
arguments: data_tag: D91
type: string
name: retrieve_data
arguments: data_tag: D53
type: string
name: retrieve_data
arguments: data_tag: D62
type: string
name: retrieve_data
arguments: data_tag: D87
type: string
name: retrieve_data
arguments: data_tag: D52
type: string

tool: D85: 
Utility for Programming Neuron via ModBus RTU

tool: D3: %s [-vPRC] -s <spidevice> [-b <baudrate>] [-d <firmware dir>] [-F <upper board id>]


tool: D8: --spidev <spidev>		 /dev/spidev[1,2,3,0] 

tool: D80: --baud <baudrate>	 default 10000000

tool: D96: --dir <firmware dir>	 default /opt/fw

tool: D91: --verbose	 show more messages

tool: D53: --programm	 write firmware to flash

tool: D62: --resetrw	 check/rewrite also rw settings

tool: D87: --calibrate	 write calibrating firmware to flash

tool: D52: --final <upper board id or ?>	 write final firmware over calibrating

assistant: ```c
void print_usage(char *argv0) {
  printf("\nUtility for Programming Neuron via ModBus RTU\n");
  printf("%s [-vPRC] -s <spidevice> [-b <baudrate>] [-d <firmware dir>] [-F <upper board id>]\n", argv0);
  printf("\n");
  printf("--spidev <spidev>\t\t /dev/spidev[1,2,3,0] \n");
  printf("--baud <baudrate>\t default 10000000\n");
  printf("--dir <firmware dir>\t default /opt/fw\n");
  printf("--verbose\t show more messages\n");
  printf("--programm\t write firmware to flash\n");
  printf("--resetrw\t check/rewrite also rw settings\n");
  printf("--calibrate\t write calibrating firmware to flash\n");
  printf("--final <upper board id or ?>\t write final firmware over calibrating\n");
  printf("\n");
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<print_usage>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  lea    D79(%rip),%rdi
  call   <puts@plt>
  mov    %rbx,%rsi
  lea    D23(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D94(%rip),%rdi
  call   <puts@plt>
  lea    D64(%rip),%rdi
  call   <puts@plt>
  lea    D66(%rip),%rdi
  call   <puts@plt>
  lea    D91(%rip),%rdi
  call   <puts@plt>
  lea    D18(%rip),%rdi
  call   <puts@plt>
  lea    D81(%rip),%rdi
  call   <puts@plt>
  lea    D42(%rip),%rdi
  call   <puts@plt>
  lea    D17(%rip),%rdi
  call   <puts@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  pop    %rbx
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D79
data_type: string
name: unpack_data
arguments: data_label: D23
data_type: string
name: unpack_data
arguments: data_label: D94
data_type: string
name: unpack_data
arguments: data_label: D64
data_type: string
name: unpack_data
arguments: data_label: D66
data_type: string
name: unpack_data
arguments: data_label: D91
data_type: string
name: unpack_data
arguments: data_label: D18
data_type: string
name: unpack_data
arguments: data_label: D81
data_type: string
name: unpack_data
arguments: data_label: D42
data_type: string
name: unpack_data
arguments: data_label: D17
data_type: string

tool: D79: 
Utility for Programming Neuron via ModBus RTU

tool: D23: %s [-vPRC] -s <spidevice> [-b <baudrate>] [-d <firmware dir>] [-F <upper board id>]


tool: D94: --spidev <spidev>		 /dev/spidev[1,2,3,0] 

tool: D64: --baud <baudrate>	 default 10000000

tool: D66: --dir <firmware dir>	 default /opt/fw

tool: D91: --verbose	 show more messages

tool: D18: --programm	 write firmware to flash

tool: D81: --resetrw	 check/rewrite also rw settings

tool: D42: --calibrate	 write calibrating firmware to flash

tool: D17: --final <upper board id or ?>	 write final firmware over calibrating

assistant: ```c
void print_usage(char *argv0) {
  printf("\nUtility for Programming Neuron via ModBus RTU\n");
  printf("%s [-vPRC] -s <spidevice> [-b <baudrate>] [-d <firmware dir>] [-F <upper board id>]\n", argv0);
  printf("\n");
  printf("--spidev <spidev>\t\t /dev/spidev[1,2,3,0] \n");
  printf("--baud <baudrate>\t default 10000000\n");
  printf("--dir <firmware dir>\t default /opt/fw\n");
  printf("--verbose\t show more messages\n");
  printf("--programm\t write firmware to flash\n");
  printf("--resetrw\t check/rewrite also rw settings\n");
  printf("--calibrate\t write calibrating firmware to flash\n");
  printf("--final <upper board id or ?>\t write final firmware over calibrating\n");
  printf("\n");
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<print_usage>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  lea    D73(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rsi
  lea    D36(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D56(%rip),%rdi
  call   <puts@plt>
  lea    D9(%rip),%rdi
  call   <puts@plt>
  lea    D95(%rip),%rdi
  call   <puts@plt>
  lea    D44(%rip),%rdi
  call   <puts@plt>
  lea    D6(%rip),%rdi
  call   <puts@plt>
  lea    D83(%rip),%rdi
  call   <puts@plt>
  lea    D46(%rip),%rdi
  call   <puts@plt>
  lea    D63(%rip),%rdi
  call   <puts@plt>
  mov    $0xa,%edi
  pop    %rbp
  jmp    1070 <putchar@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D73
data_type: string
name: disassemble_data
arguments: tag: D36
data_type: string
name: disassemble_data
arguments: tag: D56
data_type: string
name: disassemble_data
arguments: tag: D9
data_type: string
name: disassemble_data
arguments: tag: D95
data_type: string
name: disassemble_data
arguments: tag: D44
data_type: string
name: disassemble_data
arguments: tag: D6
data_type: string
name: disassemble_data
arguments: tag: D83
data_type: string
name: disassemble_data
arguments: tag: D46
data_type: string
name: disassemble_data
arguments: tag: D63
data_type: string

tool: D73: 
Utility for Programming Neuron via ModBus RTU

tool: D36: %s [-vPRC] -s <spidevice> [-b <baudrate>] [-d <firmware dir>] [-F <upper board id>]


tool: D56: --spidev <spidev>		 /dev/spidev[1,2,3,0] 

tool: D9: --baud <baudrate>	 default 10000000

tool: D95: --dir <firmware dir>	 default /opt/fw

tool: D44: --verbose	 show more messages

tool: D6: --programm	 write firmware to flash

tool: D83: --resetrw	 check/rewrite also rw settings

tool: D46: --calibrate	 write calibrating firmware to flash

tool: D63: --final <upper board id or ?>	 write final firmware over calibrating

assistant: ```c
void print_usage(char *argv0) {
  printf("\nUtility for Programming Neuron via ModBus RTU\n");
  printf("%s [-vPRC] -s <spidevice> [-b <baudrate>] [-d <firmware dir>] [-F <upper board id>]\n", argv0);
  printf("\n");
  printf("--spidev <spidev>\t\t /dev/spidev[1,2,3,0] \n");
  printf("--baud <baudrate>\t default 10000000\n");
  printf("--dir <firmware dir>\t default /opt/fw\n");
  printf("--verbose\t show more messages\n");
  printf("--programm\t write firmware to flash\n");
  printf("--resetrw\t check/rewrite also rw settings\n");
  printf("--calibrate\t write calibrating firmware to flash\n");
  printf("--final <upper board id or ?>\t write final firmware over calibrating\n");
  printf("\n");
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<print_usage>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  lea    D99(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rsi
  lea    D49(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D80(%rip),%rdi
  call   <puts@plt>
  lea    D36(%rip),%rdi
  call   <puts@plt>
  lea    D97(%rip),%rdi
  call   <puts@plt>
  lea    D28(%rip),%rdi
  call   <puts@plt>
  lea    D75(%rip),%rdi
  call   <puts@plt>
  lea    D34(%rip),%rdi
  call   <puts@plt>
  lea    D6(%rip),%rdi
  call   <puts@plt>
  lea    D42(%rip),%rdi
  call   <puts@plt>
  mov    $0xa,%edi
  pop    %rbp
  jmp    1070 <putchar@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D99
type_infered: string
name: retrieve_data
arguments: data_tag: D49
type_infered: string
name: retrieve_data
arguments: data_tag: D80
type_infered: string
name: retrieve_data
arguments: data_tag: D36
type_infered: string
name: retrieve_data
arguments: data_tag: D97
type_infered: string
name: retrieve_data
arguments: data_tag: D28
type_infered: string
name: retrieve_data
arguments: data_tag: D75
type_infered: string
name: retrieve_data
arguments: data_tag: D34
type_infered: string
name: retrieve_data
arguments: data_tag: D6
type_infered: string
name: retrieve_data
arguments: data_tag: D42
type_infered: string

tool: D99: 
Utility for Programming Neuron via ModBus RTU

tool: D49: %s [-vPRC] -s <spidevice> [-b <baudrate>] [-d <firmware dir>] [-F <upper board id>]


tool: D80: --spidev <spidev>		 /dev/spidev[1,2,3,0] 

tool: D36: --baud <baudrate>	 default 10000000

tool: D97: --dir <firmware dir>	 default /opt/fw

tool: D28: --verbose	 show more messages

tool: D75: --programm	 write firmware to flash

tool: D34: --resetrw	 check/rewrite also rw settings

tool: D6: --calibrate	 write calibrating firmware to flash

tool: D42: --final <upper board id or ?>	 write final firmware over calibrating

assistant: ```c
void print_usage(char *argv0) {
  printf("\nUtility for Programming Neuron via ModBus RTU\n");
  printf("%s [-vPRC] -s <spidevice> [-b <baudrate>] [-d <firmware dir>] [-F <upper board id>]\n", argv0);
  printf("\n");
  printf("--spidev <spidev>\t\t /dev/spidev[1,2,3,0] \n");
  printf("--baud <baudrate>\t default 10000000\n");
  printf("--dir <firmware dir>\t default /opt/fw\n");
  printf("--verbose\t show more messages\n");
  printf("--programm\t write firmware to flash\n");
  printf("--resetrw\t check/rewrite also rw settings\n");
  printf("--calibrate\t write calibrating firmware to flash\n");
  printf("--final <upper board id or ?>\t write final firmware over calibrating\n");
  printf("\n");
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<AfhandelingPrio>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    D15(%rip),%eax
  test   %eax,%eax
  je     L6
  mov    $0x0,%eax
  call   <PrioInit@plt>
  mov    $0x0,%eax
  call   <PrioInitExtra@plt>
  movl   $0x0,D15(%rip)
L6:
  mov    $0x0,%eax
  call   <RijTijdScenario@plt>
  mov    $0x0,%eax
  call   <InUitMelden@plt>
  mov    $0x0,%eax
  call   <PrioInstellingen@plt>
  mov    $0x0,%eax
  call   <PrioTimers@plt>
  mov    $0x0,%eax
  call   <KonfliktTijden@plt>
  mov    $0x0,%eax
  call   <WachtTijdBewaking@plt>
  mov    $0x0,%eax
  call   <OnderMaximum@plt>
  mov    $0x0,%eax
  call   <OnderMaximumExtra@plt>
  mov    $0x0,%eax
  call   <BlokkeringsTijd@plt>
  mov    $0x0,%eax
  call   <PrioriteitsToekenning@plt>
  mov    $0x0,%eax
  call   <AfkapGroen@plt>
  mov    $0x0,%eax
  call   <AfkapGroenExtra@plt>
  mov    $0x0,%eax
  call   <StartGroenMomenten@plt>
  mov    $0x0,%eax
  call   <StartGroenMomentenExtra@plt>
  mov    $0x0,%eax
  call   <PrioAanvragen@plt>
  mov    $0x0,%eax
  call   <PrioTegenhouden@plt>
  mov    $0x0,%eax
  call   <PrioAfkappen@plt>
  mov    $0x0,%eax
  call   <PrioAfkappenExtra@plt>
  mov    $0x0,%eax
  call   <TerugKomGroen@plt>
  mov    $0x0,%eax
  call   <PrioTerugkomGroenExtra@plt>
  mov    $0x0,%eax
  call   <PrioBijzonderRealiseren@plt>
  mov    $0x0,%eax
  call   <PrioGroenVasthouden@plt>
  mov    $0x0,%eax
  call   <PrioGroenVasthoudenExtra@plt>
  mov    $0x0,%eax
  call   <PrioMeetKriterium@plt>
  mov    $0x0,%eax
  call   <PrioMeetKriteriumExtra@plt>
  mov    $0x0,%eax
  call   <PrioCcol@plt>
  mov    $0x0,%eax
  call   <PrioAlternatieven@plt>
  mov    $0x0,%eax
  call   <PostAfhandelingPrio@plt>
  nop
  pop    %rbp
  ret
```

assistant: ```c
void AfhandelingPrio(void) {
  static int init = 1;
  if (init) {
    PrioInit();
    PrioInitExtra();
    init = 0;
  }
  RijTijdScenario();
  InUitMelden();
  PrioInstellingen();
  PrioTimers();
  KonfliktTijden();
  WachtTijdBewaking();
  OnderMaximum();
  OnderMaximumExtra();
  BlokkeringsTijd();
  PrioriteitsToekenning();
  AfkapGroen();
  AfkapGroenExtra();
  StartGroenMomenten();
  StartGroenMomentenExtra();
  PrioAanvragen();
  PrioTegenhouden();
  PrioAfkappen();
  PrioAfkappenExtra();
  TerugKomGroen();
  PrioTerugkomGroenExtra();
  PrioBijzonderRealiseren();
  PrioGroenVasthouden();
  PrioGroenVasthoudenExtra();
  PrioMeetKriterium();
  PrioMeetKriteriumExtra();
  PrioCcol();
  PrioAlternatieven();
  PostAfhandelingPrio();
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<AfhandelingPrio>:
  endbr64
  sub    $0x8,%rsp
  cmpl   $0x0,D1(%rip)
  jne    L13
L17:
  mov    $0x0,%eax
  call   <RijTijdScenario@plt>
  mov    $0x0,%eax
  call   <InUitMelden@plt>
  mov    $0x0,%eax
  call   <PrioInstellingen@plt>
  mov    $0x0,%eax
  call   <PrioTimers@plt>
  mov    $0x0,%eax
  call   <KonfliktTijden@plt>
  mov    $0x0,%eax
  call   <WachtTijdBewaking@plt>
  mov    $0x0,%eax
  call   <OnderMaximum@plt>
  mov    $0x0,%eax
  call   <OnderMaximumExtra@plt>
  mov    $0x0,%eax
  call   <BlokkeringsTijd@plt>
  mov    $0x0,%eax
  call   <PrioriteitsToekenning@plt>
  mov    $0x0,%eax
  call   <AfkapGroen@plt>
  mov    $0x0,%eax
  call   <AfkapGroenExtra@plt>
  mov    $0x0,%eax
  call   <StartGroenMomenten@plt>
  mov    $0x0,%eax
  call   <StartGroenMomentenExtra@plt>
  mov    $0x0,%eax
  call   <PrioAanvragen@plt>
  mov    $0x0,%eax
  call   <PrioTegenhouden@plt>
  mov    $0x0,%eax
  call   <PrioAfkappen@plt>
  mov    $0x0,%eax
  call   <PrioAfkappenExtra@plt>
  mov    $0x0,%eax
  call   <TerugKomGroen@plt>
  mov    $0x0,%eax
  call   <PrioTerugkomGroenExtra@plt>
  mov    $0x0,%eax
  call   <PrioBijzonderRealiseren@plt>
  mov    $0x0,%eax
  call   <PrioGroenVasthouden@plt>
  mov    $0x0,%eax
  call   <PrioGroenVasthoudenExtra@plt>
  mov    $0x0,%eax
  call   <PrioMeetKriterium@plt>
  mov    $0x0,%eax
  call   <PrioMeetKriteriumExtra@plt>
  mov    $0x0,%eax
  call   <PrioCcol@plt>
  mov    $0x0,%eax
  call   <PrioAlternatieven@plt>
  mov    $0x0,%eax
  call   <PostAfhandelingPrio@plt>
  add    $0x8,%rsp
  ret
L13:
  mov    $0x0,%eax
  call   <PrioInit@plt>
  mov    $0x0,%eax
  call   <PrioInitExtra@plt>
  movl   $0x0,D1(%rip)
  jmp    L17
```

assistant: ```c
void AfhandelingPrio(void) {
  static int init = 1;
  if (init) {
    PrioInit();
    PrioInitExtra();
    init = 0;
  }
  RijTijdScenario();
  InUitMelden();
  PrioInstellingen();
  PrioTimers();
  KonfliktTijden();
  WachtTijdBewaking();
  OnderMaximum();
  OnderMaximumExtra();
  BlokkeringsTijd();
  PrioriteitsToekenning();
  AfkapGroen();
  AfkapGroenExtra();
  StartGroenMomenten();
  StartGroenMomentenExtra();
  PrioAanvragen();
  PrioTegenhouden();
  PrioAfkappen();
  PrioAfkappenExtra();
  TerugKomGroen();
  PrioTerugkomGroenExtra();
  PrioBijzonderRealiseren();
  PrioGroenVasthouden();
  PrioGroenVasthoudenExtra();
  PrioMeetKriterium();
  PrioMeetKriteriumExtra();
  PrioCcol();
  PrioAlternatieven();
  PostAfhandelingPrio();
}
```
user: What is the c source code of the assembly code below:

```asm
<AfhandelingPrio>:
  endbr64
  sub    $0x8,%rsp
  mov    D18(%rip),%eax
  test   %eax,%eax
  jne    L8
L5:
  xor    %eax,%eax
  call   <RijTijdScenario@plt>
  xor    %eax,%eax
  call   <InUitMelden@plt>
  xor    %eax,%eax
  call   <PrioInstellingen@plt>
  xor    %eax,%eax
  call   <PrioTimers@plt>
  xor    %eax,%eax
  call   <KonfliktTijden@plt>
  xor    %eax,%eax
  call   <WachtTijdBewaking@plt>
  xor    %eax,%eax
  call   <OnderMaximum@plt>
  xor    %eax,%eax
  call   <OnderMaximumExtra@plt>
  xor    %eax,%eax
  call   <BlokkeringsTijd@plt>
  xor    %eax,%eax
  call   <PrioriteitsToekenning@plt>
  xor    %eax,%eax
  call   <AfkapGroen@plt>
  xor    %eax,%eax
  call   <AfkapGroenExtra@plt>
  xor    %eax,%eax
  call   <StartGroenMomenten@plt>
  xor    %eax,%eax
  call   <StartGroenMomentenExtra@plt>
  xor    %eax,%eax
  call   <PrioAanvragen@plt>
  xor    %eax,%eax
  call   <PrioTegenhouden@plt>
  xor    %eax,%eax
  call   <PrioAfkappen@plt>
  xor    %eax,%eax
  call   <PrioAfkappenExtra@plt>
  xor    %eax,%eax
  call   <TerugKomGroen@plt>
  xor    %eax,%eax
  call   <PrioTerugkomGroenExtra@plt>
  xor    %eax,%eax
  call   <PrioBijzonderRealiseren@plt>
  xor    %eax,%eax
  call   <PrioGroenVasthouden@plt>
  xor    %eax,%eax
  call   <PrioGroenVasthoudenExtra@plt>
  xor    %eax,%eax
  call   <PrioMeetKriterium@plt>
  xor    %eax,%eax
  call   <PrioMeetKriteriumExtra@plt>
  xor    %eax,%eax
  call   <PrioCcol@plt>
  xor    %eax,%eax
  call   <PrioAlternatieven@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    12d0 <PostAfhandelingPrio@plt>
  xchg   %ax,%ax
L8:
  xor    %eax,%eax
  call   <PrioInit@plt>
  xor    %eax,%eax
  call   <PrioInitExtra@plt>
  movl   $0x0,D18(%rip)
  jmp    L5
```

assistant: ```c
void AfhandelingPrio(void) {
  static int init = 1;
  if (init) {
    PrioInit();
    PrioInitExtra();
    init = 0;
  }
  RijTijdScenario();
  InUitMelden();
  PrioInstellingen();
  PrioTimers();
  KonfliktTijden();
  WachtTijdBewaking();
  OnderMaximum();
  OnderMaximumExtra();
  BlokkeringsTijd();
  PrioriteitsToekenning();
  AfkapGroen();
  AfkapGroenExtra();
  StartGroenMomenten();
  StartGroenMomentenExtra();
  PrioAanvragen();
  PrioTegenhouden();
  PrioAfkappen();
  PrioAfkappenExtra();
  TerugKomGroen();
  PrioTerugkomGroenExtra();
  PrioBijzonderRealiseren();
  PrioGroenVasthouden();
  PrioGroenVasthoudenExtra();
  PrioMeetKriterium();
  PrioMeetKriteriumExtra();
  PrioCcol();
  PrioAlternatieven();
  PostAfhandelingPrio();
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<AfhandelingPrio>:
  endbr64
  sub    $0x8,%rsp
  mov    D2(%rip),%eax
  test   %eax,%eax
  jne    L18
L0:
  xor    %eax,%eax
  call   <RijTijdScenario@plt>
  xor    %eax,%eax
  call   <InUitMelden@plt>
  xor    %eax,%eax
  call   <PrioInstellingen@plt>
  xor    %eax,%eax
  call   <PrioTimers@plt>
  xor    %eax,%eax
  call   <KonfliktTijden@plt>
  xor    %eax,%eax
  call   <WachtTijdBewaking@plt>
  xor    %eax,%eax
  call   <OnderMaximum@plt>
  xor    %eax,%eax
  call   <OnderMaximumExtra@plt>
  xor    %eax,%eax
  call   <BlokkeringsTijd@plt>
  xor    %eax,%eax
  call   <PrioriteitsToekenning@plt>
  xor    %eax,%eax
  call   <AfkapGroen@plt>
  xor    %eax,%eax
  call   <AfkapGroenExtra@plt>
  xor    %eax,%eax
  call   <StartGroenMomenten@plt>
  xor    %eax,%eax
  call   <StartGroenMomentenExtra@plt>
  xor    %eax,%eax
  call   <PrioAanvragen@plt>
  xor    %eax,%eax
  call   <PrioTegenhouden@plt>
  xor    %eax,%eax
  call   <PrioAfkappen@plt>
  xor    %eax,%eax
  call   <PrioAfkappenExtra@plt>
  xor    %eax,%eax
  call   <TerugKomGroen@plt>
  xor    %eax,%eax
  call   <PrioTerugkomGroenExtra@plt>
  xor    %eax,%eax
  call   <PrioBijzonderRealiseren@plt>
  xor    %eax,%eax
  call   <PrioGroenVasthouden@plt>
  xor    %eax,%eax
  call   <PrioGroenVasthoudenExtra@plt>
  xor    %eax,%eax
  call   <PrioMeetKriterium@plt>
  xor    %eax,%eax
  call   <PrioMeetKriteriumExtra@plt>
  xor    %eax,%eax
  call   <PrioCcol@plt>
  xor    %eax,%eax
  call   <PrioAlternatieven@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    12d0 <PostAfhandelingPrio@plt>
  xchg   %ax,%ax
L18:
  xor    %eax,%eax
  call   <PrioInit@plt>
  xor    %eax,%eax
  call   <PrioInitExtra@plt>
  movl   $0x0,D2(%rip)
  jmp    L0
```

assistant: ```c
void AfhandelingPrio(void) {
  static int init = 1;
  if (init) {
    PrioInit();
    PrioInitExtra();
    init = 0;
  }
  RijTijdScenario();
  InUitMelden();
  PrioInstellingen();
  PrioTimers();
  KonfliktTijden();
  WachtTijdBewaking();
  OnderMaximum();
  OnderMaximumExtra();
  BlokkeringsTijd();
  PrioriteitsToekenning();
  AfkapGroen();
  AfkapGroenExtra();
  StartGroenMomenten();
  StartGroenMomentenExtra();
  PrioAanvragen();
  PrioTegenhouden();
  PrioAfkappen();
  PrioAfkappenExtra();
  TerugKomGroen();
  PrioTerugkomGroenExtra();
  PrioBijzonderRealiseren();
  PrioGroenVasthouden();
  PrioGroenVasthoudenExtra();
  PrioMeetKriterium();
  PrioMeetKriteriumExtra();
  PrioCcol();
  PrioAlternatieven();
  PostAfhandelingPrio();
}
```