#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 */
typedef int /*<<< orphan*/ uint8_t;
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ func_1b88_c(int, int, int);
int /*<<< orphan*/ func_d78_c(int /*<<< orphan*/ *, int, int, int, void *);
void func_1c30_c(uint32_t a0, uint32_t a1, uint32_t a2, uint32_t a3) {
  uint32_t s0, s1, s2, sp, zero;
  zero = 0;
  uint32_t stack[16];
  sp = (uint32_t)stack;
  s1 = a0;
  s0 = a2;
  a0 = a0 + a2;
  a2 = sp + 24;
  *((uint32_t *)(sp + 24)) = zero;
  s2 = a3;
  *((uint32_t *)(sp + 28)) = zero;
  *((uint32_t *)(sp + 32)) = zero;
  *((uint32_t *)(sp + 36)) = zero;
  *((uint32_t *)(sp + 40)) = zero;
  func_1b88_c(a0, a1, a2);
  a2 = s1;
  a3 = s0;
  a0 = sp + 24;
  a1 = 20;
  func_d78_c((uint8_t *)a0, a1, a2, a3, (void *)s2);
  return;
}


x86 assembly (clang, -O0):
<func_1c30_c>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
movl   $0x0,-0x24(%rbp)
lea    -0x70(%rbp),%rax
mov    %eax,-0x20(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x20(%rbp),%eax
add    $0x18,%eax
mov    %eax,-0xc(%rbp)
mov    -0x24(%rbp),%ecx
mov    -0x20(%rbp),%eax
add    $0x18,%eax
cltq
mov    %ecx,(%rax)
mov    -0x10(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x24(%rbp),%ecx
mov    -0x20(%rbp),%eax
add    $0x1c,%eax
cltq
mov    %ecx,(%rax)
mov    -0x24(%rbp),%ecx
mov    -0x20(%rbp),%eax
add    $0x20,%eax
cltq
mov    %ecx,(%rax)
mov    -0x24(%rbp),%ecx
mov    -0x20(%rbp),%eax
add    $0x24,%eax
cltq
mov    %ecx,(%rax)
mov    -0x24(%rbp),%ecx
mov    -0x20(%rbp),%eax
add    $0x28,%eax
cltq
mov    %ecx,(%rax)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1040 <func_1b88_c@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x20(%rbp),%eax
add    $0x18,%eax
mov    %eax,-0x4(%rbp)
movl   $0x14,-0x8(%rbp)
movslq -0x4(%rbp),%rdi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
movslq -0x1c(%rbp),%r8
call   1030 <func_d78_c@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<func_1c30_c>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x48,%rsp
mov    %ecx,%r15d
mov    %edx,%r14d
mov    %edi,%ebx
lea    (%r14,%rbx,1),%edi
mov    %rsp,%rax
movslq %eax,%rbp
movl   $0x0,0x18(%rbp)
add    $0x18,%rbp
shl    $0x20,%rax
movabs $0x1c00000000,%rcx
add    %rax,%rcx
sar    $0x20,%rcx
movl   $0x0,(%rcx)
movabs $0x2000000000,%rcx
add    %rax,%rcx
sar    $0x20,%rcx
movl   $0x0,(%rcx)
movabs $0x2400000000,%rcx
add    %rax,%rcx
sar    $0x20,%rcx
movl   $0x0,(%rcx)
movabs $0x2800000000,%rcx
add    %rax,%rcx
sar    $0x20,%rcx
movl   $0x0,(%rcx)
mov    %ebp,%edx
call   1040 <func_1b88_c@plt>
movslq %r15d,%r8
mov    %rbp,%rdi
mov    $0x14,%esi
mov    %ebx,%edx
mov    %r14d,%ecx
call   1030 <func_d78_c@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @func_1c30_c(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca [16 x i32]
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
store i32 0, i32* %13
%15 = getelementptr inbounds [16 x i32], [16 x i32]* %14, i64 0, i64 0
%16 = ptrtoint i32* %15 to i32
store i32 %16, i32* %12
%17 = load i32, i32* %5
store i32 %17, i32* %10
%18 = load i32, i32* %7
store i32 %18, i32* %9
%19 = load i32, i32* %5
%20 = load i32, i32* %7
%21 = add nsw i32 %19, %20
store i32 %21, i32* %5
%22 = load i32, i32* %12
%23 = add nsw i32 %22, 24
store i32 %23, i32* %7
%24 = load i32, i32* %13
%25 = load i32, i32* %12
%26 = add nsw i32 %25, 24
%27 = sext i32 %26 to i64
%28 = inttoptr i64 %27 to i32*
store i32 %24, i32* %28
%29 = load i32, i32* %8
store i32 %29, i32* %11
%30 = load i32, i32* %13
%31 = load i32, i32* %12
%32 = add nsw i32 %31, 28
%33 = sext i32 %32 to i64
%34 = inttoptr i64 %33 to i32*
store i32 %30, i32* %34
%35 = load i32, i32* %13
%36 = load i32, i32* %12
%37 = add nsw i32 %36, 32
%38 = sext i32 %37 to i64
%39 = inttoptr i64 %38 to i32*
store i32 %35, i32* %39
%40 = load i32, i32* %13
%41 = load i32, i32* %12
%42 = add nsw i32 %41, 36
%43 = sext i32 %42 to i64
%44 = inttoptr i64 %43 to i32*
store i32 %40, i32* %44
%45 = load i32, i32* %13
%46 = load i32, i32* %12
%47 = add nsw i32 %46, 40
%48 = sext i32 %47 to i64
%49 = inttoptr i64 %48 to i32*
store i32 %45, i32* %49
%50 = load i32, i32* %5
%51 = load i32, i32* %6
%52 = load i32, i32* %7
%53 = call i32 @func_1b88_c(i32 %50, i32 %51, i32 %52)
%54 = load i32, i32* %10
store i32 %54, i32* %7
%55 = load i32, i32* %9
store i32 %55, i32* %8
%56 = load i32, i32* %12
%57 = add nsw i32 %56, 24
store i32 %57, i32* %5
store i32 20, i32* %6
%58 = load i32, i32* %5
%59 = sext i32 %58 to i64
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %6
%62 = load i32, i32* %7
%63 = load i32, i32* %8
%64 = load i32, i32* %11
%65 = sext i32 %64 to i64
%66 = inttoptr i64 %65 to i8*
%67 = call i32 @func_d78_c(i32* %60, i32 %61, i32 %62, i32 %63, i8* %66)
ret void
}

LLVM IR (-O2):
define void @func_1c30_c(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca [16 x i32]
%6 = bitcast [16 x i32]* %5 to i8*
%7 = ptrtoint [16 x i32]* %5 to i64
%8 = trunc i64 %7 to i32
%9 = add nsw i32 %2, %0
%10 = add nsw i32 %8, 24
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to i32*
store i32 0, i32* %12
%13 = shl i64 %7, 32
%14 = add i64 %13, 120259084288
%15 = ashr exact i64 %14, 32
%16 = inttoptr i64 %15 to i32*
store i32 0, i32* %16
%17 = add i64 %13, 137438953472
%18 = ashr exact i64 %17, 32
%19 = inttoptr i64 %18 to i32*
store i32 0, i32* %19
%20 = add i64 %13, 154618822656
%21 = ashr exact i64 %20, 32
%22 = inttoptr i64 %21 to i32*
store i32 0, i32* %22
%23 = add i64 %13, 171798691840
%24 = ashr exact i64 %23, 32
%25 = inttoptr i64 %24 to i32*
store i32 0, i32* %25
%26 = call i32 @func_1b88_c(i32 %9, i32 %1, i32 %10)
%27 = sext i32 %3 to i64
%28 = inttoptr i64 %27 to i8*
%29 = call i32 @func_d78_c(i32* %12, i32 20, i32 %0, i32 %2, i8* %28)
ret void
}