#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*/ DashArrowArc(double *);
void DashArrowArcn(double *args) {
  double newargs[8], a;
  int i;
  for (i = 0; i < 8; i++)
    newargs[i] = args[i];
  newargs[6] = 1 - newargs[6];
  a = newargs[3];
  newargs[3] = newargs[4];
  newargs[4] = a;
  DashArrowArc(newargs);
}


x86 assembly (clang, -O0):
<DashArrowArcn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x5c(%rbp)
cmpl   $0x8,-0x5c(%rbp)
jge    1152 <DashArrowArcn+0x42>
mov    -0x8(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x5c(%rbp),%rax
movsd  %xmm0,-0x50(%rbp,%rax,8)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1123 <DashArrowArcn+0x13>
movsd  0xea6(%rip),%xmm0
subsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
lea    -0x50(%rbp),%rdi
call   1030 <DashArrowArc@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DashArrowArcn>:
sub    $0x48,%rsp
movups (%rdi),%xmm0
movups 0x10(%rdi),%xmm1
movups 0x20(%rdi),%xmm2
movups 0x30(%rdi),%xmm3
movaps %xmm3,0x30(%rsp)
movaps %xmm2,0x20(%rsp)
movaps %xmm1,0x10(%rsp)
movaps %xmm0,(%rsp)
movsd  0xec2(%rip),%xmm0
subsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movups 0x18(%rsp),%xmm0
shufps $0x4e,%xmm0,%xmm0
movups %xmm0,0x18(%rsp)
mov    %rsp,%rdi
call   1030 <DashArrowArc@plt>
add    $0x48,%rsp
ret

LLVM IR (-O0):
define void @DashArrowArcn(double* %0) {
%2 = alloca double*
%3 = alloca [8 x double]
%4 = alloca double
%5 = alloca i32
store double* %0, double** %2
store i32 0, i32* %5
br label %6
6: ; preds = %18, %1
%7 = load i32, i32* %5
%8 = icmp slt i32 %7, 8
br i1 %8, label %9, label %21
9: ; preds = %6
%10 = load double*, double** %2
%11 = load i32, i32* %5
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds double, double* %10, i64 %12
%14 = load double, double* %13
%15 = load i32, i32* %5
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 %16
store double %14, double* %17
br label %18
18: ; preds = %9
%19 = load i32, i32* %5
%20 = add nsw i32 %19, 1
store i32 %20, i32* %5
br label %6
21: ; preds = %6
%22 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 6
%23 = load double, double* %22
%24 = fsub double 1.000000e+00, %23
%25 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 6
store double %24, double* %25
%26 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 3
%27 = load double, double* %26
store double %27, double* %4
%28 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 4
%29 = load double, double* %28
%30 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 3
store double %29, double* %30
%31 = load double, double* %4
%32 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 4
store double %31, double* %32
%33 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 0
%34 = call i32 @DashArrowArc(double* %33)
ret void
}

LLVM IR (-O2):
define void @DashArrowArcn(double* nocapture %0) {
%2 = bitcast double* %0 to i8*
%3 = alloca [8 x double]
%4 = bitcast [8 x double]* %3 to i8*
%5 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 6
%6 = load double, double* %5
%7 = fsub double 1.000000e+00, %6
store double %7, double* %5
%8 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 3
%9 = bitcast double* %8 to <2 x double>*
%10 = load <2 x double>, <2 x double>* %9
%11 = shufflevector <2 x double> %10, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%12 = bitcast double* %8 to <2 x double>*
store <2 x double> %11, <2 x double>* %12
%13 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 0
%14 = call i32 @DashArrowArc(double* %13)
ret void
}