user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x420,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x418(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x10(%rsp)
  movq   $0x0,0x18(%rsp)
  lea    0x20(%rsp),%rdi
  mov    $0x7e,%ecx
  rep stos %rax,%es:(%rdi)
  movl   $0x0,0x4(%rsp)
  movl   $0x0,0x8(%rsp)
  movl   $0x0,0xc(%rsp)
  lea    D268(%rip),%rbx
  mov    %rbx,%rdi
  call   <puts@plt>
  lea    D267(%rip),%rdi
  call   <puts@plt>
  mov    %rbx,%rdi
  call   <puts@plt>
  lea    D84(%rip),%r14
  lea    D266(%rip),%r13
  lea    0x10(%rsp),%rbx
  lea    D121(%rip),%r12
  jmp    L39
L119:
  lea    D62(%rip),%rdi
  call   <puts@plt>
  jmp    L73
L36:
  lea    D80(%rip),%rdi
  call   <puts@plt>
  lea    D90(%rip),%rdi
  call   <sys_log@plt>
  lea    D129(%rip),%rdi
  call   <system@plt>
  mov    $0x5,%edi
  call   <sleep@plt>
  jmp    L64
L16:
  lea    D62(%rip),%rdi
  call   <puts@plt>
  jmp    L59
L107:
  lea    D190(%rip),%rdi
  call   <puts@plt>
L34:
  lea    D232(%rip),%rdi
  call   <puts@plt>
  mov    %r13,%rsi
  lea    D241(%rip),%rdi
  call   <popen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L43
L128:
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %rbp,%rcx
  mov    $0x400,%edx
  mov    $0x1,%esi
  mov    %rbx,%rdi
  call   <fread@plt>
  movb   $0x0,0x40f(%rsp)
  lea    0xc(%rsp),%rdx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <sscanf@plt>
  mov    %rbp,%rdi
  call   <pclose@plt>
  mov    0xc(%rsp),%esi
  lea    D63(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,0xc(%rsp)
  jle    L121
  lea    D186(%rip),%rdi
  call   <puts@plt>
L39:
  mov    $0x258,%edi
  call   <sleep@plt>
  mov    %r14,%rdi
  call   <puts@plt>
  mov    %r13,%rsi
  lea    D225(%rip),%rdi
  call   <popen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L119
L73:
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %rbp,%rcx
  mov    $0x400,%edx
  mov    $0x1,%esi
  mov    %rbx,%rdi
  call   <fread@plt>
  movb   $0x0,0x40f(%rsp)
  lea    0x4(%rsp),%rdx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <sscanf@plt>
  mov    %rbp,%rdi
  call   <pclose@plt>
  mov    0x4(%rsp),%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,0x4(%rsp)
  jle    L36
  lea    D127(%rip),%rdi
  call   <puts@plt>
L64:
  lea    D16(%rip),%rdi
  call   <puts@plt>
  mov    %r13,%rsi
  lea    D96(%rip),%rdi
  call   <popen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L16
L59:
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %rbp,%rcx
  mov    $0x400,%edx
  mov    $0x1,%esi
  mov    %rbx,%rdi
  call   <fread@plt>
  movb   $0x0,0x40f(%rsp)
  lea    0x8(%rsp),%rdx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <sscanf@plt>
  mov    %rbp,%rdi
  call   <pclose@plt>
  mov    0x8(%rsp),%esi
  lea    D71(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,0x8(%rsp)
  jg     L107
  lea    D200(%rip),%rdi
  call   <puts@plt>
  lea    D3(%rip),%rdi
  call   <sys_log@plt>
  lea    D69(%rip),%rdi
  call   <system@plt>
  mov    $0x5,%edi
  call   <sleep@plt>
  jmp    L34
L43:
  lea    D62(%rip),%rdi
  call   <puts@plt>
  jmp    L128
L121:
  lea    D74(%rip),%rdi
  call   <puts@plt>
  lea    D29(%rip),%rdi
  call   <sys_log@plt>
  lea    D187(%rip),%rdi
  call   <system@plt>
  mov    $0x5,%edi
  call   <sleep@plt>
  jmp    L39
```

tool_calls: name: disassemble_data
arguments: data_label: D268
type: string
name: disassemble_data
arguments: data_label: D267
type: string
name: disassemble_data
arguments: data_label: D84
type: string
name: disassemble_data
arguments: data_label: D266
type: string
name: disassemble_data
arguments: data_label: D121
type: string
name: disassemble_data
arguments: data_label: D62
type: string
name: disassemble_data
arguments: data_label: D80
type: string
name: disassemble_data
arguments: data_label: D90
type: string
name: disassemble_data
arguments: data_label: D129
type: string
name: disassemble_data
arguments: data_label: D190
type: string
name: disassemble_data
arguments: data_label: D232
type: string
name: disassemble_data
arguments: data_label: D241
type: string
name: disassemble_data
arguments: data_label: D63
type: string
name: disassemble_data
arguments: data_label: D186
type: string
name: disassemble_data
arguments: data_label: D225
type: string
name: disassemble_data
arguments: data_label: D124
type: string
name: disassemble_data
arguments: data_label: D127
type: string
name: disassemble_data
arguments: data_label: D16
type: string
name: disassemble_data
arguments: data_label: D96
type: string
name: disassemble_data
arguments: data_label: D71
type: string
name: disassemble_data
arguments: data_label: D200
type: string
name: disassemble_data
arguments: data_label: D3
type: string
name: disassemble_data
arguments: data_label: D69
type: string
name: disassemble_data
arguments: data_label: D74
type: string
name: disassemble_data
arguments: data_label: D29
type: string
name: disassemble_data
arguments: data_label: D187
type: string

tool: D268: **********************************

tool: D267: run_daemon : start

tool: D84: ---------check network_monitor_run-----------

tool: D266: r

tool: D121: %d

tool: D62: popen failed

tool: D80: network_monitror_run : down, restart again...

tool: D90: network_monitor_run : down!

tool: D129: /ailvgo/system/box/network_monitor_run &

tool: D190: heart_beat_run : ok!

tool: D232: ---------check remote_control_run-----------

tool: D241: ps -ef | grep 'remote_control' | grep -v 'grep' | grep -v 'sh -c' | awk '{print $2}' | wc -l

tool: D63: remote_control_run process : %d


tool: D186: remote_control_run : ok!

tool: D225: ps -ef | grep 'network_monitor' | grep -v 'grep' | grep -v 'sh -c' | awk '{print $2}' | wc -l

tool: D124: network_monitor_run process : %d


tool: D127: network_monitor_run : ok!

tool: D16: ---------check heart_beat_run-----------

tool: D96: ps -ef | grep 'heart_beat' | grep -v 'grep' | grep -v 'sh -c' | awk '{print $2}' | wc -l

tool: D71: heart_beat_run process : %d


tool: D200: heart_beat_run : down, restart again...

tool: D3: heart_beat_run : down!

tool: D69: /ailvgo/system/box/heart_beat_run &

tool: D74: remote_control_run : down, restart again...

tool: D29: remote_control_run : down!

tool: D187: /ailvgo/system/box/remote_control_run &

assistant: ```c
int main() {
  FILE *stream = NULL;
  char buf[1024] = {0};
  int cnt_network_monitor_run = 0, cnt_heart_beat_run = 0, cnt_remote_control_run = 0;
  printf("**********************************\n");
  printf("run_daemon : start\n");
  printf("**********************************\n");
  while (1) {
    sleep(600);
    printf("---------check network_monitor_run-----------\n");
    stream = NULL;
    if ((stream = popen("ps -ef | grep 'network_monitor' | grep -v 'grep' | grep -v 'sh -c' | awk '{print $2}' | wc -l", "r")) == NULL)
      printf("popen failed\n");
    memset(buf, 0, sizeof(buf));
    fread(buf, sizeof(char), sizeof(buf), stream);
    buf[1023] = '\0';
    sscanf(buf, "%d", &cnt_network_monitor_run);
    pclose(stream);
    printf("network_monitor_run process : %d\n", cnt_network_monitor_run);
    if (cnt_network_monitor_run >= 1)
      printf("network_monitor_run : ok!\n");
    else {
      printf("network_monitror_run : down, restart again...\n");
      sys_log("network_monitor_run : down!");
      system("/ailvgo/system/box/network_monitor_run &");
      sleep(5);
    }
    printf("---------check heart_beat_run-----------\n");
    stream = NULL;
    if ((stream = popen("ps -ef | grep 'heart_beat' | grep -v 'grep' | grep -v 'sh -c' | awk '{print $2}' | wc -l", "r")) == NULL)
      printf("popen failed\n");
    memset(buf, 0, sizeof(buf));
    fread(buf, sizeof(char), sizeof(buf), stream);
    buf[1023] = '\0';
    sscanf(buf, "%d", &cnt_heart_beat_run);
    pclose(stream);
    printf("heart_beat_run process : %d\n", cnt_heart_beat_run);
    if (cnt_heart_beat_run >= 1)
      printf("heart_beat_run : ok!\n");
    else {
      printf("heart_beat_run : down, restart again...\n");
      sys_log("heart_beat_run : down!");
      system("/ailvgo/system/box/heart_beat_run &");
      sleep(5);
    }
    printf("---------check remote_control_run-----------\n");
    stream = NULL;
    if ((stream = popen("ps -ef | grep 'remote_control' | grep -v 'grep' | grep -v 'sh -c' | awk '{print $2}' | wc -l", "r")) == NULL)
      printf("popen failed\n");
    memset(buf, 0, sizeof(buf));
    fread(buf, sizeof(char), sizeof(buf), stream);
    buf[1023] = '\0';
    sscanf(buf, "%d", &cnt_remote_control_run);
    pclose(stream);
    printf("remote_control_run process : %d\n", cnt_remote_control_run);
    if (cnt_remote_control_run >= 1)
      printf("remote_control_run : ok!\n");
    else {
      printf("remote_control_run : down, restart again...\n");
      sys_log("remote_control_run : down!");
      system("/ailvgo/system/box/remote_control_run &");
      sleep(5);
    }
  }
  printf("------------run_daemon : over------------\n");
  return 0;
}
```