#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*/ ffpmsg(char *);
int compress2mem_from_mem(char *inmemptr, size_t inmemsize, char **buffptr,
                          size_t *buffsize,
                          void *(*mem_realloc)(void *p, size_t newsize),
                          size_t *filesize, int *status) {
  if (*status > 0)
    return (*status);
  ffpmsg("This non-GNU version of CFITSIO does not support compressed files");
  return (*status = 413);
}


x86 assembly (clang, -O0):
<compress2mem_from_mem>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    0x10(%rbp),%rax
cmpl   $0x0,(%rax)
jle    114f <compress2mem_from_mem+0x3f>
mov    0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    116c <compress2mem_from_mem+0x5c>
lea    0xeaa(%rip),%rdi
call   1030 <ffpmsg@plt>
mov    0x10(%rbp),%rax
movl   $0x19d,(%rax)
movl   $0x19d,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<compress2mem_from_mem>:
push   %rbx
mov    0x10(%rsp),%rbx
mov    (%rbx),%eax
test   %eax,%eax
jle    111e <compress2mem_from_mem+0xe>
pop    %rbx
ret
lea    0xedb(%rip),%rdi
call   1030 <ffpmsg@plt>
movl   $0x19d,(%rbx)
mov    $0x19d,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [66 x i8] c"This non-GNU version of CFITSIO does not support compressed files\00"
define i32 @compress2mem_from_mem(i8* %0, i64 %1, i8** %2, i64* %3, i8* (i8*, i64)* %4, i64* %5, i32* %6) {
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i8**
%12 = alloca i64*
%13 = alloca i8* (i8*, i64)*
%14 = alloca i64*
%15 = alloca i32*
store i8* %0, i8** %9
store i64 %1, i64* %10
store i8** %2, i8*** %11
store i64* %3, i64** %12
store i8* (i8*, i64)* %4, i8* (i8*, i64)** %13
store i64* %5, i64** %14
store i32* %6, i32** %15
%16 = load i32*, i32** %15
%17 = load i32, i32* %16
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %7
%20 = load i32*, i32** %15
%21 = load i32, i32* %20
store i32 %21, i32* %8
br label %25
22: ; preds = %7
%23 = call i32 @ffpmsg(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%24 = load i32*, i32** %15
store i32 413, i32* %24
store i32 413, i32* %8
br label %25
25: ; preds = %22, %19
%26 = load i32, i32* %8
ret i32 %26
}

LLVM IR (-O2):
@.str = [66 x i8] c"This non-GNU version of CFITSIO does not support compressed files\00"
define i32 @compress2mem_from_mem(i8* nocapture readnone %0, i64 %1, i8** nocapture readnone %2, i64* nocapture readnone %3, i8* (i8*, i64)* nocapture readnone %4, i64* nocapture readnone %5, i32* nocapture %6) {
%8 = load i32, i32* %6
%9 = icmp sgt i32 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = tail call i32 @ffpmsg(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
store i32 413, i32* %6
br label %12
12: ; preds = %7, %10
%13 = phi i32 [ 413, %10 ], [ %8, %7 ]
ret i32 %13
}