#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*/ pcg(int, double *, double *, double, int, int, int *,
                       double *, int *, double *, void (*)(double *, double *),
                       void (*)(double *, double *));
void pcg_f77_(int *n, double *x, double *b, double *tol, int *maxit, int *clvl,
              int *iter, double *relres, int *flag, double *work,
              void (*matvec)(double *, double *),
              void (*precon)(double *, double *)) {
  pcg(*n, x, b, *tol, *maxit, *clvl, iter, relres, flag, work, matvec, precon);
}


x86 assembly (clang, -O0):
<pcg_f77_>:
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),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
mov    (%rax),%ecx
mov    -0x40(%rbp),%rax
mov    (%rax),%r8d
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 <pcg@plt>
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<pcg_f77_>:
sub    $0x28,%rsp
mov    0x30(%rsp),%r10
movups 0x38(%rsp),%xmm1
movups 0x48(%rsp),%xmm2
mov    0x58(%rsp),%rax
mov    (%rdi),%edi
movsd  (%rcx),%xmm0
mov    (%r8),%ecx
mov    (%r9),%r8d
mov    %rax,0x20(%rsp)
movups %xmm2,0x10(%rsp)
movups %xmm1,(%rsp)
mov    %r10,%r9
call   1030 <pcg@plt>
add    $0x28,%rsp
ret

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

LLVM IR (-O2):
define void @pcg_f77_(i32* nocapture %0, double* %1, double* %2, double* nocapture %3, i32* nocapture %4, i32* nocapture %5, i32* %6, double* %7, i32* %8, double* %9, void (double*, double*)* %10, void (double*, double*)* %11) {
%13 = load i32, i32* %0
%14 = load double, double* %3
%15 = load i32, i32* %4
%16 = load i32, i32* %5
%17 = tail call i32 @pcg(i32 %13, double* %1, double* %2, double %14, i32 %15, i32 %16, i32* %6, double* %7, i32* %8, double* %9, void (double*, double*)* %10, void (double*, double*)* %11)
ret void
}