#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_delta(char *, unsigned int,
                                                unsigned int, long long);
int /*<<< orphan*/ xsi_driver_intertial_reject(char *, long long, long long);
void xilinxcorelib_a_2786250493_0543512595_sub_616253073571835568_3745213680167319624(
    char *t0, char *t1, unsigned char t2) {
  char t4[8];
  char *t5;
  unsigned char t6;
  char *t7;
  char *t8;
  char *t9;
  char *t10;
  char *t11;
  char *t12;
  char *t13;
  char *t14;
  unsigned int t15;
  char *t16;
  char *t17;
  unsigned int t18;
  unsigned int t19;
  char *t20;
LAB0:
  t5 = (t4 + 4U);
  *((unsigned char *)t5) = t2;
  t6 = (t2 == (unsigned char)3);
  if (t6 != 0)
    goto LAB2;
LAB4:
LAB3:
LAB1:
  return;
LAB2:
  t7 = (t0 + 18472U);
  t8 = *((char **)t7);
  t7 = (t0 + 31088);
  t9 = (t7 + 56U);
  t10 = *((char **)t9);
  t11 = (t10 + 56U);
  t12 = *((char **)t11);
  t13 = (t0 + 53136U);
  t14 = (t13 + 12U);
  t15 = *((unsigned int *)t14);
  t15 = (t15 * 1U);
  memcpy(t12, t8, t15);
  t16 = (t0 + 53136U);
  t17 = (t16 + 12U);
  t18 = *((unsigned int *)t17);
  t19 = (1U * t18);
  xsi_driver_first_trans_delta(t7, 0U, t19, 100LL);
  t20 = (t0 + 31088);
  xsi_driver_intertial_reject(t20, 100LL, 100LL);
  goto LAB3;
}


x86 assembly (clang, -O0):
<xilinxcorelib_a_2786250493_0543512595_sub_616253073571835568_3745213680167319624>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %dl,%al
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %al,-0x11(%rbp)
lea    -0x19(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x28(%rbp)
mov    -0x11(%rbp),%cl
mov    -0x28(%rbp),%rax
mov    %cl,(%rax)
movzbl -0x11(%rbp),%eax
cmp    $0x3,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %al,-0x29(%rbp)
movzbl -0x29(%rbp),%eax
cmp    $0x0,%eax
je     1181 <xilinxcorelib_a_2786250493_0543512595_sub_616253073571835568_3745213680167319624+0x51>
jmp    1199 <xilinxcorelib_a_2786250493_0543512595_sub_616253073571835568_3745213680167319624+0x69>
jmp    1186 <xilinxcorelib_a_2786250493_0543512595_sub_616253073571835568_3745213680167319624+0x56>
jmp    118b <xilinxcorelib_a_2786250493_0543512595_sub_616253073571835568_3745213680167319624+0x5b>
jmp    1190 <xilinxcorelib_a_2786250493_0543512595_sub_616253073571835568_3745213680167319624+0x60>
add    $0xa0,%rsp
pop    %rbp
ret
mov    -0x8(%rbp),%rax
add    $0x4828,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%rax
add    $0x7970,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%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    -0x8(%rbp),%rax
add    $0xcf90,%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x74(%rbp)
mov    -0x74(%rbp),%eax
shl    $0x0,%eax
mov    %eax,-0x74(%rbp)
mov    -0x60(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x74(%rbp),%edx
call   1040 <memcpy@plt>
mov    -0x8(%rbp),%rax
add    $0xcf90,%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x88(%rbp)
mov    -0x88(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
shl    $0x0,%eax
mov    %eax,-0x90(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x90(%rbp),%edx
xor    %esi,%esi
mov    $0x64,%ecx
call   1030 <xsi_driver_first_trans_delta@plt>
mov    -0x8(%rbp),%rax
add    $0x7970,%rax
mov    %rax,-0x98(%rbp)
mov    -0x98(%rbp),%rdi
mov    $0x64,%edx
mov    %rdx,%rsi
call   1050 <xsi_driver_intertial_reject@plt>
jmp    118b <xilinxcorelib_a_2786250493_0543512595_sub_616253073571835568_3745213680167319624+0x5b>

x86 assembly (clang, -O2):
<xilinxcorelib_a_2786250493_0543512595_sub_616253073571835568_3745213680167319624>:
cmp    $0x3,%dl
jne    118e <xilinxcorelib_a_2786250493_0543512595_sub_616253073571835568_3745213680167319624+0x5e>
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x4828(%rdi),%rsi
lea    0x7970(%rdi),%r14
mov    0x79a8(%rdi),%rax
mov    0x38(%rax),%rdi
mov    0xcf9c(%rbx),%edx
call   1040 <memcpy@plt>
mov    0xcf9c(%rbx),%edx
mov    $0x64,%ecx
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <xsi_driver_first_trans_delta@plt>
mov    $0x64,%esi
mov    $0x64,%edx
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <xsi_driver_intertial_reject@plt>
ret

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

LLVM IR (-O2):
define void @xilinxcorelib_a_2786250493_0543512595_sub_616253073571835568_3745213680167319624(i8* %0, i8* nocapture readnone %1, i8 zeroext %2) {
%4 = icmp eq i8 %2, 3
br i1 %4, label %6, label %5
5: ; preds = %6, %3
ret void
6: ; preds = %3
%7 = getelementptr inbounds i8, i8* %0, i64 18472
%8 = bitcast i8* %7 to i8**
%9 = load i8*, i8** %8
%10 = getelementptr inbounds i8, i8* %0, i64 31088
%11 = getelementptr inbounds i8, i8* %0, i64 31144
%12 = bitcast i8* %11 to i8**
%13 = load i8*, i8** %12
%14 = getelementptr inbounds i8, i8* %13, i64 56
%15 = bitcast i8* %14 to i8**
%16 = load i8*, i8** %15
%17 = getelementptr inbounds i8, i8* %0, i64 53148
%18 = bitcast i8* %17 to i32*
%19 = load i32, i32* %18
%20 = tail call i32 @memcpy(i8* %16, i8* %9, i32 %19)
%21 = load i32, i32* %18
%22 = tail call i32 @xsi_driver_first_trans_delta(i8* %10, i32 0, i32 %21, i64 100)
%23 = tail call i32 @xsi_driver_intertial_reject(i8* %10, i64 100, i64 100)
br label %5
}