#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*/ vdmnum(int, char *);
int /*<<< orphan*/ vdmprintf(char *, int /*<<< orphan*/, int /*<<< orphan*/,
                             int /*<<< orphan*/, int /*<<< orphan*/,
                             int /*<<< orphan*/);
void vdmsetfillmode(int pattern, int perimeter, int inverted) {
  char patt[4], perim[4], rot[4], espejo[4], inv[4];
  vdmprintf("I%s%s%s%s%s\x1e", vdmnum(pattern, patt), vdmnum(perimeter, perim),
            vdmnum(0, rot), vdmnum(0, espejo), vdmnum(inverted, inv));
}


x86 assembly (clang, -O0):
<vdmsetfillmode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x10(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,-0x30(%rbp)
mov    -0x8(%rbp),%edi
lea    -0x14(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,-0x2c(%rbp)
lea    -0x18(%rbp),%rsi
xor    %edi,%edi
call   1030 <vdmnum@plt>
mov    %eax,-0x28(%rbp)
lea    -0x1c(%rbp),%rsi
xor    %edi,%edi
call   1030 <vdmnum@plt>
mov    %eax,-0x24(%rbp)
mov    -0xc(%rbp),%edi
lea    -0x20(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    %eax,%r9d
lea    0xe72(%rip),%rdi
call   1040 <vdmprintf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vdmsetfillmode>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
mov    %edx,%r14d
mov    %esi,%ebx
lea    0x1c(%rsp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,%r15d
lea    0x18(%rsp),%rsi
mov    %ebx,%edi
call   1030 <vdmnum@plt>
mov    %eax,%r12d
lea    0x14(%rsp),%rsi
xor    %edi,%edi
call   1030 <vdmnum@plt>
mov    %eax,%ebp
lea    0x10(%rsp),%rsi
xor    %edi,%edi
call   1030 <vdmnum@plt>
mov    %eax,%ebx
lea    0xc(%rsp),%rsi
mov    %r14d,%edi
call   1030 <vdmnum@plt>
lea    0xe83(%rip),%rdi
mov    %r15d,%esi
mov    %r12d,%edx
mov    %ebp,%ecx
mov    %ebx,%r8d
mov    %eax,%r9d
call   1040 <vdmprintf@plt>
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"I%s%s%s%s%s\1E\00"
define void @vdmsetfillmode(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [4 x i8]
%8 = alloca [4 x i8]
%9 = alloca [4 x i8]
%10 = alloca [4 x i8]
%11 = alloca [4 x i8]
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%12 = load i32, i32* %4
%13 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%14 = call i32 @vdmnum(i32 %12, i8* %13)
%15 = load i32, i32* %5
%16 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%17 = call i32 @vdmnum(i32 %15, i8* %16)
%18 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%19 = call i32 @vdmnum(i32 0, i8* %18)
%20 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%21 = call i32 @vdmnum(i32 0, i8* %20)
%22 = load i32, i32* %6
%23 = getelementptr inbounds [4 x i8], [4 x i8]* %11, i64 0, i64 0
%24 = call i32 @vdmnum(i32 %22, i8* %23)
%25 = call i32 @vdmprintf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %17, i32 %19, i32 %21, i32 %24)
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"I%s%s%s%s%s\1E\00"
define void @vdmsetfillmode(i32 %0, i32 %1, i32 %2) {
%4 = alloca [4 x i8]
%5 = alloca [4 x i8]
%6 = alloca [4 x i8]
%7 = alloca [4 x i8]
%8 = alloca [4 x i8]
%9 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 0
%11 = getelementptr inbounds [4 x i8], [4 x i8]* %6, i64 0, i64 0
%12 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%13 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%14 = call i32 @vdmnum(i32 %0, i8* %9)
%15 = call i32 @vdmnum(i32 %1, i8* %10)
%16 = call i32 @vdmnum(i32 0, i8* %11)
%17 = call i32 @vdmnum(i32 0, i8* %12)
%18 = call i32 @vdmnum(i32 %2, i8* %13)
%19 = call i32 @vdmprintf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %15, i32 %16, i32 %17, i32 %18)
ret void
}