#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_load(char *, int /*<<< orphan*/);
int /*<<< orphan*/ _uccmcl_load(char *, int /*<<< orphan*/);
int /*<<< orphan*/ _ucdcmp_load(char *, int /*<<< orphan*/);
int /*<<< orphan*/ _ucnumb_load(char *, int /*<<< orphan*/);
int /*<<< orphan*/ _ucprop_load(char *, int /*<<< orphan*/);
void ucdata_load(char *paths, int masks) {
  if (masks & 0x02)
    _ucprop_load(paths, 0);
  if (masks & 0x01)
    _uccase_load(paths, 0);
  if (masks & 0x04)
    _ucdcmp_load(paths, 0);
  if (masks & 0x08)
    _uccmcl_load(paths, 0);
  if (masks & 0x10)
    _ucnumb_load(paths, 0);
}


x86 assembly (clang, -O0):
<ucdata_load>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     1179 <ucdata_load+0x29>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   1040 <_ucprop_load@plt>
mov    -0xc(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1193 <ucdata_load+0x43>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   1030 <_uccase_load@plt>
mov    -0xc(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     11ad <ucdata_load+0x5d>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   1050 <_ucdcmp_load@plt>
mov    -0xc(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     11c7 <ucdata_load+0x77>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   1070 <_uccmcl_load@plt>
mov    -0xc(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     11e1 <ucdata_load+0x91>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   1060 <_ucnumb_load@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ucdata_load>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
test   $0x2,%bpl
jne    117d <ucdata_load+0x2d>
test   $0x1,%bpl
jne    118d <ucdata_load+0x3d>
test   $0x4,%bpl
jne    119d <ucdata_load+0x4d>
test   $0x8,%bpl
jne    11ad <ucdata_load+0x5d>
test   $0x10,%bpl
jne    11bd <ucdata_load+0x6d>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <_ucprop_load@plt>
test   $0x1,%bpl
je     1164 <ucdata_load+0x14>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <_uccase_load@plt>
test   $0x4,%bpl
je     116a <ucdata_load+0x1a>
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <_ucdcmp_load@plt>
test   $0x8,%bpl
je     1170 <ucdata_load+0x20>
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <_uccmcl_load@plt>
test   $0x10,%bpl
je     1176 <ucdata_load+0x26>
mov    %rbx,%rdi
xor    %esi,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1060 <_ucnumb_load@plt>

LLVM IR (-O0):
define void @ucdata_load(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = and i32 %5, 2
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i8*, i8** %3
%10 = call i32 @_ucprop_load(i8* %9, i32 0)
br label %11
11: ; preds = %8, %2
%12 = load i32, i32* %4
%13 = and i32 %12, 1
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i8*, i8** %3
%17 = call i32 @_uccase_load(i8* %16, i32 0)
br label %18
18: ; preds = %15, %11
%19 = load i32, i32* %4
%20 = and i32 %19, 4
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i8*, i8** %3
%24 = call i32 @_ucdcmp_load(i8* %23, i32 0)
br label %25
25: ; preds = %22, %18
%26 = load i32, i32* %4
%27 = and i32 %26, 8
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = load i8*, i8** %3
%31 = call i32 @_uccmcl_load(i8* %30, i32 0)
br label %32
32: ; preds = %29, %25
%33 = load i32, i32* %4
%34 = and i32 %33, 16
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %32
%37 = load i8*, i8** %3
%38 = call i32 @_ucnumb_load(i8* %37, i32 0)
br label %39
39: ; preds = %36, %32
ret void
}

LLVM IR (-O2):
define void @ucdata_load(i8* %0, i32 %1) {
%3 = and i32 %1, 2
%4 = icmp eq i32 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @_ucprop_load(i8* %0, i32 0)
br label %7
7: ; preds = %5, %2
%8 = and i32 %1, 1
%9 = icmp eq i32 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = tail call i32 @_uccase_load(i8* %0, i32 0)
br label %12
12: ; preds = %10, %7
%13 = and i32 %1, 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %12
%16 = tail call i32 @_ucdcmp_load(i8* %0, i32 0)
br label %17
17: ; preds = %15, %12
%18 = and i32 %1, 8
%19 = icmp eq i32 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %17
%21 = tail call i32 @_uccmcl_load(i8* %0, i32 0)
br label %22
22: ; preds = %20, %17
%23 = and i32 %1, 16
%24 = icmp eq i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %22
%26 = tail call i32 @_ucnumb_load(i8* %0, i32 0)
br label %27
27: ; preds = %25, %22
ret void
}