unbindkey(f, n) int f, n;
{
  register int c;
  char outseq[80];
  mlwrite(": unbind-key ");
  c = getckey(0);
  cmdstr(c, &outseq[0]);
  ostring(outseq);
  if (unbindchar(c) == 0) {
    mlwrite("[Key not bound]");
    return (0);
  }
  return (1);
}


x86 assembly (clang, -O0):
<unbindkey>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1050 <mlwrite@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1070 <getckey@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edi
lea    -0x60(%rbp),%rsi
mov    $0x0,%al
call   1030 <cmdstr@plt>
lea    -0x60(%rbp),%rdi
mov    $0x0,%al
call   1060 <ostring@plt>
mov    -0x10(%rbp),%edi
mov    $0x0,%al
call   1040 <unbindchar@plt>
cmp    $0x0,%eax
jne    11be <unbindkey+0x6e>
lea    0xe63(%rip),%rdi
mov    $0x0,%al
call   1050 <mlwrite@plt>
movl   $0x0,-0x4(%rbp)
jmp    11c5 <unbindkey+0x75>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unbindkey>:
push   %r14
push   %rbx
sub    $0x58,%rsp
lea    0xea2(%rip),%rdi
xor    %eax,%eax
call   1050 <mlwrite@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1070 <getckey@plt>
mov    %eax,%ebx
mov    %rsp,%r14
mov    %eax,%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <cmdstr@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <ostring@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1040 <unbindchar@plt>
mov    %eax,%ecx
mov    $0x1,%eax
test   %ecx,%ecx
jne    11ad <unbindkey+0x5d>
lea    0xe6a(%rip),%rdi
xor    %eax,%eax
call   1050 <mlwrite@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [14 x i8] c": unbind-key \00"
@.str.1 = [16 x i8] c"[Key not bound]\00"
define i32 @unbindkey(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [80 x i8]
store i32 %0, i32* %4
store i32 %1, i32* %5
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @mlwrite to i32 (i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i32, ...) bitcast (i32 (...)* @getckey to i32 (i32, ...)*)(i32 0)
store i32 %9, i32* %6
%10 = load i32, i32* %6
%11 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%12 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @cmdstr to i32 (i32, i8*, ...)*)(i32 %10, i8* %11)
%13 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%14 = call i32 (i8*, ...) bitcast (i32 (...)* @ostring to i32 (i8*, ...)*)(i8* %13)
%15 = load i32, i32* %6
%16 = call i32 (i32, ...) bitcast (i32 (...)* @unbindchar to i32 (i32, ...)*)(i32 %15)
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %2
%19 = call i32 (i8*, ...) bitcast (i32 (...)* @mlwrite to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %21
20: ; preds = %2
store i32 1, i32* %3
br label %21
21: ; preds = %20, %18
%22 = load i32, i32* %3
ret i32 %22
}

LLVM IR (-O2):
@.str = [14 x i8] c": unbind-key \00"
@.str.1 = [16 x i8] c"[Key not bound]\00"
define i32 @unbindkey(i32 %0, i32 %1) {
%3 = alloca [80 x i8]
%4 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%5 = tail call i32 (i8*, ...) bitcast (i32 (...)* @mlwrite to i32 (i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 (i32, ...) bitcast (i32 (...)* @getckey to i32 (i32, ...)*)(i32 0)
%7 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @cmdstr to i32 (i32, i8*, ...)*)(i32 %6, i8* %4)
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @ostring to i32 (i8*, ...)*)(i8* %4)
%9 = call i32 (i32, ...) bitcast (i32 (...)* @unbindchar to i32 (i32, ...)*)(i32 %6)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @mlwrite to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %13
13: ; preds = %2, %11
%14 = phi i32 [ 0, %11 ], [ 1, %2 ]
ret i32 %14
}