#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*/ xsi_driver_first_trans_fast(char *);
void xilinxcorelib_a_2786250493_0543512595_p_6(char *t0) {
  unsigned char t1;
  char *t2;
  char *t3;
  int t4;
  unsigned char t5;
  char *t6;
  unsigned char t7;
  unsigned char t8;
  char *t9;
  char *t10;
  char *t11;
  char *t12;
  char *t13;
  char *t14;
  char *t15;
  char *t16;
  char *t17;
  char *t18;
  char *t19;
  char *t20;
LAB0:
  t2 = (t0 + 18952U);
  t3 = *((char **)t2);
  t4 = *((int *)t3);
  t5 = (t4 == 1);
  if (t5 == 1)
    goto LAB5;
LAB6:
  t1 = (unsigned char)0;
LAB7:
  if (t1 != 0)
    goto LAB3;
LAB4:
LAB8:
  t14 = (t0 + 19792U);
  t15 = *((char **)t14);
  t14 = (t0 + 30704);
  t16 = (t14 + 56U);
  t17 = *((char **)t16);
  t18 = (t17 + 56U);
  t19 = *((char **)t18);
  memcpy(t19, t15, 1U);
  xsi_driver_first_trans_fast(t14);
LAB2:
  t20 = (t0 + 28384);
  *((int *)t20) = 1;
LAB1:
  return;
LAB3:
  t2 = (t0 + 3216U);
  t9 = *((char **)t2);
  t2 = (t0 + 30704);
  t10 = (t2 + 56U);
  t11 = *((char **)t10);
  t12 = (t11 + 56U);
  t13 = *((char **)t12);
  memcpy(t13, t9, 1U);
  xsi_driver_first_trans_fast(t2);
  goto LAB2;
LAB5:
  t2 = (t0 + 7216U);
  t6 = *((char **)t2);
  t7 = *((unsigned char *)t6);
  t8 = (t7 == (unsigned char)3);
  t1 = t8;
  goto LAB7;
LAB9:
  goto LAB2;
}


x86 assembly (clang, -O0):
<xilinxcorelib_a_2786250493_0543512595_p_6>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x4a08,%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   $0x1,-0x24(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %al,-0x25(%rbp)
movzbl -0x25(%rbp),%eax
cmp    $0x1,%eax
jne    1172 <xilinxcorelib_a_2786250493_0543512595_p_6+0x52>
jmp    12af <xilinxcorelib_a_2786250493_0543512595_p_6+0x18f>
jmp    1177 <xilinxcorelib_a_2786250493_0543512595_p_6+0x57>
movb   $0x0,-0x9(%rbp)
movzbl -0x9(%rbp),%eax
cmp    $0x0,%eax
je     118d <xilinxcorelib_a_2786250493_0543512595_p_6+0x6d>
jmp    123a <xilinxcorelib_a_2786250493_0543512595_p_6+0x11a>
jmp    1192 <xilinxcorelib_a_2786250493_0543512595_p_6+0x72>
jmp    1197 <xilinxcorelib_a_2786250493_0543512595_p_6+0x77>
mov    -0x8(%rbp),%rax
add    $0x4d50,%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x70(%rbp)
mov    -0x8(%rbp),%rax
add    $0x77f0,%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x88(%rbp)
mov    -0x88(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x90(%rbp)
mov    -0x90(%rbp),%rdi
mov    -0x70(%rbp),%rsi
mov    $0x1,%edx
call   1040 <memcpy@plt>
mov    -0x68(%rbp),%rdi
call   1030 <xsi_driver_first_trans_fast@plt>
mov    -0x8(%rbp),%rax
add    $0x6ee0,%rax
mov    %rax,-0x98(%rbp)
mov    -0x98(%rbp),%rax
movl   $0x1,(%rax)
add    $0xa0,%rsp
pop    %rbp
ret
mov    -0x8(%rbp),%rax
add    $0xc90,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%rax
add    $0x77f0,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    $0x1,%edx
call   1040 <memcpy@plt>
mov    -0x18(%rbp),%rdi
call   1030 <xsi_driver_first_trans_fast@plt>
jmp    1213 <xilinxcorelib_a_2786250493_0543512595_p_6+0xf3>
mov    -0x8(%rbp),%rax
add    $0x1c30,%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)
movzbl -0x31(%rbp),%eax
cmp    $0x3,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %al,-0x32(%rbp)
mov    -0x32(%rbp),%al
mov    %al,-0x9(%rbp)
jmp    117b <xilinxcorelib_a_2786250493_0543512595_p_6+0x5b>

x86 assembly (clang, -O2):
<xilinxcorelib_a_2786250493_0543512595_p_6>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x4a08(%rdi),%rax
cmpl   $0x1,(%rax)
jne    1144 <xilinxcorelib_a_2786250493_0543512595_p_6+0x24>
mov    0x1c30(%rbx),%rcx
mov    $0xc90,%eax
cmpb   $0x3,(%rcx)
je     1149 <xilinxcorelib_a_2786250493_0543512595_p_6+0x29>
mov    $0x4d50,%eax
mov    (%rbx,%rax,1),%rsi
lea    0x77f0(%rbx),%r14
mov    0x7828(%rbx),%rax
mov    0x38(%rax),%rdi
mov    $0x1,%edx
call   1040 <memcpy@plt>
mov    %r14,%rdi
call   1030 <xsi_driver_first_trans_fast@plt>
movl   $0x1,0x6ee0(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @xilinxcorelib_a_2786250493_0543512595_p_6(i8* %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 18952
%3 = bitcast i8* %2 to i32**
%4 = load i32*, i32** %3
%5 = load i32, i32* %4
%6 = icmp eq i32 %5, 1
br i1 %6, label %24, label %7
7: ; preds = %1, %24
br label %8
8: ; preds = %24, %7
%9 = phi i64 [ 19792, %7 ], [ 3216, %24 ]
%10 = getelementptr inbounds i8, i8* %0, i64 %9
%11 = bitcast i8* %10 to i8**
%12 = load i8*, i8** %11
%13 = getelementptr inbounds i8, i8* %0, i64 30704
%14 = getelementptr inbounds i8, i8* %0, i64 30760
%15 = bitcast i8* %14 to i8**
%16 = load i8*, i8** %15
%17 = getelementptr inbounds i8, i8* %16, i64 56
%18 = bitcast i8* %17 to i8**
%19 = load i8*, i8** %18
%20 = tail call i32 @memcpy(i8* %19, i8* %12, i32 1)
%21 = tail call i32 @xsi_driver_first_trans_fast(i8* %13)
%22 = getelementptr inbounds i8, i8* %0, i64 28384
%23 = bitcast i8* %22 to i32*
store i32 1, i32* %23
ret void
24: ; preds = %1
%25 = getelementptr inbounds i8, i8* %0, i64 7216
%26 = bitcast i8* %25 to i8**
%27 = load i8*, i8** %26
%28 = load i8, i8* %27
%29 = icmp eq i8 %28, 3
br i1 %29, label %8, label %7
}