#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_7(char *t0) {
  char *t1;
  char *t2;
  int t3;
  unsigned char t4;
  char *t5;
  unsigned char t6;
  char *t7;
  char *t8;
  char *t9;
  char *t10;
  char *t11;
  char *t12;
  char *t13;
  char *t14;
  char *t15;
  char *t16;
LAB0:
  t1 = (t0 + 19072U);
  t2 = *((char **)t1);
  t3 = *((int *)t2);
  t4 = (t3 == 1);
  if (t4 != 0)
    goto LAB3;
LAB4:
LAB5:
  t11 = (t0 + 30768);
  t12 = (t11 + 56U);
  t13 = *((char **)t12);
  t14 = (t13 + 56U);
  t15 = *((char **)t14);
  *((unsigned char *)t15) = (unsigned char)2;
  xsi_driver_first_trans_fast(t11);
LAB2:
  t16 = (t0 + 28400);
  *((int *)t16) = 1;
LAB1:
  return;
LAB3:
  t1 = (t0 + 7056U);
  t5 = *((char **)t1);
  t6 = *((unsigned char *)t5);
  t1 = (t0 + 30768);
  t7 = (t1 + 56U);
  t8 = *((char **)t7);
  t9 = (t8 + 56U);
  t10 = *((char **)t9);
  *((unsigned char *)t10) = t6;
  xsi_driver_first_trans_fast(t1);
  goto LAB2;
LAB6:
  goto LAB2;
}


x86 assembly (clang, -O0):
<xilinxcorelib_a_3146741991_0543512595_p_7>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x4a80,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %al,-0x1d(%rbp)
movzbl -0x1d(%rbp),%eax
cmp    $0x0,%eax
je     1162 <xilinxcorelib_a_3146741991_0543512595_p_7+0x52>
jmp    11d9 <xilinxcorelib_a_3146741991_0543512595_p_7+0xc9>
jmp    1167 <xilinxcorelib_a_3146741991_0543512595_p_7+0x57>
jmp    116c <xilinxcorelib_a_3146741991_0543512595_p_7+0x5c>
mov    -0x8(%rbp),%rax
add    $0x7830,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
movb   $0x2,(%rax)
mov    -0x58(%rbp),%rdi
call   1030 <xsi_driver_first_trans_fast@plt>
mov    -0x8(%rbp),%rax
add    $0x6ef0,%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
movl   $0x1,(%rax)
add    $0x80,%rsp
pop    %rbp
ret
mov    -0x8(%rbp),%rax
add    $0x1b90,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x29(%rbp)
mov    -0x8(%rbp),%rax
add    $0x7830,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x50(%rbp)
mov    -0x29(%rbp),%cl
mov    -0x50(%rbp),%rax
mov    %cl,(%rax)
mov    -0x10(%rbp),%rdi
call   1030 <xsi_driver_first_trans_fast@plt>
jmp    11b8 <xilinxcorelib_a_3146741991_0543512595_p_7+0xa8>

x86 assembly (clang, -O2):
<xilinxcorelib_a_3146741991_0543512595_p_7>:
push   %rbx
mov    %rdi,%rbx
mov    0x4a80(%rdi),%rcx
mov    $0x2,%al
cmpl   $0x1,(%rcx)
jne    112b <xilinxcorelib_a_3146741991_0543512595_p_7+0x1b>
mov    0x1b90(%rbx),%rax
mov    (%rax),%al
lea    0x7830(%rbx),%rdi
mov    0x7868(%rbx),%rcx
mov    0x38(%rcx),%rcx
mov    %al,(%rcx)
call   1030 <xsi_driver_first_trans_fast@plt>
movl   $0x1,0x6ef0(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @xilinxcorelib_a_3146741991_0543512595_p_7(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8
%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*
store i8* %0, i8** %2
br label %19
19: ; preds = %1
%20 = load i8*, i8** %2
%21 = getelementptr inbounds i8, i8* %20, i64 19072
store i8* %21, i8** %3
%22 = load i8*, i8** %3
%23 = bitcast i8* %22 to i8**
%24 = load i8*, i8** %23
store i8* %24, i8** %4
%25 = load i8*, i8** %4
%26 = bitcast i8* %25 to i32*
%27 = load i32, i32* %26
store i32 %27, i32* %5
%28 = load i32, i32* %5
%29 = icmp eq i32 %28, 1
%30 = zext i1 %29 to i32
%31 = trunc i32 %30 to i8
store i8 %31, i8* %6
%32 = load i8, i8* %6
%33 = zext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %19
br label %60
36: ; preds = %19
br label %37
37: ; preds = %36
br label %38
38: ; preds = %37
%39 = load i8*, i8** %2
%40 = getelementptr inbounds i8, i8* %39, i64 30768
store i8* %40, i8** %13
%41 = load i8*, i8** %13
%42 = getelementptr inbounds i8, i8* %41, i64 56
store i8* %42, i8** %14
%43 = load i8*, i8** %14
%44 = bitcast i8* %43 to i8**
%45 = load i8*, i8** %44
store i8* %45, i8** %15
%46 = load i8*, i8** %15
%47 = getelementptr inbounds i8, i8* %46, i64 56
store i8* %47, i8** %16
%48 = load i8*, i8** %16
%49 = bitcast i8* %48 to i8**
%50 = load i8*, i8** %49
store i8* %50, i8** %17
%51 = load i8*, i8** %17
store i8 2, i8* %51
%52 = load i8*, i8** %13
%53 = call i32 @xsi_driver_first_trans_fast(i8* %52)
br label %54
54: ; preds = %84, %60, %38
%55 = load i8*, i8** %2
%56 = getelementptr inbounds i8, i8* %55, i64 28400
store i8* %56, i8** %18
%57 = load i8*, i8** %18
%58 = bitcast i8* %57 to i32*
store i32 1, i32* %58
br label %59
59: ; preds = %54
ret void
60: ; preds = %35
%61 = load i8*, i8** %2
%62 = getelementptr inbounds i8, i8* %61, i64 7056
store i8* %62, i8** %3
%63 = load i8*, i8** %3
%64 = bitcast i8* %63 to i8**
%65 = load i8*, i8** %64
store i8* %65, i8** %7
%66 = load i8*, i8** %7
%67 = load i8, i8* %66
store i8 %67, i8* %8
%68 = load i8*, i8** %2
%69 = getelementptr inbounds i8, i8* %68, i64 30768
store i8* %69, i8** %3
%70 = load i8*, i8** %3
%71 = getelementptr inbounds i8, i8* %70, i64 56
store i8* %71, i8** %9
%72 = load i8*, i8** %9
%73 = bitcast i8* %72 to i8**
%74 = load i8*, i8** %73
store i8* %74, i8** %10
%75 = load i8*, i8** %10
%76 = getelementptr inbounds i8, i8* %75, i64 56
store i8* %76, i8** %11
%77 = load i8*, i8** %11
%78 = bitcast i8* %77 to i8**
%79 = load i8*, i8** %78
store i8* %79, i8** %12
%80 = load i8, i8* %8
%81 = load i8*, i8** %12
store i8 %80, i8* %81
%82 = load i8*, i8** %3
%83 = call i32 @xsi_driver_first_trans_fast(i8* %82)
br label %54
84: ; No predecessors!
br label %54
}

LLVM IR (-O2):
define void @xilinxcorelib_a_3146741991_0543512595_p_7(i8* %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 19072
%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 %19, label %7
7: ; preds = %1, %19
%8 = phi i8 [ %23, %19 ], [ 2, %1 ]
%9 = getelementptr inbounds i8, i8* %0, i64 30768
%10 = getelementptr inbounds i8, i8* %0, i64 30824
%11 = bitcast i8* %10 to i8**
%12 = load i8*, i8** %11
%13 = getelementptr inbounds i8, i8* %12, i64 56
%14 = bitcast i8* %13 to i8**
%15 = load i8*, i8** %14
store i8 %8, i8* %15
%16 = tail call i32 @xsi_driver_first_trans_fast(i8* %9)
%17 = getelementptr inbounds i8, i8* %0, i64 28400
%18 = bitcast i8* %17 to i32*
store i32 1, i32* %18
ret void
19: ; preds = %1
%20 = getelementptr inbounds i8, i8* %0, i64 7056
%21 = bitcast i8* %20 to i8**
%22 = load i8*, i8** %21
%23 = load i8, i8* %22
br label %7
}