#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*/ CutStr(char *, int);
int /*<<< orphan*/ MDString(char *);
int /*<<< orphan*/ UCase(char *);
int /*<<< orphan*/ hexnum(char *);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, int /*<<< orphan*/);
int covacc(char usr[], char pwd[], char dst[]) {
  UCase(usr);
  char str[100], hex[10];
  hexnum(hex);
  strcat(str, "jepyid");
  strcat(str, usr);
  strcat(str, hex);
  strcat(str, pwd);
  strcpy(str, MDString(str));
  CutStr(str, 20);
  strcat(dst, "~ghca");
  strcat(dst, hex);
  strcat(dst, "2007");
  strcat(dst, str);
  strcat(dst, usr);
  return 0;
}


x86 assembly (clang, -O0):
<covacc>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1080 <UCase@plt>
lea    -0x8a(%rbp),%rdi
call   1060 <hexnum@plt>
lea    -0x80(%rbp),%rdi
lea    0xe69(%rip),%rsi
call   1070 <strcat@plt>
lea    -0x80(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1070 <strcat@plt>
lea    -0x80(%rbp),%rdi
lea    -0x8a(%rbp),%rsi
call   1070 <strcat@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1070 <strcat@plt>
lea    -0x80(%rbp),%rax
mov    %rax,-0x98(%rbp)
lea    -0x80(%rbp),%rdi
call   1040 <MDString@plt>
mov    -0x98(%rbp),%rdi
mov    %eax,%esi
call   1030 <strcpy@plt>
lea    -0x80(%rbp),%rdi
mov    $0x14,%esi
call   1050 <CutStr@plt>
mov    -0x18(%rbp),%rdi
lea    0xe06(%rip),%rsi
call   1070 <strcat@plt>
mov    -0x18(%rbp),%rdi
lea    -0x8a(%rbp),%rsi
call   1070 <strcat@plt>
mov    -0x18(%rbp),%rdi
lea    0xdec(%rip),%rsi
call   1070 <strcat@plt>
mov    -0x18(%rbp),%rdi
lea    -0x80(%rbp),%rsi
call   1070 <strcat@plt>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1070 <strcat@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<covacc>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x80,%rsp
mov    %rdx,%rbx
mov    %rsi,%r13
mov    %rdi,%r14
call   1080 <UCase@plt>
lea    0x6(%rsp),%r12
mov    %r12,%rdi
call   1060 <hexnum@plt>
lea    0xe6e(%rip),%rsi
lea    0x10(%rsp),%r15
mov    %r15,%rdi
call   1070 <strcat@plt>
mov    %r15,%rdi
mov    %r14,%rsi
call   1070 <strcat@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1070 <strcat@plt>
mov    %r15,%rdi
mov    %r13,%rsi
call   1070 <strcat@plt>
mov    %r15,%rdi
call   1040 <MDString@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <strcpy@plt>
mov    %r15,%rdi
mov    $0x14,%esi
call   1050 <CutStr@plt>
lea    0xe21(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcat@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1070 <strcat@plt>
lea    0xe0d(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1070 <strcat@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1070 <strcat@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [7 x i8] c"jepyid\00"
@.str.1 = [6 x i8] c"~ghca\00"
@.str.2 = [5 x i8] c"2007\00"
define i32 @covacc(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca [100 x i8]
%8 = alloca [10 x i8]
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%9 = load i8*, i8** %4
%10 = call i32 @UCase(i8* %9)
%11 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%12 = call i32 @hexnum(i8* %11)
%13 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%14 = call i32 @strcat(i8* %13, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%16 = load i8*, i8** %4
%17 = call i32 @strcat(i8* %15, i8* %16)
%18 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%19 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%20 = call i32 @strcat(i8* %18, i8* %19)
%21 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%22 = load i8*, i8** %5
%23 = call i32 @strcat(i8* %21, i8* %22)
%24 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%25 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%26 = call i32 @MDString(i8* %25)
%27 = call i32 @strcpy(i8* %24, i32 %26)
%28 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%29 = call i32 @CutStr(i8* %28, i32 20)
%30 = load i8*, i8** %6
%31 = call i32 @strcat(i8* %30, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%32 = load i8*, i8** %6
%33 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%34 = call i32 @strcat(i8* %32, i8* %33)
%35 = load i8*, i8** %6
%36 = call i32 @strcat(i8* %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%37 = load i8*, i8** %6
%38 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%39 = call i32 @strcat(i8* %37, i8* %38)
%40 = load i8*, i8** %6
%41 = load i8*, i8** %4
%42 = call i32 @strcat(i8* %40, i8* %41)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"jepyid\00"
@.str.1 = [6 x i8] c"~ghca\00"
@.str.2 = [5 x i8] c"2007\00"
define i32 @covacc(i8* %0, i8* %1, i8* %2) {
%4 = alloca [100 x i8]
%5 = alloca [10 x i8]
%6 = tail call i32 @UCase(i8* %0)
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%9 = call i32 @hexnum(i8* %8)
%10 = call i32 @strcat(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @strcat(i8* %7, i8* %0)
%12 = call i32 @strcat(i8* %7, i8* %8)
%13 = call i32 @strcat(i8* %7, i8* %1)
%14 = call i32 @MDString(i8* %7)
%15 = call i32 @strcpy(i8* %7, i32 %14)
%16 = call i32 @CutStr(i8* %7, i32 20)
%17 = call i32 @strcat(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 @strcat(i8* %2, i8* %8)
%19 = call i32 @strcat(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%20 = call i32 @strcat(i8* %2, i8* %7)
%21 = call i32 @strcat(i8* %2, i8* %0)
ret i32 0
}