#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 */
scalar_t__ alloca(unsigned int);
int /*<<< orphan*/ ieee_p_3564397177_sub_982281033_91900896(char *, char *,
                                                            char *, char *,
                                                            char *,
                                                            unsigned char, int);
int /*<<< orphan*/ memcpy(char *, char *, unsigned int);
void ieee_p_3564397177_sub_1281154728_91900896(char *t0, char *t1, char *t2,
                                               char *t3, char *t4,
                                               unsigned char t5, int t6) {
  char t8[40];
  char *t9;
  char *t10;
  unsigned char t11;
  char *t12;
  char *t13;
  char *t14;
  char *t15;
  unsigned int t16;
  char *t17;
LAB0:
  t9 = (t8 + 4U);
  *((char **)t9) = t2;
  t10 = (t8 + 12U);
  t11 = (t3 != 0);
  if (t11 == 1)
    goto LAB3;
LAB2:
  t12 = (t8 + 20U);
  *((char **)t12) = t4;
  t13 = (t8 + 28U);
  *((unsigned char *)t13) = t5;
  t14 = (t8 + 29U);
  *((int *)t14) = t6;
  t15 = (t4 + 12U);
  t16 = *((unsigned int *)t15);
  t16 = (t16 * 1U);
  t17 = (char *)alloca(t16);
  memcpy(t17, t3, t16);
  ieee_p_3564397177_sub_982281033_91900896(t0, t1, t2, t17, t4, t5, t6);
LAB1:
  return;
LAB3:
  *((char **)t10) = t3;
  goto LAB2;
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %r9b,%al
mov    0x10(%rbp),%r9d
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %al,-0x29(%rbp)
lea    -0x60(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x68(%rbp)
mov    -0x18(%rbp),%rcx
mov    -0x68(%rbp),%rax
mov    %rcx,(%rax)
lea    -0x60(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x70(%rbp)
cmpq   $0x0,-0x20(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %al,-0x71(%rbp)
movzbl -0x71(%rbp),%eax
cmp    $0x1,%eax
jne    119e <ieee_p_3564397177_sub_1281154728_91900896+0x6e>
jmp    1278 <ieee_p_3564397177_sub_1281154728_91900896+0x148>
jmp    11a3 <ieee_p_3564397177_sub_1281154728_91900896+0x73>
lea    -0x60(%rbp),%rax
add    $0x14,%rax
mov    %rax,-0x80(%rbp)
mov    -0x28(%rbp),%rcx
mov    -0x80(%rbp),%rax
mov    %rcx,(%rax)
lea    -0x60(%rbp),%rax
add    $0x1c,%rax
mov    %rax,-0x88(%rbp)
mov    -0x29(%rbp),%cl
mov    -0x88(%rbp),%rax
mov    %cl,(%rax)
lea    -0x60(%rbp),%rax
add    $0x1d,%rax
mov    %rax,-0x90(%rbp)
mov    0x10(%rbp),%ecx
mov    -0x90(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x28(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x98(%rbp)
mov    -0x98(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
shl    $0x0,%eax
mov    %eax,-0x9c(%rbp)
mov    -0x9c(%rbp),%edi
call   1040 <alloca@plt>
mov    %rax,-0xa8(%rbp)
mov    -0xa8(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x9c(%rbp),%edx
call   1050 <memcpy@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0xa8(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x29(%rbp),%r9b
mov    0x10(%rbp),%eax
movzbl %r9b,%r9d
mov    %eax,(%rsp)
call   1030 <ieee_p_3564397177_sub_982281033_91900896@plt>
add    $0xb0,%rsp
pop    %rbp
ret
mov    -0x20(%rbp),%rcx
mov    -0x70(%rbp),%rax
mov    %rcx,(%rax)
jmp    11a3 <ieee_p_3564397177_sub_1281154728_91900896+0x73>

x86 assembly (clang, -O2):
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9d,0xc(%rsp)
mov    %r8,%rbx
mov    %rcx,%rbp
mov    %rdx,0x10(%rsp)
mov    %rsi,%r12
mov    %rdi,%r13
mov    0xc(%r8),%r14d
mov    %r14d,%edi
call   1040 <alloca@plt>
mov    %rax,%r15
mov    %rax,%rdi
mov    %rbp,%rsi
mov    %r14d,%edx
call   1050 <memcpy@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    0x10(%rsp),%rdx
mov    %r15,%rcx
mov    %rbx,%r8
mov    0xc(%rsp),%r9d
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <ieee_p_3564397177_sub_982281033_91900896@plt>

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

LLVM IR (-O2):
define void @ieee_p_3564397177_sub_1281154728_91900896(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8 zeroext %5, i32 %6) {
%8 = getelementptr inbounds i8, i8* %4, i64 12
%9 = bitcast i8* %8 to i32*
%10 = load i32, i32* %9
%11 = tail call i64 @alloca(i32 %10)
%12 = inttoptr i64 %11 to i8*
%13 = tail call i32 @memcpy(i8* %12, i8* %3, i32 %10)
%14 = tail call i32 @ieee_p_3564397177_sub_982281033_91900896(i8* %0, i8* %1, i8* %2, i8* %12, i8* %4, i8 zeroext %5, i32 %6)
ret void
}