#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 */
typedef int /*<<< orphan*/ Window;
typedef int /*<<< orphan*/ GC;
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
int /*<<< orphan*/ XDrawArc(int /*<<< orphan*/ *, int /*<<< orphan*/,
                            int /*<<< orphan*/, int, int, int, int, int, int);
int /*<<< orphan*/ XDrawLine(int /*<<< orphan*/ *, int /*<<< orphan*/,
                             int /*<<< orphan*/, int, int, int, int);
double atan2(double, double);
int cos(double);
int sin(double);
double sqrt(double);
void DrawSector(Display *display, Window window, GC gc, int xcen, int ycen,
                int x1, int y1, int x2, int y2) {
  static double rtod = 3.66692988883e+03;
  double r1, phi1, r2, phi2, dx1, dy1, dx2, dy2;
  int ir1, ir2, ip1, ip2, xc, yc;
  dx1 = (double)(x1 - xcen);
  dy1 = (double)(ycen - y1);
  dx2 = (double)(x2 - xcen);
  dy2 = (double)(ycen - y2);
  phi1 = atan2(dy1, dx1);
  phi2 = atan2(dy2, dx2);
  ip1 = (int)rtod * phi1;
  ip2 = (int)rtod * (phi2 - phi1);
  if (ip2 < 0)
    ip2 += 23040;
  r1 = sqrt(dx1 * dx1 + dy1 * dy1);
  r2 = sqrt(dx2 * dx2 + dy2 * dy2);
  ir1 = (int)r1;
  ir2 = (int)r2;
  XDrawArc(display, window, gc, (xcen - ir1), (ycen - ir1), (2 * ir1),
           (2 * ir1), ip1, ip2);
  XDrawArc(display, window, gc, (xcen - ir2), (ycen - ir2), (2 * ir2),
           (2 * ir2), ip1, ip2);
  xc = xcen + (int)r1 * cos(phi2);
  yc = ycen - (int)r1 * sin(phi2);
  XDrawLine(display, window, gc, xc, yc, x2, y2);
  xc = xcen + (int)r2 * cos(phi1);
  yc = ycen - (int)r2 * sin(phi1);
  XDrawLine(display, window, gc, xc, yc, x1, y1);
}


x86 assembly (clang, -O0):
<DrawSector>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%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    -0x1c(%rbp),%eax
sub    -0x14(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%eax
sub    0x10(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x18(%rbp),%eax
sub    -0x14(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x18(%rbp),%eax
sub    0x20(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
call   1040 <atan2@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
call   1040 <atan2@plt>
movsd  %xmm0,-0x40(%rbp)
cvttsd2si 0x2e5b(%rip),%eax
cvtsi2sd %eax,%xmm0
mulsd  -0x30(%rbp),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x6c(%rbp)
cvttsd2si 0x2e43(%rip),%eax
cvtsi2sd %eax,%xmm0
movsd  -0x40(%rbp),%xmm1
subsd  -0x30(%rbp),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x70(%rbp)
cmpl   $0x0,-0x70(%rbp)
jge    123b <DrawSector+0xdb>
mov    -0x70(%rbp),%eax
add    $0x5a00,%eax
mov    %eax,-0x70(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1070 <sqrt@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1070 <sqrt@plt>
movsd  %xmm0,-0x38(%rbp)
cvttsd2si -0x28(%rbp),%eax
mov    %eax,-0x64(%rbp)
cvttsd2si -0x38(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
sub    -0x64(%rbp),%ecx
mov    -0x18(%rbp),%r8d
sub    -0x64(%rbp),%r8d
mov    -0x64(%rbp),%r9d
shl    $0x1,%r9d
mov    -0x64(%rbp),%r11d
shl    $0x1,%r11d
mov    -0x6c(%rbp),%r10d
mov    -0x70(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1030 <XDrawArc@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
sub    -0x68(%rbp),%ecx
mov    -0x18(%rbp),%r8d
sub    -0x68(%rbp),%r8d
mov    -0x68(%rbp),%r9d
shl    $0x1,%r9d
mov    -0x68(%rbp),%r11d
shl    $0x1,%r11d
mov    -0x6c(%rbp),%r10d
mov    -0x70(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1030 <XDrawArc@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x94(%rbp)
cvttsd2si -0x28(%rbp),%eax
mov    %eax,-0x98(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1060 <cos@plt>
mov    -0x98(%rbp),%ecx
mov    %eax,%edx
mov    -0x94(%rbp),%eax
imul   %edx,%ecx
add    %ecx,%eax
mov    %eax,-0x74(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x8c(%rbp)
cvttsd2si -0x28(%rbp),%eax
mov    %eax,-0x90(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1050 <sin@plt>
mov    -0x90(%rbp),%ecx
mov    %eax,%edx
mov    -0x8c(%rbp),%eax
imul   %edx,%ecx
sub    %ecx,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x74(%rbp),%ecx
mov    -0x78(%rbp),%r8d
mov    0x18(%rbp),%r9d
mov    0x20(%rbp),%eax
mov    %eax,(%rsp)
call   1080 <XDrawLine@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x84(%rbp)
cvttsd2si -0x38(%rbp),%eax
mov    %eax,-0x88(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1060 <cos@plt>
mov    -0x88(%rbp),%ecx
mov    %eax,%edx
mov    -0x84(%rbp),%eax
imul   %edx,%ecx
add    %ecx,%eax
mov    %eax,-0x74(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x7c(%rbp)
cvttsd2si -0x38(%rbp),%eax
mov    %eax,-0x80(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1050 <sin@plt>
mov    -0x80(%rbp),%ecx
mov    %eax,%edx
mov    -0x7c(%rbp),%eax
imul   %edx,%ecx
sub    %ecx,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x74(%rbp),%ecx
mov    -0x78(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
mov    0x10(%rbp),%eax
mov    %eax,(%rsp)
call   1080 <XDrawLine@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DrawSector>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r8d,%r12d
mov    %ecx,%r15d
mov    %edx,0x14(%rsp)
mov    %esi,%r14d
mov    %rdi,0x40(%rsp)
mov    %r9d,0x34(%rsp)
mov    %r9d,%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm1
movsd  %xmm1,0x48(%rsp)
mov    %r8d,%eax
sub    0x90(%rsp),%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    0x98(%rsp),%eax
mov    %eax,0x30(%rsp)
sub    %ecx,%eax
cvtsi2sd %eax,%xmm2
movsd  %xmm2,(%rsp)
mov    0xa0(%rsp),%ecx
mov    %r8d,%eax
mov    %rcx,0x50(%rsp)
sub    %ecx,%eax
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
movsd  %xmm2,0x18(%rsp)
call   1040 <atan2@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0x18(%rsp),%xmm0
movsd  (%rsp),%xmm1
call   1040 <atan2@plt>
movapd %xmm0,%xmm1
movsd  0xdfd(%rip),%xmm0
movsd  0x20(%rsp),%xmm3
movapd %xmm3,%xmm2
mulsd  %xmm0,%xmm2
movsd  %xmm1,0x38(%rsp)
subsd  %xmm3,%xmm1
mulsd  %xmm0,%xmm1
cvttsd2si %xmm1,%eax
movsd  0x48(%rsp),%xmm0
lea    0x5a00(%rax),%ebx
test   %eax,%eax
cmovns %eax,%ebx
movsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
xorpd  %xmm4,%xmm4
ucomisd %xmm4,%xmm0
jb     1259 <DrawSector+0xf9>
xorps  %xmm3,%xmm3
sqrtsd %xmm0,%xmm3
jmp    1272 <DrawSector+0x112>
movsd  %xmm2,0x8(%rsp)
call   1070 <sqrt@plt>
xorpd  %xmm4,%xmm4
movsd  0x8(%rsp),%xmm2
movapd %xmm0,%xmm3
cvttsd2si %xmm2,%eax
mov    %rax,0x8(%rsp)
movsd  0x18(%rsp),%xmm1
mulsd  %xmm1,%xmm1
movsd  (%rsp),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
ucomisd %xmm4,%xmm0
jb     129e <DrawSector+0x13e>
sqrtsd %xmm0,%xmm0
jmp    12ad <DrawSector+0x14d>
movsd  %xmm3,(%rsp)
call   1070 <sqrt@plt>
movsd  (%rsp),%xmm3
cvttsd2si %xmm3,%r13d
cvttsd2si %xmm0,%eax
mov    %rax,(%rsp)
mov    %r15d,%ecx
sub    %r13d,%ecx
mov    %r12d,%r8d
sub    %r13d,%r8d
lea    0x0(%r13,%r13,1),%r9d
sub    $0x8,%rsp
mov    0x48(%rsp),%rdi
mov    %r14d,%esi
mov    %r14d,0x34(%rsp)
mov    0x1c(%rsp),%ebp
mov    %ebp,%edx
push   %rbx
mov    0x18(%rsp),%rax
mov    %rbx,0x28(%rsp)
push   %rax
push   %r9
call   1030 <XDrawArc@plt>
add    $0x20,%rsp
mov    %r15d,%ecx
mov    (%rsp),%rbx
sub    %ebx,%ecx
mov    %r12d,%r8d
mov    %r12d,0x28(%rsp)
sub    %ebx,%r8d
lea    (%rbx,%rbx,1),%r9d
sub    $0x8,%rsp
mov    0x48(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %ebp,%edx
push   0x20(%rsp)
push   0x18(%rsp)
push   %r9
call   1030 <XDrawArc@plt>
add    $0x20,%rsp
movsd  0x38(%rsp),%xmm0
call   1060 <cos@plt>
imul   %r13d,%eax
mov    %r15,%rbp
lea    (%rax,%r15,1),%r14d
movsd  0x38(%rsp),%xmm0
call   1050 <sin@plt>
imul   %r13d,%eax
mov    %r12d,%r8d
sub    %eax,%r8d
sub    $0x8,%rsp
mov    %rbx,%r15
mov    %rbx,%rdi
mov    0x34(%rsp),%r13d
mov    %r13d,%esi
mov    0x1c(%rsp),%r12d
mov    %r12d,%edx
mov    %r14d,%ecx
mov    0x38(%rsp),%r9d
push   0x58(%rsp)
call   1080 <XDrawLine@plt>
add    $0x10,%rsp
movsd  0x20(%rsp),%xmm0
call   1060 <cos@plt>
mov    (%rsp),%rbx
imul   %ebx,%eax
add    %eax,%ebp
mov    %rbp,%r14
movsd  0x20(%rsp),%xmm0
call   1050 <sin@plt>
imul   %ebx,%eax
mov    0x28(%rsp),%r8d
sub    %eax,%r8d
mov    %r15,%rdi
mov    %r13d,%esi
mov    %r12d,%edx
mov    %r14d,%ecx
mov    0x34(%rsp),%r9d
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1080 <XDrawLine@plt>

LLVM IR (-O0):
@DrawSector.rtod = internal global double 0x40ACA5DC1A638388
define void @DrawSector(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 double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = 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
%33 = load i32, i32* %15
%34 = load i32, i32* %13
%35 = sub nsw i32 %33, %34
%36 = sitofp i32 %35 to double
store double %36, double* %23
%37 = load i32, i32* %14
%38 = load i32, i32* %16
%39 = sub nsw i32 %37, %38
%40 = sitofp i32 %39 to double
store double %40, double* %24
%41 = load i32, i32* %17
%42 = load i32, i32* %13
%43 = sub nsw i32 %41, %42
%44 = sitofp i32 %43 to double
store double %44, double* %25
%45 = load i32, i32* %14
%46 = load i32, i32* %18
%47 = sub nsw i32 %45, %46
%48 = sitofp i32 %47 to double
store double %48, double* %26
%49 = load double, double* %24
%50 = load double, double* %23
%51 = call double @atan2(double %49, double %50)
store double %51, double* %20
%52 = load double, double* %26
%53 = load double, double* %25
%54 = call double @atan2(double %52, double %53)
store double %54, double* %22
%55 = load double, double* @DrawSector.rtod
%56 = fptosi double %55 to i32
%57 = sitofp i32 %56 to double
%58 = load double, double* %20
%59 = fmul double %57, %58
%60 = fptosi double %59 to i32
store i32 %60, i32* %29
%61 = load double, double* @DrawSector.rtod
%62 = fptosi double %61 to i32
%63 = sitofp i32 %62 to double
%64 = load double, double* %22
%65 = load double, double* %20
%66 = fsub double %64, %65
%67 = fmul double %63, %66
%68 = fptosi double %67 to i32
store i32 %68, i32* %30
%69 = load i32, i32* %30
%70 = icmp slt i32 %69, 0
br i1 %70, label %71, label %74
71: ; preds = %9
%72 = load i32, i32* %30
%73 = add nsw i32 %72, 23040
store i32 %73, i32* %30
br label %74
74: ; preds = %71, %9
%75 = load double, double* %23
%76 = load double, double* %23
%77 = load double, double* %24
%78 = load double, double* %24
%79 = fmul double %77, %78
%80 = call double @llvm.fmuladd.f64(double %75, double %76, double %79)
%81 = call double @sqrt(double %80)
store double %81, double* %19
%82 = load double, double* %25
%83 = load double, double* %25
%84 = load double, double* %26
%85 = load double, double* %26
%86 = fmul double %84, %85
%87 = call double @llvm.fmuladd.f64(double %82, double %83, double %86)
%88 = call double @sqrt(double %87)
store double %88, double* %21
%89 = load double, double* %19
%90 = fptosi double %89 to i32
store i32 %90, i32* %27
%91 = load double, double* %21
%92 = fptosi double %91 to i32
store i32 %92, i32* %28
%93 = load i32*, i32** %10
%94 = load i32, i32* %11
%95 = load i32, i32* %12
%96 = load i32, i32* %13
%97 = load i32, i32* %27
%98 = sub nsw i32 %96, %97
%99 = load i32, i32* %14
%100 = load i32, i32* %27
%101 = sub nsw i32 %99, %100
%102 = load i32, i32* %27
%103 = mul nsw i32 2, %102
%104 = load i32, i32* %27
%105 = mul nsw i32 2, %104
%106 = load i32, i32* %29
%107 = load i32, i32* %30
%108 = call i32 @XDrawArc(i32* %93, i32 %94, i32 %95, i32 %98, i32 %101, i32 %103, i32 %105, i32 %106, i32 %107)
%109 = load i32*, i32** %10
%110 = load i32, i32* %11
%111 = load i32, i32* %12
%112 = load i32, i32* %13
%113 = load i32, i32* %28
%114 = sub nsw i32 %112, %113
%115 = load i32, i32* %14
%116 = load i32, i32* %28
%117 = sub nsw i32 %115, %116
%118 = load i32, i32* %28
%119 = mul nsw i32 2, %118
%120 = load i32, i32* %28
%121 = mul nsw i32 2, %120
%122 = load i32, i32* %29
%123 = load i32, i32* %30
%124 = call i32 @XDrawArc(i32* %109, i32 %110, i32 %111, i32 %114, i32 %117, i32 %119, i32 %121, i32 %122, i32 %123)
%125 = load i32, i32* %13
%126 = load double, double* %19
%127 = fptosi double %126 to i32
%128 = load double, double* %22
%129 = call i32 @cos(double %128)
%130 = mul nsw i32 %127, %129
%131 = add nsw i32 %125, %130
store i32 %131, i32* %31
%132 = load i32, i32* %14
%133 = load double, double* %19
%134 = fptosi double %133 to i32
%135 = load double, double* %22
%136 = call i32 @sin(double %135)
%137 = mul nsw i32 %134, %136
%138 = sub nsw i32 %132, %137
store i32 %138, i32* %32
%139 = load i32*, i32** %10
%140 = load i32, i32* %11
%141 = load i32, i32* %12
%142 = load i32, i32* %31
%143 = load i32, i32* %32
%144 = load i32, i32* %17
%145 = load i32, i32* %18
%146 = call i32 @XDrawLine(i32* %139, i32 %140, i32 %141, i32 %142, i32 %143, i32 %144, i32 %145)
%147 = load i32, i32* %13
%148 = load double, double* %21
%149 = fptosi double %148 to i32
%150 = load double, double* %20
%151 = call i32 @cos(double %150)
%152 = mul nsw i32 %149, %151
%153 = add nsw i32 %147, %152
store i32 %153, i32* %31
%154 = load i32, i32* %14
%155 = load double, double* %21
%156 = fptosi double %155 to i32
%157 = load double, double* %20
%158 = call i32 @sin(double %157)
%159 = mul nsw i32 %156, %158
%160 = sub nsw i32 %154, %159
store i32 %160, i32* %32
%161 = load i32*, i32** %10
%162 = load i32, i32* %11
%163 = load i32, i32* %12
%164 = load i32, i32* %31
%165 = load i32, i32* %32
%166 = load i32, i32* %15
%167 = load i32, i32* %16
%168 = call i32 @XDrawLine(i32* %161, i32 %162, i32 %163, i32 %164, i32 %165, i32 %166, i32 %167)
ret void
}

LLVM IR (-O2):
define void @DrawSector(i32* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8) {
%10 = sub nsw i32 %5, %3
%11 = sitofp i32 %10 to double
%12 = sub nsw i32 %4, %6
%13 = sitofp i32 %12 to double
%14 = sub nsw i32 %7, %3
%15 = sitofp i32 %14 to double
%16 = sub nsw i32 %4, %8
%17 = sitofp i32 %16 to double
%18 = tail call double @atan2(double %13, double %11)
%19 = tail call double @atan2(double %17, double %15)
%20 = fmul double %18, 3.666000e+03
%21 = fptosi double %20 to i32
%22 = fsub double %19, %18
%23 = fmul double %22, 3.666000e+03
%24 = fptosi double %23 to i32
%25 = icmp slt i32 %24, 0
%26 = add nsw i32 %24, 23040
%27 = select i1 %25, i32 %26, i32 %24
%28 = fmul double %13, %13
%29 = tail call double @llvm.fmuladd.f64(double %11, double %11, double %28)
%30 = tail call double @sqrt(double %29)
%31 = fmul double %17, %17
%32 = tail call double @llvm.fmuladd.f64(double %15, double %15, double %31)
%33 = tail call double @sqrt(double %32)
%34 = fptosi double %30 to i32
%35 = fptosi double %33 to i32
%36 = sub nsw i32 %3, %34
%37 = sub nsw i32 %4, %34
%38 = shl nsw i32 %34, 1
%39 = tail call i32 @XDrawArc(i32* %0, i32 %1, i32 %2, i32 %36, i32 %37, i32 %38, i32 %38, i32 %21, i32 %27)
%40 = sub nsw i32 %3, %35
%41 = sub nsw i32 %4, %35
%42 = shl nsw i32 %35, 1
%43 = tail call i32 @XDrawArc(i32* %0, i32 %1, i32 %2, i32 %40, i32 %41, i32 %42, i32 %42, i32 %21, i32 %27)
%44 = tail call i32 @cos(double %19)
%45 = mul nsw i32 %44, %34
%46 = add nsw i32 %45, %3
%47 = tail call i32 @sin(double %19)
%48 = mul nsw i32 %47, %34
%49 = sub nsw i32 %4, %48
%50 = tail call i32 @XDrawLine(i32* %0, i32 %1, i32 %2, i32 %46, i32 %49, i32 %7, i32 %8)
%51 = tail call i32 @cos(double %18)
%52 = mul nsw i32 %51, %35
%53 = add nsw i32 %52, %3
%54 = tail call i32 @sin(double %18)
%55 = mul nsw i32 %54, %35
%56 = sub nsw i32 %4, %55
%57 = tail call i32 @XDrawLine(i32* %0, i32 %1, i32 %2, i32 %53, i32 %56, i32 %5, i32 %6)
ret void
}