user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    D79(%rip),%rax
  mov    %rax,(%rsp)
  movq   $0x0,0x8(%rsp)
  movq   $0x0,0x10(%rsp)
  movq   $0x0,0x18(%rsp)
  mov    0x8(%rsi),%rax
  cmp    $0x3,%edi
  jne    L68
  test   %rax,%rax
  jne    L116
L68:
  lea    D22(%rip),%rax
  mov    %rax,0x8(%rbx)
L119:
  mov    0x8(%rbx),%rdx
  mov    (%rbx),%rsi
  lea    D62(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%eax
L0:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L78
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  ret
L116:
  mov    %rax,%rdi
  call   <get_serv@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L43
  mov    0x10(%rbx),%rdi
  lea    D81(%rip),%rsi
  call   <strcmp@plt>
  mov    %rax,%rdx
  lea    D60(%rip),%rax
  test   %rdx,%rdx
  jne    L56
L35:
  mov    %rax,0x8(%rsp)
  mov    %rbp,0x10(%rsp)
  mov    %rsp,%rsi
  mov    $0x0,%edx
  mov    (%rsp),%rdi
  call   <execve@plt>
  mov    $0x0,%eax
  jmp    L0
L43:
  lea    D107(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L0
L56:
  mov    0x10(%rbx),%rdi
  lea    D122(%rip),%rsi
  call   <strcmp@plt>
  mov    %rax,%rdx
  lea    D3(%rip),%rax
  test   %rdx,%rdx
  je     L35
  mov    0x10(%rbx),%rdi
  lea    D109(%rip),%rsi
  call   <strcmp@plt>
  mov    %rax,%rdx
  lea    D78(%rip),%rax
  test   %rdx,%rdx
  je     L35
  mov    0x10(%rbx),%rdi
  lea    D100(%rip),%rsi
  call   <strcmp@plt>
  mov    %rax,%rdx
  lea    D7(%rip),%rax
  test   %rdx,%rdx
  je     L35
  mov    0x10(%rbx),%rdi
  lea    D117(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L119
  lea    D129(%rip),%rax
  jmp    L35
L78:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D79
type: string
name: extract_symbolic_data
arguments: tag: D22
type: string
name: extract_symbolic_data
arguments: tag: D62
type: string
name: extract_symbolic_data
arguments: tag: D81
type: string
name: extract_symbolic_data
arguments: tag: D60
type: string
name: extract_symbolic_data
arguments: tag: D107
type: string
name: extract_symbolic_data
arguments: tag: D122
type: string
name: extract_symbolic_data
arguments: tag: D3
type: string
name: extract_symbolic_data
arguments: tag: D109
type: string
name: extract_symbolic_data
arguments: tag: D78
type: string
name: extract_symbolic_data
arguments: tag: D100
type: string
name: extract_symbolic_data
arguments: tag: D7
type: string
name: extract_symbolic_data
arguments: tag: D117
type: string
name: extract_symbolic_data
arguments: tag: D129
type: string

tool: D79: /sbin/ngc

tool: D22: ifile

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


tool: D81: start

tool: D60: -u

tool: D107: unkown service

tool: D122: stop

tool: D3: -d

tool: D109: status

tool: D78: -s

tool: D100: zap

tool: D7: -z

tool: D117: restart

tool: D129: -r

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;
}
```