int rl_vi_end_word(count, key)
int count, key;
{
  if (count < 0) {
    rl_ding();
    return -1;
  }
  if ((((unsigned char)(key) == (key)) && (1 && isupper(key))))
    rl_vi_eWord(count, key);
  else
    rl_vi_eword(count, key);
  return (0);
}


x86 assembly (clang, -O0):
<rl_vi_end_word>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    116b <rl_vi_end_word+0x2b>
mov    $0x0,%al
call   1060 <rl_ding@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    11b1 <rl_vi_end_word+0x71>
mov    -0xc(%rbp),%eax
movzbl %al,%eax
cmp    -0xc(%rbp),%eax
jne    119d <rl_vi_end_word+0x5d>
mov    -0xc(%rbp),%edi
call   1050 <isupper@plt>
cmp    $0x0,%eax
je     119d <rl_vi_end_word+0x5d>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    $0x0,%al
call   1030 <rl_vi_eWord@plt>
jmp    11aa <rl_vi_end_word+0x6a>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    $0x0,%al
call   1040 <rl_vi_eword@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rl_vi_end_word>:
push   %rbp
push   %r14
push   %rbx
test   %edi,%edi
js     117f <rl_vi_end_word+0x3f>
mov    %esi,%ebx
mov    %edi,%ebp
cmp    $0xff,%esi
ja     116f <rl_vi_end_word+0x2f>
mov    %ebx,%edi
call   1050 <isupper@plt>
test   %eax,%eax
je     116f <rl_vi_end_word+0x2f>
xor    %r14d,%r14d
mov    %ebp,%edi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <rl_vi_eWord@plt>
jmp    118c <rl_vi_end_word+0x4c>
xor    %r14d,%r14d
mov    %ebp,%edi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <rl_vi_eword@plt>
jmp    118c <rl_vi_end_word+0x4c>
xor    %eax,%eax
call   1060 <rl_ding@plt>
mov    $0xffffffff,%r14d
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @rl_vi_end_word(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = load i32, i32* %4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 (...) @rl_ding()
store i32 -1, i32* %3
br label %29
10: ; preds = %2
%11 = load i32, i32* %5
%12 = trunc i32 %11 to i8
%13 = zext i8 %12 to i32
%14 = load i32, i32* %5
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %24
16: ; preds = %10
%17 = load i32, i32* %5
%18 = call i32 @isupper(i32 %17)
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load i32, i32* %4
%22 = load i32, i32* %5
%23 = call i32 (i32, i32, ...) bitcast (i32 (...)* @rl_vi_eWord to i32 (i32, i32, ...)*)(i32 %21, i32 %22)
br label %28
24: ; preds = %16, %10
%25 = load i32, i32* %4
%26 = load i32, i32* %5
%27 = call i32 (i32, i32, ...) bitcast (i32 (...)* @rl_vi_eword to i32 (i32, i32, ...)*)(i32 %25, i32 %26)
br label %28
28: ; preds = %24, %20
store i32 0, i32* %3
br label %29
29: ; preds = %28, %8
%30 = load i32, i32* %3
ret i32 %30
}

LLVM IR (-O2):
define i32 @rl_vi_end_word(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, 0
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 (...) @rl_ding()
br label %15
6: ; preds = %2
%7 = icmp ult i32 %1, 256
br i1 %7, label %8, label %13
8: ; preds = %6
%9 = tail call i32 @isupper(i32 %1)
%10 = icmp eq i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %8
%12 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @rl_vi_eWord to i32 (i32, i32, ...)*)(i32 %0, i32 %1)
br label %15
13: ; preds = %8, %6
%14 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @rl_vi_eword to i32 (i32, i32, ...)*)(i32 %0, i32 %1)
br label %15
15: ; preds = %11, %13, %4
%16 = phi i32 [ -1, %4 ], [ 0, %13 ], [ 0, %11 ]
ret i32 %16
}