#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*/ _uccase_unload();
int /*<<< orphan*/ _uccmcl_unload();
int /*<<< orphan*/ _ucdcmp_unload();
int /*<<< orphan*/ _ucnumb_unload();
int /*<<< orphan*/ _ucprop_unload();
void ucdata_unload(int masks) {
  if (masks & 0x02)
    _ucprop_unload();
  if (masks & 0x01)
    _uccase_unload();
  if (masks & 0x04)
    _ucdcmp_unload();
  if (masks & 0x08)
    _uccmcl_unload();
  if (masks & 0x10)
    _ucnumb_unload();
}


x86 assembly (clang, -O0):
<ucdata_unload>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     1171 <ucdata_unload+0x21>
mov    $0x0,%al
call   1030 <_ucprop_unload@plt>
mov    -0x4(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1187 <ucdata_unload+0x37>
mov    $0x0,%al
call   1040 <_uccase_unload@plt>
mov    -0x4(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     119d <ucdata_unload+0x4d>
mov    $0x0,%al
call   1070 <_ucdcmp_unload@plt>
mov    -0x4(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     11b3 <ucdata_unload+0x63>
mov    $0x0,%al
call   1050 <_uccmcl_unload@plt>
mov    -0x4(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     11c9 <ucdata_unload+0x79>
mov    $0x0,%al
call   1060 <_ucnumb_unload@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ucdata_unload>:
push   %rbx
mov    %edi,%ebx
test   $0x2,%bl
jne    116e <ucdata_unload+0x1e>
test   $0x1,%bl
jne    117a <ucdata_unload+0x2a>
test   $0x4,%bl
jne    1186 <ucdata_unload+0x36>
test   $0x8,%bl
jne    1192 <ucdata_unload+0x42>
test   $0x10,%bl
jne    119e <ucdata_unload+0x4e>
pop    %rbx
ret
xor    %eax,%eax
call   1030 <_ucprop_unload@plt>
test   $0x1,%bl
je     115d <ucdata_unload+0xd>
xor    %eax,%eax
call   1040 <_uccase_unload@plt>
test   $0x4,%bl
je     1162 <ucdata_unload+0x12>
xor    %eax,%eax
call   1070 <_ucdcmp_unload@plt>
test   $0x8,%bl
je     1167 <ucdata_unload+0x17>
xor    %eax,%eax
call   1050 <_uccmcl_unload@plt>
test   $0x10,%bl
je     116c <ucdata_unload+0x1c>
xor    %eax,%eax
pop    %rbx
jmp    1060 <_ucnumb_unload@plt>

LLVM IR (-O0):
define void @ucdata_unload(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 2
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (...) @_ucprop_unload()
br label %8
8: ; preds = %6, %1
%9 = load i32, i32* %2
%10 = and i32 %9, 1
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 (...) @_uccase_unload()
br label %14
14: ; preds = %12, %8
%15 = load i32, i32* %2
%16 = and i32 %15, 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 (...) @_ucdcmp_unload()
br label %20
20: ; preds = %18, %14
%21 = load i32, i32* %2
%22 = and i32 %21, 8
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 (...) @_uccmcl_unload()
br label %26
26: ; preds = %24, %20
%27 = load i32, i32* %2
%28 = and i32 %27, 16
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 (...) @_ucnumb_unload()
br label %32
32: ; preds = %30, %26
ret void
}

LLVM IR (-O2):
define void @ucdata_unload(i32 %0) {
%2 = and i32 %0, 2
%3 = icmp eq i32 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 (...) @_ucprop_unload()
br label %6
6: ; preds = %4, %1
%7 = and i32 %0, 1
%8 = icmp eq i32 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = tail call i32 (...) @_uccase_unload()
br label %11
11: ; preds = %9, %6
%12 = and i32 %0, 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %11
%15 = tail call i32 (...) @_ucdcmp_unload()
br label %16
16: ; preds = %14, %11
%17 = and i32 %0, 8
%18 = icmp eq i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %16
%20 = tail call i32 (...) @_uccmcl_unload()
br label %21
21: ; preds = %19, %16
%22 = and i32 %0, 16
%23 = icmp eq i32 %22, 0
br i1 %23, label %26, label %24
24: ; preds = %21
%25 = tail call i32 (...) @_ucnumb_unload()
br label %26
26: ; preds = %24, %21
ret void
}