#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*/ DBBLf();
int /*<<< orphan*/ Payoneerf();
int /*<<< orphan*/ Rocketf();
int /*<<< orphan*/ bKashf();
void *getche();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ system(char *);
int main() {
  int Selection1, Selection2, Selection3;
  int TmpVar1, TmpVar2, TmpVar3;
  int SystemPass;
  char again1, again2, fls;
  SystemPass = 1234;
  again1 = 'y';
  again2 = 'y';
  while (1) {
    printf("Please Enter The System Password: ");
    scanf("%d", &TmpVar1);
    system("cls");
    if (SystemPass == TmpVar1) {
      while (again2 == 'y') {
        printf("Which account information you want to see?\n 1.DBBL\n "
               "2.Rocket\n 3.bKash\n 4.Payoneer.\n");
        Selection1 = getche();
        system("cls");
        switch (Selection1) {
        case '1':
          DBBLf();
          fls = getche();
          break;
        case '2':
          Rocketf();
          fls = getche();
          break;
        case '3':
          fls = getche();
          bKashf();
          break;
        case '4':
          Payoneerf();
          fls = getche();
          break;
        }
        system("cls");
        printf("Would you like to see another information?(y/n)");
        again2 = getche();
        system("cls");
      }
    } else {
      printf("Sorry,Password was incorrect.Press any key to try again");
      fls = getche();
      system("cls");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x4d2,-0x20(%rbp)
movb   $0x79,-0x21(%rbp)
movb   $0x79,-0x22(%rbp)
lea    0xe6b(%rip),%rdi
call   1050 <printf@plt>
lea    0xe82(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1080 <scanf@plt>
lea    0xe75(%rip),%rdi
call   1040 <system@plt>
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jne    12ba <main+0x13a>
jmp    11d7 <main+0x57>
movsbl -0x22(%rbp),%eax
cmp    $0x79,%eax
jne    12b5 <main+0x135>
lea    0xe4f(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1060 <getche@plt>
mov    %eax,-0x8(%rbp)
lea    0xe35(%rip),%rdi
call   1040 <system@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffcf,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x3,%eax
ja     1282 <main+0x102>
mov    -0x30(%rbp),%rax
lea    0xdda(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1090 <DBBLf@plt>
mov    $0x0,%al
call   1060 <getche@plt>
mov    %al,-0x23(%rbp)
jmp    1282 <main+0x102>
mov    $0x0,%al
call   1070 <Rocketf@plt>
mov    $0x0,%al
call   1060 <getche@plt>
mov    %al,-0x23(%rbp)
jmp    1282 <main+0x102>
mov    $0x0,%al
call   1060 <getche@plt>
mov    %al,-0x23(%rbp)
mov    $0x0,%al
call   1030 <bKashf@plt>
jmp    1282 <main+0x102>
mov    $0x0,%al
call   10a0 <Payoneerf@plt>
mov    $0x0,%al
call   1060 <getche@plt>
mov    %al,-0x23(%rbp)
lea    0xdad(%rip),%rdi
call   1040 <system@plt>
lea    0xdf9(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <getche@plt>
mov    %al,-0x22(%rbp)
lea    0xd8b(%rip),%rdi
call   1040 <system@plt>
jmp    11d7 <main+0x57>
jmp    12dc <main+0x15c>
lea    0xdfd(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <getche@plt>
mov    %al,-0x23(%rbp)
lea    0xd5f(%rip),%rdi
call   1040 <system@plt>
jmp    119e <main+0x1e>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x79,%bpl
lea    0xe6b(%rip),%r14
lea    0xe87(%rip),%r15
lea    0x4(%rsp),%r12
lea    0xe7e(%rip),%rbx
lea    0xe41(%rip),%r13
jmp    11eb <main+0x5b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0xe93(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
call   1070 <getche@plt>
mov    %rbx,%rdi
call   1050 <system@plt>
mov    %r14,%rdi
call   1060 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1090 <scanf@plt>
mov    %rbx,%rdi
call   1050 <system@plt>
cmpl   $0x4d2,0x4(%rsp)
jne    11d0 <main+0x40>
cmp    $0x79,%bpl
jne    11eb <main+0x5b>
lea    0xe85(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1070 <getche@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
call   1050 <system@plt>
add    $0xffffffcf,%ebp
cmp    $0x3,%ebp
ja     1276 <main+0xe6>
movslq 0x0(%r13,%rbp,4),%rax
add    %r13,%rax
jmp    *%rax
xor    %eax,%eax
call   10a0 <DBBLf@plt>
jmp    126f <main+0xdf>
xor    %eax,%eax
call   1080 <Rocketf@plt>
jmp    126f <main+0xdf>
xor    %eax,%eax
call   1070 <getche@plt>
xor    %eax,%eax
call   1040 <bKashf@plt>
jmp    1276 <main+0xe6>
xor    %eax,%eax
call   10b0 <Payoneerf@plt>
xor    %eax,%eax
call   1070 <getche@plt>
mov    %rbx,%rdi
call   1050 <system@plt>
lea    0xdb5(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
call   1070 <getche@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
call   1050 <system@plt>
cmp    $0x79,%bpl
jne    11eb <main+0x5b>
jmp    1216 <main+0x86>

LLVM IR (-O0):
@.str = [35 x i8] c"Please Enter The System Password: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [4 x i8] c"cls\00"
@.str.3 = [84 x i8] c"Which account information you want to see?\0A 1.DBBL\0A 2.Rocket\0A 3.bKash\0A 4.Payoneer.\0A\00"
@.str.4 = [48 x i8] c"Would you like to see another information?(y/n)\00"
@.str.5 = [56 x i8] c"Sorry,Password was incorrect.Press any key to try again\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8
%10 = alloca i8
%11 = alloca i8
store i32 0, i32* %1
store i32 1234, i32* %8
store i8 121, i8* %9
store i8 121, i8* %10
br label %12
12: ; preds = %0, %58
%13 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%15 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%16 = load i32, i32* %8
%17 = load i32, i32* %5
%18 = icmp eq i32 %16, %17
br i1 %18, label %19, label %53
19: ; preds = %12
br label %20
20: ; preds = %46, %19
%21 = load i8, i8* %10
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 121
br i1 %23, label %24, label %52
24: ; preds = %20
%25 = call i32 @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.3, i64 0, i64 0))
%26 = call i8* (...) @getche()
%27 = ptrtoint i8* %26 to i32
store i32 %27, i32* %2
%28 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%29 = load i32, i32* %2
switch i32 %29, label %46 [
i32 49, label %30
i32 50, label %34
i32 51, label %38
i32 52, label %42
]
30: ; preds = %24
%31 = call i32 (...) @DBBLf()
%32 = call i8* (...) @getche()
%33 = ptrtoint i8* %32 to i8
store i8 %33, i8* %11
br label %46
34: ; preds = %24
%35 = call i32 (...) @Rocketf()
%36 = call i8* (...) @getche()
%37 = ptrtoint i8* %36 to i8
store i8 %37, i8* %11
br label %46
38: ; preds = %24
%39 = call i8* (...) @getche()
%40 = ptrtoint i8* %39 to i8
store i8 %40, i8* %11
%41 = call i32 (...) @bKashf()
br label %46
42: ; preds = %24
%43 = call i32 (...) @Payoneerf()
%44 = call i8* (...) @getche()
%45 = ptrtoint i8* %44 to i8
store i8 %45, i8* %11
br label %46
46: ; preds = %24, %42, %38, %34, %30
%47 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%48 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%49 = call i8* (...) @getche()
%50 = ptrtoint i8* %49 to i8
store i8 %50, i8* %10
%51 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
br label %20
52: ; preds = %20
br label %58
53: ; preds = %12
%54 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0))
%55 = call i8* (...) @getche()
%56 = ptrtoint i8* %55 to i8
store i8 %56, i8* %11
%57 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
br label %58
58: ; preds = %53, %52
br label %12
}

LLVM IR (-O2):
@.str = [35 x i8] c"Please Enter The System Password: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [4 x i8] c"cls\00"
@.str.4 = [48 x i8] c"Would you like to see another information?(y/n)\00"
@.str.5 = [56 x i8] c"Sorry,Password was incorrect.Press any key to try again\00"
@str = [83 x i8] c"Which account information you want to see?\0A 1.DBBL\0A 2.Rocket\0A 3.bKash\0A 4.Payoneer.\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
br label %3
3: ; preds = %44, %0
%4 = phi i8 [ %46, %44 ], [ 121, %0 ]
%5 = icmp eq i8 %4, 121
br label %6
6: ; preds = %13, %3
%7 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%9 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%10 = load i32, i32* %1
%11 = icmp eq i32 %10, 1234
br i1 %11, label %12, label %40
12: ; preds = %6
br i1 %5, label %14, label %13
13: ; preds = %12, %40
br label %6
14: ; preds = %12, %32
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str, i64 0, i64 0))
%16 = call i8* (...) @getche()
%17 = ptrtoint i8* %16 to i64
%18 = trunc i64 %17 to i32
%19 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
switch i32 %18, label %32 [
i32 49, label %20
i32 50, label %23
i32 51, label %26
i32 52, label %29
]
20: ; preds = %14
%21 = call i32 (...) @DBBLf()
%22 = call i8* (...) @getche()
br label %32
23: ; preds = %14
%24 = call i32 (...) @Rocketf()
%25 = call i8* (...) @getche()
br label %32
26: ; preds = %14
%27 = call i8* (...) @getche()
%28 = call i32 (...) @bKashf()
br label %32
29: ; preds = %14
%30 = call i32 (...) @Payoneerf()
%31 = call i8* (...) @getche()
br label %32
32: ; preds = %14, %29, %26, %23, %20
%33 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%34 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%35 = call i8* (...) @getche()
%36 = ptrtoint i8* %35 to i64
%37 = trunc i64 %36 to i8
%38 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%39 = icmp eq i8 %37, 121
br i1 %39, label %14, label %44
40: ; preds = %6
%41 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0))
%42 = call i8* (...) @getche()
%43 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
br label %13
44: ; preds = %32
%45 = ptrtoint i8* %35 to i64
%46 = trunc i64 %45 to i8
br label %3
}