#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 _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int padcon_get_quaddobl_pole(int leadidx, int poleidx, int verbose, double *cre,
                             double *cim) {
  int fail;
  int inpars[3];
  double nbr[2];
  inpars[0] = 2;
  inpars[1] = leadidx;
  inpars[2] = poleidx;
  fail = _ada_use_c2phc4c(871, inpars, &verbose, nbr, 0);
  *cre = nbr[0];
  *cim = nbr[1];
  return fail;
}


x86 assembly (clang, -O0):
<padcon_get_quaddobl_pole>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
movl   $0x2,-0x30(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x28(%rbp)
lea    -0x30(%rbp),%rsi
lea    -0x40(%rbp),%rcx
mov    $0x367,%edi
lea    -0xc(%rbp),%rdx
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x24(%rbp)
movsd  -0x40(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x38(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x24(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<padcon_get_quaddobl_pole>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %r8,%r14
mov    %rcx,%rbx
mov    %edx,(%rsp)
movl   $0x2,0x4(%rsp)
mov    %edi,0x8(%rsp)
mov    %esi,0xc(%rsp)
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
lea    0x10(%rsp),%rcx
mov    $0x367,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,(%rbx)
movsd  0x18(%rsp),%xmm0
movsd  %xmm0,(%r14)
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @padcon_get_quaddobl_pole(i32 %0, i32 %1, i32 %2, double* %3, double* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca [3 x i32]
%13 = alloca [2 x double]
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store double* %3, double** %9
store double* %4, double** %10
%14 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 0
store i32 2, i32* %14
%15 = load i32, i32* %6
%16 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 1
store i32 %15, i32* %16
%17 = load i32, i32* %7
%18 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 2
store i32 %17, i32* %18
%19 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 0
%20 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 0
%21 = call i32 @_ada_use_c2phc4c(i32 871, i32* %19, i32* %8, double* %20, i32 0)
store i32 %21, i32* %11
%22 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 0
%23 = load double, double* %22
%24 = load double*, double** %9
store double %23, double* %24
%25 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 1
%26 = load double, double* %25
%27 = load double*, double** %10
store double %26, double* %27
%28 = load i32, i32* %11
ret i32 %28
}

LLVM IR (-O2):
define i32 @padcon_get_quaddobl_pole(i32 %0, i32 %1, i32 %2, double* nocapture writeonly %3, double* nocapture writeonly %4) {
%6 = alloca i32
%7 = alloca [3 x i32]
%8 = alloca [2 x double]
store i32 %2, i32* %6
%9 = bitcast [3 x i32]* %7 to i8*
%10 = bitcast [2 x double]* %8 to i8*
%11 = getelementptr inbounds [3 x i32], [3 x i32]* %7, i64 0, i64 0
store i32 2, i32* %11
%12 = getelementptr inbounds [3 x i32], [3 x i32]* %7, i64 0, i64 1
store i32 %0, i32* %12
%13 = getelementptr inbounds [3 x i32], [3 x i32]* %7, i64 0, i64 2
store i32 %1, i32* %13
%14 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 0
%15 = call i32 @_ada_use_c2phc4c(i32 871, i32* %11, i32* %6, double* %14, i32 0)
%16 = load double, double* %14
store double %16, double* %3
%17 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 1
%18 = load double, double* %17
store double %18, double* %4
ret i32 %15
}