user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x7e,%ecx
  pxor   %xmm0,%xmm0
  lea    D61(%rip),%r15
  push   %r14
  lea    D19(%rip),%r14
  push   %r13
  lea    D84(%rip),%r13
  push   %r12
  push   %rbp
  lea    D69(%rip),%rbp
  push   %rbx
  sub    $0x438,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x428(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%rdi
  movaps %xmm0,0x20(%rsp)
  rep stos %rax,%es:(%rdi)
  mov    %rbp,%rdi
  call   <puts@plt>
  lea    D7(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  lea    0x20(%rsp),%rbp
  call   <puts@plt>
  lea    0x1c(%rsp),%rax
  mov    %rax,0x8(%rsp)
  nopl   (%rax)
L25:
  xor    %ebx,%ebx
L44:
  mov    $0xb4,%edi
  add    $0x1,%ebx
  call   <sleep@plt>
  mov    %ebx,%esi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14,%rdi
  call   <puts@plt>
  mov    %r13,%rsi
  lea    D5(%rip),%rdi
  call   <popen@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L87
L43:
  mov    $0x400,%edx
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  mov    %r12,%rcx
  mov    $0x400,%edx
  mov    %rbp,%rdi
  mov    $0x1,%esi
  call   <fread@plt>
  mov    0x8(%rsp),%rdx
  mov    %rbp,%rdi
  lea    D72(%rip),%rsi
  movb   $0x0,0x41f(%rsp)
  call   <sscanf@plt>
  mov    %r12,%rdi
  call   <pclose@plt>
  mov    0x1c(%rsp),%esi
  lea    D0(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  je     L23
  jle    L44
L48:
  mov    $0x88888889,%ecx
  mov    %ebx,%eax
  lea    D96(%rip),%rdi
  mov    %ebx,%esi
  imul   %rcx,%rax
  shr    $0x25,%rax
  imul   $0x3c,%eax,%eax
  sub    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D145(%rip),%rdi
  call   <puts@plt>
  lea    D106(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <check_udpget_memory@plt>
  cmp    $0x1,%eax
  je     L77
  lea    D83(%rip),%rdi
  call   <puts@plt>
  mov    0x1c(%rsp),%eax
L1:
  test   %eax,%eax
  jne    L44
L29:
  mov    $0x2,%edi
  call   <sleep@plt>
  lea    D187(%rip),%rdi
  call   <puts@plt>
  lea    D193(%rip),%rdi
  call   <system@plt>
  jmp    L25
  nopl   (%rax)
L23:
  lea    D63(%rip),%rdi
  call   <puts@plt>
  lea    D104(%rip),%rdi
  call   <sys_log@plt>
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  jle    L1
  jmp    L48
  nopl   (%rax)
L87:
  lea    D140(%rip),%rdi
  call   <puts@plt>
  jmp    L43
  nopl   0x0(%rax)
L77:
  lea    D94(%rip),%rdi
  call   <puts@plt>
  lea    D120(%rip),%rdi
  call   <sys_log@plt>
  lea    D173(%rip),%rdi
  call   <system@plt>
  movl   $0x0,0x1c(%rsp)
  jmp    L29
```

tool_calls: name: retrieve_data
arguments: data_label: D61
type: string
name: retrieve_data
arguments: data_label: D19
type: string
name: retrieve_data
arguments: data_label: D84
type: string
name: retrieve_data
arguments: data_label: D69
type: string
name: retrieve_data
arguments: data_label: D7
type: string
name: retrieve_data
arguments: data_label: D5
type: string
name: retrieve_data
arguments: data_label: D72
type: string
name: retrieve_data
arguments: data_label: D0
type: string
name: retrieve_data
arguments: data_label: D96
type: string
name: retrieve_data
arguments: data_label: D145
type: string
name: retrieve_data
arguments: data_label: D106
type: string
name: retrieve_data
arguments: data_label: D83
type: string
name: retrieve_data
arguments: data_label: D187
type: string
name: retrieve_data
arguments: data_label: D193
type: string
name: retrieve_data
arguments: data_label: D63
type: string
name: retrieve_data
arguments: data_label: D104
type: string
name: retrieve_data
arguments: data_label: D140
type: string
name: retrieve_data
arguments: data_label: D94
type: string
name: retrieve_data
arguments: data_label: D120
type: string
name: retrieve_data
arguments: data_label: D173
type: string

tool: D61: **********loop : %d**************


tool: D19: ---------check udp_get-----------

tool: D84: r

tool: D69: **********************************

tool: D7: udp_daemon : start

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

tool: D72: %d

tool: D0: udp_get process : %d


tool: D96: loop : %d


tool: D145: udp_get : ok!

tool: D106: udp_get : check memory usage...

tool: D83: udp_get memory : ok!

tool: D187: udp_get start...

tool: D193: /ailvgo/system/traffic/udp_get &

tool: D63: udp_get : down, restart again...

tool: D104: udp_get : down!

tool: D140: popen failed

tool: D94: udp_get : memory alert!!!!!!

tool: D120: udp_get memory alert! restart immediately!

tool: D173: killall udp_get

assistant: ```c
main() {
  FILE *stream = NULL;
  char buf[1024] = {0};
  int cnt_udp_get;
  int loop = 0;
  printf("**********************************\n");
  printf("udp_daemon : start\n");
  printf("**********************************\n");
  while (1) {
    sleep(180);
    loop++;
    printf("**********loop : %d**************\n", loop);
    printf("---------check udp_get-----------\n");
    stream = NULL;
    if ((stream = popen("ps -ef | grep 'udp_get' | 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_udp_get);
    pclose(stream);
    printf("udp_get process : %d\n", cnt_udp_get);
    if (cnt_udp_get == 0) {
      printf("udp_get : down, restart again...\n");
      sys_log("udp_get : down!");
    }
    if (cnt_udp_get >= 1) {
      printf("loop : %d\n", loop % 60);
      printf("udp_get : ok!\n");
      printf("udp_get : check memory usage...\n");
      if (check_udpget_memory() == 1) {
        printf("udp_get : memory alert!!!!!!\n");
        sys_log("udp_get memory alert! restart immediately!");
        system("killall udp_get");
        cnt_udp_get = 0;
      } else
        printf("udp_get memory : ok!\n");
    }
    if (cnt_udp_get == 0) {
      sleep(2);
      printf("udp_get start...\n");
      system("/ailvgo/system/traffic/udp_get &");
      loop = 0;
    }
  }
  printf("------------udp_daemon : over------------\n");
  return 0;
}
```