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

```asm
<parsePATH>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x148,%rsp
  mov    %rsi,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    %rcx,0x20(%rsp)
  mov    %r8,0x28(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x138(%rsp)
  xor    %eax,%eax
  mov    %rdi,%rbp
  lea    0x40(%rdi),%rax
  mov    %rax,(%rsp)
  lea    D26(%rip),%r13
  jmp    L174
L3:
  lea    0x30(%rsp),%rbx
  mov    $0x100,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    0x0(%rbp),%rsi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  movslq %r14d,%r14
  mov    %r14,%rbx
  lea    0x30(%rsp),%r15
  mov    %rbp,0x8(%rsp)
  mov    0x10(%rsp),%rbp
  jmp    L25
L122:
  mov    %rbp,%rax
  sub    %r14,%rax
  movzbl (%rbx,%r15,1),%edx
  mov    %dl,(%rax,%rbx,1)
  add    $0x1,%rbx
L25:
  mov    %r15,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L122
  mov    0x8(%rsp),%rbp
  jmp    L119
L7:
  lea    0x30(%rsp),%rbx
  mov    $0x100,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    (%r12),%rsi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  movslq %r14d,%r14
  mov    %r14,%rbx
  lea    0x30(%rsp),%r15
  mov    %rbp,0x8(%rsp)
  mov    0x20(%rsp),%rbp
  jmp    L112
L150:
  mov    %rbp,%rax
  sub    %r14,%rax
  movzbl (%rbx,%r15,1),%edx
  mov    %dl,(%rax,%rbx,1)
  add    $0x1,%rbx
L112:
  mov    %r15,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L150
  mov    0x8(%rsp),%rbp
  jmp    L58
L77:
  lea    0x30(%rsp),%rbx
  mov    $0x100,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    (%r12),%rsi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  movslq %r14d,%r14
  mov    %r14,%rbx
  lea    0x30(%rsp),%r15
  mov    %rbp,0x8(%rsp)
  mov    0x18(%rsp),%rbp
  jmp    L48
L63:
  mov    %rbp,%rax
  sub    %r14,%rax
  movzbl (%rbx,%r15,1),%edx
  mov    %dl,(%rax,%rbx,1)
  add    $0x1,%rbx
L48:
  mov    %r15,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L63
  mov    0x8(%rsp),%rbp
  jmp    L172
L137:
  mov    %r15,%rax
  sub    %r12,%rax
  movzbl (%rbx,%r14,1),%edx
  mov    %dl,(%rax,%rbx,1)
  add    $0x1,%rbx
L71:
  mov    %r14,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L137
L32:
  add    $0x8,%rbp
  cmp    (%rsp),%rbp
  je     L90
L174:
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %eax,%r14d
  mov    %rbp,%r12
  mov    %eax,%edx
  mov    %r13,%rsi
  mov    0x0(%rbp),%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L3
L119:
  lea    D38(%rip),%rdi
  call   <strlen@plt>
  mov    %eax,%r14d
  mov    %eax,%edx
  lea    D38(%rip),%rsi
  mov    (%r12),%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L7
L58:
  lea    D10(%rip),%rdi
  call   <strlen@plt>
  mov    %eax,%r14d
  mov    %eax,%edx
  lea    D10(%rip),%rsi
  mov    (%r12),%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L77
L172:
  lea    D65(%rip),%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    %eax,%edx
  lea    D65(%rip),%rsi
  mov    (%r12),%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L32
  lea    0x30(%rsp),%r14
  mov    $0x100,%edx
  mov    $0x0,%esi
  mov    %r14,%rdi
  call   <memset@plt>
  mov    (%r12),%rsi
  mov    %r14,%rdi
  call   <strcpy@plt>
  movslq %ebx,%r12
  mov    %r12,%rbx
  mov    0x28(%rsp),%r15
  jmp    L71
L90:
  mov    0x138(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L179
  mov    $0x0,%eax
  add    $0x148,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L179:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D26
datatype: string
name: read_data
arguments: tag: D38
datatype: string
name: read_data
arguments: tag: D10
datatype: string
name: read_data
arguments: tag: D65
datatype: string

tool: D26: HOME=

tool: D38: USER=

tool: D10: PATH=

tool: D65: HOSTNAME=

assistant: ```c
int parsePATH(char *envp[], char home[], char path[], char user[], char hostname[]) {
  int len, i = 0, j = 0;
  char temp[256];
  for (int z = 0; z < 8; z++) {
    len = strlen("HOME=");
    if (!strncmp(envp[z], "HOME=", len)) {
      memset(temp, '\0', 256);
      strcpy(temp, (envp[z]));
      for (i = len, j = 0; i < strlen(temp); i++, j++)
        home[j] = temp[i];
    }
    len = strlen("USER=");
    if (!strncmp((envp[z]), "USER=", len)) {
      memset(temp, '\0', 256);
      strcpy(temp, (envp[z]));
      for (i = len, j = 0; i < strlen(temp); i++, j++)
        user[j] = temp[i];
    }
    len = strlen("PATH=");
    if (!strncmp((envp[z]), "PATH=", len)) {
      memset(temp, '\0', 256);
      strcpy(temp, (envp[z]));
      for (i = len, j = 0; i < strlen(temp); i++, j++)
        path[j] = temp[i];
    }
    len = strlen("HOSTNAME=");
    if (!strncmp((envp[z]), "HOSTNAME=", len)) {
      memset(temp, '\0', 256);
      strcpy(temp, (envp[z]));
      for (i = len, j = 0; i < strlen(temp); i++, j++)
        hostname[j] = temp[i];
    }
  }
  return 0;
}
```