#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*/);
void vdmaarc(int centerx, int centery, int radius, int startangle, int angle,
             int style, int arcopen) {
  char x[4], y[4], rad[4], stx[4], sty[4], styl[4], op[4];
  vdmprintf("}6%s%s%s%s%s%s%s\x1e", vdmnum(arcopen, op), vdmnum(centerx, x),
            vdmnum(centery, y), vdmnum(radius, rad), vdmnum(startangle, stx),
            vdmnum(angle, sty), vdmnum(style, styl));
}


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

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

LLVM IR (-O0):
@.str = [18 x i8] c"}6%s%s%s%s%s%s%s\1E\00"
define void @vdmaarc(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [4 x i8]
%16 = alloca [4 x i8]
%17 = alloca [4 x i8]
%18 = alloca [4 x i8]
%19 = alloca [4 x i8]
%20 = alloca [4 x i8]
%21 = alloca [4 x i8]
store i32 %0, i32* %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i32 %6, i32* %14
%22 = load i32, i32* %14
%23 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 0
%24 = call i32 @vdmnum(i32 %22, i8* %23)
%25 = load i32, i32* %8
%26 = getelementptr inbounds [4 x i8], [4 x i8]* %15, i64 0, i64 0
%27 = call i32 @vdmnum(i32 %25, i8* %26)
%28 = load i32, i32* %9
%29 = getelementptr inbounds [4 x i8], [4 x i8]* %16, 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]* %17, 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]* %18, 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]* %19, 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]* %20, i64 0, i64 0
%42 = call i32 @vdmnum(i32 %40, i8* %41)
%43 = call i32 @vdmprintf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %24, i32 %27, i32 %30, i32 %33, i32 %36, i32 %39, i32 %42)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"}6%s%s%s%s%s%s%s\1E\00"
define void @vdmaarc(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca [4 x i8]
%9 = alloca [4 x i8]
%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 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%16 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%17 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%18 = getelementptr inbounds [4 x i8], [4 x i8]* %11, i64 0, i64 0
%19 = getelementptr inbounds [4 x i8], [4 x i8]* %12, i64 0, i64 0
%20 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%21 = getelementptr inbounds [4 x i8], [4 x i8]* %14, i64 0, i64 0
%22 = call i32 @vdmnum(i32 %6, i8* %21)
%23 = call i32 @vdmnum(i32 %0, i8* %15)
%24 = call i32 @vdmnum(i32 %1, i8* %16)
%25 = call i32 @vdmnum(i32 %2, i8* %17)
%26 = call i32 @vdmnum(i32 %3, i8* %18)
%27 = call i32 @vdmnum(i32 %4, i8* %19)
%28 = call i32 @vdmnum(i32 %5, i8* %20)
%29 = call i32 @vdmprintf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %22, i32 %23, i32 %24, i32 %25, i32 %26, i32 %27, i32 %28)
ret void
}