mprintw(row, col, fmt, a, b, c, d, e, f, g, h) char *fmt;
{
  char buf[512];
  sprintf(buf, fmt, a, b, c, d, e, f, g, h);
  (VMove(row, col), VPutString(buf));
}


x86 assembly (clang, -O0):
<mprintw>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x248,%rsp
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    %r8d,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
lea    -0x230(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
mov    0x10(%rbp),%r9d
mov    0x18(%rbp),%ebx
mov    0x20(%rbp),%r11d
mov    0x28(%rbp),%r10d
mov    0x30(%rbp),%eax
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    $0x0,%al
call   1040 <VMove@plt>
lea    -0x230(%rbp),%rdi
mov    $0x0,%al
call   1030 <VPutString@plt>
mov    -0xc(%rbp),%eax
add    $0x248,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<mprintw>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x200,%rsp
mov    %r9d,%eax
mov    %esi,%ebx
mov    %edi,%ebp
mov    0x230(%rsp),%r9d
mov    0x238(%rsp),%r10d
mov    0x240(%rsp),%r11d
mov    0x248(%rsp),%r15d
mov    0x250(%rsp),%r12d
mov    %rsp,%r14
mov    %r14,%rdi
mov    %rdx,%rsi
mov    %ecx,%edx
mov    %r8d,%ecx
mov    %eax,%r8d
xor    %eax,%eax
push   %r12
push   %r15
push   %r11
push   %r10
call   1050 <sprintf@plt>
add    $0x20,%rsp
mov    %ebp,%edi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <VMove@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <VPutString@plt>
add    $0x200,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @mprintw(i32 %0, i32 %1, i8* %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10) {
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca [512 x i8]
store i32 %0, i32* %13
store i32 %1, i32* %14
store i8* %2, i8** %15
store i32 %3, i32* %16
store i32 %4, i32* %17
store i32 %5, i32* %18
store i32 %6, i32* %19
store i32 %7, i32* %20
store i32 %8, i32* %21
store i32 %9, i32* %22
store i32 %10, i32* %23
%25 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%26 = load i8*, i8** %15
%27 = load i32, i32* %16
%28 = load i32, i32* %17
%29 = load i32, i32* %18
%30 = load i32, i32* %19
%31 = load i32, i32* %20
%32 = load i32, i32* %21
%33 = load i32, i32* %22
%34 = load i32, i32* %23
%35 = call i32 (i8*, i8*, ...) @sprintf(i8* %25, i8* %26, i32 %27, i32 %28, i32 %29, i32 %30, i32 %31, i32 %32, i32 %33, i32 %34)
%36 = load i32, i32* %13
%37 = load i32, i32* %14
%38 = call i32 (i32, i32, ...) bitcast (i32 (...)* @VMove to i32 (i32, i32, ...)*)(i32 %36, i32 %37)
%39 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%40 = call i32 (i8*, ...) bitcast (i32 (...)* @VPutString to i32 (i8*, ...)*)(i8* %39)
%41 = load i32, i32* %12
ret i32 %41
}

LLVM IR (-O2):
define i32 @mprintw(i32 %0, i32 %1, i8* nocapture %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10) {
%12 = alloca [512 x i8]
%13 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%14 = call i32 (i8*, i8*, ...) @sprintf(i8* %13, i8* dereferenceable(1) %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10)
%15 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @VMove to i32 (i32, i32, ...)*)(i32 %0, i32 %1)
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @VPutString to i32 (i8*, ...)*)(i8* %13)
ret i32 undef
}