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


x86 assembly (clang, -O0):
<aa_cla_slascl>:
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)
movss  %xmm0,-0x18(%rbp)
movss  %xmm1,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x30(%rbp),%r11
lea    -0x9(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x14(%rbp),%rdx
lea    -0x18(%rbp),%rcx
lea    -0x1c(%rbp),%r8
lea    -0x20(%rbp),%r9
lea    -0x24(%rbp),%rbx
lea    0x10(%rbp),%r10
lea    -0x34(%rbp),%rax
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1030 <slascl_@plt>
mov    -0x34(%rbp),%eax
add    $0x58,%rsp
pop    %rbx
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @aa_cla_slascl(i8 signext %0, i32 %1, i32 %2, float %3, float %4, i32 %5, i32 %6, float* %7, i32 %8) {
%10 = alloca i8
%11 = alloca i32
%12 = alloca i32
%13 = alloca float
%14 = alloca float
%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 float %3, float* %13
store float %4, float* %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 @slascl_(i8* %10, i32* %11, i32* %12, float* %13, float* %14, i32* %15, i32* %16, float* %7, i32* %17, i32* %18)
%21 = load i32, i32* %18
ret i32 %21
}