user: 下面的汇编指令对应的C源代码是什么:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %edi,-0x44(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D14(%rip),%rax
  mov    %rax,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x40(%rbp)
  mov    -0x50(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L146
  cmpl   $0x3,-0x44(%rbp)
  je     L13
L146:
  mov    -0x50(%rbp),%rax
  add    $0x8,%rax
  lea    D71(%rip),%rdx
  mov    %rdx,(%rax)
  jmp    L27
L13:
  mov    -0x50(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <get_serv@plt>
  mov    %rax,-0x38(%rbp)
  cmpq   $0x0,-0x38(%rbp)
  jne    L63
  lea    D116(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L45
L63:
  mov    -0x50(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  lea    D44(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L92
  lea    D2(%rip),%rax
  mov    %rax,-0x28(%rbp)
  jmp    L25
L92:
  mov    -0x50(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  lea    D111(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L122
  lea    D30(%rip),%rax
  mov    %rax,-0x28(%rbp)
  jmp    L25
L122:
  mov    -0x50(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  lea    D45(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L71
  lea    D65(%rip),%rax
  mov    %rax,-0x28(%rbp)
  jmp    L25
L71:
  mov    -0x50(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  lea    D42(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L101
  lea    D97(%rip),%rax
  mov    %rax,-0x28(%rbp)
  jmp    L25
L101:
  mov    -0x50(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  lea    D115(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L43
  lea    D19(%rip),%rax
  mov    %rax,-0x28(%rbp)
L25:
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x30(%rbp),%rax
  mov    -0x40(%rbp),%rdx
  lea    -0x30(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <execve@plt>
  mov    $0x0,%eax
  jmp    L45
L43:
  nop
L27:
  mov    -0x50(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rdx
  mov    -0x50(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%eax
L45:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L82
  call   <__stack_chk_fail@plt>
L82:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D14
datatype: string
name: retrieve_data
arguments: data_tag: D71
datatype: string
name: retrieve_data
arguments: data_tag: D116
datatype: string
name: retrieve_data
arguments: data_tag: D44
datatype: string
name: retrieve_data
arguments: data_tag: D2
datatype: string
name: retrieve_data
arguments: data_tag: D111
datatype: string
name: retrieve_data
arguments: data_tag: D30
datatype: string
name: retrieve_data
arguments: data_tag: D45
datatype: string
name: retrieve_data
arguments: data_tag: D65
datatype: string
name: retrieve_data
arguments: data_tag: D42
datatype: string
name: retrieve_data
arguments: data_tag: D97
datatype: string
name: retrieve_data
arguments: data_tag: D115
datatype: string
name: retrieve_data
arguments: data_tag: D19
datatype: string
name: retrieve_data
arguments: data_tag: D22
datatype: string

tool: D14: /sbin/ngc

tool: D71: ifile

tool: D116: unkown service

tool: D44: start

tool: D2: -u

tool: D111: stop

tool: D30: -d

tool: D45: status

tool: D65: -s

tool: D42: zap

tool: D97: -z

tool: D115: restart

tool: D19: -r

tool: D22: Usage: %s %s {start|stop|restart|status|zap}


assistant: ```c
int main(int argc, const char *argv[], char *env[]) {
  const char *new_argv[] = {"/sbin/ngc", NULL, NULL, NULL};
  char **environ = {NULL};
  if (!argv[1] || argc != 3) {
    argv[1] = "ifile";
    goto print_usage;
  }
  char *fixed_path = get_serv(argv[1]);
  if (!fixed_path) {
    printf("unkown service\n");
    return 1;
  }
  if (strcmp(argv[2], "start") == 0) {
    new_argv[1] = "-u";
  } else if (strcmp(argv[2], "stop") == 0) {
    new_argv[1] = "-d";
  } else if (strcmp(argv[2], "status") == 0) {
    new_argv[1] = "-s";
  } else if (strcmp(argv[2], "zap") == 0) {
    new_argv[1] = "-z";
  } else if (strcmp(argv[2], "restart") == 0) {
    new_argv[1] = "-r";
  } else {
    goto print_usage;
  }
  new_argv[2] = fixed_path;
  execve((char *)new_argv[0], (char **)new_argv, environ);
  return 0;
print_usage:
  printf("Usage: %s %s {start|stop|restart|status|zap}\n", argv[0], argv[1]);
  return 1;
}
```