#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*/ dlascl_(char *, int *, int *, double *, double *, int *,
                           int *, double *, int *, int *);
int aa_cla_dlascl(char TYPE, int KL, int KU, double CFROM, double CTO, int M,
                  int N, double *A, int LDA) {
  int info = 0;
  dlascl_(&TYPE, &KL, &KU, &CFROM, &CTO, &M, &N, A, &LDA, &info);
  return info;
}


x86 assembly (clang, -O0):
<aa_cla_dlascl>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x58,%rsp
mov    %dil,%al
mov    0x10(%rbp),%edi
mov    %al,-0x9(%rbp)
mov    %esi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movsd  %xmm0,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
mov    %ecx,-0x2c(%rbp)
mov    %r8d,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x38(%rbp),%r11
lea    -0x9(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x14(%rbp),%rdx
lea    -0x20(%rbp),%rcx
lea    -0x28(%rbp),%r8
lea    -0x2c(%rbp),%r9
lea    -0x30(%rbp),%rbx
lea    0x10(%rbp),%r10
lea    -0x3c(%rbp),%rax
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1030 <dlascl_@plt>
mov    -0x3c(%rbp),%eax
add    $0x58,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<aa_cla_dlascl>:
push   %rbx
sub    $0x30,%rsp
mov    %r9,%rax
mov    %dil,0xb(%rsp)
mov    %esi,0x1c(%rsp)
mov    %edx,0x18(%rsp)
movsd  %xmm0,0x28(%rsp)
movsd  %xmm1,0x20(%rsp)
mov    %ecx,0x14(%rsp)
mov    %r8d,0x10(%rsp)
movl   $0x0,0xc(%rsp)
lea    0xc(%rsp),%r10
lea    0x40(%rsp),%r11
lea    0x10(%rsp),%rbx
lea    0xb(%rsp),%rdi
lea    0x1c(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x28(%rsp),%rcx
lea    0x20(%rsp),%r8
lea    0x14(%rsp),%r9
push   %r10
push   %r11
push   %rax
push   %rbx
call   1030 <dlascl_@plt>
add    $0x20,%rsp
mov    0xc(%rsp),%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @aa_cla_dlascl(i8 signext %0, i32 %1, i32 %2, double %3, double %4, i32 %5, i32 %6, double* %7, i32 %8) {
%10 = alloca i8
%11 = alloca i32
%12 = alloca i32
%13 = alloca double
%14 = alloca double
%15 = alloca i32
%16 = alloca i32
%17 = alloca double*
%18 = alloca i32
%19 = alloca i32
store i8 %0, i8* %10
store i32 %1, i32* %11
store i32 %2, i32* %12
store double %3, double* %13
store double %4, double* %14
store i32 %5, i32* %15
store i32 %6, i32* %16
store double* %7, double** %17
store i32 %8, i32* %18
store i32 0, i32* %19
%20 = load double*, double** %17
%21 = call i32 @dlascl_(i8* %10, i32* %11, i32* %12, double* %13, double* %14, i32* %15, i32* %16, double* %20, i32* %18, i32* %19)
%22 = load i32, i32* %19
ret i32 %22
}

LLVM IR (-O2):
define i32 @aa_cla_dlascl(i8 signext %0, i32 %1, i32 %2, double %3, double %4, i32 %5, i32 %6, double* %7, i32 %8) {
%10 = alloca i8
%11 = alloca i32
%12 = alloca i32
%13 = alloca double
%14 = alloca double
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
store i8 %0, i8* %10
store i32 %1, i32* %11
store i32 %2, i32* %12
store double %3, double* %13
store double %4, double* %14
store i32 %5, i32* %15
store i32 %6, i32* %16
store i32 %8, i32* %17
%19 = bitcast i32* %18 to i8*
store i32 0, i32* %18
%20 = call i32 @dlascl_(i8* %10, i32* %11, i32* %12, double* %13, double* %14, i32* %15, i32* %16, double* %7, i32* %17, i32* %18)
%21 = load i32, i32* %18
ret i32 %21
}