#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int x;
  int y;
  int width;
  int height;
  int angle1;
  int angle2;
};
typedef TYPE_1__ XArc;
typedef int /*<<< orphan*/ GC;
typedef int /*<<< orphan*/ Drawable;
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
int /*<<< orphan*/ XDrawArcs(int /*<<< orphan*/ *, int /*<<< orphan*/,
                             int /*<<< orphan*/, TYPE_1__ *, int);
void XmuDrawRoundedRectangle(Display *dpy, Drawable draw, GC gc, int x, int y,
                             int w, int h, int ew, int eh) {
  XArc arcs[8];
  int ew2, eh2;
  if ((ew2 = (ew << 1)) > w)
    ew2 = ew = 0;
  if ((eh2 = (eh << 1)) > h)
    eh2 = eh = 0;
  arcs[0].x = x;
  arcs[0].y = y;
  arcs[0].width = ew2;
  arcs[0].height = eh2;
  arcs[0].angle1 = 180 * 64;
  arcs[0].angle2 = -90 * 64;
  arcs[1].x = x + ew;
  arcs[1].y = y;
  arcs[1].width = w - ew2;
  arcs[1].height = 0;
  arcs[1].angle1 = 180 * 64;
  arcs[1].angle2 = -180 * 64;
  arcs[2].x = x + w - ew2;
  arcs[2].y = y;
  arcs[2].width = ew2;
  arcs[2].height = eh2;
  arcs[2].angle1 = 90 * 64;
  arcs[2].angle2 = -90 * 64;
  arcs[3].x = x + w;
  arcs[3].y = y + eh;
  arcs[3].width = 0;
  arcs[3].height = h - eh2;
  arcs[3].angle1 = 90 * 64;
  arcs[3].angle2 = -180 * 64;
  arcs[4].x = x + w - ew2;
  arcs[4].y = y + h - eh2;
  arcs[4].width = ew2;
  arcs[4].height = eh2;
  arcs[4].angle1 = 0;
  arcs[4].angle2 = -90 * 64;
  arcs[5].x = x + ew;
  arcs[5].y = y + h;
  arcs[5].width = w - ew2;
  arcs[5].height = 0;
  arcs[5].angle1 = 0;
  arcs[5].angle2 = -180 * 64;
  arcs[6].x = x;
  arcs[6].y = y + h - eh2;
  arcs[6].width = ew2;
  arcs[6].height = eh2;
  arcs[6].angle1 = 270 * 64;
  arcs[6].angle2 = -90 * 64;
  arcs[7].x = x;
  arcs[7].y = y + eh;
  arcs[7].width = 0;
  arcs[7].height = h - eh2;
  arcs[7].angle1 = 270 * 64;
  arcs[7].angle2 = -180 * 64;
  XDrawArcs(dpy, draw, gc, arcs, 8);
}


x86 assembly (clang, -O0):
<XmuDrawRoundedRectangle>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    %r9d,-0x1c(%rbp)
mov    0x18(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0xe4(%rbp)
cmp    -0x1c(%rbp),%eax
jle    115f <XmuDrawRoundedRectangle+0x4f>
movl   $0x0,0x18(%rbp)
movl   $0x0,-0xe4(%rbp)
mov    0x20(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0xe8(%rbp)
cmp    0x10(%rbp),%eax
jle    1185 <XmuDrawRoundedRectangle+0x75>
movl   $0x0,0x20(%rbp)
movl   $0x0,-0xe8(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0xe0(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0xdc(%rbp)
mov    -0xe4(%rbp),%eax
mov    %eax,-0xd8(%rbp)
mov    -0xe8(%rbp),%eax
mov    %eax,-0xd4(%rbp)
movl   $0x2d00,-0xd0(%rbp)
movl   $0xffffe980,-0xcc(%rbp)
e9 ff ff
mov    -0x14(%rbp),%eax
add    0x18(%rbp),%eax
mov    %eax,-0xc8(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0xc4(%rbp)
mov    -0x1c(%rbp),%eax
sub    -0xe4(%rbp),%eax
mov    %eax,-0xc0(%rbp)
movl   $0x0,-0xbc(%rbp)
movl   $0x2d00,-0xb8(%rbp)
movl   $0xffffd300,-0xb4(%rbp)
d3 ff ff
mov    -0x14(%rbp),%eax
add    -0x1c(%rbp),%eax
sub    -0xe4(%rbp),%eax
mov    %eax,-0xb0(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0xac(%rbp)
mov    -0xe4(%rbp),%eax
mov    %eax,-0xa8(%rbp)
mov    -0xe8(%rbp),%eax
mov    %eax,-0xa4(%rbp)
movl   $0x1680,-0xa0(%rbp)
movl   $0xffffe980,-0x9c(%rbp)
e9 ff ff
mov    -0x14(%rbp),%eax
add    -0x1c(%rbp),%eax
mov    %eax,-0x98(%rbp)
mov    -0x18(%rbp),%eax
add    0x20(%rbp),%eax
mov    %eax,-0x94(%rbp)
movl   $0x0,-0x90(%rbp)
mov    0x10(%rbp),%eax
sub    -0xe8(%rbp),%eax
mov    %eax,-0x8c(%rbp)
movl   $0x1680,-0x88(%rbp)
movl   $0xffffd300,-0x84(%rbp)
d3 ff ff
mov    -0x14(%rbp),%eax
add    -0x1c(%rbp),%eax
sub    -0xe4(%rbp),%eax
mov    %eax,-0x80(%rbp)
mov    -0x18(%rbp),%eax
add    0x10(%rbp),%eax
sub    -0xe8(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0xe4(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0xe8(%rbp),%eax
mov    %eax,-0x74(%rbp)
movl   $0x0,-0x70(%rbp)
movl   $0xffffe980,-0x6c(%rbp)
mov    -0x14(%rbp),%eax
add    0x18(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x18(%rbp),%eax
add    0x10(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x1c(%rbp),%eax
sub    -0xe4(%rbp),%eax
mov    %eax,-0x60(%rbp)
movl   $0x0,-0x5c(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0xffffd300,-0x54(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x18(%rbp),%eax
add    0x10(%rbp),%eax
sub    -0xe8(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0xe4(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0xe8(%rbp),%eax
mov    %eax,-0x44(%rbp)
movl   $0x4380,-0x40(%rbp)
movl   $0xffffe980,-0x3c(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x18(%rbp),%eax
add    0x20(%rbp),%eax
mov    %eax,-0x34(%rbp)
movl   $0x0,-0x30(%rbp)
mov    0x10(%rbp),%eax
sub    -0xe8(%rbp),%eax
mov    %eax,-0x2c(%rbp)
movl   $0x4380,-0x28(%rbp)
movl   $0xffffd300,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    -0xe0(%rbp),%rcx
mov    $0x8,%r8d
call   1030 <XDrawArcs@plt>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<XmuDrawRoundedRectangle>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xc0,%rsp
mov    0xf0(%rsp),%r11d
mov    0x100(%rsp),%r10d
mov    0xf8(%rsp),%r15d
lea    (%r15,%r15,1),%r12d
xor    %r14d,%r14d
cmp    %r9d,%r12d
cmovg  %r14d,%r15d
cmovg  %r14d,%r12d
lea    (%r10,%r10,1),%ebp
cmp    %r11d,%ebp
cmovg  %r14d,%r10d
cmovg  %r14d,%ebp
mov    %ecx,(%rsp)
mov    %r8d,0x4(%rsp)
mov    %r12d,0x8(%rsp)
mov    %ebp,0xc(%rsp)
movabs $0xffffe98000002d00,%rbx
e9 ff ff
mov    %rbx,0x10(%rsp)
add    %ecx,%r15d
mov    %r15d,0x18(%rsp)
mov    %r8d,0x1c(%rsp)
mov    %r9d,%r14d
sub    %r12d,%r14d
mov    %r14d,0x20(%rsp)
movabs $0x2d0000000000,%rbx
mov    %rbx,0x24(%rsp)
movl   $0xffffd300,0x2c(%rsp)
ff
add    %ecx,%r9d
mov    %r9d,%ebx
sub    %r12d,%ebx
mov    %ebx,0x30(%rsp)
mov    %r8d,0x34(%rsp)
mov    %r12d,0x38(%rsp)
mov    %ebp,0x3c(%rsp)
movabs $0xffffe98000001680,%rax
e9 ff ff
mov    %rax,0x40(%rsp)
mov    %r9d,0x48(%rsp)
add    %r8d,%r10d
mov    %r10d,0x4c(%rsp)
movl   $0x0,0x50(%rsp)
mov    %r11d,%r9d
sub    %ebp,%r9d
mov    %r9d,0x54(%rsp)
movabs $0xffffd30000001680,%rax
d3 ff ff
mov    %rax,0x58(%rsp)
mov    %ebx,0x60(%rsp)
add    %r8d,%r11d
mov    %r11d,%eax
sub    %ebp,%eax
mov    %eax,0x64(%rsp)
mov    %r12d,0x68(%rsp)
mov    %ebp,0x6c(%rsp)
movabs $0xffffe98000000000,%rbx
e9 ff ff
mov    %rbx,0x70(%rsp)
mov    %r15d,0x78(%rsp)
mov    %r11d,0x7c(%rsp)
mov    %r14d,0x80(%rsp)
movq   $0x0,0x84(%rsp)
movl   $0xffffd300,0x8c(%rsp)
mov    %ecx,0x90(%rsp)
mov    %eax,0x94(%rsp)
mov    %r12d,0x98(%rsp)
mov    %ebp,0x9c(%rsp)
movabs $0xffffe98000004380,%rax
e9 ff ff
mov    %rax,0xa0(%rsp)
mov    %ecx,0xa8(%rsp)
mov    %r10d,0xac(%rsp)
movl   $0x0,0xb0(%rsp)
mov    %r9d,0xb4(%rsp)
movabs $0xffffd30000004380,%rax
d3 ff ff
mov    %rax,0xb8(%rsp)
mov    %rsp,%rcx
mov    $0x8,%r8d
call   1030 <XDrawArcs@plt>
add    $0xc0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i32, i32, i32, i32, i32 }
define void @XmuDrawRoundedRectangle(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 [8 x %struct.TYPE_3__]
%20 = alloca i32
%21 = alloca i32
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
%22 = load i32, i32* %17
%23 = shl i32 %22, 1
store i32 %23, i32* %20
%24 = load i32, i32* %15
%25 = icmp sgt i32 %23, %24
br i1 %25, label %26, label %27
26: ; preds = %9
store i32 0, i32* %17
store i32 0, i32* %20
br label %27
27: ; preds = %26, %9
%28 = load i32, i32* %18
%29 = shl i32 %28, 1
store i32 %29, i32* %21
%30 = load i32, i32* %16
%31 = icmp sgt i32 %29, %30
br i1 %31, label %32, label %33
32: ; preds = %27
store i32 0, i32* %18
store i32 0, i32* %21
br label %33
33: ; preds = %32, %27
%34 = load i32, i32* %13
%35 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 0
%36 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %35, i32 0, i32 0
store i32 %34, i32* %36
%37 = load i32, i32* %14
%38 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 0
%39 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %38, i32 0, i32 1
store i32 %37, i32* %39
%40 = load i32, i32* %20
%41 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 0
%42 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %41, i32 0, i32 2
store i32 %40, i32* %42
%43 = load i32, i32* %21
%44 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 0
%45 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %44, i32 0, i32 3
store i32 %43, i32* %45
%46 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 0
%47 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %46, i32 0, i32 4
store i32 11520, i32* %47
%48 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 0
%49 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %48, i32 0, i32 5
store i32 -5760, i32* %49
%50 = load i32, i32* %13
%51 = load i32, i32* %17
%52 = add nsw i32 %50, %51
%53 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 1
%54 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %53, i32 0, i32 0
store i32 %52, i32* %54
%55 = load i32, i32* %14
%56 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 1
%57 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %56, i32 0, i32 1
store i32 %55, i32* %57
%58 = load i32, i32* %15
%59 = load i32, i32* %20
%60 = sub nsw i32 %58, %59
%61 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 1
%62 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %61, i32 0, i32 2
store i32 %60, i32* %62
%63 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 1
%64 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %63, i32 0, i32 3
store i32 0, i32* %64
%65 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 1
%66 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %65, i32 0, i32 4
store i32 11520, i32* %66
%67 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 1
%68 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %67, i32 0, i32 5
store i32 -11520, i32* %68
%69 = load i32, i32* %13
%70 = load i32, i32* %15
%71 = add nsw i32 %69, %70
%72 = load i32, i32* %20
%73 = sub nsw i32 %71, %72
%74 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 2
%75 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %74, i32 0, i32 0
store i32 %73, i32* %75
%76 = load i32, i32* %14
%77 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 2
%78 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %77, i32 0, i32 1
store i32 %76, i32* %78
%79 = load i32, i32* %20
%80 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 2
%81 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %80, i32 0, i32 2
store i32 %79, i32* %81
%82 = load i32, i32* %21
%83 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 2
%84 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %83, i32 0, i32 3
store i32 %82, i32* %84
%85 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 2
%86 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %85, i32 0, i32 4
store i32 5760, i32* %86
%87 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 2
%88 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %87, i32 0, i32 5
store i32 -5760, i32* %88
%89 = load i32, i32* %13
%90 = load i32, i32* %15
%91 = add nsw i32 %89, %90
%92 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 3
%93 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %92, i32 0, i32 0
store i32 %91, i32* %93
%94 = load i32, i32* %14
%95 = load i32, i32* %18
%96 = add nsw i32 %94, %95
%97 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 3
%98 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %97, i32 0, i32 1
store i32 %96, i32* %98
%99 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 3
%100 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %99, i32 0, i32 2
store i32 0, i32* %100
%101 = load i32, i32* %16
%102 = load i32, i32* %21
%103 = sub nsw i32 %101, %102
%104 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 3
%105 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %104, i32 0, i32 3
store i32 %103, i32* %105
%106 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 3
%107 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %106, i32 0, i32 4
store i32 5760, i32* %107
%108 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 3
%109 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %108, i32 0, i32 5
store i32 -11520, i32* %109
%110 = load i32, i32* %13
%111 = load i32, i32* %15
%112 = add nsw i32 %110, %111
%113 = load i32, i32* %20
%114 = sub nsw i32 %112, %113
%115 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 4
%116 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %115, i32 0, i32 0
store i32 %114, i32* %116
%117 = load i32, i32* %14
%118 = load i32, i32* %16
%119 = add nsw i32 %117, %118
%120 = load i32, i32* %21
%121 = sub nsw i32 %119, %120
%122 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 4
%123 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %122, i32 0, i32 1
store i32 %121, i32* %123
%124 = load i32, i32* %20
%125 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 4
%126 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %125, i32 0, i32 2
store i32 %124, i32* %126
%127 = load i32, i32* %21
%128 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 4
%129 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %128, i32 0, i32 3
store i32 %127, i32* %129
%130 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 4
%131 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %130, i32 0, i32 4
store i32 0, i32* %131
%132 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 4
%133 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %132, i32 0, i32 5
store i32 -5760, i32* %133
%134 = load i32, i32* %13
%135 = load i32, i32* %17
%136 = add nsw i32 %134, %135
%137 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 5
%138 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %137, i32 0, i32 0
store i32 %136, i32* %138
%139 = load i32, i32* %14
%140 = load i32, i32* %16
%141 = add nsw i32 %139, %140
%142 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 5
%143 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %142, i32 0, i32 1
store i32 %141, i32* %143
%144 = load i32, i32* %15
%145 = load i32, i32* %20
%146 = sub nsw i32 %144, %145
%147 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 5
%148 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %147, i32 0, i32 2
store i32 %146, i32* %148
%149 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 5
%150 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %149, i32 0, i32 3
store i32 0, i32* %150
%151 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 5
%152 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %151, i32 0, i32 4
store i32 0, i32* %152
%153 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 5
%154 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %153, i32 0, i32 5
store i32 -11520, i32* %154
%155 = load i32, i32* %13
%156 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 6
%157 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %156, i32 0, i32 0
store i32 %155, i32* %157
%158 = load i32, i32* %14
%159 = load i32, i32* %16
%160 = add nsw i32 %158, %159
%161 = load i32, i32* %21
%162 = sub nsw i32 %160, %161
%163 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 6
%164 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %163, i32 0, i32 1
store i32 %162, i32* %164
%165 = load i32, i32* %20
%166 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 6
%167 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %166, i32 0, i32 2
store i32 %165, i32* %167
%168 = load i32, i32* %21
%169 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 6
%170 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %169, i32 0, i32 3
store i32 %168, i32* %170
%171 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 6
%172 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %171, i32 0, i32 4
store i32 17280, i32* %172
%173 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 6
%174 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %173, i32 0, i32 5
store i32 -5760, i32* %174
%175 = load i32, i32* %13
%176 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 7
%177 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %176, i32 0, i32 0
store i32 %175, i32* %177
%178 = load i32, i32* %14
%179 = load i32, i32* %18
%180 = add nsw i32 %178, %179
%181 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 7
%182 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %181, i32 0, i32 1
store i32 %180, i32* %182
%183 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 7
%184 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %183, i32 0, i32 2
store i32 0, i32* %184
%185 = load i32, i32* %16
%186 = load i32, i32* %21
%187 = sub nsw i32 %185, %186
%188 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 7
%189 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %188, i32 0, i32 3
store i32 %187, i32* %189
%190 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 7
%191 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %190, i32 0, i32 4
store i32 17280, i32* %191
%192 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 7
%193 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %192, i32 0, i32 5
store i32 -11520, i32* %193
%194 = load i32*, i32** %10
%195 = load i32, i32* %11
%196 = load i32, i32* %12
%197 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %19, i64 0, i64 0
%198 = call i32 @XDrawArcs(i32* %194, i32 %195, i32 %196, %struct.TYPE_3__* %197, i32 8)
ret void
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i32, i32, i32, i32, i32 }
define void @XmuDrawRoundedRectangle(i32* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8) {
%10 = alloca [8 x %struct.TYPE_3__]
%11 = bitcast [8 x %struct.TYPE_3__]* %10 to i8*
%12 = shl i32 %7, 1
%13 = icmp sgt i32 %12, %5
%14 = select i1 %13, i32 0, i32 %7
%15 = select i1 %13, i32 0, i32 %12
%16 = shl i32 %8, 1
%17 = icmp sgt i32 %16, %6
%18 = select i1 %17, i32 0, i32 %8
%19 = select i1 %17, i32 0, i32 %16
%20 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 0
%21 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 0, i32 0
store i32 %3, i32* %21
%22 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 0, i32 1
store i32 %4, i32* %22
%23 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 0, i32 2
store i32 %15, i32* %23
%24 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 0, i32 3
store i32 %19, i32* %24
%25 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 0, i32 4
store i32 11520, i32* %25
%26 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 0, i32 5
store i32 -5760, i32* %26
%27 = add nsw i32 %14, %3
%28 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 1, i32 0
store i32 %27, i32* %28
%29 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 1, i32 1
store i32 %4, i32* %29
%30 = sub nsw i32 %5, %15
%31 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 1, i32 2
store i32 %30, i32* %31
%32 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 1, i32 3
store i32 0, i32* %32
%33 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 1, i32 4
store i32 11520, i32* %33
%34 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 1, i32 5
store i32 -11520, i32* %34
%35 = add nsw i32 %5, %3
%36 = sub nsw i32 %35, %15
%37 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 2, i32 0
store i32 %36, i32* %37
%38 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 2, i32 1
store i32 %4, i32* %38
%39 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 2, i32 2
store i32 %15, i32* %39
%40 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 2, i32 3
store i32 %19, i32* %40
%41 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 2, i32 4
store i32 5760, i32* %41
%42 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 2, i32 5
store i32 -5760, i32* %42
%43 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 3, i32 0
store i32 %35, i32* %43
%44 = add nsw i32 %18, %4
%45 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 3, i32 1
store i32 %44, i32* %45
%46 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 3, i32 2
store i32 0, i32* %46
%47 = sub nsw i32 %6, %19
%48 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 3, i32 3
store i32 %47, i32* %48
%49 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 3, i32 4
store i32 5760, i32* %49
%50 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 3, i32 5
store i32 -11520, i32* %50
%51 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 4, i32 0
store i32 %36, i32* %51
%52 = add nsw i32 %6, %4
%53 = sub nsw i32 %52, %19
%54 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 4, i32 1
store i32 %53, i32* %54
%55 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 4, i32 2
store i32 %15, i32* %55
%56 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 4, i32 3
store i32 %19, i32* %56
%57 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 4, i32 4
store i32 0, i32* %57
%58 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 4, i32 5
store i32 -5760, i32* %58
%59 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 5, i32 0
store i32 %27, i32* %59
%60 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 5, i32 1
store i32 %52, i32* %60
%61 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 5, i32 2
store i32 %30, i32* %61
%62 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 5, i32 3
store i32 0, i32* %62
%63 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 5, i32 4
store i32 0, i32* %63
%64 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 5, i32 5
store i32 -11520, i32* %64
%65 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 6, i32 0
store i32 %3, i32* %65
%66 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 6, i32 1
store i32 %53, i32* %66
%67 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 6, i32 2
store i32 %15, i32* %67
%68 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 6, i32 3
store i32 %19, i32* %68
%69 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 6, i32 4
store i32 17280, i32* %69
%70 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 6, i32 5
store i32 -5760, i32* %70
%71 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 7, i32 0
store i32 %3, i32* %71
%72 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 7, i32 1
store i32 %44, i32* %72
%73 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 7, i32 2
store i32 0, i32* %73
%74 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 7, i32 3
store i32 %47, i32* %74
%75 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 7, i32 4
store i32 17280, i32* %75
%76 = getelementptr inbounds [8 x %struct.TYPE_3__], [8 x %struct.TYPE_3__]* %10, i64 0, i64 7, i32 5
store i32 -11520, i32* %76
%77 = call i32 @XDrawArcs(i32* %0, i32 %1, i32 %2, %struct.TYPE_3__* %20, i32 8)
ret void
}