#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*/ memcpy(char *, char *, unsigned int);
int /*<<< orphan*/ memset(char *, unsigned char, unsigned int);
int /*<<< orphan*/ xsi_driver_first_trans_fast_port(char *);
char *xsi_get_transient_memory(unsigned int);
void xilinxcorelib_a_1600189650_0543512595_p_2(char *t0) {
  unsigned char t1;
  unsigned char t2;
  unsigned char t3;
  char *t4;
  char *t6;
  unsigned char t8;
  unsigned int t9;
  char *t10;
  char *t11;
  unsigned char t12;
  unsigned char t13;
  unsigned char t14;
  char *t15;
  char *t16;
  char *t17;
  char *t18;
  char *t19;
  char *t20;
  char *t21;
  char *t22;
  char *t23;
  char *t24;
  char *t25;
  char *t26;
  char *t27;
  char *t28;
LAB0:
  t4 = (t0 + 644403);
  t6 = (t0 + 644411);
  t8 = 1;
  if (8U == 7U)
    goto LAB14;
LAB15:
  t8 = 0;
LAB16:
  if (t8 == 1)
    goto LAB11;
LAB12:
  t3 = (unsigned char)0;
LAB13:
  if (t3 == 1)
    goto LAB8;
LAB9:
  t2 = (unsigned char)0;
LAB10:
  if (t2 == 1)
    goto LAB5;
LAB6:
  t14 = (0 == 1);
  t1 = t14;
LAB7:
  if (t1 != 0)
    goto LAB3;
LAB4:
LAB20:
  t21 = xsi_get_transient_memory(14U);
  memset(t21, 0, 14U);
  t22 = t21;
  memset(t22, (unsigned char)2, 14U);
  t23 = (t0 + 30448);
  t24 = (t23 + 56U);
  t25 = *((char **)t24);
  t26 = (t25 + 56U);
  t27 = *((char **)t26);
  memcpy(t27, t21, 14U);
  xsi_driver_first_trans_fast_port(t23);
LAB2:
  t28 = (t0 + 28320);
  *((int *)t28) = 1;
LAB1:
  return;
LAB3:
  t15 = (t0 + 6256U);
  t16 = *((char **)t15);
  t15 = (t0 + 30448);
  t17 = (t15 + 56U);
  t18 = *((char **)t17);
  t19 = (t18 + 56U);
  t20 = *((char **)t19);
  memcpy(t20, t16, 14U);
  xsi_driver_first_trans_fast_port(t15);
  goto LAB2;
LAB5:
  t1 = (unsigned char)1;
  goto LAB7;
LAB8:
  t13 = (0 == 1);
  t2 = t13;
  goto LAB10;
LAB11:
  t12 = (0 == 1);
  t3 = t12;
  goto LAB13;
LAB14:
  t9 = 0;
LAB17:
  if (t9 < 8U)
    goto LAB18;
  else
    goto LAB16;
LAB18:
  t10 = (t4 + t9);
  t11 = (t6 + t9);
  if (*((unsigned char *)t10) != *((unsigned char *)t11))
    goto LAB15;
LAB19:
  t9 = (t9 + 1);
  goto LAB17;
LAB21:
  goto LAB2;
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x9d533,%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
add    $0x9d53b,%rax
mov    %rax,-0x20(%rbp)
movb   $0x1,-0x21(%rbp)
movb   $0x0,-0x21(%rbp)
movzbl -0x21(%rbp),%eax
cmp    $0x1,%eax
jne    1185 <xilinxcorelib_a_1600189650_0543512595_p_2+0x45>
jmp    134b <xilinxcorelib_a_1600189650_0543512595_p_2+0x20b>
jmp    118a <xilinxcorelib_a_1600189650_0543512595_p_2+0x4a>
movb   $0x0,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
cmp    $0x1,%eax
jne    11a0 <xilinxcorelib_a_1600189650_0543512595_p_2+0x60>
jmp    133c <xilinxcorelib_a_1600189650_0543512595_p_2+0x1fc>
jmp    11a5 <xilinxcorelib_a_1600189650_0543512595_p_2+0x65>
movb   $0x0,-0xa(%rbp)
movzbl -0xa(%rbp),%eax
cmp    $0x1,%eax
jne    11bb <xilinxcorelib_a_1600189650_0543512595_p_2+0x7b>
jmp    1333 <xilinxcorelib_a_1600189650_0543512595_p_2+0x1f3>
jmp    11c0 <xilinxcorelib_a_1600189650_0543512595_p_2+0x80>
movb   $0x0,-0x3b(%rbp)
mov    -0x3b(%rbp),%al
mov    %al,-0x9(%rbp)
movzbl -0x9(%rbp),%eax
cmp    $0x0,%eax
je     11dc <xilinxcorelib_a_1600189650_0543512595_p_2+0x9c>
jmp    12be <xilinxcorelib_a_1600189650_0543512595_p_2+0x17e>
jmp    11e1 <xilinxcorelib_a_1600189650_0543512595_p_2+0xa1>
jmp    11e6 <xilinxcorelib_a_1600189650_0543512595_p_2+0xa6>
mov    $0xe,%edi
call   1060 <xsi_get_transient_memory@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
xor    %esi,%esi
mov    $0xe,%edx
call   1040 <memset@plt>
mov    -0x78(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rdi
mov    $0x2,%esi
mov    $0xe,%edx
call   1040 <memset@plt>
mov    -0x8(%rbp),%rax
add    $0x76f0,%rax
mov    %rax,-0x88(%rbp)
mov    -0x88(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x90(%rbp)
mov    -0x90(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x98(%rbp)
mov    -0x98(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0xa0(%rbp)
mov    -0xa0(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0xa8(%rbp)
mov    -0xa8(%rbp),%rdi
mov    -0x78(%rbp),%rsi
mov    $0xe,%edx
call   1050 <memcpy@plt>
mov    -0x88(%rbp),%rdi
call   1030 <xsi_driver_first_trans_fast_port@plt>
mov    -0x8(%rbp),%rax
add    $0x6ea0,%rax
mov    %rax,-0xb0(%rbp)
mov    -0xb0(%rbp),%rax
movl   $0x1,(%rax)
add    $0xb0,%rsp
pop    %rbp
ret
mov    -0x8(%rbp),%rax
add    $0x1870,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x50(%rbp)
mov    -0x8(%rbp),%rax
add    $0x76f0,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    (%rax),%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),%rdi
mov    -0x50(%rbp),%rsi
mov    $0xe,%edx
call   1050 <memcpy@plt>
mov    -0x48(%rbp),%rdi
call   1030 <xsi_driver_first_trans_fast_port@plt>
jmp    1297 <xilinxcorelib_a_1600189650_0543512595_p_2+0x157>
movb   $0x1,-0x9(%rbp)
jmp    11ca <xilinxcorelib_a_1600189650_0543512595_p_2+0x8a>
movb   $0x0,-0x3a(%rbp)
mov    -0x3a(%rbp),%al
mov    %al,-0xa(%rbp)
jmp    11a9 <xilinxcorelib_a_1600189650_0543512595_p_2+0x69>
movb   $0x0,-0x39(%rbp)
mov    -0x39(%rbp),%al
mov    %al,-0xb(%rbp)
jmp    118e <xilinxcorelib_a_1600189650_0543512595_p_2+0x4e>

x86 assembly (clang, -O2):
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
mov    $0xe,%edi
call   1060 <xsi_get_transient_memory@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
mov    $0xe,%edx
call   1040 <memset@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0xe,%edx
call   1040 <memset@plt>
lea    0x76f0(%r14),%r15
mov    0x7728(%r14),%rax
mov    0x38(%rax),%rdi
mov    %rbx,%rsi
mov    $0xe,%edx
call   1050 <memcpy@plt>
mov    %r15,%rdi
call   1030 <xsi_driver_first_trans_fast_port@plt>
movl   $0x1,0x6ea0(%r14)
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @xilinxcorelib_a_1600189650_0543512595_p_2(i8* %0) {
%2 = alloca i8*
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8
%9 = alloca i32
%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*
%25 = alloca i8*
%26 = alloca i8*
%27 = alloca i8*
%28 = alloca i8*
store i8* %0, i8** %2
br label %29
29: ; preds = %1
%30 = load i8*, i8** %2
%31 = getelementptr inbounds i8, i8* %30, i64 644403
store i8* %31, i8** %6
%32 = load i8*, i8** %2
%33 = getelementptr inbounds i8, i8* %32, i64 644411
store i8* %33, i8** %7
store i8 1, i8* %8
br label %34
34: ; preds = %144, %29
store i8 0, i8* %8
br label %35
35: ; preds = %127, %34
%36 = load i8, i8* %8
%37 = zext i8 %36 to i32
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %40
39: ; preds = %35
br label %120
40: ; preds = %35
br label %41
41: ; preds = %40
store i8 0, i8* %5
br label %42
42: ; preds = %120, %41
%43 = load i8, i8* %5
%44 = zext i8 %43 to i32
%45 = icmp eq i32 %44, 1
br i1 %45, label %46, label %47
46: ; preds = %42
br label %118
47: ; preds = %42
br label %48
48: ; preds = %47
store i8 0, i8* %4
br label %49
49: ; preds = %118, %48
%50 = load i8, i8* %4
%51 = zext i8 %50 to i32
%52 = icmp eq i32 %51, 1
br i1 %52, label %53, label %54
53: ; preds = %49
br label %117
54: ; preds = %49
br label %55
55: ; preds = %54
store i8 0, i8* %14
%56 = load i8, i8* %14
store i8 %56, i8* %3
br label %57
57: ; preds = %117, %55
%58 = load i8, i8* %3
%59 = zext i8 %58 to i32
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %57
br label %94
62: ; preds = %57
br label %63
63: ; preds = %62
br label %64
64: ; preds = %63
%65 = call i8* @xsi_get_transient_memory(i32 14)
store i8* %65, i8** %21
%66 = load i8*, i8** %21
%67 = call i32 @memset(i8* %66, i8 zeroext 0, i32 14)
%68 = load i8*, i8** %21
store i8* %68, i8** %22
%69 = load i8*, i8** %22
%70 = call i32 @memset(i8* %69, i8 zeroext 2, i32 14)
%71 = load i8*, i8** %2
%72 = getelementptr inbounds i8, i8* %71, i64 30448
store i8* %72, i8** %23
%73 = load i8*, i8** %23
%74 = getelementptr inbounds i8, i8* %73, i64 56
store i8* %74, i8** %24
%75 = load i8*, i8** %24
%76 = bitcast i8* %75 to i8**
%77 = load i8*, i8** %76
store i8* %77, i8** %25
%78 = load i8*, i8** %25
%79 = getelementptr inbounds i8, i8* %78, i64 56
store i8* %79, i8** %26
%80 = load i8*, i8** %26
%81 = bitcast i8* %80 to i8**
%82 = load i8*, i8** %81
store i8* %82, i8** %27
%83 = load i8*, i8** %27
%84 = load i8*, i8** %21
%85 = call i32 @memcpy(i8* %83, i8* %84, i32 14)
%86 = load i8*, i8** %23
%87 = call i32 @xsi_driver_first_trans_fast_port(i8* %86)
br label %88
88: ; preds = %149, %94, %64
%89 = load i8*, i8** %2
%90 = getelementptr inbounds i8, i8* %89, i64 28320
store i8* %90, i8** %28
%91 = load i8*, i8** %28
%92 = bitcast i8* %91 to i32*
store i32 1, i32* %92
br label %93
93: ; preds = %88
ret void
94: ; preds = %61
%95 = load i8*, i8** %2
%96 = getelementptr inbounds i8, i8* %95, i64 6256
store i8* %96, i8** %15
%97 = load i8*, i8** %15
%98 = bitcast i8* %97 to i8**
%99 = load i8*, i8** %98
store i8* %99, i8** %16
%100 = load i8*, i8** %2
%101 = getelementptr inbounds i8, i8* %100, i64 30448
store i8* %101, i8** %15
%102 = load i8*, i8** %15
%103 = getelementptr inbounds i8, i8* %102, i64 56
store i8* %103, i8** %17
%104 = load i8*, i8** %17
%105 = bitcast i8* %104 to i8**
%106 = load i8*, i8** %105
store i8* %106, i8** %18
%107 = load i8*, i8** %18
%108 = getelementptr inbounds i8, i8* %107, i64 56
store i8* %108, i8** %19
%109 = load i8*, i8** %19
%110 = bitcast i8* %109 to i8**
%111 = load i8*, i8** %110
store i8* %111, i8** %20
%112 = load i8*, i8** %20
%113 = load i8*, i8** %16
%114 = call i32 @memcpy(i8* %112, i8* %113, i32 14)
%115 = load i8*, i8** %15
%116 = call i32 @xsi_driver_first_trans_fast_port(i8* %115)
br label %88
117: ; preds = %53
store i8 1, i8* %3
br label %57
118: ; preds = %46
store i8 0, i8* %13
%119 = load i8, i8* %13
store i8 %119, i8* %4
br label %49
120: ; preds = %39
store i8 0, i8* %12
%121 = load i8, i8* %12
store i8 %121, i8* %5
br label %42
122: ; No predecessors!
store i32 0, i32* %9
br label %123
123: ; preds = %146, %122
%124 = load i32, i32* %9
%125 = icmp ult i32 %124, 8
br i1 %125, label %126, label %127
126: ; preds = %123
br label %128
127: ; preds = %123
br label %35
128: ; preds = %126
%129 = load i8*, i8** %6
%130 = load i32, i32* %9
%131 = zext i32 %130 to i64
%132 = getelementptr inbounds i8, i8* %129, i64 %131
store i8* %132, i8** %10
%133 = load i8*, i8** %7
%134 = load i32, i32* %9
%135 = zext i32 %134 to i64
%136 = getelementptr inbounds i8, i8* %133, i64 %135
store i8* %136, i8** %11
%137 = load i8*, i8** %10
%138 = load i8, i8* %137
%139 = zext i8 %138 to i32
%140 = load i8*, i8** %11
%141 = load i8, i8* %140
%142 = zext i8 %141 to i32
%143 = icmp ne i32 %139, %142
br i1 %143, label %144, label %145
144: ; preds = %128
br label %34
145: ; preds = %128
br label %146
146: ; preds = %145
%147 = load i32, i32* %9
%148 = add i32 %147, 1
store i32 %148, i32* %9
br label %123
149: ; No predecessors!
br label %88
}

LLVM IR (-O2):
define void @xilinxcorelib_a_1600189650_0543512595_p_2(i8* %0) {
%2 = tail call i8* @xsi_get_transient_memory(i32 14)
%3 = tail call i32 @memset(i8* %2, i8 zeroext 0, i32 14)
%4 = tail call i32 @memset(i8* %2, i8 zeroext 2, i32 14)
%5 = getelementptr inbounds i8, i8* %0, i64 30448
%6 = getelementptr inbounds i8, i8* %0, i64 30504
%7 = bitcast i8* %6 to i8**
%8 = load i8*, i8** %7
%9 = getelementptr inbounds i8, i8* %8, i64 56
%10 = bitcast i8* %9 to i8**
%11 = load i8*, i8** %10
%12 = tail call i32 @memcpy(i8* %11, i8* %2, i32 14)
%13 = tail call i32 @xsi_driver_first_trans_fast_port(i8* %5)
%14 = getelementptr inbounds i8, i8* %0, i64 28320
%15 = bitcast i8* %14 to i32*
store i32 1, i32* %15
ret void
}