void GetMchRefImpObjFromNameExt(mch_num, name) int *mch_num;
char *name;
{
  GetObjFromNameExt(mch_num, name, 1);
  if (*mch_num)
    return;
  GetObjFromNameExt(mch_num, name, 2);
  if (*mch_num)
    return;
  GetObjFromNameExt(mch_num, name, 3);
  if (*mch_num)
    return;
  printf("\n\n     Unable to locate Display object for %s", name);
  BT_err_exit(13002);
}


x86 assembly (clang, -O0):
<GetMchRefImpObjFromNameExt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1040 <GetObjFromNameExt@plt>
mov    -0x8(%rbp),%rax
cmpl   $0x0,(%rax)
je     1166 <GetMchRefImpObjFromNameExt+0x36>
jmp    11d0 <GetMchRefImpObjFromNameExt+0xa0>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1040 <GetObjFromNameExt@plt>
mov    -0x8(%rbp),%rax
cmpl   $0x0,(%rax)
je     118c <GetMchRefImpObjFromNameExt+0x5c>
jmp    11d0 <GetMchRefImpObjFromNameExt+0xa0>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x3,%edx
mov    $0x0,%al
call   1040 <GetObjFromNameExt@plt>
mov    -0x8(%rbp),%rax
cmpl   $0x0,(%rax)
je     11b2 <GetMchRefImpObjFromNameExt+0x82>
jmp    11d0 <GetMchRefImpObjFromNameExt+0xa0>
mov    -0x10(%rbp),%rsi
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x32ca,%edi
mov    $0x0,%al
call   1050 <BT_err_exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetMchRefImpObjFromNameExt>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <GetObjFromNameExt@plt>
cmpl   $0x0,(%rbx)
jne    1179 <GetMchRefImpObjFromNameExt+0x49>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <GetObjFromNameExt@plt>
cmpl   $0x0,(%rbx)
jne    1179 <GetMchRefImpObjFromNameExt+0x49>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x3,%edx
xor    %eax,%eax
call   1040 <GetObjFromNameExt@plt>
cmpl   $0x0,(%rbx)
je     1181 <GetMchRefImpObjFromNameExt+0x51>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xe78(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x32ca,%edi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <BT_err_exit@plt>

LLVM IR (-O0):
@.str = [46 x i8] c"\0A\0A Unable to locate Display object for %s\00"
define void @GetMchRefImpObjFromNameExt(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i32*, i32** %3
%6 = load i8*, i8** %4
%7 = call i32 (i32*, i8*, i32, ...) bitcast (i32 (...)* @GetObjFromNameExt to i32 (i32*, i8*, i32, ...)*)(i32* %5, i8* %6, i32 1)
%8 = load i32*, i32** %3
%9 = load i32, i32* %8
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
br label %32
12: ; preds = %2
%13 = load i32*, i32** %3
%14 = load i8*, i8** %4
%15 = call i32 (i32*, i8*, i32, ...) bitcast (i32 (...)* @GetObjFromNameExt to i32 (i32*, i8*, i32, ...)*)(i32* %13, i8* %14, i32 2)
%16 = load i32*, i32** %3
%17 = load i32, i32* %16
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %12
br label %32
20: ; preds = %12
%21 = load i32*, i32** %3
%22 = load i8*, i8** %4
%23 = call i32 (i32*, i8*, i32, ...) bitcast (i32 (...)* @GetObjFromNameExt to i32 (i32*, i8*, i32, ...)*)(i32* %21, i8* %22, i32 3)
%24 = load i32*, i32** %3
%25 = load i32, i32* %24
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %20
br label %32
28: ; preds = %20
%29 = load i8*, i8** %4
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* %29)
%31 = call i32 (i32, ...) bitcast (i32 (...)* @BT_err_exit to i32 (i32, ...)*)(i32 13002)
br label %32
32: ; preds = %28, %27, %19, %11
ret void
}

LLVM IR (-O2):
@.str = [46 x i8] c"\0A\0A Unable to locate Display object for %s\00"
define void @GetMchRefImpObjFromNameExt(i32* %0, i8* %1) {
%3 = tail call i32 (i32*, i8*, i32, ...) bitcast (i32 (...)* @GetObjFromNameExt to i32 (i32*, i8*, i32, ...)*)(i32* %0, i8* %1, i32 1)
%4 = load i32, i32* %0
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %17
6: ; preds = %2
%7 = tail call i32 (i32*, i8*, i32, ...) bitcast (i32 (...)* @GetObjFromNameExt to i32 (i32*, i8*, i32, ...)*)(i32* %0, i8* %1, i32 2)
%8 = load i32, i32* %0
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %17
10: ; preds = %6
%11 = tail call i32 (i32*, i8*, i32, ...) bitcast (i32 (...)* @GetObjFromNameExt to i32 (i32*, i8*, i32, ...)*)(i32* %0, i8* %1, i32 3)
%12 = load i32, i32* %0
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* %1)
%16 = tail call i32 (i32, ...) bitcast (i32 (...)* @BT_err_exit to i32 (i32, ...)*)(i32 13002)
br label %17
17: ; preds = %10, %6, %2, %14
ret void
}