message(fmt, a1, a2, a3, a4, a5) char *fmt, *a1, *a2, *a3, *a4, *a5;
{
  ldisplay("\007");
  ldisplay("*** ");
  ldisplay(fmt, a1, a2, a3, a4, a5);
  ldisplay("\n");
}


x86 assembly (clang, -O0):
<message>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <ldisplay@plt>
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <ldisplay@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    -0x38(%rbp),%r9
mov    $0x0,%al
call   1030 <ldisplay@plt>
lea    0xe95(%rip),%rdi
mov    $0x0,%al
call   1030 <ldisplay@plt>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<message>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbx
mov    %rdi,%rbp
lea    0xecc(%rip),%rdi
xor    %eax,%eax
call   1030 <ldisplay@plt>
lea    0xec0(%rip),%rdi
xor    %eax,%eax
call   1030 <ldisplay@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
mov    %r12,%rcx
mov    %r15,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1030 <ldisplay@plt>
lea    0xe9e(%rip),%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <ldisplay@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\07\00"
@.str.1 = [5 x i8] c"*** \00"
@.str.2 = [2 x i8] c"\0A\00"
define i32 @message(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5) {
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
store i8* %0, i8** %8
store i8* %1, i8** %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i8* %4, i8** %12
store i8* %5, i8** %13
%14 = call i32 (i8*, ...) bitcast (i32 (...)* @ldisplay to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%15 = call i32 (i8*, ...) bitcast (i32 (...)* @ldisplay to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%16 = load i8*, i8** %8
%17 = load i8*, i8** %9
%18 = load i8*, i8** %10
%19 = load i8*, i8** %11
%20 = load i8*, i8** %12
%21 = load i8*, i8** %13
%22 = call i32 (i8*, i8*, i8*, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ldisplay to i32 (i8*, i8*, i8*, i8*, i8*, i8*, ...)*)(i8* %16, i8* %17, i8* %18, i8* %19, i8* %20, i8* %21)
%23 = call i32 (i8*, ...) bitcast (i32 (...)* @ldisplay to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%24 = load i32, i32* %7
ret i32 %24
}

LLVM IR (-O2):
@.str = [2 x i8] c"\07\00"
@.str.1 = [5 x i8] c"*** \00"
@.str.2 = [2 x i8] c"\0A\00"
define i32 @message(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5) {
%7 = tail call i32 (i8*, ...) bitcast (i32 (...)* @ldisplay to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) bitcast (i32 (...)* @ldisplay to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 (i8*, i8*, i8*, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ldisplay to i32 (i8*, i8*, i8*, i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5)
%10 = tail call i32 (i8*, ...) bitcast (i32 (...)* @ldisplay to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret i32 undef
}