#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 mesh_2d_aft_opts(int *, double *, int *, int *, int *, int *, int *, int *,
                     int, int, int, double, int, int, int, int);
int mesh_2d_aft_cf_auto_(int *pnV, double *vertex, int *pnE, int *edge,
                         int *edgecolor, int *pnT, int *tria, int *triacolor,
                         int *pnnV, int *pnnE, int *pnnT, double *pcf) {
  if (*pnE)
    return mesh_2d_aft_opts(pnV, vertex, pnE, edge, edgecolor, pnT, tria,
                            triacolor, *pnnV, *pnnE, *pnnT, *pcf, -1, 0, 1, 1);
  else
    return mesh_2d_aft_opts(pnV, vertex, pnE, edge, edgecolor, pnT, tria,
                            triacolor, *pnnV, *pnnE, *pnnT, *pcf, -1, 1, 1, 1);
}


x86 assembly (clang, -O0):
<mesh_2d_aft_cf_auto_>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x88,%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,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r8,-0x48(%rbp)
mov    %r9,-0x50(%rbp)
mov    -0x38(%rbp),%rax
cmpl   $0x0,(%rax)
je     11e1 <mesh_2d_aft_cf_auto_+0xd1>
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
mov    -0x40(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x50(%rbp),%r9
mov    0x10(%rbp),%r14
mov    0x18(%rbp),%rbx
mov    0x20(%rbp),%rax
mov    (%rax),%r11d
mov    0x28(%rbp),%rax
mov    (%rax),%r10d
mov    0x30(%rbp),%rax
mov    (%rax),%eax
mov    0x38(%rbp),%r15
movsd  (%r15),%xmm0
xor    %r15d,%r15d
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
movl   $0xffffffff,0x28(%rsp)
ff
movl   $0x0,0x30(%rsp)
movl   $0x1,0x38(%rsp)
movl   $0x1,0x40(%rsp)
call   1030 <mesh_2d_aft_opts@plt>
mov    %eax,-0x1c(%rbp)
jmp    125d <mesh_2d_aft_cf_auto_+0x14d>
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
mov    -0x40(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x50(%rbp),%r9
mov    0x10(%rbp),%r14
mov    0x18(%rbp),%rbx
mov    0x20(%rbp),%rax
mov    (%rax),%r11d
mov    0x28(%rbp),%rax
mov    (%rax),%r10d
mov    0x30(%rbp),%rax
mov    (%rax),%eax
mov    0x38(%rbp),%r15
movsd  (%r15),%xmm0
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
movl   $0xffffffff,0x28(%rsp)
ff
movl   $0x1,0x30(%rsp)
movl   $0x1,0x38(%rsp)
movl   $0x1,0x40(%rsp)
call   1030 <mesh_2d_aft_opts@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x88,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<mesh_2d_aft_cf_auto_>:
push   %rbp
push   %r14
push   %rbx
sub    $0x50,%rsp
movaps 0x70(%rsp),%xmm1
mov    0x98(%rsp),%r10
mov    0x90(%rsp),%r11
mov    0x88(%rsp),%rax
mov    0x80(%rsp),%rbx
xor    %ebp,%ebp
cmpl   $0x0,(%rdx)
sete   %bpl
mov    (%rbx),%r14d
mov    (%rax),%eax
mov    (%r11),%ebx
movsd  (%r10),%xmm0
mov    %ebp,0x30(%rsp)
mov    %ebx,0x20(%rsp)
mov    %eax,0x18(%rsp)
mov    %r14d,0x10(%rsp)
movups %xmm1,(%rsp)
movl   $0x1,0x40(%rsp)
movl   $0x1,0x38(%rsp)
movl   $0xffffffff,0x28(%rsp)
ff
call   1030 <mesh_2d_aft_opts@plt>
add    $0x50,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @mesh_2d_aft_cf_auto_(i32* %0, double* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* %8, i32* %9, i32* %10, double* %11) {
%13 = alloca i32
%14 = alloca i32*
%15 = alloca double*
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca i32*
%19 = alloca i32*
%20 = alloca i32*
%21 = alloca i32*
%22 = alloca i32*
%23 = alloca i32*
%24 = alloca i32*
%25 = alloca double*
store i32* %0, i32** %14
store double* %1, double** %15
store i32* %2, i32** %16
store i32* %3, i32** %17
store i32* %4, i32** %18
store i32* %5, i32** %19
store i32* %6, i32** %20
store i32* %7, i32** %21
store i32* %8, i32** %22
store i32* %9, i32** %23
store i32* %10, i32** %24
store double* %11, double** %25
%26 = load i32*, i32** %16
%27 = load i32, i32* %26
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %47
29: ; preds = %12
%30 = load i32*, i32** %14
%31 = load double*, double** %15
%32 = load i32*, i32** %16
%33 = load i32*, i32** %17
%34 = load i32*, i32** %18
%35 = load i32*, i32** %19
%36 = load i32*, i32** %20
%37 = load i32*, i32** %21
%38 = load i32*, i32** %22
%39 = load i32, i32* %38
%40 = load i32*, i32** %23
%41 = load i32, i32* %40
%42 = load i32*, i32** %24
%43 = load i32, i32* %42
%44 = load double*, double** %25
%45 = load double, double* %44
%46 = call i32 @mesh_2d_aft_opts(i32* %30, double* %31, i32* %32, i32* %33, i32* %34, i32* %35, i32* %36, i32* %37, i32 %39, i32 %41, i32 %43, double %45, i32 -1, i32 0, i32 1, i32 1)
store i32 %46, i32* %13
br label %65
47: ; preds = %12
%48 = load i32*, i32** %14
%49 = load double*, double** %15
%50 = load i32*, i32** %16
%51 = load i32*, i32** %17
%52 = load i32*, i32** %18
%53 = load i32*, i32** %19
%54 = load i32*, i32** %20
%55 = load i32*, i32** %21
%56 = load i32*, i32** %22
%57 = load i32, i32* %56
%58 = load i32*, i32** %23
%59 = load i32, i32* %58
%60 = load i32*, i32** %24
%61 = load i32, i32* %60
%62 = load double*, double** %25
%63 = load double, double* %62
%64 = call i32 @mesh_2d_aft_opts(i32* %48, double* %49, i32* %50, i32* %51, i32* %52, i32* %53, i32* %54, i32* %55, i32 %57, i32 %59, i32 %61, double %63, i32 -1, i32 1, i32 1, i32 1)
store i32 %64, i32* %13
br label %65
65: ; preds = %47, %29
%66 = load i32, i32* %13
ret i32 %66
}

LLVM IR (-O2):
define i32 @mesh_2d_aft_cf_auto_(i32* %0, double* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* nocapture %8, i32* nocapture %9, i32* nocapture %10, double* nocapture %11) {
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, 0
%15 = load i32, i32* %8
%16 = load i32, i32* %9
%17 = load i32, i32* %10
%18 = load double, double* %11
%19 = zext i1 %14 to i32
%20 = tail call i32 @mesh_2d_aft_opts(i32* %0, double* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32 %15, i32 %16, i32 %17, double %18, i32 -1, i32 %19, i32 1, i32 1)
ret i32 %20
}