#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*/ RSAPrivateDecrypte(char *, char *);
int /*<<< orphan*/ RSAPublicEncrypt(char *, char *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, char *, char *);
int main(void) {
  char tarck2[18] = "\x33\x33\x33\x33\x33\x33\x44\x54\x56\xD0\x01\x25\x25\x00"
                    "\x08\x89\x59\x60";
  char out[512];
  char unout[512];
  char desout[128];
  char checkout[10];
  int len = 0;
  memset(out, 0, 512);
  memset(unout, 0, 128);
  memset(desout, 0, 128);
  memset(checkout, 0, 10);
  RSAPublicEncrypt("31323334353637383837363534333231", out);
  RSAPrivateDecrypte(out, unout);
  printf("%s\r\n\r\n\r\n%s", out, unout);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4b0,%rsp
mov    0xeae(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xeab(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xea8(%rip),%ax
mov    %ax,-0x10(%rbp)
movl   $0x0,-0x4b0(%rbp)
lea    -0x220(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1050 <memset@plt>
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1050 <memset@plt>
lea    -0x4a0(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1050 <memset@plt>
lea    -0x4aa(%rbp),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1050 <memset@plt>
lea    -0x220(%rbp),%rsi
lea    0xe42(%rip),%rdi
call   1030 <RSAPublicEncrypt@plt>
lea    -0x220(%rbp),%rdi
lea    -0x420(%rbp),%rsi
call   1060 <RSAPrivateDecrypte@plt>
lea    -0x220(%rbp),%rsi
lea    -0x420(%rbp),%rdx
lea    0xe36(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x4b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x498,%rsp
lea    0x290(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1050 <memset@plt>
lea    0x90(%rsp),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1050 <memset@plt>
lea    0x10(%rsp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1050 <memset@plt>
lea    0x6(%rsp),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1050 <memset@plt>
lea    0xe5f(%rip),%rdi
mov    %rbx,%rsi
call   1030 <RSAPublicEncrypt@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1060 <RSAPrivateDecrypte@plt>
lea    0xe66(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x498,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.tarck2 = [18 x i8] c"333333DTV\D0\01%%\00\08\89Y`"
@.str = [33 x i8] c"31323334353637383837363534333231\00"
@.str.1 = [11 x i8] c"%s\0D\0A\0D\0A\0D\0A%s\00"
define i32 @main() {
%1 = alloca [18 x i8]
%2 = alloca [512 x i8]
%3 = alloca [512 x i8]
%4 = alloca [128 x i8]
%5 = alloca [10 x i8]
%6 = alloca i32
%7 = bitcast [18 x i8]* %1 to i8*
store i32 0, i32* %6
%8 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%9 = call i32 @memset(i8* %8, i32 0, i32 512)
%10 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%11 = call i32 @memset(i8* %10, i32 0, i32 128)
%12 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%13 = call i32 @memset(i8* %12, i32 0, i32 128)
%14 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%15 = call i32 @memset(i8* %14, i32 0, i32 10)
%16 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%17 = call i32 @RSAPublicEncrypt(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %16)
%18 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%19 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%20 = call i32 @RSAPrivateDecrypte(i8* %18, i8* %19)
%21 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%22 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%23 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %21, i8* %22)
ret i32 0
}

LLVM IR (-O2):
@.str = [33 x i8] c"31323334353637383837363534333231\00"
@.str.1 = [11 x i8] c"%s\0D\0A\0D\0A\0D\0A%s\00"
define i32 @main() {
%1 = alloca [512 x i8]
%2 = alloca [512 x i8]
%3 = alloca [128 x i8]
%4 = alloca [10 x i8]
%5 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%9 = call i32 @memset(i8* %5, i32 0, i32 512)
%10 = call i32 @memset(i8* %6, i32 0, i32 128)
%11 = call i32 @memset(i8* %7, i32 0, i32 128)
%12 = call i32 @memset(i8* %8, i32 0, i32 10)
%13 = call i32 @RSAPublicEncrypt(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %5)
%14 = call i32 @RSAPrivateDecrypte(i8* %5, i8* %6)
%15 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %5, i8* %6)
ret i32 0
}