#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 */
typedef int int32_t;

/* Variables and functions */
int U_PMF_FILLPATHOBJ_get(char const *, int *, char const **, char const *);
int /*<<< orphan*/ U_PMF_PATH_print(char const *, char const *);
int /*<<< orphan*/ printf(char *, int);
int U_PMF_FILLPATHOBJ_print(const char *contents, const char *blimit) {
  int32_t Size;
  const char *Data;
  int status = U_PMF_FILLPATHOBJ_get(contents, &Size, &Data, blimit);
  if (status) {
    printf(" FillPathObj: Size:%d\n", Size);
    if (Size) {
      (void)U_PMF_PATH_print(Data, blimit);
    }
  }
  return (status);
}


x86 assembly (clang, -O0):
<U_PMF_FILLPATHOBJ_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%rsi
lea    -0x20(%rbp),%rdx
call   1030 <U_PMF_FILLPATHOBJ_get@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     118d <U_PMF_FILLPATHOBJ_print+0x5d>
mov    -0x14(%rbp),%esi
lea    0xe94(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x0,-0x14(%rbp)
je     1188 <U_PMF_FILLPATHOBJ_print+0x58>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <U_PMF_PATH_print@plt>
jmp    118d <U_PMF_FILLPATHOBJ_print+0x5d>
mov    -0x24(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<U_PMF_FILLPATHOBJ_print>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
lea    0xc(%rsp),%rsi
lea    0x10(%rsp),%rdx
mov    %rbx,%rcx
call   1030 <U_PMF_FILLPATHOBJ_get@plt>
mov    %eax,%ebp
test   %eax,%eax
je     1175 <U_PMF_FILLPATHOBJ_print+0x45>
mov    0xc(%rsp),%esi
lea    0xea4(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x0,0xc(%rsp)
je     1175 <U_PMF_FILLPATHOBJ_print+0x45>
mov    0x10(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <U_PMF_PATH_print@plt>
mov    %ebp,%eax
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [23 x i8] c" FillPathObj: Size:%d\0A\00"
define i32 @U_PMF_FILLPATHOBJ_print(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
%8 = load i8*, i8** %3
%9 = load i8*, i8** %4
%10 = call i32 @U_PMF_FILLPATHOBJ_get(i8* %8, i32* %5, i8** %6, i8* %9)
store i32 %10, i32* %7
%11 = load i32, i32* %7
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %23
13: ; preds = %2
%14 = load i32, i32* %5
%15 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %14)
%16 = load i32, i32* %5
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %13
%19 = load i8*, i8** %6
%20 = load i8*, i8** %4
%21 = call i32 @U_PMF_PATH_print(i8* %19, i8* %20)
br label %22
22: ; preds = %18, %13
br label %23
23: ; preds = %22, %2
%24 = load i32, i32* %7
ret i32 %24
}

LLVM IR (-O2):
@.str = [23 x i8] c" FillPathObj: Size:%d\0A\00"
define i32 @U_PMF_FILLPATHOBJ_print(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = bitcast i32* %3 to i8*
%6 = bitcast i8** %4 to i8*
%7 = call i32 @U_PMF_FILLPATHOBJ_get(i8* %0, i32* %3, i8** %4, i8* %1)
%8 = icmp eq i32 %7, 0
br i1 %8, label %17, label %9
9: ; preds = %2
%10 = load i32, i32* %3
%11 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = load i32, i32* %3
%13 = icmp eq i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %9
%15 = load i8*, i8** %4
%16 = call i32 @U_PMF_PATH_print(i8* %15, i8* %1)
br label %17
17: ; preds = %9, %14, %2
ret i32 %7
}