#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 scalar_t__ uint8_t;
typedef scalar_t__ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ assert(int);
void establish_ACC_binary_phrase_list(const uint16_t *restrict code_text,
                                      const uint8_t independentClause_size,
                                      uint16_t *binary_phrase_list,
                                      uint16_t *tablet) {
  uint8_t current = 0;
  uint8_t i = 0;
  assert(code_text != NULL);
  assert(independentClause_size != 0);
  assert(independentClause_size <= 0xF * 0x4 + 1);
  assert(binary_phrase_list != NULL);
  if (*binary_phrase_list == 0) {
    current = (uint8_t)~current;
  }
  for (i = 0; i < independentClause_size; i++) {
    if (current == 2)
      break;
    switch (current) {
    case 0xFF:
      *binary_phrase_list = (uint16_t)(*binary_phrase_list | 1 << (i + 1));
      break;
    default:
      break;
    }
    tablet[i + 1] = code_text[i];
    switch (code_text[i]) {
    case 0x45E:
      current = (uint8_t)(~current);
      break;
    case 0x05BE:
      current = (uint8_t)(~current);
      break;
    case 0x49E:
      current = (uint8_t)(~current);
      break;
    case 0x095E:
      current = 2;
      break;
    case 0x017E:
      current = 2;
      break;
    default:
      break;
    }
  }
  tablet[0] = *binary_phrase_list;
}


x86 assembly (clang, -O0):
<establish_ACC_binary_phrase_list>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
cmpq   $0x0,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpq   $0x0,-0x10(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpq   $0x3d,-0x10(%rbp)
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpq   $0x0,-0x18(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x18(%rbp),%rax
cmpq   $0x0,(%rax)
jne    119a <establish_ACC_binary_phrase_list+0x8a>
mov    -0x28(%rbp),%rax
xor    $0xffffffffffffffff,%rax
mov    %rax,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    12fd <establish_ACC_binary_phrase_list+0x1ed>
cmpq   $0x2,-0x28(%rbp)
jne    11c0 <establish_ACC_binary_phrase_list+0xb0>
jmp    12fd <establish_ACC_binary_phrase_list+0x1ed>
mov    -0x28(%rbp),%rax
sub    $0xff,%rax
jne    1206 <establish_ACC_binary_phrase_list+0xf6>
jmp    11d5 <establish_ACC_binary_phrase_list+0xc5>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %eax,%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    -0x38(%rbp),%rcx
cltq
or     %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
jmp    120b <establish_ACC_binary_phrase_list+0xfb>
jmp    120b <establish_ACC_binary_phrase_list+0xfb>
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x20(%rbp),%rax
mov    %rdx,0x8(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x40(%rbp)
sub    $0x17e,%rax
je     12d5 <establish_ACC_binary_phrase_list+0x1c5>
jmp    1241 <establish_ACC_binary_phrase_list+0x131>
mov    -0x40(%rbp),%rax
sub    $0x45e,%rax
je     1295 <establish_ACC_binary_phrase_list+0x185>
jmp    1256 <establish_ACC_binary_phrase_list+0x146>
mov    -0x40(%rbp),%rax
sub    $0x49e,%rax
je     12b7 <establish_ACC_binary_phrase_list+0x1a7>
jmp    126b <establish_ACC_binary_phrase_list+0x15b>
mov    -0x40(%rbp),%rax
sub    $0x5be,%rax
je     12a6 <establish_ACC_binary_phrase_list+0x196>
jmp    1280 <establish_ACC_binary_phrase_list+0x170>
mov    -0x40(%rbp),%rax
sub    $0x95e,%rax
je     12c8 <establish_ACC_binary_phrase_list+0x1b8>
jmp    12e2 <establish_ACC_binary_phrase_list+0x1d2>
mov    -0x28(%rbp),%rax
xor    $0xffffffffffffffff,%rax
mov    %rax,-0x28(%rbp)
jmp    12e7 <establish_ACC_binary_phrase_list+0x1d7>
mov    -0x28(%rbp),%rax
xor    $0xffffffffffffffff,%rax
mov    %rax,-0x28(%rbp)
jmp    12e7 <establish_ACC_binary_phrase_list+0x1d7>
mov    -0x28(%rbp),%rax
xor    $0xffffffffffffffff,%rax
mov    %rax,-0x28(%rbp)
jmp    12e7 <establish_ACC_binary_phrase_list+0x1d7>
movq   $0x2,-0x28(%rbp)
jmp    12e7 <establish_ACC_binary_phrase_list+0x1d7>
movq   $0x2,-0x28(%rbp)
jmp    12e7 <establish_ACC_binary_phrase_list+0x1d7>
jmp    12e7 <establish_ACC_binary_phrase_list+0x1d7>
jmp    12ec <establish_ACC_binary_phrase_list+0x1dc>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    11a2 <establish_ACC_binary_phrase_list+0x92>
mov    -0x18(%rbp),%rax
mov    (%rax),%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<establish_ACC_binary_phrase_list>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r15
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %rdi,%r12
xor    %edi,%edi
test   %r12,%r12
setne  %dil
call   1030 <assert@plt>
xor    %edi,%edi
test   %rbx,%rbx
setne  %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmp    $0x3e,%rbx
setl   %dil
call   1030 <assert@plt>
xor    %edi,%edi
test   %r14,%r14
setne  %dil
call   1030 <assert@plt>
mov    (%r14),%rax
test   %rbx,%rbx
jle    11d9 <establish_ACC_binary_phrase_list+0xc9>
cmp    $0x1,%rax
sbb    %rax,%rax
mov    $0x1,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    -0x8(%r12,%rcx,8),%rdx
mov    %rdx,(%r15,%rcx,8)
cmp    $0x49d,%rdx
jle    11b0 <establish_ACC_binary_phrase_list+0xa0>
cmp    $0x49e,%rdx
je     11b9 <establish_ACC_binary_phrase_list+0xa9>
cmp    $0x5be,%rdx
je     11b9 <establish_ACC_binary_phrase_list+0xa9>
cmp    $0x95e,%rdx
jne    11bc <establish_ACC_binary_phrase_list+0xac>
jmp    11d6 <establish_ACC_binary_phrase_list+0xc6>
nop
cmp    $0x45e,%rdx
jne    11cd <establish_ACC_binary_phrase_list+0xbd>
not    %rax
cmp    %rbx,%rcx
jge    11d6 <establish_ACC_binary_phrase_list+0xc6>
add    $0x1,%rcx
cmp    $0x2,%rax
jne    1180 <establish_ACC_binary_phrase_list+0x70>
jmp    11d6 <establish_ACC_binary_phrase_list+0xc6>
cmp    $0x17e,%rdx
jne    11bc <establish_ACC_binary_phrase_list+0xac>
mov    (%r14),%rax
mov    %rax,(%r15)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @establish_ACC_binary_phrase_list(i64* noalias %0, i64 %1, i64* %2, i64* %3) {
%5 = alloca i64*
%6 = alloca i64
%7 = alloca i64*
%8 = alloca i64*
%9 = alloca i64
%10 = alloca i64
store i64* %0, i64** %5
store i64 %1, i64* %6
store i64* %2, i64** %7
store i64* %3, i64** %8
store i64 0, i64* %9
store i64 0, i64* %10
%11 = load i64*, i64** %5
%12 = icmp ne i64* %11, null
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 %13)
%15 = load i64, i64* %6
%16 = icmp ne i64 %15, 0
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 %17)
%19 = load i64, i64* %6
%20 = icmp sle i64 %19, 61
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 %21)
%23 = load i64*, i64** %7
%24 = icmp ne i64* %23, null
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 %25)
%27 = load i64*, i64** %7
%28 = load i64, i64* %27
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %4
%31 = load i64, i64* %9
%32 = xor i64 %31, -1
store i64 %32, i64* %9
br label %33
33: ; preds = %30, %4
store i64 0, i64* %10
br label %34
34: ; preds = %81, %33
%35 = load i64, i64* %10
%36 = load i64, i64* %6
%37 = icmp slt i64 %35, %36
br i1 %37, label %38, label %84
38: ; preds = %34
%39 = load i64, i64* %9
%40 = icmp eq i64 %39, 2
br i1 %40, label %41, label %42
41: ; preds = %38
br label %84
42: ; preds = %38
%43 = load i64, i64* %9
switch i64 %43, label %54 [
i64 255, label %44
]
44: ; preds = %42
%45 = load i64*, i64** %7
%46 = load i64, i64* %45
%47 = load i64, i64* %10
%48 = add nsw i64 %47, 1
%49 = trunc i64 %48 to i32
%50 = shl i32 1, %49
%51 = sext i32 %50 to i64
%52 = or i64 %46, %51
%53 = load i64*, i64** %7
store i64 %52, i64* %53
br label %55
54: ; preds = %42
br label %55
55: ; preds = %54, %44
%56 = load i64*, i64** %5
%57 = load i64, i64* %10
%58 = getelementptr inbounds i64, i64* %56, i64 %57
%59 = load i64, i64* %58
%60 = load i64*, i64** %8
%61 = load i64, i64* %10
%62 = add nsw i64 %61, 1
%63 = getelementptr inbounds i64, i64* %60, i64 %62
store i64 %59, i64* %63
%64 = load i64*, i64** %5
%65 = load i64, i64* %10
%66 = getelementptr inbounds i64, i64* %64, i64 %65
%67 = load i64, i64* %66
switch i64 %67, label %79 [
i64 1118, label %68
i64 1470, label %71
i64 1182, label %74
i64 2398, label %77
i64 382, label %78
]
68: ; preds = %55
%69 = load i64, i64* %9
%70 = xor i64 %69, -1
store i64 %70, i64* %9
br label %80
71: ; preds = %55
%72 = load i64, i64* %9
%73 = xor i64 %72, -1
store i64 %73, i64* %9
br label %80
74: ; preds = %55
%75 = load i64, i64* %9
%76 = xor i64 %75, -1
store i64 %76, i64* %9
br label %80
77: ; preds = %55
store i64 2, i64* %9
br label %80
78: ; preds = %55
store i64 2, i64* %9
br label %80
79: ; preds = %55
br label %80
80: ; preds = %79, %78, %77, %74, %71, %68
br label %81
81: ; preds = %80
%82 = load i64, i64* %10
%83 = add nsw i64 %82, 1
store i64 %83, i64* %10
br label %34
84: ; preds = %41, %34
%85 = load i64*, i64** %7
%86 = load i64, i64* %85
%87 = load i64*, i64** %8
%88 = getelementptr inbounds i64, i64* %87, i64 0
store i64 %86, i64* %88
ret void
}

LLVM IR (-O2):
define void @establish_ACC_binary_phrase_list(i64* noalias %0, i64 %1, i64* %2, i64* nocapture writeonly %3) {
%5 = icmp ne i64* %0, null
%6 = zext i1 %5 to i32
%7 = tail call i32 @assert(i32 %6)
%8 = icmp ne i64 %1, 0
%9 = zext i1 %8 to i32
%10 = tail call i32 @assert(i32 %9)
%11 = icmp slt i64 %1, 62
%12 = zext i1 %11 to i32
%13 = tail call i32 @assert(i32 %12)
%14 = icmp ne i64* %2, null
%15 = zext i1 %14 to i32
%16 = tail call i32 @assert(i32 %15)
%17 = load i64, i64* %2
%18 = icmp slt i64 %1, 1
br i1 %18, label %42, label %19
19: ; preds = %4
%20 = icmp eq i64 %17, 0
%21 = sext i1 %20 to i64
br label %22
22: ; preds = %19, %35
%23 = phi i64 [ %27, %35 ], [ 0, %19 ]
%24 = phi i64 [ %36, %35 ], [ %21, %19 ]
%25 = getelementptr inbounds i64, i64* %0, i64 %23
%26 = load i64, i64* %25
%27 = add nuw nsw i64 %23, 1
%28 = getelementptr inbounds i64, i64* %3, i64 %27
store i64 %26, i64* %28
switch i64 %26, label %35 [
i64 1118, label %29
i64 1470, label %31
i64 1182, label %33
i64 2398, label %40
i64 382, label %40
]
29: ; preds = %22
%30 = xor i64 %24, -1
br label %35
31: ; preds = %22
%32 = xor i64 %24, -1
br label %35
33: ; preds = %22
%34 = xor i64 %24, -1
br label %35
35: ; preds = %29, %31, %33, %22
%36 = phi i64 [ %24, %22 ], [ %34, %33 ], [ %32, %31 ], [ %30, %29 ]
%37 = icmp sge i64 %27, %1
%38 = icmp eq i64 %36, 2
%39 = select i1 %37, i1 true, i1 %38
br i1 %39, label %40, label %22
40: ; preds = %22, %22, %35
%41 = load i64, i64* %2
br label %42
42: ; preds = %40, %4
%43 = phi i64 [ %41, %40 ], [ %17, %4 ]
store i64 %43, i64* %3
ret void
}