user: 这段汇编代码用C语言表示是什么样的?

```asm
<pretty>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  je     L109
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x28(%rbp),%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <group@plt>
  jmp    L2
L109:
  mov    $0x0,%eax
  call   <getlogin@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L127
  lea    D37(%rip),%rax
  mov    %rax,%rsi
  mov    $0x1,%edi
  call   <err@plt>
L127:
  mov    $0x0,%eax
  call   <getuid@plt>
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  mov    %eax,%edi
  call   <getpwuid@plt>
  mov    %rax,-0x28(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  je     L59
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L91
L59:
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L91:
  cmpq   $0x0,-0x28(%rbp)
  je     L39
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L32
L39:
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  lea    D79(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L32:
  mov    $0x0,%eax
  call   <geteuid@plt>
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  je     L38
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <getpwuid@plt>
  mov    %rax,-0x28(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  je     L88
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D62(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L38
L88:
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D85(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L38:
  mov    $0x0,%eax
  call   <getgid@plt>
  mov    %eax,-0x18(%rbp)
  mov    $0x0,%eax
  call   <getegid@plt>
  mov    %eax,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  je     L90
  mov    -0x18(%rbp),%eax
  mov    %eax,%edi
  call   <getgrgid@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L23
  mov    -0x8(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L90
L23:
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L90:
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%esi
  mov    $0x0,%edi
  call   <group@plt>
L2:
  nop
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D12
data_type: string
name: extract_symbolic_data
arguments: data_label: D15
data_type: string
name: extract_symbolic_data
arguments: data_label: D37
data_type: string
name: extract_symbolic_data
arguments: data_label: D81
data_type: string
name: extract_symbolic_data
arguments: data_label: D79
data_type: string
name: extract_symbolic_data
arguments: data_label: D62
data_type: string
name: extract_symbolic_data
arguments: data_label: D85
data_type: string
name: extract_symbolic_data
arguments: data_label: D24
data_type: string
name: extract_symbolic_data
arguments: data_label: D47
data_type: string

tool: D12: uid	%s


tool: D15: groups	

tool: D37: getlogin

tool: D81: login	%s


tool: D79: uid	%u


tool: D62: euid	%s


tool: D85: euid	%u


tool: D24: rgid	%s


tool: D47: rgid	%u


assistant: ```c
void pretty(struct passwd *pw) {
  struct group *gr;
  u_int eid, rid;
  char *login;
  if (pw) {
    (void)printf("uid\t%s\n", pw->pw_name);
    (void)printf("groups\t");
    group(pw, 1);
  } else {
    if ((login = getlogin()) == NULL)
      err(1, "getlogin");
    pw = getpwuid(rid = getuid());
    if (pw == NULL || strcmp(login, pw->pw_name))
      (void)printf("login\t%s\n", login);
    if (pw)
      (void)printf("uid\t%s\n", pw->pw_name);
    else
      (void)printf("uid\t%u\n", rid);
    if ((eid = geteuid()) != rid) {
      if ((pw = getpwuid(eid)) != NULL)
        (void)printf("euid\t%s\n", pw->pw_name);
      else
        (void)printf("euid\t%u\n", eid);
    }
    if ((rid = getgid()) != (eid = getegid())) {
      if ((gr = getgrgid(rid)) != NULL)
        (void)printf("rgid\t%s\n", gr->gr_name);
      else
        (void)printf("rgid\t%u\n", rid);
    }
    (void)printf("groups\t");
    group(NULL, 1);
  }
}
```