#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*/ npt_correct_pnt(float, float, float *, float *, float *,
                                   float *, float *, float *, float *, float *,
                                   float *, float *, float *);
int /*<<< orphan*/ npt_cvt_pos_to_eta_xi(float *, float *, float *, float *,
                                         float *, float *);
void npt_correct_pnt2(float pos[3], float p1[3], float p2[3], float p3[3],
                      float cp_side1_1[3], float cp_side1_2[3],
                      float cp_side2_1[3], float cp_side2_2[3],
                      float cp_side3_1[3], float cp_side3_2[3],
                      float cp_center[3], float pos_o[3]) {
  float eta, xi;
  npt_cvt_pos_to_eta_xi(pos, p1, p2, p3, &eta, &xi);
  npt_correct_pnt(eta, xi, p1, p2, p3, cp_side1_1, cp_side1_2, cp_side2_1,
                  cp_side2_2, cp_side3_1, cp_side3_2, cp_center, pos_o);
}


x86 assembly (clang, -O0):
<npt_correct_pnt2>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x60,%rsp
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x30(%rbp),%rcx
lea    -0x44(%rbp),%r8
lea    -0x48(%rbp),%r9
call   1040 <npt_cvt_pos_to_eta_xi@plt>
movss  -0x44(%rbp),%xmm0
movss  -0x48(%rbp),%xmm1
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x40(%rbp),%r8
mov    0x10(%rbp),%r9
mov    0x18(%rbp),%r14
mov    0x20(%rbp),%rbx
mov    0x28(%rbp),%r11
mov    0x30(%rbp),%r10
mov    0x38(%rbp),%rax
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
call   1030 <npt_correct_pnt@plt>
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<npt_correct_pnt2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbx
mov    0x98(%rsp),%rbp
lea    0x34(%rsp),%r8
lea    0x30(%rsp),%r9
call   1040 <npt_cvt_pos_to_eta_xi@plt>
movss  0x34(%rsp),%xmm0
movss  0x30(%rsp),%xmm1
mov    %rbp,0x20(%rsp)
movups 0x88(%rsp),%xmm2
movups %xmm2,0x10(%rsp)
movups 0x78(%rsp),%xmm2
movups %xmm2,(%rsp)
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
mov    0x70(%rsp),%r9
call   1030 <npt_correct_pnt@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @npt_correct_pnt2(float* %0, float* %1, float* %2, float* %3, float* %4, float* %5, float* %6, float* %7, float* %8, float* %9, float* %10, float* %11) {
%13 = alloca float*
%14 = alloca float*
%15 = alloca float*
%16 = alloca float*
%17 = alloca float*
%18 = alloca float*
%19 = alloca float*
%20 = alloca float*
%21 = alloca float*
%22 = alloca float*
%23 = alloca float*
%24 = alloca float*
%25 = alloca float
%26 = alloca float
store float* %0, float** %13
store float* %1, float** %14
store float* %2, float** %15
store float* %3, float** %16
store float* %4, float** %17
store float* %5, float** %18
store float* %6, float** %19
store float* %7, float** %20
store float* %8, float** %21
store float* %9, float** %22
store float* %10, float** %23
store float* %11, float** %24
%27 = load float*, float** %13
%28 = load float*, float** %14
%29 = load float*, float** %15
%30 = load float*, float** %16
%31 = call i32 @npt_cvt_pos_to_eta_xi(float* %27, float* %28, float* %29, float* %30, float* %25, float* %26)
%32 = load float, float* %25
%33 = load float, float* %26
%34 = load float*, float** %14
%35 = load float*, float** %15
%36 = load float*, float** %16
%37 = load float*, float** %17
%38 = load float*, float** %18
%39 = load float*, float** %19
%40 = load float*, float** %20
%41 = load float*, float** %21
%42 = load float*, float** %22
%43 = load float*, float** %23
%44 = load float*, float** %24
%45 = call i32 @npt_correct_pnt(float %32, float %33, float* %34, float* %35, float* %36, float* %37, float* %38, float* %39, float* %40, float* %41, float* %42, float* %43, float* %44)
ret void
}

LLVM IR (-O2):
define void @npt_correct_pnt2(float* %0, float* %1, float* %2, float* %3, float* %4, float* %5, float* %6, float* %7, float* %8, float* %9, float* %10, float* %11) {
%13 = alloca float
%14 = alloca float
%15 = bitcast float* %13 to i8*
%16 = bitcast float* %14 to i8*
%17 = call i32 @npt_cvt_pos_to_eta_xi(float* %0, float* %1, float* %2, float* %3, float* %13, float* %14)
%18 = load float, float* %13
%19 = load float, float* %14
%20 = call i32 @npt_correct_pnt(float %18, float %19, float* %1, float* %2, float* %3, float* %4, float* %5, float* %6, float* %7, float* %8, float* %9, float* %10, float* %11)
ret void
}