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

```asm
<loadfile>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    $0x4,%edi
  call   <malloc@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    -0x48(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <readfile@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x20(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <analyze@plt>
  movl   $0x0,-0x34(%rbp)
  jmp    L130
L145:
  addl   $0x1,-0x34(%rbp)
L130:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x34(%rbp)
  jae    L3
  mov    -0x34(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x40,%al
  jne    L145
  jmp    L3
L132:
  movl   $0x0,-0x30(%rbp)
  jmp    L38
L19:
  addl   $0x1,-0x30(%rbp)
L38:
  mov    -0x34(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x30(%rbp),%eax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x28,%al
  jne    L19
  mov    -0x30(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x2c(%rbp)
  jmp    L112
L129:
  mov    -0x34(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x2c(%rbp),%eax
  add    %rdx,%rax
  mov    -0x2c(%rbp),%ecx
  mov    -0x10(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x2c(%rbp)
L112:
  mov    -0x2c(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jb     L129
  mov    -0x30(%rbp),%edx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x34(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x34(%rbp)
  jmp    L12
L71:
  addl   $0x1,-0x34(%rbp)
L12:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x34(%rbp)
  jae    L13
  mov    -0x34(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x40,%al
  jne    L71
L13:
  mov    -0x24(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x30(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%eax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x29,%al
  setne  %al
  movzbl %al,%eax
  mov    %eax,-0x28(%rbp)
  addl   $0x1,-0x30(%rbp)
  jmp    L141
L49:
  mov    -0x24(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x30(%rbp),%eax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  jne    L133
  addl   $0x1,-0x28(%rbp)
L133:
  addl   $0x1,-0x30(%rbp)
L141:
  mov    -0x24(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x30(%rbp),%eax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L49
  mov    -0x28(%rbp),%ecx
  mov    -0x34(%rbp),%edx
  mov    -0x24(%rbp),%esi
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <loadframe@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x28(%rbp),%edx
  mov    -0x10(%rbp),%rcx
  mov    -0x8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <addframe@plt>
L3:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x34(%rbp)
  jb     L132
  nop
  nop
  leave
  ret
```

assistant: ```c
void loadfile(FILE *fin) {
  unsigned int *len = malloc(sizeof(unsigned int));
  char **lines = readfile(fin, len);
  analyze(lines, *len);
  unsigned int i, ii, iii;
  for (i = 0; i < *len && lines[i][0] != '@'; i++)
    ;
  while (i < *len) {
    for (ii = 0; lines[i][ii] != '('; ii++)
      ;
    char *fname = malloc((ii + 1) * sizeof(char));
    for (iii = 0; iii < ii; iii++) {
      fname[iii] = lines[i][iii];
    }
    fname[ii] = '\0';
    unsigned int start = i;
    for (i = start + 1; i < *len && lines[i][0] != '@'; i++)
      ;
    int argnum = lines[start][ii + 1] != ')';
    for (ii = ii + 1; lines[start][ii] != '\0'; ii++) {
      if (lines[start][ii] == ',') {
        argnum++;
      }
    }
    struct frame *f = loadframe(lines, start, i, argnum);
    addframe(f, fname, argnum);
  }
}
```