#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*/ dsyr2k_(char *, char *, int *, int *, double *, double *,
                           int *, double *, int *, double *, double *, int *);
void wcc_dsyr2k_(char *UPLO, char *TRANS, int *N, int *K, char *ALPHA, char *A,
                 int *LDA, char *B, int *LDB, char *BETA, char *C, int *LDC) {
  dsyr2k_(UPLO, TRANS, N, K, (double *)ALPHA, (double *)A, LDA, (double *)B,
          LDB, (double *)BETA, (double *)C, LDC);
}


x86 assembly (clang, -O0):
<wcc_dsyr2k_>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x68,%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,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %r8,-0x40(%rbp)
mov    %r9,-0x48(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x40(%rbp),%r8
mov    -0x48(%rbp),%r9
mov    0x10(%rbp),%r15
mov    0x18(%rbp),%r14
mov    0x20(%rbp),%rbx
mov    0x28(%rbp),%r11
mov    0x30(%rbp),%r10
mov    0x38(%rbp),%rax
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1030 <dsyr2k_@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<wcc_dsyr2k_>:
jmp    1030 <dsyr2k_@plt>

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

LLVM IR (-O2):
define void @wcc_dsyr2k_(i8* %0, i8* %1, i32* %2, i32* %3, i8* %4, i8* %5, i32* %6, i8* %7, i32* %8, i8* %9, i8* %10, i32* %11) {
%13 = bitcast i8* %4 to double*
%14 = bitcast i8* %5 to double*
%15 = bitcast i8* %7 to double*
%16 = bitcast i8* %9 to double*
%17 = bitcast i8* %10 to double*
%18 = tail call i32 @dsyr2k_(i8* %0, i8* %1, i32* %2, i32* %3, double* %13, double* %14, i32* %6, double* %15, i32* %8, double* %16, double* %17, i32* %11)
ret void
}