#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ menu_prinstr_mesh(int, int, int, unsigned short,
                                     unsigned char, unsigned char,
                                     int /*<<< orphan*/, int,
                                     int /*<<< orphan*/, char *, int);
void menu_prinstr(int x, int y, int w, unsigned short color,
                  unsigned char border_flags, unsigned char border_color,
                  char *str, int str_len) {
  menu_prinstr_mesh(x, y, w, color, border_flags, border_color, 0, 31, 0, str,
                    str_len);
}


x86 assembly (clang, -O0):
<menu_prinstr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %r8d,-0x20(%rbp)
mov    %ecx,%eax
mov    -0x20(%rbp),%ecx
mov    %eax,-0x1c(%rbp)
mov    %edx,%eax
mov    -0x1c(%rbp),%edx
mov    %eax,-0x18(%rbp)
mov    %esi,%eax
mov    -0x18(%rbp),%esi
mov    %eax,-0x14(%rbp)
mov    %edi,%r8d
mov    -0x14(%rbp),%edi
mov    %r9b,%al
mov    0x18(%rbp),%r9d
mov    0x10(%rbp),%r9
mov    %r8d,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %dx,-0xe(%rbp)
mov    %cl,-0xf(%rbp)
mov    %al,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0xe(%rbp),%cx
mov    -0xf(%rbp),%r8b
mov    -0x10(%rbp),%r9b
mov    0x10(%rbp),%r10
mov    0x18(%rbp),%eax
xor    %r11d,%r11d
movzwl %cx,%ecx
movzbl %r8b,%r8d
movzbl %r9b,%r9d
movl   $0x0,(%rsp)
movl   $0x1f,0x8(%rsp)
movl   $0x0,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %eax,0x20(%rsp)
call   1030 <menu_prinstr_mesh@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<menu_prinstr>:
push   %rax
mov    0x18(%rsp),%eax
sub    $0x8,%rsp
push   %rax
push   0x20(%rsp)
push   $0x0
push   $0x1f
push   $0x0
call   1030 <menu_prinstr_mesh@plt>
add    $0x30,%rsp
pop    %rax
ret

LLVM IR (-O0):
define void @menu_prinstr(i32 %0, i32 %1, i32 %2, i16 zeroext %3, i8 zeroext %4, i8 zeroext %5, i8* %6, i32 %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i16
%13 = alloca i8
%14 = alloca i8
%15 = alloca i8*
%16 = alloca i32
store i32 %0, i32* %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store i16 %3, i16* %12
store i8 %4, i8* %13
store i8 %5, i8* %14
store i8* %6, i8** %15
store i32 %7, i32* %16
%17 = load i32, i32* %9
%18 = load i32, i32* %10
%19 = load i32, i32* %11
%20 = load i16, i16* %12
%21 = load i8, i8* %13
%22 = load i8, i8* %14
%23 = load i8*, i8** %15
%24 = load i32, i32* %16
%25 = call i32 @menu_prinstr_mesh(i32 %17, i32 %18, i32 %19, i16 zeroext %20, i8 zeroext %21, i8 zeroext %22, i32 0, i32 31, i32 0, i8* %23, i32 %24)
ret void
}

LLVM IR (-O2):
define void @menu_prinstr(i32 %0, i32 %1, i32 %2, i16 zeroext %3, i8 zeroext %4, i8 zeroext %5, i8* %6, i32 %7) {
%9 = tail call i32 @menu_prinstr_mesh(i32 %0, i32 %1, i32 %2, i16 zeroext %3, i8 zeroext %4, i8 zeroext %5, i32 0, i32 31, i32 0, i8* %6, i32 %7)
ret void
}