#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 simprim_a_3215534263_2810828532_p_10(char *t0) {
  char *t1;
  char *t2;
  unsigned char t3;
  unsigned char t4;
  char *t5;
  unsigned char t6;
  char *t7;
  char *t8;
  char *t9;
  char *t10;
  char *t11;
  char *t12;
  unsigned char t13;
  char *t14;
  char *t15;
  char *t16;
  char *t17;
  char *t18;
LAB0:
  t1 = (t0 + 3480U);
  t2 = *((char **)t1);
  t3 = *((unsigned char *)t2);
  t4 = (t3 == (unsigned char)3);
  if (t4 != 0)
    goto LAB3;
LAB4:
LAB5:
  t11 = (t0 + 4280U);
  t12 = *((char **)t11);
  t13 = *((unsigned char *)t12);
  t11 = (t0 + 16648);
  t14 = (t11 + 56U);
  t15 = *((char **)t14);
  t16 = (t15 + 56U);
  t17 = *((char **)t16);
  *((unsigned char *)t17) = t13;
  xsi_driver_first_trans_fast(t11);
LAB2:
  t18 = (t0 + 15736);
  *((int *)t18) = 1;
LAB1:
  return;
LAB3:
  t1 = (t0 + 2520U);
  t5 = *((char **)t1);
  t6 = *((unsigned char *)t5);
  t1 = (t0 + 16648);
  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):
<simprim_a_3215534263_2810828532_p_10>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0xd98,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x19(%rbp)
movzbl -0x19(%rbp),%eax
cmp    $0x3,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %al,-0x1a(%rbp)
movzbl -0x1a(%rbp),%eax
cmp    $0x0,%eax
je     1165 <simprim_a_3215534263_2810828532_p_10+0x55>
jmp    120c <simprim_a_3215534263_2810828532_p_10+0xfc>
jmp    116a <simprim_a_3215534263_2810828532_p_10+0x5a>
jmp    116f <simprim_a_3215534263_2810828532_p_10+0x5f>
mov    -0x8(%rbp),%rax
add    $0x10b8,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x61(%rbp)
mov    -0x8(%rbp),%rax
add    $0x4108,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x88(%rbp)
mov    -0x61(%rbp),%cl
mov    -0x88(%rbp),%rax
mov    %cl,(%rax)
mov    -0x58(%rbp),%rdi
call   1030 <xsi_driver_first_trans_fast@plt>
mov    -0x8(%rbp),%rax
add    $0x3d78,%rax
mov    %rax,-0x90(%rbp)
mov    -0x90(%rbp),%rax
movl   $0x1,(%rax)
add    $0x90,%rsp
pop    %rbp
ret
mov    -0x8(%rbp),%rax
add    $0x9d8,%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    $0x4108,%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    11e5 <simprim_a_3215534263_2810828532_p_10+0xd5>

x86 assembly (clang, -O2):
<simprim_a_3215534263_2810828532_p_10>:
push   %rbx
mov    %rdi,%rbx
mov    0xd98(%rdi),%rax
lea    0x10b8(%rdi),%rcx
lea    0x9d8(%rdi),%rdx
cmpb   $0x3,(%rax)
cmove  %rdx,%rcx
mov    (%rcx),%rax
mov    (%rax),%al
add    $0x4108,%rdi
mov    0x4140(%rbx),%rcx
mov    0x38(%rcx),%rcx
mov    %al,(%rcx)
call   1030 <xsi_driver_first_trans_fast@plt>
movl   $0x1,0x3d78(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @simprim_a_3215534263_2810828532_p_10(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 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*
store i8* %0, i8** %2
br label %21
21: ; preds = %1
%22 = load i8*, i8** %2
%23 = getelementptr inbounds i8, i8* %22, i64 3480
store i8* %23, i8** %3
%24 = load i8*, i8** %3
%25 = bitcast i8* %24 to i8**
%26 = load i8*, i8** %25
store i8* %26, i8** %4
%27 = load i8*, i8** %4
%28 = load i8, i8* %27
store i8 %28, i8* %5
%29 = load i8, i8* %5
%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* %6
%34 = load i8, i8* %6
%35 = zext i8 %34 to i32
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %21
br label %70
38: ; preds = %21
br label %39
39: ; preds = %38
br label %40
40: ; preds = %39
%41 = load i8*, i8** %2
%42 = getelementptr inbounds i8, i8* %41, i64 4280
store i8* %42, i8** %13
%43 = load i8*, i8** %13
%44 = bitcast i8* %43 to i8**
%45 = load i8*, i8** %44
store i8* %45, i8** %14
%46 = load i8*, i8** %14
%47 = load i8, i8* %46
store i8 %47, i8* %15
%48 = load i8*, i8** %2
%49 = getelementptr inbounds i8, i8* %48, i64 16648
store i8* %49, i8** %13
%50 = load i8*, i8** %13
%51 = getelementptr inbounds i8, i8* %50, i64 56
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** %17
%56 = getelementptr inbounds i8, i8* %55, i64 56
store i8* %56, i8** %18
%57 = load i8*, i8** %18
%58 = bitcast i8* %57 to i8**
%59 = load i8*, i8** %58
store i8* %59, i8** %19
%60 = load i8, i8* %15
%61 = load i8*, i8** %19
store i8 %60, i8* %61
%62 = load i8*, i8** %13
%63 = call i32 @xsi_driver_first_trans_fast(i8* %62)
br label %64
64: ; preds = %94, %70, %40
%65 = load i8*, i8** %2
%66 = getelementptr inbounds i8, i8* %65, i64 15736
store i8* %66, i8** %20
%67 = load i8*, i8** %20
%68 = bitcast i8* %67 to i32*
store i32 1, i32* %68
br label %69
69: ; preds = %64
ret void
70: ; preds = %37
%71 = load i8*, i8** %2
%72 = getelementptr inbounds i8, i8* %71, i64 2520
store i8* %72, i8** %3
%73 = load i8*, i8** %3
%74 = bitcast i8* %73 to i8**
%75 = load i8*, i8** %74
store i8* %75, i8** %7
%76 = load i8*, i8** %7
%77 = load i8, i8* %76
store i8 %77, i8* %8
%78 = load i8*, i8** %2
%79 = getelementptr inbounds i8, i8* %78, i64 16648
store i8* %79, i8** %3
%80 = load i8*, i8** %3
%81 = getelementptr inbounds i8, i8* %80, i64 56
store i8* %81, i8** %9
%82 = load i8*, i8** %9
%83 = bitcast i8* %82 to i8**
%84 = load i8*, i8** %83
store i8* %84, i8** %10
%85 = load i8*, i8** %10
%86 = getelementptr inbounds i8, i8* %85, i64 56
store i8* %86, i8** %11
%87 = load i8*, i8** %11
%88 = bitcast i8* %87 to i8**
%89 = load i8*, i8** %88
store i8* %89, i8** %12
%90 = load i8, i8* %8
%91 = load i8*, i8** %12
store i8 %90, i8* %91
%92 = load i8*, i8** %3
%93 = call i32 @xsi_driver_first_trans_fast(i8* %92)
br label %64
94: ; No predecessors!
br label %64
}

LLVM IR (-O2):
define void @simprim_a_3215534263_2810828532_p_10(i8* %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 3480
%3 = bitcast i8* %2 to i8**
%4 = load i8*, i8** %3
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 3
%7 = select i1 %6, i64 2520, i64 4280
%8 = getelementptr inbounds i8, i8* %0, i64 %7
%9 = bitcast i8* %8 to i8**
%10 = load i8*, i8** %9
%11 = load i8, i8* %10
%12 = getelementptr inbounds i8, i8* %0, i64 16648
%13 = getelementptr inbounds i8, i8* %0, i64 16704
%14 = bitcast i8* %13 to i8**
%15 = load i8*, i8** %14
%16 = getelementptr inbounds i8, i8* %15, i64 56
%17 = bitcast i8* %16 to i8**
%18 = load i8*, i8** %17
store i8 %11, i8* %18
%19 = tail call i32 @xsi_driver_first_trans_fast(i8* %12)
%20 = getelementptr inbounds i8, i8* %0, i64 15736
%21 = bitcast i8* %20 to i32*
store i32 1, i32* %21
ret void
}