#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*/, int /*<<< orphan*/,
                             int /*<<< orphan*/, int /*<<< orphan*/,
                             int /*<<< orphan*/);
void vdmvarc(int centerx, int centery, int radius, int startx, int starty,
             int endx, int endy, int style, int arcopen) {
  char x[4], y[4], rad[4], stx[4], sty[4], enx[4], eny[4], styl[4], op[4];
  vdmprintf("}6%s%s%s%s%s%s%s%s%s\x1e", vdmnum(arcopen, op), vdmnum(centerx, x),
            vdmnum(centery, y), vdmnum(radius, rad), vdmnum(startx, stx),
            vdmnum(starty, sty), vdmnum(endx, enx), vdmnum(endy, eny),
            vdmnum(style, styl));
}


x86 assembly (clang, -O0):
<vdmvarc>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x78,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
mov    0x20(%rbp),%edi
lea    -0x44(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,-0x60(%rbp)
mov    -0xc(%rbp),%edi
lea    -0x24(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x10(%rbp),%edi
lea    -0x28(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,-0x58(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x2c(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,-0x54(%rbp)
mov    -0x18(%rbp),%edi
lea    -0x30(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,-0x50(%rbp)
mov    -0x1c(%rbp),%edi
lea    -0x34(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,%ebx
mov    -0x20(%rbp),%edi
lea    -0x38(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,-0x4c(%rbp)
mov    0x10(%rbp),%edi
lea    -0x3c(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,-0x48(%rbp)
mov    0x18(%rbp),%edi
lea    -0x40(%rbp),%rsi
call   1030 <vdmnum@plt>
mov    -0x60(%rbp),%esi
mov    -0x5c(%rbp),%edx
mov    -0x58(%rbp),%ecx
mov    -0x54(%rbp),%r8d
mov    -0x50(%rbp),%r9d
mov    -0x4c(%rbp),%r11d
mov    -0x48(%rbp),%r10d
lea    0xe17(%rip),%rdi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1040 <vdmprintf@plt>
add    $0x78,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<vdmvarc>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9d,0x8(%rsp)
mov    %r8d,%r14d
mov    %ecx,%r13d
mov    %edx,%r12d
mov    %esi,%ebp
mov    %edi,%ebx
mov    0x80(%rsp),%edi
lea    0x14(%rsp),%rsi
call   1030 <vdmnum@plt>
mov    %eax,0x10(%rsp)
lea    0x34(%rsp),%rsi
mov    %ebx,%edi
call   1030 <vdmnum@plt>
mov    %eax,0xc(%rsp)
lea    0x30(%rsp),%rsi
mov    %ebp,%edi
call   1030 <vdmnum@plt>
mov    %eax,%r15d
lea    0x2c(%rsp),%rsi
mov    %r12d,%edi
call   1030 <vdmnum@plt>
mov    %eax,%r12d
lea    0x28(%rsp),%rsi
mov    %r13d,%edi
call   1030 <vdmnum@plt>
mov    %eax,%r13d
lea    0x24(%rsp),%rsi
mov    %r14d,%edi
call   1030 <vdmnum@plt>
mov    %eax,%r14d
lea    0x20(%rsp),%rsi
mov    0x8(%rsp),%edi
call   1030 <vdmnum@plt>
mov    %eax,%ebx
lea    0x1c(%rsp),%rsi
mov    0x70(%rsp),%edi
call   1030 <vdmnum@plt>
mov    %eax,%ebp
lea    0x18(%rsp),%rsi
mov    0x78(%rsp),%edi
call   1030 <vdmnum@plt>
lea    0xe27(%rip),%rdi
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%edx
mov    %r15d,%ecx
mov    %r12d,%r8d
mov    %r13d,%r9d
push   %rax
push   %rbp
push   %rbx
push   %r14
call   1040 <vdmprintf@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"}6%s%s%s%s%s%s%s%s%s\1E\00"
define void @vdmvarc(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8) {
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca [4 x i8]
%20 = alloca [4 x i8]
%21 = alloca [4 x i8]
%22 = alloca [4 x i8]
%23 = alloca [4 x i8]
%24 = alloca [4 x i8]
%25 = alloca [4 x i8]
%26 = alloca [4 x i8]
%27 = alloca [4 x i8]
store i32 %0, i32* %10
store i32 %1, i32* %11
store i32 %2, i32* %12
store i32 %3, i32* %13
store i32 %4, i32* %14
store i32 %5, i32* %15
store i32 %6, i32* %16
store i32 %7, i32* %17
store i32 %8, i32* %18
%28 = load i32, i32* %18
%29 = getelementptr inbounds [4 x i8], [4 x i8]* %27, i64 0, i64 0
%30 = call i32 @vdmnum(i32 %28, i8* %29)
%31 = load i32, i32* %10
%32 = getelementptr inbounds [4 x i8], [4 x i8]* %19, i64 0, i64 0
%33 = call i32 @vdmnum(i32 %31, i8* %32)
%34 = load i32, i32* %11
%35 = getelementptr inbounds [4 x i8], [4 x i8]* %20, i64 0, i64 0
%36 = call i32 @vdmnum(i32 %34, i8* %35)
%37 = load i32, i32* %12
%38 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 0
%39 = call i32 @vdmnum(i32 %37, i8* %38)
%40 = load i32, i32* %13
%41 = getelementptr inbounds [4 x i8], [4 x i8]* %22, i64 0, i64 0
%42 = call i32 @vdmnum(i32 %40, i8* %41)
%43 = load i32, i32* %14
%44 = getelementptr inbounds [4 x i8], [4 x i8]* %23, i64 0, i64 0
%45 = call i32 @vdmnum(i32 %43, i8* %44)
%46 = load i32, i32* %15
%47 = getelementptr inbounds [4 x i8], [4 x i8]* %24, i64 0, i64 0
%48 = call i32 @vdmnum(i32 %46, i8* %47)
%49 = load i32, i32* %16
%50 = getelementptr inbounds [4 x i8], [4 x i8]* %25, i64 0, i64 0
%51 = call i32 @vdmnum(i32 %49, i8* %50)
%52 = load i32, i32* %17
%53 = getelementptr inbounds [4 x i8], [4 x i8]* %26, i64 0, i64 0
%54 = call i32 @vdmnum(i32 %52, i8* %53)
%55 = call i32 @vdmprintf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %30, i32 %33, i32 %36, i32 %39, i32 %42, i32 %45, i32 %48, i32 %51, i32 %54)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"}6%s%s%s%s%s%s%s%s%s\1E\00"
define void @vdmvarc(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8) {
%10 = alloca [4 x i8]
%11 = alloca [4 x i8]
%12 = alloca [4 x i8]
%13 = alloca [4 x i8]
%14 = alloca [4 x i8]
%15 = alloca [4 x i8]
%16 = alloca [4 x i8]
%17 = alloca [4 x i8]
%18 = alloca [4 x i8]
%19 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%20 = getelementptr inbounds [4 x i8], [4 x i8]* %11, i64 0, i64 0
%21 = getelementptr inbounds [4 x i8], [4 x i8]* %12, i64 0, i64 0
%22 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%23 = getelementptr inbounds [4 x i8], [4 x i8]* %14, i64 0, i64 0
%24 = getelementptr inbounds [4 x i8], [4 x i8]* %15, i64 0, i64 0
%25 = getelementptr inbounds [4 x i8], [4 x i8]* %16, i64 0, i64 0
%26 = getelementptr inbounds [4 x i8], [4 x i8]* %17, i64 0, i64 0
%27 = getelementptr inbounds [4 x i8], [4 x i8]* %18, i64 0, i64 0
%28 = call i32 @vdmnum(i32 %8, i8* %27)
%29 = call i32 @vdmnum(i32 %0, i8* %19)
%30 = call i32 @vdmnum(i32 %1, i8* %20)
%31 = call i32 @vdmnum(i32 %2, i8* %21)
%32 = call i32 @vdmnum(i32 %3, i8* %22)
%33 = call i32 @vdmnum(i32 %4, i8* %23)
%34 = call i32 @vdmnum(i32 %5, i8* %24)
%35 = call i32 @vdmnum(i32 %6, i8* %25)
%36 = call i32 @vdmnum(i32 %7, i8* %26)
%37 = call i32 @vdmprintf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %28, i32 %29, i32 %30, i32 %31, i32 %32, i32 %33, i32 %34, i32 %35, i32 %36)
ret void
}