#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*/ xsi_driver_first_trans_fast(char *);
void xilinxcorelib_a_3146741991_0543512595_p_10(char *t0) {
  unsigned char t1;
  unsigned char t2;
  unsigned char t3;
  char *t4;
  char *t5;
  int t6;
  unsigned char t7;
  unsigned char t8;
  unsigned char t9;
  unsigned char t10;
  char *t11;
  unsigned char t12;
  char *t13;
  char *t14;
  char *t15;
  char *t16;
  char *t17;
  char *t18;
  char *t19;
  char *t20;
  char *t21;
  char *t22;
LAB0:
  t3 = (0 == 1);
  if (t3 == 1)
    goto LAB8;
LAB9:
  t2 = (unsigned char)0;
LAB10:
  if (t2 == 1)
    goto LAB5;
LAB6:
  t9 = (0 == 1);
  if (t9 == 1)
    goto LAB11;
LAB12:
  t8 = (unsigned char)0;
LAB13:
  t1 = t8;
LAB7:
  if (t1 != 0)
    goto LAB3;
LAB4:
LAB14:
  t17 = (t0 + 30960);
  t18 = (t17 + 56U);
  t19 = *((char **)t18);
  t20 = (t19 + 56U);
  t21 = *((char **)t20);
  *((unsigned char *)t21) = (unsigned char)2;
  xsi_driver_first_trans_fast(t17);
LAB2:
  t22 = (t0 + 28448);
  *((int *)t22) = 1;
LAB1:
  return;
LAB3:
  t4 = (t0 + 2736U);
  t11 = *((char **)t4);
  t12 = *((unsigned char *)t11);
  t4 = (t0 + 30960);
  t13 = (t4 + 56U);
  t14 = *((char **)t13);
  t15 = (t14 + 56U);
  t16 = *((char **)t15);
  *((unsigned char *)t16) = t12;
  xsi_driver_first_trans_fast(t4);
  goto LAB2;
LAB5:
  t1 = (unsigned char)1;
  goto LAB7;
LAB8:
  t4 = (t0 + 19552U);
  t5 = *((char **)t4);
  t6 = *((int *)t5);
  t7 = (t6 == 0);
  t2 = t7;
  goto LAB10;
LAB11:
  t10 = (0 == 1);
  t8 = t10;
  goto LAB13;
LAB15:
  goto LAB2;
}


x86 assembly (clang, -O0):
<xilinxcorelib_a_3146741991_0543512595_p_10>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
movb   $0x0,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
cmp    $0x1,%eax
jne    1135 <xilinxcorelib_a_3146741991_0543512595_p_10+0x25>
jmp    1287 <xilinxcorelib_a_3146741991_0543512595_p_10+0x177>
jmp    113a <xilinxcorelib_a_3146741991_0543512595_p_10+0x2a>
movb   $0x0,-0xa(%rbp)
movzbl -0xa(%rbp),%eax
cmp    $0x1,%eax
jne    1150 <xilinxcorelib_a_3146741991_0543512595_p_10+0x40>
jmp    127e <xilinxcorelib_a_3146741991_0543512595_p_10+0x16e>
jmp    1155 <xilinxcorelib_a_3146741991_0543512595_p_10+0x45>
movb   $0x0,-0x27(%rbp)
movzbl -0x27(%rbp),%eax
cmp    $0x1,%eax
jne    116b <xilinxcorelib_a_3146741991_0543512595_p_10+0x5b>
jmp    12c3 <xilinxcorelib_a_3146741991_0543512595_p_10+0x1b3>
jmp    1170 <xilinxcorelib_a_3146741991_0543512595_p_10+0x60>
movb   $0x0,-0x26(%rbp)
mov    -0x26(%rbp),%al
mov    %al,-0x9(%rbp)
movzbl -0x9(%rbp),%eax
cmp    $0x0,%eax
je     118c <xilinxcorelib_a_3146741991_0543512595_p_10+0x7c>
jmp    1209 <xilinxcorelib_a_3146741991_0543512595_p_10+0xf9>
jmp    1191 <xilinxcorelib_a_3146741991_0543512595_p_10+0x81>
jmp    1196 <xilinxcorelib_a_3146741991_0543512595_p_10+0x86>
mov    -0x8(%rbp),%rax
add    $0x78f0,%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
movb   $0x2,(%rax)
mov    -0x60(%rbp),%rdi
call   1030 <xsi_driver_first_trans_fast@plt>
mov    -0x8(%rbp),%rax
add    $0x6f20,%rax
mov    %rax,-0x88(%rbp)
mov    -0x88(%rbp),%rax
movl   $0x1,(%rax)
add    $0x90,%rsp
pop    %rbp
ret
mov    -0x8(%rbp),%rax
add    $0xab0,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
mov    -0x8(%rbp),%rax
add    $0x78f0,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x58(%rbp)
mov    -0x31(%rbp),%cl
mov    -0x58(%rbp),%rax
mov    %cl,(%rax)
mov    -0x18(%rbp),%rdi
call   1030 <xsi_driver_first_trans_fast@plt>
jmp    11e2 <xilinxcorelib_a_3146741991_0543512595_p_10+0xd2>
movb   $0x1,-0x9(%rbp)
jmp    117a <xilinxcorelib_a_3146741991_0543512595_p_10+0x6a>
mov    -0x8(%rbp),%rax
add    $0x4c60,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %al,-0x25(%rbp)
mov    -0x25(%rbp),%al
mov    %al,-0xa(%rbp)
jmp    113e <xilinxcorelib_a_3146741991_0543512595_p_10+0x2e>
movb   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%al
mov    %al,-0x26(%rbp)
jmp    1174 <xilinxcorelib_a_3146741991_0543512595_p_10+0x64>

x86 assembly (clang, -O2):
<xilinxcorelib_a_3146741991_0543512595_p_10>:
push   %rbx
mov    %rdi,%rbx
add    $0x78f0,%rdi
mov    0x7928(%rbx),%rax
mov    0x38(%rax),%rax
movb   $0x2,(%rax)
call   1030 <xsi_driver_first_trans_fast@plt>
movl   $0x1,0x6f20(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @xilinxcorelib_a_3146741991_0543512595_p_10(i8* %0) {
%2 = alloca i8*
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8
%13 = alloca i8*
%14 = alloca i8
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i8*
%21 = alloca i8*
%22 = alloca i8*
%23 = alloca i8*
%24 = alloca i8*
store i8* %0, i8** %2
br label %25
25: ; preds = %1
store i8 0, i8* %5
%26 = load i8, i8* %5
%27 = zext i8 %26 to i32
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %30
29: ; preds = %25
br label %101
30: ; preds = %25
br label %31
31: ; preds = %30
store i8 0, i8* %4
br label %32
32: ; preds = %101, %31
%33 = load i8, i8* %4
%34 = zext i8 %33 to i32
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %37
36: ; preds = %32
br label %100
37: ; preds = %32
br label %38
38: ; preds = %37
store i8 0, i8* %11
%39 = load i8, i8* %11
%40 = zext i8 %39 to i32
%41 = icmp eq i32 %40, 1
br i1 %41, label %42, label %43
42: ; preds = %38
br label %115
43: ; preds = %38
br label %44
44: ; preds = %43
store i8 0, i8* %10
br label %45
45: ; preds = %115, %44
%46 = load i8, i8* %10
store i8 %46, i8* %3
br label %47
47: ; preds = %100, %45
%48 = load i8, i8* %3
%49 = zext i8 %48 to i32
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %47
br label %76
52: ; preds = %47
br label %53
53: ; preds = %52
br label %54
54: ; preds = %53
%55 = load i8*, i8** %2
%56 = getelementptr inbounds i8, i8* %55, i64 30960
store i8* %56, i8** %19
%57 = load i8*, i8** %19
%58 = getelementptr inbounds i8, i8* %57, i64 56
store i8* %58, i8** %20
%59 = load i8*, i8** %20
%60 = bitcast i8* %59 to i8**
%61 = load i8*, i8** %60
store i8* %61, i8** %21
%62 = load i8*, i8** %21
%63 = getelementptr inbounds i8, i8* %62, i64 56
store i8* %63, i8** %22
%64 = load i8*, i8** %22
%65 = bitcast i8* %64 to i8**
%66 = load i8*, i8** %65
store i8* %66, i8** %23
%67 = load i8*, i8** %23
store i8 2, i8* %67
%68 = load i8*, i8** %19
%69 = call i32 @xsi_driver_first_trans_fast(i8* %68)
br label %70
70: ; preds = %117, %76, %54
%71 = load i8*, i8** %2
%72 = getelementptr inbounds i8, i8* %71, i64 28448
store i8* %72, i8** %24
%73 = load i8*, i8** %24
%74 = bitcast i8* %73 to i32*
store i32 1, i32* %74
br label %75
75: ; preds = %70
ret void
76: ; preds = %51
%77 = load i8*, i8** %2
%78 = getelementptr inbounds i8, i8* %77, i64 2736
store i8* %78, i8** %6
%79 = load i8*, i8** %6
%80 = bitcast i8* %79 to i8**
%81 = load i8*, i8** %80
store i8* %81, i8** %13
%82 = load i8*, i8** %13
%83 = load i8, i8* %82
store i8 %83, i8* %14
%84 = load i8*, i8** %2
%85 = getelementptr inbounds i8, i8* %84, i64 30960
store i8* %85, i8** %6
%86 = load i8*, i8** %6
%87 = getelementptr inbounds i8, i8* %86, i64 56
store i8* %87, i8** %15
%88 = load i8*, i8** %15
%89 = bitcast i8* %88 to i8**
%90 = load i8*, i8** %89
store i8* %90, i8** %16
%91 = load i8*, i8** %16
%92 = getelementptr inbounds i8, i8* %91, i64 56
store i8* %92, i8** %17
%93 = load i8*, i8** %17
%94 = bitcast i8* %93 to i8**
%95 = load i8*, i8** %94
store i8* %95, i8** %18
%96 = load i8, i8* %14
%97 = load i8*, i8** %18
store i8 %96, i8* %97
%98 = load i8*, i8** %6
%99 = call i32 @xsi_driver_first_trans_fast(i8* %98)
br label %70
100: ; preds = %36
store i8 1, i8* %3
br label %47
101: ; preds = %29
%102 = load i8*, i8** %2
%103 = getelementptr inbounds i8, i8* %102, i64 19552
store i8* %103, i8** %6
%104 = load i8*, i8** %6
%105 = bitcast i8* %104 to i8**
%106 = load i8*, i8** %105
store i8* %106, i8** %7
%107 = load i8*, i8** %7
%108 = bitcast i8* %107 to i32*
%109 = load i32, i32* %108
store i32 %109, i32* %8
%110 = load i32, i32* %8
%111 = icmp eq i32 %110, 0
%112 = zext i1 %111 to i32
%113 = trunc i32 %112 to i8
store i8 %113, i8* %9
%114 = load i8, i8* %9
store i8 %114, i8* %4
br label %32
115: ; preds = %42
store i8 0, i8* %12
%116 = load i8, i8* %12
store i8 %116, i8* %10
br label %45
117: ; No predecessors!
br label %70
}

LLVM IR (-O2):
define void @xilinxcorelib_a_3146741991_0543512595_p_10(i8* %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 30960
%3 = getelementptr inbounds i8, i8* %0, i64 31016
%4 = bitcast i8* %3 to i8**
%5 = load i8*, i8** %4
%6 = getelementptr inbounds i8, i8* %5, i64 56
%7 = bitcast i8* %6 to i8**
%8 = load i8*, i8** %7
store i8 2, i8* %8
%9 = tail call i32 @xsi_driver_first_trans_fast(i8* %2)
%10 = getelementptr inbounds i8, i8* %0, i64 28448
%11 = bitcast i8* %10 to i32*
store i32 1, i32* %11
ret void
}