#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*/ bmp_fill(int, int /*<<< orphan*/, int /*<<< orphan*/, int,
                            int);
int /*<<< orphan*/ bmp_printf(int, int, int, char *);
void draw_404_page() {
  bmp_fill(0x02, 0, 0, 720, 480);
  bmp_printf((0 | (((7) << 16) & (0xFFFF0000)) | ((0) & 0xFF) << 8 |
              ((0) & 0xFF) << 0),
             10, 20, "404 Undocumented Feature");
  bmp_printf((0 | (((2) << 16) & (0xFFFF0000)) | ((0) & 0xFF) << 8 |
              ((0) & 0xFF) << 0),
             10, 100, "This feature is probably not yet documented.");
  bmp_printf((0 | (((2) << 16) & (0xFFFF0000)) | ((0) & 0xFF) << 8 |
              ((0) & 0xFF) << 0),
             10, 120, "After all, we are programmers, not tech writers.");
  bmp_printf((0 | (((2) << 16) & (0xFFFF0000)) | ((0) & 0xFF) << 8 |
              ((0) & 0xFF) << 0),
             10, 180, "But... you can simply try it and see what it does.");
  bmp_printf((0 | (((2) << 16) & (0xFFFF0000)) | ((0) & 0xFF) << 8 |
              ((0) & 0xFF) << 0),
             10, 240, "Then, write a short paragraph to describe it,");
  bmp_printf((0 | (((2) << 16) & (0xFFFF0000)) | ((0) & 0xFF) << 8 |
              ((0) & 0xFF) << 0),
             10, 260, "and we will include it in the user guide.");
  bmp_printf((0 | (((2) << 16) & (0xFFFF0000)) | ((0) & 0xFF) << 8 |
              ((0) & 0xFF) << 0),
             10, 320, "Thanks!");
}


x86 assembly (clang, -O0):
<draw_404_page>:
push   %rbp
mov    %rsp,%rbp
mov    $0x2,%edi
xor    %edx,%edx
mov    $0x2d0,%ecx
mov    $0x1e0,%r8d
mov    %edx,%esi
call   1040 <bmp_fill@plt>
mov    $0x70000,%edi
mov    $0xa,%esi
mov    $0x14,%edx
lea    0xead(%rip),%rcx
call   1030 <bmp_printf@plt>
mov    $0x20000,%edi
mov    $0xa,%esi
mov    $0x64,%edx
lea    0xeab(%rip),%rcx
call   1030 <bmp_printf@plt>
mov    $0x20000,%edi
mov    $0xa,%esi
mov    $0x78,%edx
lea    0xebd(%rip),%rcx
call   1030 <bmp_printf@plt>
mov    $0x20000,%edi
mov    $0xa,%esi
mov    $0xb4,%edx
lea    0xed3(%rip),%rcx
call   1030 <bmp_printf@plt>
mov    $0x20000,%edi
mov    $0xa,%esi
mov    $0xf0,%edx
lea    0xeeb(%rip),%rcx
call   1030 <bmp_printf@plt>
mov    $0x20000,%edi
mov    $0xa,%esi
mov    $0x104,%edx
lea    0xefe(%rip),%rcx
call   1030 <bmp_printf@plt>
mov    $0x20000,%edi
mov    $0xa,%esi
mov    $0x140,%edx
lea    0xf0d(%rip),%rcx
call   1030 <bmp_printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_404_page>:
push   %rax
mov    $0x2,%edi
xor    %esi,%esi
xor    %edx,%edx
mov    $0x2d0,%ecx
mov    $0x1e0,%r8d
call   1040 <bmp_fill@plt>
lea    0xebf(%rip),%rcx
mov    $0x70000,%edi
mov    $0xa,%esi
mov    $0x14,%edx
call   1030 <bmp_printf@plt>
lea    0xebd(%rip),%rcx
mov    $0x20000,%edi
mov    $0xa,%esi
mov    $0x64,%edx
call   1030 <bmp_printf@plt>
lea    0xecf(%rip),%rcx
mov    $0x20000,%edi
mov    $0xa,%esi
mov    $0x78,%edx
call   1030 <bmp_printf@plt>
lea    0xee5(%rip),%rcx
mov    $0x20000,%edi
mov    $0xa,%esi
mov    $0xb4,%edx
call   1030 <bmp_printf@plt>
lea    0xefd(%rip),%rcx
mov    $0x20000,%edi
mov    $0xa,%esi
mov    $0xf0,%edx
call   1030 <bmp_printf@plt>
lea    0xf10(%rip),%rcx
mov    $0x20000,%edi
mov    $0xa,%esi
mov    $0x104,%edx
call   1030 <bmp_printf@plt>
lea    0xf1f(%rip),%rcx
mov    $0x20000,%edi
mov    $0xa,%esi
mov    $0x140,%edx
pop    %rax
jmp    1030 <bmp_printf@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"404 Undocumented Feature\00"
@.str.1 = [45 x i8] c"This feature is probably not yet documented.\00"
@.str.2 = [49 x i8] c"After all, we are programmers, not tech writers.\00"
@.str.3 = [51 x i8] c"But... you can simply try it and see what it does.\00"
@.str.4 = [46 x i8] c"Then, write a short paragraph to describe it,\00"
@.str.5 = [42 x i8] c"and we will include it in the user guide.\00"
@.str.6 = [8 x i8] c"Thanks!\00"
define void @draw_404_page() {
%1 = call i32 @bmp_fill(i32 2, i32 0, i32 0, i32 720, i32 480)
%2 = call i32 @bmp_printf(i32 458752, i32 10, i32 20, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @bmp_printf(i32 131072, i32 10, i32 100, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @bmp_printf(i32 131072, i32 10, i32 120, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @bmp_printf(i32 131072, i32 10, i32 180, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @bmp_printf(i32 131072, i32 10, i32 240, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @bmp_printf(i32 131072, i32 10, i32 260, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @bmp_printf(i32 131072, i32 10, i32 320, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"404 Undocumented Feature\00"
@.str.1 = [45 x i8] c"This feature is probably not yet documented.\00"
@.str.2 = [49 x i8] c"After all, we are programmers, not tech writers.\00"
@.str.3 = [51 x i8] c"But... you can simply try it and see what it does.\00"
@.str.4 = [46 x i8] c"Then, write a short paragraph to describe it,\00"
@.str.5 = [42 x i8] c"and we will include it in the user guide.\00"
@.str.6 = [8 x i8] c"Thanks!\00"
define void @draw_404_page() {
%1 = tail call i32 @bmp_fill(i32 2, i32 0, i32 0, i32 720, i32 480)
%2 = tail call i32 @bmp_printf(i32 458752, i32 10, i32 20, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @bmp_printf(i32 131072, i32 10, i32 100, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @bmp_printf(i32 131072, i32 10, i32 120, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @bmp_printf(i32 131072, i32 10, i32 180, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @bmp_printf(i32 131072, i32 10, i32 240, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @bmp_printf(i32 131072, i32 10, i32 260, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @bmp_printf(i32 131072, i32 10, i32 320, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
ret void
}