#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_numerator_coefficient(int leadidx, int idx, int verbose,
                                              double *cre, double *cim) {
  int fail;
  int inpars[4];
  double nbr[2];
  inpars[0] = 2;
  inpars[1] = 1;
  inpars[2] = leadidx;
  inpars[3] = idx;
  fail = _ada_use_c2phc4c(870, inpars, &verbose, nbr, 0);
  *cre = nbr[0];
  *cim = nbr[1];
  return fail;
}


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

x86 assembly (clang, -O2):
<padcon_get_quaddobl_numerator_coefficient>:
push   %r14
push   %rbx
sub    $0x38,%rsp
mov    %r8,%r14
mov    %rcx,%rbx
mov    %edx,0xc(%rsp)
movabs $0x100000002,%rax
mov    %rax,0x10(%rsp)
mov    %edi,0x18(%rsp)
mov    %esi,0x1c(%rsp)
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x20(%rsp),%rcx
mov    $0x366,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
movsd  0x20(%rsp),%xmm0
movsd  %xmm0,(%rbx)
movsd  0x28(%rsp),%xmm0
movsd  %xmm0,(%r14)
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

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

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