#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 */
scalar_t__ mumps_io_set_file_name(int *, char *, int *, int *);
void mumps_ooc_set_file_name_c(int *type, int *indice, int *length, int *ierr,
                               char *name, int l1) {
  int type_loc, indice_loc, length_loc;
  type_loc = (int)*type;
  indice_loc = (int)*indice;
  length_loc = (int)*length;
  *ierr =
      (int)mumps_io_set_file_name(&indice_loc, name, &length_loc, &type_loc);
  return;
}


x86 assembly (clang, -O0):
<mumps_ooc_set_file_name_c>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rsi
lea    -0x34(%rbp),%rdi
lea    -0x38(%rbp),%rdx
lea    -0x30(%rbp),%rcx
call   1030 <mumps_io_set_file_name@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mumps_ooc_set_file_name_c>:
push   %rbx
sub    $0x10,%rsp
mov    %rcx,%rbx
mov    (%rdi),%eax
mov    %eax,0xc(%rsp)
mov    (%rsi),%eax
mov    %eax,0x8(%rsp)
mov    (%rdx),%eax
mov    %eax,0x4(%rsp)
lea    0x8(%rsp),%rdi
lea    0x4(%rsp),%rdx
lea    0xc(%rsp),%rcx
mov    %r8,%rsi
call   1030 <mumps_io_set_file_name@plt>
mov    %eax,(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @mumps_ooc_set_file_name_c(i32* %0, i32* %1, i32* %2, i32* %3, i8* %4, i32 %5) {
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i32* %0, i32** %7
store i32* %1, i32** %8
store i32* %2, i32** %9
store i32* %3, i32** %10
store i8* %4, i8** %11
store i32 %5, i32* %12
%16 = load i32*, i32** %7
%17 = load i32, i32* %16
store i32 %17, i32* %13
%18 = load i32*, i32** %8
%19 = load i32, i32* %18
store i32 %19, i32* %14
%20 = load i32*, i32** %9
%21 = load i32, i32* %20
store i32 %21, i32* %15
%22 = load i8*, i8** %11
%23 = call i64 @mumps_io_set_file_name(i32* %14, i8* %22, i32* %15, i32* %13)
%24 = trunc i64 %23 to i32
%25 = load i32*, i32** %10
store i32 %24, i32* %25
ret void
}

LLVM IR (-O2):
define void @mumps_ooc_set_file_name_c(i32* nocapture %0, i32* nocapture %1, i32* nocapture %2, i32* nocapture writeonly %3, i8* %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = bitcast i32* %7 to i8*
%11 = bitcast i32* %8 to i8*
%12 = bitcast i32* %9 to i8*
%13 = load i32, i32* %0
store i32 %13, i32* %7
%14 = load i32, i32* %1
store i32 %14, i32* %8
%15 = load i32, i32* %2
store i32 %15, i32* %9
%16 = call i64 @mumps_io_set_file_name(i32* %8, i8* %4, i32* %9, i32* %7)
%17 = trunc i64 %16 to i32
store i32 %17, i32* %3
ret void
}