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

```asm
<readranges>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %edi,-0x64(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x50(%rbp)
  cmpl   $0x0,-0x64(%rbp)
  jne    L213
  mov    $0x0,%eax
  call   <getgid@plt>
  jmp    L165
L213:
  mov    $0x0,%eax
  call   <getuid@plt>
L165:
  mov    %eax,%esi
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  call   <string@plt>
  mov    %rax,-0x48(%rbp)
  cmpl   $0x0,-0x64(%rbp)
  jne    L18
  lea    D54(%rip),%rax
  jmp    L166
L18:
  lea    D66(%rip),%rax
L166:
  lea    D68(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x28(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  jne    L69
  mov    -0x48(%rbp),%rax
  jmp    L1
L69:
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  call   <getenv@plt>
  mov    %rax,-0x30(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  jne    L64
  lea    D77(%rip),%rax
  mov    %rax,%rdi
  call   <getenv@plt>
  jmp    L156
L64:
  mov    -0x30(%rbp),%rax
L156:
  mov    %rax,-0x30(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  jne    L147
  mov    $0x0,%eax
  call   <getlogin@plt>
  jmp    L122
L147:
  mov    -0x30(%rbp),%rax
L122:
  mov    %rax,-0x30(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  je     L3
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <getpwnam@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  je     L3
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rbx
  mov    $0x0,%eax
  call   <getuid@plt>
  cmp    %rax,%rbx
  je     L175
L3:
  mov    $0x0,%eax
  call   <getuid@plt>
  mov    %rax,%rdi
  call   <getpwuid@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  jne    L161
  lea    D43(%rip),%rax
  mov    %rax,%rdx
  mov    $0x0,%esi
  mov    $0x1,%edi
  call   <error@plt>
L161:
  mov    -0x20(%rbp),%rax
  mov    0x8(%rax),%rax
  mov    %rax,-0x30(%rbp)
L175:
  mov    $0x0,%eax
  call   <endpwent@plt>
  jmp    L85
L24:
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,%rdx
  mov    -0x50(%rbp),%rax
  mov    -0x30(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L190
  jmp    L85
L190:
  mov    -0x50(%rbp),%rbx
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  lea    (%rbx,%rax,1),%rdi
  lea    -0x40(%rbp),%rcx
  lea    -0x58(%rbp),%rdx
  lea    -0x54(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  mov    %rax,%rdx
  lea    D19(%rip),%rax
  mov    %rax,%rsi
  call   <sscanf@plt>
  cmp    $0x1,%eax
  jg     L195
  jmp    L85
L195:
  mov    -0x50(%rbp),%rbx
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    -0x40(%rbp),%rdx
  add    %rdx,%rax
  add    $0x1,%rax
  add    %rbx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%esi
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L85
  mov    -0x58(%rbp),%ecx
  mov    -0x54(%rbp),%edx
  lea    -0x48(%rbp),%rax
  lea    D30(%rip),%rsi
  mov    %rax,%rdi
  call   <append@plt>
L85:
  mov    -0x28(%rbp),%rdx
  lea    -0x38(%rbp),%rcx
  lea    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <getline@plt>
  test   %rax,%rax
  jns    L24
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x48(%rbp),%rax
L1:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L119
  call   <__stack_chk_fail@plt>
L119:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D92
type: string
name: unpack_data
arguments: data_label: D54
type: string
name: unpack_data
arguments: data_label: D66
type: string
name: unpack_data
arguments: data_label: D68
type: string
name: unpack_data
arguments: data_label: D38
type: string
name: unpack_data
arguments: data_label: D77
type: string
name: unpack_data
arguments: data_label: D43
type: string
name: unpack_data
arguments: data_label: D19
type: string
name: unpack_data
arguments: data_label: D53
type: string
name: unpack_data
arguments: data_label: D30
type: string

tool: D92: %u:1

tool: D54: /etc/subgid

tool: D66: /etc/subuid

tool: D68: r

tool: D38: USER

tool: D77: LOGNAME

tool: D43: Failed to validate your username

tool: D19: :%u:%u%zn

tool: D53: :


tool: D30: ,%u:%u

assistant: ```c
char *readranges(int type) {
  char *line = NULL, *range, *user;
  size_t end, size;
  struct passwd *passwd;
  unsigned length, start;
  FILE *file;
  range = string("%u:1", ((unsigned)((type) == 0 ? getgid() : getuid())));
  if (!(file = fopen(((type) == 0 ? "/etc/subgid" : "/etc/subuid"), "r")))
    return range;
  user = getenv("USER");
  user = user ? user : getenv("LOGNAME");
  user = user ? user : getlogin();
  if (!user || !(passwd = getpwnam(user)) || passwd->pw_uid != getuid()) {
    if (!(passwd = getpwuid(getuid())))
      error(1, 0, "Failed to validate your username");
    user = passwd->pw_name;
  }
  endpwent();
  while (getline(&line, &size, file) >= 0) {
    if (strncmp(line, user, strlen(user)))
      continue;
    if (sscanf(line + strlen(user), ":%u:%u%zn", &start, &length, &end) < 2)
      continue;
    if (strchr(":\n", line[end + strlen(user) + 1]))
      append(&range, ",%u:%u", start, length);
  }
  free(line);
  fclose(file);
  return range;
}
```