#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*/ big_bmp_printf(int, int, int, char *);
int /*<<< orphan*/ bmp_printf(int, int, int, char *);
void qemu_print_help() {
  bmp_printf((0 | (((4) << 16) & (0xFFFF0000)) | ((0) & 0xFF) << 8 |
              ((0) & 0xFF) << 0),
             50, 30, "Magic Lantern in QEMU");
  big_bmp_printf((0 | (((1) << 16) & (0xFFFF0000)) | ((0) & 0xFF) << 8 |
                  ((0) & 0xFF) << 0) |
                     0x00800000,
                 50, 80,
                 "DELETE       open ML menu\n"
                 "SPACE        SET\n"
                 "SHIFT        half-shutter\n"
                 "ENTER        full-shutter\n"
                 "Q            you know :)\n"
                 "M            MENU\n"
                 "P            PLAY\n"
                 "I            INFO\n"
                 "R            RATE\n"
                 "X            joystick center\n"
                 "Arrows       guess :)\n"
                 "PageUp/Dn    rear scrollwheel\n"
                 "[ and ]      top scrollwheel\n"
                 "+/-          zoom in/out\n"
                 "H            LCD/HDMI/SD monitor\n"
                 "L            LiveView\n");
  bmp_printf((0 | (((4) << 16) & (0xFFFF0000)) | ((0) & 0xFF) << 8 |
              ((0) & 0xFF) << 0),
             50, 420, "Have fun!");
}


x86 assembly (clang, -O0):
<qemu_print_help>:
push   %rbp
mov    %rsp,%rbp
mov    $0x40000,%edi
mov    $0x32,%esi
mov    $0x1e,%edx
lea    0xec6(%rip),%rcx
call   1030 <bmp_printf@plt>
mov    $0x810000,%edi
mov    $0x32,%esi
mov    $0x50,%edx
lea    0xec1(%rip),%rcx
call   1040 <big_bmp_printf@plt>
mov    $0x40000,%edi
mov    $0x32,%esi
mov    $0x1a4,%edx
lea    0x1025(%rip),%rcx
call   1030 <bmp_printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<qemu_print_help>:
push   %rax
lea    0xed8(%rip),%rcx
mov    $0x40000,%edi
mov    $0x32,%esi
mov    $0x1e,%edx
call   1030 <bmp_printf@plt>
lea    0xed3(%rip),%rcx
mov    $0x810000,%edi
mov    $0x32,%esi
mov    $0x50,%edx
call   1040 <big_bmp_printf@plt>
lea    0x1037(%rip),%rcx
mov    $0x40000,%edi
mov    $0x32,%esi
mov    $0x1a4,%edx
pop    %rax
jmp    1030 <bmp_printf@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"Magic Lantern in QEMU\00"
@.str.1 = [383 x i8] c"DELETE open ML menu\0ASPACE SET\0ASHIFT half-shutter\0AENTER full-shutter\0AQ you know :)\0AM MENU\0AP PLAY\0AI INFO\0AR RATE\0AX joystick center\0AArrows guess :)\0APageUp/Dn rear scrollwheel\0A[ and ] top scrollwheel\0A+/- zoom in/out\0AH LCD/HDMI/SD monitor\0AL LiveView\0A\00"
@.str.2 = [10 x i8] c"Have fun!\00"
define void @qemu_print_help() {
%1 = call i32 @bmp_printf(i32 262144, i32 50, i32 30, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @big_bmp_printf(i32 8454144, i32 50, i32 80, i8* getelementptr inbounds ([383 x i8], [383 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @bmp_printf(i32 262144, i32 50, i32 420, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"Magic Lantern in QEMU\00"
@.str.1 = [383 x i8] c"DELETE open ML menu\0ASPACE SET\0ASHIFT half-shutter\0AENTER full-shutter\0AQ you know :)\0AM MENU\0AP PLAY\0AI INFO\0AR RATE\0AX joystick center\0AArrows guess :)\0APageUp/Dn rear scrollwheel\0A[ and ] top scrollwheel\0A+/- zoom in/out\0AH LCD/HDMI/SD monitor\0AL LiveView\0A\00"
@.str.2 = [10 x i8] c"Have fun!\00"
define void @qemu_print_help() {
%1 = tail call i32 @bmp_printf(i32 262144, i32 50, i32 30, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @big_bmp_printf(i32 8454144, i32 50, i32 80, i8* getelementptr inbounds ([383 x i8], [383 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @bmp_printf(i32 262144, i32 50, i32 420, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
ret void
}