#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*/ dtrsm_(char *, char *, char *, char *, int *, int *,
                          double const *, double *, int *, double *, int *, int,
                          int, int, int);
void mydtrsm(char *side, char *uplo, char *transa, char *diag, int *m, int *n,
             const double *alpha, double *a, int *lda, double *b, int *ldb) {
  dtrsm_(side, uplo, transa, diag, m, n, alpha, a, lda, b, ldb, 1, 1, 1, 1);
}


x86 assembly (clang, -O0):
<mydtrsm>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x80,%rsp
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r8
mov    -0x40(%rbp),%r9
mov    0x10(%rbp),%r14
mov    0x18(%rbp),%rbx
mov    0x20(%rbp),%r11
mov    0x28(%rbp),%r10
mov    0x30(%rbp),%rax
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
movl   $0x1,0x28(%rsp)
movl   $0x1,0x30(%rsp)
movl   $0x1,0x38(%rsp)
movl   $0x1,0x40(%rsp)
call   1030 <dtrsm_@plt>
add    $0x80,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<mydtrsm>:
sub    $0x48,%rsp
movaps 0x50(%rsp),%xmm0
movaps 0x60(%rsp),%xmm1
mov    0x70(%rsp),%rax
mov    %rax,0x20(%rsp)
movups %xmm1,0x10(%rsp)
movups %xmm0,(%rsp)
movl   $0x1,0x40(%rsp)
movl   $0x1,0x38(%rsp)
movl   $0x1,0x30(%rsp)
movl   $0x1,0x28(%rsp)
call   1030 <dtrsm_@plt>
add    $0x48,%rsp
ret

LLVM IR (-O0):
define void @mydtrsm(i8* %0, i8* %1, i8* %2, i8* %3, i32* %4, i32* %5, double* %6, double* %7, i32* %8, double* %9, i32* %10) {
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca double*
%19 = alloca double*
%20 = alloca i32*
%21 = alloca double*
%22 = alloca i32*
store i8* %0, i8** %12
store i8* %1, i8** %13
store i8* %2, i8** %14
store i8* %3, i8** %15
store i32* %4, i32** %16
store i32* %5, i32** %17
store double* %6, double** %18
store double* %7, double** %19
store i32* %8, i32** %20
store double* %9, double** %21
store i32* %10, i32** %22
%23 = load i8*, i8** %12
%24 = load i8*, i8** %13
%25 = load i8*, i8** %14
%26 = load i8*, i8** %15
%27 = load i32*, i32** %16
%28 = load i32*, i32** %17
%29 = load double*, double** %18
%30 = load double*, double** %19
%31 = load i32*, i32** %20
%32 = load double*, double** %21
%33 = load i32*, i32** %22
%34 = call i32 @dtrsm_(i8* %23, i8* %24, i8* %25, i8* %26, i32* %27, i32* %28, double* %29, double* %30, i32* %31, double* %32, i32* %33, i32 1, i32 1, i32 1, i32 1)
ret void
}

LLVM IR (-O2):
define void @mydtrsm(i8* %0, i8* %1, i8* %2, i8* %3, i32* %4, i32* %5, double* %6, double* %7, i32* %8, double* %9, i32* %10) {
%12 = tail call i32 @dtrsm_(i8* %0, i8* %1, i8* %2, i8* %3, i32* %4, i32* %5, double* %6, double* %7, i32* %8, double* %9, i32* %10, i32 1, i32 1, i32 1, i32 1)
ret void
}