#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*/ EXIT_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ validate(unsigned char const *, unsigned char const *);
int main(int argc, char *argv[]) {
  const unsigned char src1[] = {0x14, 0xfb, 0x9c, 0x03, 0xd9, 0x7e, 0x00};
  const unsigned char src2[] = {0x14, 0xfb, 0x9c, 0x03, 0xd9, 0x00};
  const unsigned char src3[] = {0x14, 0xfb, 0x9c, 0x03, 0x00};
  const unsigned char dst1[] = "FPucA9l+";
  const unsigned char dst2[] = "FPucA9k=";
  const unsigned char dst3[] = "FPucAw==";
  if ((validate(src1, dst1) < 0) || (validate(src2, dst2) < 0) ||
      (validate(src3, dst3) < 0)) {
    exit(EXIT_FAILURE);
  }
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xec4(%rip),%eax
mov    %eax,-0x17(%rbp)
mov    0xebe(%rip),%ax
mov    %ax,-0x13(%rbp)
mov    0xeb6(%rip),%al
mov    %al,-0x11(%rbp)
mov    0xeae(%rip),%eax
mov    %eax,-0x1d(%rbp)
mov    0xea8(%rip),%ax
mov    %ax,-0x19(%rbp)
mov    0xea0(%rip),%eax
mov    %eax,-0x22(%rbp)
mov    0xe9b(%rip),%al
mov    %al,-0x1e(%rbp)
mov    0xe92(%rip),%rax
mov    %rax,-0x2b(%rbp)
mov    0xe90(%rip),%al
mov    %al,-0x23(%rbp)
mov    0xe87(%rip),%rax
mov    %rax,-0x34(%rbp)
mov    0xe85(%rip),%al
mov    %al,-0x2c(%rbp)
mov    0xe7c(%rip),%rax
mov    %rax,-0x3d(%rbp)
mov    0xe7a(%rip),%al
mov    %al,-0x35(%rbp)
lea    -0x17(%rbp),%rdi
lea    -0x2b(%rbp),%rsi
call   1030 <validate@plt>
cmp    $0x0,%rax
jl     11fa <main+0xda>
lea    -0x1d(%rbp),%rdi
lea    -0x34(%rbp),%rsi
call   1030 <validate@plt>
cmp    $0x0,%rax
jl     11fa <main+0xda>
lea    -0x22(%rbp),%rdi
lea    -0x3d(%rbp),%rsi
call   1030 <validate@plt>
cmp    $0x0,%rax
jge    1208 <main+0xe8>
mov    0x2ddf(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>
mov    0x2dc9(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
movl   $0x7ed903,0x13(%rsp)
movl   $0x39cfb14,0x10(%rsp)
03
movw   $0xd9,0xc(%rsp)
movl   $0x39cfb14,0x8(%rsp)
03
movb   $0x0,0x4(%rsp)
movl   $0x39cfb14,(%rsp)
movabs $0x2b6c394163755046,%rax
39 6c 2b
mov    %rax,0x38(%rsp)
movb   $0x0,0x40(%rsp)
movabs $0x3d6b394163755046,%rax
39 6b 3d
mov    %rax,0x28(%rsp)
movb   $0x0,0x30(%rsp)
movabs $0x3d3d774163755046,%rax
77 3d 3d
mov    %rax,0x18(%rsp)
movb   $0x0,0x20(%rsp)
lea    0x10(%rsp),%rdi
lea    0x38(%rsp),%rsi
call   1030 <validate@plt>
test   %rax,%rax
js     11c5 <main+0xa5>
lea    0x8(%rsp),%rdi
lea    0x28(%rsp),%rsi
call   1030 <validate@plt>
test   %rax,%rax
js     11c5 <main+0xa5>
mov    %rsp,%rdi
lea    0x18(%rsp),%rsi
call   1030 <validate@plt>
test   %rax,%rax
jns    11d3 <main+0xb3>
mov    0x2e14(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>
mov    0x2dfe(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@__const.main.src1 = [7 x i8] c"\14\FB\9C\03\D9~\00"
@__const.main.src2 = [6 x i8] c"\14\FB\9C\03\D9\00"
@__const.main.src3 = [5 x i8] c"\14\FB\9C\03\00"
@__const.main.dst1 = [9 x i8] c"FPucA9l+\00"
@__const.main.dst2 = [9 x i8] c"FPucA9k=\00"
@__const.main.dst3 = [9 x i8] c"FPucAw==\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [7 x i8]
%7 = alloca [6 x i8]
%8 = alloca [5 x i8]
%9 = alloca [9 x i8]
%10 = alloca [9 x i8]
%11 = alloca [9 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = bitcast [7 x i8]* %6 to i8*
%13 = bitcast [6 x i8]* %7 to i8*
%14 = bitcast [5 x i8]* %8 to i8*
%15 = bitcast [9 x i8]* %9 to i8*
%16 = bitcast [9 x i8]* %10 to i8*
%17 = bitcast [9 x i8]* %11 to i8*
%18 = getelementptr inbounds [7 x i8], [7 x i8]* %6, i64 0, i64 0
%19 = getelementptr inbounds [9 x i8], [9 x i8]* %9, i64 0, i64 0
%20 = call i64 @validate(i8* %18, i8* %19)
%21 = icmp slt i64 %20, 0
br i1 %21, label %32, label %22
22: ; preds = %2
%23 = getelementptr inbounds [6 x i8], [6 x i8]* %7, i64 0, i64 0
%24 = getelementptr inbounds [9 x i8], [9 x i8]* %10, i64 0, i64 0
%25 = call i64 @validate(i8* %23, i8* %24)
%26 = icmp slt i64 %25, 0
br i1 %26, label %32, label %27
27: ; preds = %22
%28 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%29 = getelementptr inbounds [9 x i8], [9 x i8]* %11, i64 0, i64 0
%30 = call i64 @validate(i8* %28, i8* %29)
%31 = icmp slt i64 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %27, %22, %2
%33 = load i32, i32* @EXIT_FAILURE
%34 = call i32 @exit(i32 %33)
unreachable
35: ; preds = %27
%36 = load i32, i32* @EXIT_SUCCESS
%37 = call i32 @exit(i32 %36)
unreachable
}

LLVM IR (-O2):
@__const.main.src1 = [7 x i8] c"\14\FB\9C\03\D9~\00"
@__const.main.src2 = [6 x i8] c"\14\FB\9C\03\D9\00"
@__const.main.src3 = [5 x i8] c"\14\FB\9C\03\00"
@__const.main.dst1 = [9 x i8] c"FPucA9l+\00"
@__const.main.dst2 = [9 x i8] c"FPucA9k=\00"
@__const.main.dst3 = [9 x i8] c"FPucAw==\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [7 x i8]
%4 = alloca [6 x i8]
%5 = alloca [5 x i8]
%6 = alloca [9 x i8]
%7 = alloca [9 x i8]
%8 = alloca [9 x i8]
%9 = getelementptr inbounds [7 x i8], [7 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [6 x i8], [6 x i8]* %4, i64 0, i64 0
%11 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%12 = getelementptr inbounds [9 x i8], [9 x i8]* %6, i64 0, i64 0
%13 = getelementptr inbounds [9 x i8], [9 x i8]* %7, i64 0, i64 0
%14 = getelementptr inbounds [9 x i8], [9 x i8]* %8, i64 0, i64 0
%15 = call i64 @validate(i8* %9, i8* %12)
%16 = icmp slt i64 %15, 0
br i1 %16, label %23, label %17
17: ; preds = %2
%18 = call i64 @validate(i8* %10, i8* %13)
%19 = icmp slt i64 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = call i64 @validate(i8* %11, i8* %14)
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20, %17, %2
%24 = load i32, i32* @EXIT_FAILURE
%25 = call i32 @exit(i32 %24)
unreachable
26: ; preds = %20
%27 = load i32, i32* @EXIT_SUCCESS
%28 = call i32 @exit(i32 %27)
unreachable
}