#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*/ GetCurrentTime(char *, char *, char *, char *, char *,
                                  char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *, char *,
                           char *, char *, char *, char const *);
int /*<<< orphan*/ stderr;
void SpitError(const char *INErr) {
  char HMS[3][16], MDY[3][16];
  GetCurrentTime(HMS[0], HMS[1], HMS[2], MDY[0], MDY[1], MDY[2]);
  fprintf(stderr,
          "[%s:%s:%s | %s-%s-%s] "
          "\033[31m"
          "Epoch: ERROR:\n"
          "\033[0m"
          "%s\n\n",
          HMS[0], HMS[1], HMS[2], MDY[0], MDY[1], MDY[2], INErr);
}


x86 assembly (clang, -O0):
<SpitError>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x40(%rbp),%rdi
lea    -0x40(%rbp),%rsi
add    $0x10,%rsi
lea    -0x40(%rbp),%rdx
add    $0x20,%rdx
lea    -0x70(%rbp),%rcx
lea    -0x70(%rbp),%r8
add    $0x10,%r8
lea    -0x70(%rbp),%r9
add    $0x20,%r9
call   1030 <GetCurrentTime@plt>
mov    0x2e7d(%rip),%rax
mov    (%rax),%edi
lea    -0x40(%rbp),%rdx
lea    -0x40(%rbp),%rcx
add    $0x10,%rcx
lea    -0x40(%rbp),%r8
add    $0x20,%r8
lea    -0x70(%rbp),%r9
lea    -0x70(%rbp),%r11
add    $0x10,%r11
lea    -0x70(%rbp),%r10
add    $0x20,%r10
mov    -0x8(%rbp),%rax
lea    0xe68(%rip),%rsi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1040 <fprintf@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SpitError>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rdi,%rbx
lea    0x40(%rsp),%r14
lea    0x50(%rsp),%r15
lea    0x10(%rsp),%r8
lea    0x20(%rsp),%r13
lea    0x30(%rsp),%rbp
mov    %rsp,%r12
mov    %rbp,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
mov    %r13,%r9
call   1030 <GetCurrentTime@plt>
mov    0x2e78(%rip),%rax
mov    (%rax),%edi
sub    $0x8,%rsp
lea    0xe8b(%rip),%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
mov    %r15,%r8
mov    %r12,%r9
push   %rbx
push   %r13
lea    0x28(%rsp),%rax
push   %rax
call   1040 <fprintf@plt>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [50 x i8] c"[%s:%s:%s | %s-%s-%s] \1B[31mEpoch: ERROR:\0A\1B[0m%s\0A\0A\00"
define void @SpitError(i8* %0) {
%2 = alloca i8*
%3 = alloca [3 x [16 x i8]]
%4 = alloca [3 x [16 x i8]]
store i8* %0, i8** %2
%5 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %3, i64 0, i64 0
%6 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 0
%7 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %3, i64 0, i64 1
%8 = getelementptr inbounds [16 x i8], [16 x i8]* %7, i64 0, i64 0
%9 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %3, i64 0, i64 2
%10 = getelementptr inbounds [16 x i8], [16 x i8]* %9, i64 0, i64 0
%11 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %4, i64 0, i64 0
%12 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%13 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %4, i64 0, i64 1
%14 = getelementptr inbounds [16 x i8], [16 x i8]* %13, i64 0, i64 0
%15 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %4, i64 0, i64 2
%16 = getelementptr inbounds [16 x i8], [16 x i8]* %15, i64 0, i64 0
%17 = call i32 @GetCurrentTime(i8* %6, i8* %8, i8* %10, i8* %12, i8* %14, i8* %16)
%18 = load i32, i32* @stderr
%19 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %3, i64 0, i64 0
%20 = getelementptr inbounds [16 x i8], [16 x i8]* %19, i64 0, i64 0
%21 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %3, i64 0, i64 1
%22 = getelementptr inbounds [16 x i8], [16 x i8]* %21, i64 0, i64 0
%23 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %3, i64 0, i64 2
%24 = getelementptr inbounds [16 x i8], [16 x i8]* %23, i64 0, i64 0
%25 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %4, i64 0, i64 0
%26 = getelementptr inbounds [16 x i8], [16 x i8]* %25, i64 0, i64 0
%27 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %4, i64 0, i64 1
%28 = getelementptr inbounds [16 x i8], [16 x i8]* %27, i64 0, i64 0
%29 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %4, i64 0, i64 2
%30 = getelementptr inbounds [16 x i8], [16 x i8]* %29, i64 0, i64 0
%31 = load i8*, i8** %2
%32 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i8* %20, i8* %22, i8* %24, i8* %26, i8* %28, i8* %30, i8* %31)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [50 x i8] c"[%s:%s:%s | %s-%s-%s] \1B[31mEpoch: ERROR:\0A\1B[0m%s\0A\0A\00"
define void @SpitError(i8* %0) {
%2 = alloca [3 x [16 x i8]]
%3 = alloca [3 x [16 x i8]]
%4 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %2, i64 0, i64 0, i64 0
%5 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %3, i64 0, i64 0, i64 0
%6 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %2, i64 0, i64 1, i64 0
%7 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %2, i64 0, i64 2, i64 0
%8 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %3, i64 0, i64 1, i64 0
%9 = getelementptr inbounds [3 x [16 x i8]], [3 x [16 x i8]]* %3, i64 0, i64 2, i64 0
%10 = call i32 @GetCurrentTime(i8* %4, i8* %6, i8* %7, i8* %5, i8* %8, i8* %9)
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %6, i8* %7, i8* %5, i8* %8, i8* %9, i8* %0)
ret void
}