#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_4066303846_3212880686_p_4(char *t0) {
  char *t1;
  char *t2;
  char *t3;
  char *t4;
  char *t5;
  char *t6;
  char *t7;
LAB0:
LAB3:
  t1 = (t0 + 2360U);
  t2 = *((char **)t1);
  t1 = (t0 + 24880);
  t3 = (t1 + 56U);
  t4 = *((char **)t3);
  t5 = (t4 + 56U);
  t6 = *((char **)t5);
  memcpy(t6, t2, 5U);
  xsi_driver_first_trans_fast(t1);
LAB2:
  t7 = (t0 + 24496);
  *((int *)t7) = 1;
LAB1:
  return;
LAB4:
  goto LAB2;
}


x86 assembly (clang, -O0):
<xilinxcorelib_a_4066303846_3212880686_p_4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
jmp    1131 <xilinxcorelib_a_4066303846_3212880686_p_4+0x11>
mov    -0x8(%rbp),%rax
add    $0x938,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
add    $0x6130,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x5,%edx
call   1040 <memcpy@plt>
mov    -0x10(%rbp),%rdi
call   1030 <xsi_driver_first_trans_fast@plt>
mov    -0x8(%rbp),%rax
add    $0x5fb0,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movl   $0x1,(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xilinxcorelib_a_4066303846_3212880686_p_4>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x938(%rdi),%rsi
lea    0x6130(%rdi),%r14
mov    0x6168(%rdi),%rax
mov    0x38(%rax),%rdi
mov    $0x5,%edx
call   1040 <memcpy@plt>
mov    %r14,%rdi
call   1030 <xsi_driver_first_trans_fast@plt>
movl   $0x1,0x5fb0(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @xilinxcorelib_a_4066303846_3212880686_p_4(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*
store i8* %0, i8** %2
br label %10
10: ; preds = %1
br label %11
11: ; preds = %10
%12 = load i8*, i8** %2
%13 = getelementptr inbounds i8, i8* %12, i64 2360
store i8* %13, i8** %3
%14 = load i8*, i8** %3
%15 = bitcast i8* %14 to i8**
%16 = load i8*, i8** %15
store i8* %16, i8** %4
%17 = load i8*, i8** %2
%18 = getelementptr inbounds i8, i8* %17, i64 24880
store i8* %18, i8** %3
%19 = load i8*, i8** %3
%20 = getelementptr inbounds i8, i8* %19, i64 56
store i8* %20, i8** %5
%21 = load i8*, i8** %5
%22 = bitcast i8* %21 to i8**
%23 = load i8*, i8** %22
store i8* %23, i8** %6
%24 = load i8*, i8** %6
%25 = getelementptr inbounds i8, i8* %24, i64 56
store i8* %25, i8** %7
%26 = load i8*, i8** %7
%27 = bitcast i8* %26 to i8**
%28 = load i8*, i8** %27
store i8* %28, i8** %8
%29 = load i8*, i8** %8
%30 = load i8*, i8** %4
%31 = call i32 @memcpy(i8* %29, i8* %30, i32 5)
%32 = load i8*, i8** %3
%33 = call i32 @xsi_driver_first_trans_fast(i8* %32)
br label %34
34: ; preds = %40, %11
%35 = load i8*, i8** %2
%36 = getelementptr inbounds i8, i8* %35, i64 24496
store i8* %36, i8** %9
%37 = load i8*, i8** %9
%38 = bitcast i8* %37 to i32*
store i32 1, i32* %38
br label %39
39: ; preds = %34
ret void
40: ; No predecessors!
br label %34
}

LLVM IR (-O2):
define void @xilinxcorelib_a_4066303846_3212880686_p_4(i8* %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 2360
%3 = bitcast i8* %2 to i8**
%4 = load i8*, i8** %3
%5 = getelementptr inbounds i8, i8* %0, i64 24880
%6 = getelementptr inbounds i8, i8* %0, i64 24936
%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* %4, i32 5)
%13 = tail call i32 @xsi_driver_first_trans_fast(i8* %5)
%14 = getelementptr inbounds i8, i8* %0, i64 24496
%15 = bitcast i8* %14 to i32*
store i32 1, i32* %15
ret void
}