void pguser(slot) int slot;
{
  int i;
  char s[25], msg[80];
  if (readdefault("Page user: ", s, 25, "") == 0)
    return;
  i = m_slot(s);
  if (i == -1) {
    printf("%s not active\n", s);
    return;
  }
  printf("Paging %s/%s\n", m_uname(i), m_alias(i));
  if (readdefault("Msg: ", msg, 80, "") == 0)
    return;
  if (m_page(i, msg, slot))
    printf("%s/%s is not accepting pages at this time\n", m_uname(i),
           m_alias(i));
  else
    printf("Page sent to %s/%s\n", m_uname(i), m_alias(i));
}


x86 assembly (clang, -O0):
<pguser>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0x4(%rbp)
lea    -0x30(%rbp),%rsi
lea    0xe87(%rip),%rdi
mov    $0x19,%edx
lea    0xed4(%rip),%rcx
mov    $0x0,%al
call   1030 <readdefault@plt>
cmp    $0x0,%eax
jne    119a <pguser+0x3a>
jmp    12a4 <pguser+0x144>
lea    -0x30(%rbp),%rdi
mov    $0x0,%al
call   1080 <m_slot@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
jne    11c9 <pguser+0x69>
lea    -0x30(%rbp),%rsi
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12a4 <pguser+0x144>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1040 <m_uname@plt>
mov    %eax,-0x84(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1070 <m_alias@plt>
mov    -0x84(%rbp),%esi
mov    %eax,%edx
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x80(%rbp),%rsi
lea    0xe25(%rip),%rdi
mov    $0x50,%edx
lea    0xe49(%rip),%rcx
mov    $0x0,%al
call   1030 <readdefault@plt>
cmp    $0x0,%eax
jne    1225 <pguser+0xc5>
jmp    12a4 <pguser+0x144>
mov    -0x8(%rbp),%edi
lea    -0x80(%rbp),%rsi
mov    -0x4(%rbp),%edx
mov    $0x0,%al
call   1060 <m_page@plt>
cmp    $0x0,%eax
je     1274 <pguser+0x114>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1040 <m_uname@plt>
mov    %eax,-0x88(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1070 <m_alias@plt>
mov    -0x88(%rbp),%esi
mov    %eax,%edx
lea    0xdc7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12a4 <pguser+0x144>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1040 <m_uname@plt>
mov    %eax,-0x8c(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1070 <m_alias@plt>
mov    -0x8c(%rbp),%esi
mov    %eax,%edx
lea    0xdbd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pguser>:
push   %rbp
push   %r14
push   %rbx
sub    $0x70,%rsp
mov    %edi,%r14d
lea    0xe8e(%rip),%rdi
lea    0xee0(%rip),%rcx
mov    %rsp,%rsi
mov    $0x19,%edx
xor    %eax,%eax
call   1030 <readdefault@plt>
test   %eax,%eax
je     1249 <pguser+0xe9>
mov    %rsp,%rdi
xor    %eax,%eax
call   1080 <m_slot@plt>
cmp    $0xffffffff,%eax
je     1223 <pguser+0xc3>
mov    %eax,%ebp
mov    %eax,%edi
xor    %eax,%eax
call   1040 <m_uname@plt>
mov    %eax,%ebx
mov    %ebp,%edi
xor    %eax,%eax
call   1070 <m_alias@plt>
lea    0xe5b(%rip),%rdi
mov    %ebx,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe57(%rip),%rdi
lea    0xe80(%rip),%rcx
lea    0x20(%rsp),%rsi
mov    $0x50,%edx
xor    %eax,%eax
call   1030 <readdefault@plt>
test   %eax,%eax
je     1249 <pguser+0xe9>
lea    0x20(%rsp),%rsi
mov    %ebp,%edi
mov    %r14d,%edx
xor    %eax,%eax
call   1060 <m_page@plt>
mov    %eax,%ebx
mov    %ebp,%edi
xor    %eax,%eax
call   1040 <m_uname@plt>
mov    %eax,%r14d
mov    %ebp,%edi
xor    %eax,%eax
call   1070 <m_alias@plt>
test   %ebx,%ebx
je     1236 <pguser+0xd6>
lea    0xe0e(%rip),%rdi
jmp    123d <pguser+0xdd>
lea    0xde2(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1249 <pguser+0xe9>
lea    0xe1d(%rip),%rdi
mov    %r14d,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x70,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"Page user: \00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [15 x i8] c"%s not active\0A\00"
@.str.3 = [14 x i8] c"Paging %s/%s\0A\00"
@.str.4 = [6 x i8] c"Msg: \00"
@.str.5 = [43 x i8] c"%s/%s is not accepting pages at this time\0A\00"
@.str.6 = [20 x i8] c"Page sent to %s/%s\0A\00"
define void @pguser(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca [25 x i8]
%5 = alloca [80 x i8]
store i32 %0, i32* %2
%6 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 0
%7 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @readdefault to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %6, i32 25, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %1
br label %46
10: ; preds = %1
%11 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 0
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @m_slot to i32 (i8*, ...)*)(i8* %11)
store i32 %12, i32* %3
%13 = load i32, i32* %3
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 0
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %16)
br label %46
18: ; preds = %10
%19 = load i32, i32* %3
%20 = call i32 (i32, ...) bitcast (i32 (...)* @m_uname to i32 (i32, ...)*)(i32 %19)
%21 = load i32, i32* %3
%22 = call i32 (i32, ...) bitcast (i32 (...)* @m_alias to i32 (i32, ...)*)(i32 %21)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %20, i32 %22)
%24 = getelementptr inbounds [80 x i8], [80 x i8]* %5, i64 0, i64 0
%25 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @readdefault to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %24, i32 80, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %18
br label %46
28: ; preds = %18
%29 = load i32, i32* %3
%30 = getelementptr inbounds [80 x i8], [80 x i8]* %5, i64 0, i64 0
%31 = load i32, i32* %2
%32 = call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @m_page to i32 (i32, i8*, i32, ...)*)(i32 %29, i8* %30, i32 %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %40
34: ; preds = %28
%35 = load i32, i32* %3
%36 = call i32 (i32, ...) bitcast (i32 (...)* @m_uname to i32 (i32, ...)*)(i32 %35)
%37 = load i32, i32* %3
%38 = call i32 (i32, ...) bitcast (i32 (...)* @m_alias to i32 (i32, ...)*)(i32 %37)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i32 %36, i32 %38)
br label %46
40: ; preds = %28
%41 = load i32, i32* %3
%42 = call i32 (i32, ...) bitcast (i32 (...)* @m_uname to i32 (i32, ...)*)(i32 %41)
%43 = load i32, i32* %3
%44 = call i32 (i32, ...) bitcast (i32 (...)* @m_alias to i32 (i32, ...)*)(i32 %43)
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %42, i32 %44)
br label %46
46: ; preds = %9, %15, %27, %40, %34
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"Page user: \00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [15 x i8] c"%s not active\0A\00"
@.str.3 = [14 x i8] c"Paging %s/%s\0A\00"
@.str.4 = [6 x i8] c"Msg: \00"
@.str.5 = [43 x i8] c"%s/%s is not accepting pages at this time\0A\00"
@.str.6 = [20 x i8] c"Page sent to %s/%s\0A\00"
define void @pguser(i32 %0) {
%2 = alloca [25 x i8]
%3 = alloca [80 x i8]
%4 = getelementptr inbounds [25 x i8], [25 x i8]* %2, i64 0, i64 0
%5 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%6 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @readdefault to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %4, i32 25, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
br i1 %7, label %28, label %8
8: ; preds = %1
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @m_slot to i32 (i8*, ...)*)(i8* %4)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %4)
br label %28
13: ; preds = %8
%14 = call i32 (i32, ...) bitcast (i32 (...)* @m_uname to i32 (i32, ...)*)(i32 %9)
%15 = call i32 (i32, ...) bitcast (i32 (...)* @m_alias to i32 (i32, ...)*)(i32 %9)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %14, i32 %15)
%17 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @readdefault to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %5, i32 80, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%18 = icmp eq i32 %17, 0
br i1 %18, label %28, label %19
19: ; preds = %13
%20 = call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @m_page to i32 (i32, i8*, i32, ...)*)(i32 %9, i8* %5, i32 %0)
%21 = icmp eq i32 %20, 0
%22 = call i32 (i32, ...) bitcast (i32 (...)* @m_uname to i32 (i32, ...)*)(i32 %9)
%23 = call i32 (i32, ...) bitcast (i32 (...)* @m_alias to i32 (i32, ...)*)(i32 %9)
br i1 %21, label %26, label %24
24: ; preds = %19
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i32 %22, i32 %23)
br label %28
26: ; preds = %19
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %22, i32 %23)
br label %28
28: ; preds = %24, %26, %13, %1, %11
ret void
}