#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_IE_BRIGHTNESSCONTRAST_get(char const *, int *, int *, char const *);
int /*<<< orphan*/ printf(char *, int, int);
int U_PMF_IE_BRIGHTNESSCONTRAST_print(const char *contents,
                                      const char *blimit) {
  int32_t Brightness, Contrast;
  int status =
      U_PMF_IE_BRIGHTNESSCONTRAST_get(contents, &Brightness, &Contrast, blimit);
  if (status) {
    printf("BrightnessContrastEffect Brightness:%d Contrast:%d\n", Brightness,
           Contrast);
  }
  return (status);
}


x86 assembly (clang, -O0):
<U_PMF_IE_BRIGHTNESSCONTRAST_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <U_PMF_IE_BRIGHTNESSCONTRAST_get@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1164 <U_PMF_IE_BRIGHTNESSCONTRAST_print+0x44>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<U_PMF_IE_BRIGHTNESSCONTRAST_print>:
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%rcx
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1040 <U_PMF_IE_BRIGHTNESSCONTRAST_get@plt>
mov    %eax,%ebx
test   %eax,%eax
je     1151 <U_PMF_IE_BRIGHTNESSCONTRAST_print+0x31>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
mov    %ebx,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [52 x i8] c"BrightnessContrastEffect Brightness:%d Contrast:%d\0A\00"
define i32 @U_PMF_IE_BRIGHTNESSCONTRAST_print(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%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_IE_BRIGHTNESSCONTRAST_get(i8* %8, i32* %5, i32* %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 %17
13: ; preds = %2
%14 = load i32, i32* %5
%15 = load i32, i32* %6
%16 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %15)
br label %17
17: ; preds = %13, %2
%18 = load i32, i32* %7
ret i32 %18
}

LLVM IR (-O2):
@.str = [52 x i8] c"BrightnessContrastEffect Brightness:%d Contrast:%d\0A\00"
define i32 @U_PMF_IE_BRIGHTNESSCONTRAST_print(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = call i32 @U_PMF_IE_BRIGHTNESSCONTRAST_get(i8* %0, i32* %3, i32* %4, i8* %1)
%8 = icmp eq i32 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %2
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0), i32 %10, i32 %11)
br label %13
13: ; preds = %9, %2
ret i32 %7
}