#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*/ U_PMF_PTRSAV_SHIFT(char const **, char const **,
                                      int /*<<< orphan*/);
int U_PMF_COMPRESSEDIMAGE_get(const char *contents, const char **Data,
                              const char *blimit) {
  if (!contents || !Data || !blimit) {
    return (0);
  }
  if (contents >= blimit)
    return (0);
  U_PMF_PTRSAV_SHIFT(Data, &contents, 0);
  return (1);
}


x86 assembly (clang, -O0):
<U_PMF_COMPRESSEDIMAGE_get>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1145 <U_PMF_COMPRESSEDIMAGE_get+0x35>
cmpq   $0x0,-0x18(%rbp)
je     1145 <U_PMF_COMPRESSEDIMAGE_get+0x35>
cmpq   $0x0,-0x20(%rbp)
jne    1151 <U_PMF_COMPRESSEDIMAGE_get+0x41>
movl   $0x0,-0x4(%rbp)
jmp    1181 <U_PMF_COMPRESSEDIMAGE_get+0x71>
mov    -0x10(%rbp),%rax
cmp    -0x20(%rbp),%rax
jb     116b <U_PMF_COMPRESSEDIMAGE_get+0x5b>
movl   $0x0,-0x4(%rbp)
jmp    1181 <U_PMF_COMPRESSEDIMAGE_get+0x71>
mov    -0x18(%rbp),%rdi
lea    -0x10(%rbp),%rsi
xor    %edx,%edx
call   1030 <U_PMF_PTRSAV_SHIFT@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<U_PMF_COMPRESSEDIMAGE_get>:
push   %rax
mov    %rdi,(%rsp)
xor    %eax,%eax
test   %rdi,%rdi
je     113b <U_PMF_COMPRESSEDIMAGE_get+0x2b>
test   %rsi,%rsi
je     113b <U_PMF_COMPRESSEDIMAGE_get+0x2b>
cmp    %rdx,%rdi
jae    113b <U_PMF_COMPRESSEDIMAGE_get+0x2b>
mov    %rsp,%rax
mov    %rsi,%rdi
mov    %rax,%rsi
xor    %edx,%edx
call   1030 <U_PMF_PTRSAV_SHIFT@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @U_PMF_COMPRESSEDIMAGE_get(i8* %0, i8** %1, i8* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8**
%7 = alloca i8*
store i8* %0, i8** %5
store i8** %1, i8*** %6
store i8* %2, i8** %7
%8 = load i8*, i8** %5
%9 = icmp ne i8* %8, null
br i1 %9, label %10, label %16
10: ; preds = %3
%11 = load i8**, i8*** %6
%12 = icmp ne i8** %11, null
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i8*, i8** %7
%15 = icmp ne i8* %14, null
br i1 %15, label %17, label %16
16: ; preds = %13, %10, %3
store i32 0, i32* %4
br label %25
17: ; preds = %13
%18 = load i8*, i8** %5
%19 = load i8*, i8** %7
%20 = icmp uge i8* %18, %19
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 0, i32* %4
br label %25
22: ; preds = %17
%23 = load i8**, i8*** %6
%24 = call i32 @U_PMF_PTRSAV_SHIFT(i8** %23, i8** %5, i32 0)
store i32 1, i32* %4
br label %25
25: ; preds = %22, %21, %16
%26 = load i32, i32* %4
ret i32 %26
}

LLVM IR (-O2):
define i32 @U_PMF_COMPRESSEDIMAGE_get(i8* %0, i8** %1, i8* readnone %2) {
%4 = alloca i8*
store i8* %0, i8** %4
%5 = icmp ne i8* %0, null
%6 = icmp ne i8** %1, null
%7 = and i1 %5, %6
%8 = icmp ult i8* %0, %2
%9 = and i1 %7, %8
br i1 %9, label %10, label %12
10: ; preds = %3
%11 = call i32 @U_PMF_PTRSAV_SHIFT(i8** %1, i8** %4, i32 0)
br label %12
12: ; preds = %3, %10
%13 = phi i32 [ 1, %10 ], [ 0, %3 ]
ret i32 %13
}