#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*/ cnfImpn(char *const, int, int, char *);
int /*<<< orphan*/ msgOutif(int, char *, char *, int *);
void msg_outif_(int *const PRIOR, char *const PARAM, char *const TEXT,
                int *const STATUS, int PARAM_length, int TEXT_length) {
  char param[15 + 1];
  char text[300 + 1];
  int prior;
  int status;
  cnfImpn(PARAM, PARAM_length, 15, param);
  cnfImpn(TEXT, TEXT_length, 300, text);
  status = *STATUS;
  prior = *PRIOR;
  msgOutif(prior, param, text, &status);
  *STATUS = status;
}


x86 assembly (clang, -O0):
<msg_outif_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x180,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
lea    -0x40(%rbp),%rcx
mov    $0xf,%edx
call   1030 <cnfImpn@plt>
mov    -0x18(%rbp),%rdi
mov    -0x28(%rbp),%esi
lea    -0x170(%rbp),%rcx
mov    $0x12c,%edx
call   1030 <cnfImpn@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x178(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x174(%rbp)
mov    -0x174(%rbp),%edi
lea    -0x40(%rbp),%rsi
lea    -0x170(%rbp),%rdx
lea    -0x178(%rbp),%rcx
call   1040 <msgOutif@plt>
mov    -0x178(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
add    $0x180,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<msg_outif_>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x158,%rsp
mov    %r9d,%r14d
mov    %rcx,%rbx
mov    %rdx,%rbp
mov    %rdi,%r15
lea    0x10(%rsp),%r12
mov    %rsi,%rdi
mov    %r8d,%esi
mov    $0xf,%edx
mov    %r12,%rcx
call   1030 <cnfImpn@plt>
lea    0x20(%rsp),%r13
mov    %rbp,%rdi
mov    %r14d,%esi
mov    $0x12c,%edx
mov    %r13,%rcx
call   1030 <cnfImpn@plt>
mov    (%rbx),%eax
mov    %eax,0xc(%rsp)
mov    (%r15),%edi
lea    0xc(%rsp),%rcx
mov    %r12,%rsi
mov    %r13,%rdx
call   1040 <msgOutif@plt>
mov    0xc(%rsp),%eax
mov    %eax,(%rbx)
add    $0x158,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @msg_outif_(i32* %0, i8* %1, i8* %2, i32* %3, i32 %4, i32 %5) {
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32*
%11 = alloca i32
%12 = alloca i32
%13 = alloca [16 x i8]
%14 = alloca [301 x i8]
%15 = alloca i32
%16 = alloca i32
store i32* %0, i32** %7
store i8* %1, i8** %8
store i8* %2, i8** %9
store i32* %3, i32** %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%17 = load i8*, i8** %8
%18 = load i32, i32* %11
%19 = getelementptr inbounds [16 x i8], [16 x i8]* %13, i64 0, i64 0
%20 = call i32 @cnfImpn(i8* %17, i32 %18, i32 15, i8* %19)
%21 = load i8*, i8** %9
%22 = load i32, i32* %12
%23 = getelementptr inbounds [301 x i8], [301 x i8]* %14, i64 0, i64 0
%24 = call i32 @cnfImpn(i8* %21, i32 %22, i32 300, i8* %23)
%25 = load i32*, i32** %10
%26 = load i32, i32* %25
store i32 %26, i32* %16
%27 = load i32*, i32** %7
%28 = load i32, i32* %27
store i32 %28, i32* %15
%29 = load i32, i32* %15
%30 = getelementptr inbounds [16 x i8], [16 x i8]* %13, i64 0, i64 0
%31 = getelementptr inbounds [301 x i8], [301 x i8]* %14, i64 0, i64 0
%32 = call i32 @msgOutif(i32 %29, i8* %30, i8* %31, i32* %16)
%33 = load i32, i32* %16
%34 = load i32*, i32** %10
store i32 %33, i32* %34
ret void
}

LLVM IR (-O2):
define void @msg_outif_(i32* nocapture %0, i8* %1, i8* %2, i32* nocapture %3, i32 %4, i32 %5) {
%7 = alloca [16 x i8]
%8 = alloca [301 x i8]
%9 = alloca i32
%10 = getelementptr inbounds [16 x i8], [16 x i8]* %7, i64 0, i64 0
%11 = getelementptr inbounds [301 x i8], [301 x i8]* %8, i64 0, i64 0
%12 = bitcast i32* %9 to i8*
%13 = call i32 @cnfImpn(i8* %1, i32 %4, i32 15, i8* %10)
%14 = call i32 @cnfImpn(i8* %2, i32 %5, i32 300, i8* %11)
%15 = load i32, i32* %3
store i32 %15, i32* %9
%16 = load i32, i32* %0
%17 = call i32 @msgOutif(i32 %16, i8* %10, i8* %11, i32* %9)
%18 = load i32, i32* %9
store i32 %18, i32* %3
ret void
}