LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::matchOpt(char*)
int 
AnyOption::matchOpt( char *opt )
{
	for( int i = 0 ; i < option_counter ; i++ ){
		if( strcmp( options[i], opt ) == 0 ){
			if( optiontype[i] ==  COMMON_OPT ||
			    optiontype[i] ==  COMMAND_OPT )	
			{ /* found option return index */
				return i;
			}else if( optiontype[i] == COMMON_FLAG ||
			       optiontype[i] == COMMAND_FLAG )
			{ /* found flag, set it */ 
				setFlagOn( opt );
				return -1;
			}
		}
	}
	printVerbose( "Unknown command argument option : " );
	printVerbose( opt  ) ;
	printVerbose( );
	printAutoUsage();
	return  -1;	
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movslq 0x50(%rdi), %r12
testq %r12, %r12
setg %bpl
movq %rdi, (%rsp)
jle 0xfaef
movq 0x38(%rdi), %r13
movq 0x40(%rdi), %rbx
xorl %r15d, %r15d
movq (%r13,%r15,8), %rdi
movq %r14, %rsi
callq 0x3430
testl %eax, %eax
jne 0xfae1
movl (%rbx,%r15,4), %eax
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jb 0xfb03
addl $-0x4, %eax
cmpl $0x1, %eax
jbe 0xfaf1
incq %r15
cmpq %r12, %r15
setb %bpl
jne 0xfabc
jmp 0xfb03
jmp 0xfb03
movq (%rsp), %rdi
movq %r14, %rsi
callq 0xfb58
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testb $0x1, %bpl
jne 0xfb46
leaq 0x2d74(%rip), %rsi      # 0x12884
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0xeea8
movq %rbx, %rdi
movq %r14, %rsi
callq 0xeef6
movq %rbx, %rdi
callq 0xee6e
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
cmpb $0x1, 0xad(%rbx)
jne 0xfb46
movq %rbx, %rdi
callq 0x10650
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::setFlagOn(char const*)
bool
AnyOption::setFlagOn( const char *option )
{
	if( !valueStoreOK() )
		return false;
        for( int i = 0 ; i < option_counter ; i++ ){
                if( strcmp( options[i], option ) == 0 ){
                        values[ optionindex[i] ] = (char*) malloc((strlen(TRUE_FLAG)+1)*sizeof(char));
                        strcpy( values[ optionindex[i] ]  ,  TRUE_FLAG );
			return true;
		}
        }
        return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0xf3f8
testb %al, %al
je 0xfbc2
movslq 0x50(%rbx), %r12
testq %r12, %r12
setg %bpl
jle 0xfc03
movq 0x38(%rbx), %r13
movq (%r13), %rdi
movq %r14, %rsi
callq 0x3430
testl %eax, %eax
je 0xfbc6
movl $0x1, %r15d
cmpq %r15, %r12
je 0xfbff
movq (%r13,%r15,8), %rdi
movq %r14, %rsi
callq 0x3430
incq %r15
testl %eax, %eax
jne 0xfb9d
decq %r15
cmpq %r12, %r15
setb %bpl
jmp 0xfbc9
xorl %ebp, %ebp
jmp 0xfc03
xorl %r15d, %r15d
movl $0x5, %edi
callq 0x3400
movq 0x48(%rbx), %rcx
movq 0x78(%rbx), %rdx
movslq (%rcx,%r15,4), %rcx
movq %rax, (%rdx,%rcx,8)
movq 0x48(%rbx), %rax
movq 0x78(%rbx), %rcx
movslq (%rax,%r15,4), %rax
movq (%rcx,%rax,8), %rax
movb $0x0, 0x4(%rax)
movl $0x65757274, (%rax)     # imm = 0x65757274
jmp 0xfc03
seta %bpl
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::setFlagOn(char)
bool
AnyOption::setFlagOn( char option )
{
	if( !valueStoreOK() )
		return false;
        for( int i = 0 ; i < optchar_counter ; i++ ){
                if( optionchars[i] == option ){
                        values[ optcharindex[i] ] = (char*) malloc((strlen(TRUE_FLAG)+1)*sizeof(char));
			strcpy( values[ optcharindex[i] ] , TRUE_FLAG );
			return true;
		}
        }
        return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
callq 0xf3f8
testb %al, %al
je 0xfc45
movslq 0x70(%rbx), %rax
testq %rax, %rax
setg %bpl
jle 0xfca4
movq 0x58(%rbx), %rcx
cmpb %r14b, (%rcx)
jne 0xfc49
xorl %r15d, %r15d
jmp 0xfc6a
xorl %ebp, %ebp
jmp 0xfca4
movl $0x1, %edx
cmpq %rdx, %rax
je 0xfca0
leaq 0x1(%rdx), %r15
cmpb %r14b, (%rcx,%rdx)
movq %r15, %rdx
jne 0xfc4e
decq %r15
cmpq %rax, %r15
setb %bpl
movl $0x5, %edi
callq 0x3400
movq 0x68(%rbx), %rcx
movq 0x78(%rbx), %rdx
movslq (%rcx,%r15,4), %rcx
movq %rax, (%rdx,%rcx,8)
movq 0x68(%rbx), %rax
movq 0x78(%rbx), %rcx
movslq (%rax,%r15,4), %rax
movq (%rcx,%rax,8), %rax
movb $0x0, 0x4(%rax)
movl $0x65757274, (%rax)     # imm = 0x65757274
jmp 0xfca4
seta %bpl
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::getValue(char const*)
char*
AnyOption::getValue( const char *option )
{
	if( !valueStoreOK() ) {
		cout << "Error while reading the parameter: " << option << endl;
		return NULL;
	}

	for( int i = 0 ; i < option_counter ; i++ ){
		if( strcmp( options[i], option ) == 0 )
			return values[ optionindex[i] ];
	}
		
	cout << "Error while reading the parameter: " << option << endl;
	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0xf3f8
testb %al, %al
je 0xfd3a
movslq 0x50(%r14), %r15
testq %r15, %r15
setg %bpl
jle 0xfd31
movq 0x38(%r14), %r13
movq (%r13), %rdi
movq %rbx, %rsi
callq 0x3430
testl %eax, %eax
je 0xfd18
movl $0x1, %r12d
cmpq %r12, %r15
je 0xfd2d
movq (%r13,%r12,8), %rdi
movq %rbx, %rsi
callq 0x3430
incq %r12
testl %eax, %eax
jne 0xfcf3
decq %r12
cmpq %r15, %r12
setb %bpl
jmp 0xfd1b
xorl %r12d, %r12d
movq 0x48(%r14), %rax
movq 0x78(%r14), %rcx
movslq (%rax,%r12,4), %rax
movq (%rcx,%rax,8), %rax
jmp 0xfd31
seta %bpl
testb %bpl, %bpl
jne 0xfdbe
movq 0x8297(%rip), %r14      # 0x17fd8
leaq 0x2b5f(%rip), %rsi      # 0x128a7
movl $0x23, %edx
movq %r14, %rdi
callq 0x3340
testq %rbx, %rbx
je 0xfd76
movq %rbx, %rdi
callq 0x3130
movq 0x826f(%rip), %rdi      # 0x17fd8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x3340
jmp 0xfd8e
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x3560
movq 0x8243(%rip), %rbx      # 0x17fd8
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31e0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::getFlag(char const*)
bool
AnyOption::getFlag( const char *option )
{
	if( !valueStoreOK() )
		return false;
	for( int i = 0 ; i < option_counter ; i++ ){
		if( strcmp( options[i], option ) == 0 )
			return findFlag( values[ optionindex[i] ] );
	}
	return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
callq 0xf3f8
testb %al, %al
je 0xfe39
movslq 0x50(%rbx), %r15
testq %r15, %r15
jle 0xfe39
movq 0x38(%rbx), %r13
xorl %r12d, %r12d
movq (%r13,%r12,8), %rdi
movq %r14, %rsi
callq 0x3430
testl %eax, %eax
je 0xfe11
incq %r12
cmpq %r12, %r15
jne 0xfdf6
jmp 0xfe39
movq 0x48(%rbx), %rax
movq 0x78(%rbx), %rcx
movslq (%rax,%r12,4), %rax
movq (%rcx,%rax,8), %rsi
testq %rsi, %rsi
je 0xfe39
leaq 0x2a9e(%rip), %rdi      # 0x128cb
callq 0x3430
testl %eax, %eax
sete %al
jmp 0xfe3b
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::getValue(char)
char*
AnyOption::getValue( char option )
{
	if( !valueStoreOK() ) {

		cout << "Error while reading the parameter: " << option << endl;
		return NULL;
	}

	for( int i = 0 ; i < optchar_counter ; i++ ){
		if( optionchars[i] == option )
			return values[ optcharindex[i] ];
	}
		
	cout << "Error while reading the parameter: " << option << endl;
	return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
callq 0xf3f8
testb %al, %al
je 0xfe90
movslq 0x70(%r14), %rax
testq %rax, %rax
setg %cl
jle 0xfee6
movq 0x58(%r14), %rsi
cmpb %bl, (%rsi)
jne 0xfeb2
xorl %edx, %edx
jmp 0xfed1
movq 0x8141(%rip), %r14      # 0x17fd8
leaq 0x2a09(%rip), %rsi      # 0x128a7
movl $0x23, %edx
movq %r14, %rdi
callq 0x3340
leaq 0x6(%rsp), %rsi
jmp 0xff0a
movl $0x1, %ecx
cmpq %rcx, %rax
je 0xfee3
leaq 0x1(%rcx), %rdx
cmpb %bl, (%rsi,%rcx)
movq %rdx, %rcx
jne 0xfeb7
decq %rdx
cmpq %rax, %rdx
setb %cl
movq 0x68(%r14), %rax
movq 0x78(%r14), %rsi
movslq (%rax,%rdx,4), %rax
movq (%rsi,%rax,8), %rax
jmp 0xfee6
seta %cl
testb %cl, %cl
jne 0xff45
movq 0x80e7(%rip), %r14      # 0x17fd8
leaq 0x29af(%rip), %rsi      # 0x128a7
movl $0x23, %edx
movq %r14, %rdi
callq 0x3340
leaq 0x7(%rsp), %rsi
movb %bl, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x3340
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31e0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::getFlag(char)
bool
AnyOption::getFlag( char option )
{
	if( !valueStoreOK() )
		return false;
	for( int i = 0 ; i < optchar_counter ; i++ ){
		if( optionchars[i] == option )
			return findFlag( values[ optcharindex[i] ] ) ;
	}
	return false;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
callq 0xf3f8
testb %al, %al
je 0xffa6
movslq 0x70(%rbx), %rax
testq %rax, %rax
jle 0xffa6
movq 0x58(%rbx), %rdx
xorl %ecx, %ecx
cmpb %bpl, (%rdx,%rcx)
je 0xff7e
incq %rcx
cmpq %rcx, %rax
jne 0xff6e
jmp 0xffa6
movq 0x68(%rbx), %rax
movq 0x78(%rbx), %rdx
movslq (%rax,%rcx,4), %rax
movq (%rdx,%rax,8), %rsi
testq %rsi, %rsi
je 0xffa6
leaq 0x2931(%rip), %rdi      # 0x128cb
callq 0x3430
testl %eax, %eax
sete %al
jmp 0xffa8
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::consumeFile(char*)
bool
AnyOption::consumeFile( char *buffer )
{
	if (buffer != NULL) {
		char *cursor = buffer;/* preserve the ptr */
		char *pline = NULL ;
		int linelength = 0;
		bool newline = true;
		for( unsigned int i = 0 ; i < strlen( buffer ) ; i++ ){
			if( *cursor == endofline ) { /* end of line */
				if( pline != NULL ) /* valid line */
					processLine( pline, linelength );
				pline = NULL;
				newline = true;
			}else if( newline ){ /* start of line */
				newline = false;
				if( (*cursor != comment ) ){ /* not a comment */
					pline = cursor ;
					linelength = 0 ;
				}
			}
			cursor++; /* keep moving */
			linelength++;
		}
		free (buffer);
		return true;
	}
	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, 0x10(%rsp)
testq %rsi, %rsi
je 0x100ab
movq %rbx, 0x8(%rsp)
cmpb $0x0, (%rbx)
je 0x1009e
xorl %r15d, %r15d
movb $0x1, %r13b
movl $0x1, %ebp
xorl %r12d, %r12d
movq 0x8(%rsp), %rbx
movb (%rbx), %al
movq 0x10(%rsp), %rcx
cmpb 0xa7(%rcx), %al
jne 0x10068
movb $0x1, %r13b
testq %r12, %r12
je 0x10063
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x10194
xorl %r12d, %r12d
jmp 0x10084
testb $0x1, %r13b
je 0x10084
xorl %r13d, %r13d
movq 0x10(%rsp), %rcx
cmpb 0xa5(%rcx), %al
cmovneq %rbx, %r12
cmovnel %r13d, %r15d
incq %rbx
incl %r15d
movl %ebp, %r14d
movq 0x8(%rsp), %rdi
callq 0x3130
incl %ebp
cmpq %r14, %rax
ja 0x1003c
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x3380
testq %rbx, %rbx
setne %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::readFile(char const*)
char*
AnyOption::readFile( const char* fname )
{
        int length;
        char *buffer;
        ifstream is;
        is.open ( fname , ifstream::in );
        if( ! is.good() ){
                is.close();
                return NULL;
        }
        is.seekg (0, ios::end);
        length = is.tellg();
        is.seekg (0, ios::beg);
        buffer = (char*) malloc(length*sizeof(char)+1);
        is.read (buffer,length);
        is.close();
        return buffer;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rsi, %rbx
movq %rsp, %r14
movq %r14, %rdi
callq 0x3330
movq %r14, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x31a0
movq (%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x20(%rsp,%rax)
je 0x1011d
movq %rsp, %rdi
callq 0x3090
xorl %ebx, %ebx
jmp 0x10168
movq %rsp, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x3420
movq %rsp, %rdi
callq 0x3590
movq %rax, %rbx
movq %rsp, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3420
movslq %ebx, %r14
leaq 0x1(%r14), %rdi
callq 0x3400
movq %rax, %rbx
movq %rsp, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x33d0
movq %rsp, %rdi
callq 0x3090
movq %rsp, %rdi
callq 0x30b0
movq %rbx, %rax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
retq
jmp 0x10180
movq %rax, %rbx
movq %rsp, %rdi
callq 0x30b0
movq %rbx, %rdi
callq 0x35c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::processLine(char*, int)
void
AnyOption::processLine( char *theline, int length  )
{
        bool found = false;
        char *pline = (char*) malloc( (length+1)*sizeof(char) );
        for( int i = 0 ; i < length ; i ++ )
                pline[i]= *(theline++);
        pline[length] = nullterminate;
        char *cursor = pline ; /* preserve the ptr */
        if( *cursor == delimiter || *(cursor+length-1) == delimiter ){
                justValue( pline );/* line with start/end delimiter */
        }else{
                for( int i = 1 ; i < length-1 && !found ; i++){/* delimiter */
                        if( *cursor == delimiter ){
                                *(cursor-1) = nullterminate; /* two strings */
                                found = true;
                                valuePairs( pline , cursor+1 );
                        }
                        cursor++;
                }
                cursor++;
                if( !found ) /* not a pair */
                        justValue( pline );
        }
        free (pline);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, %rbx
leal 0x1(%r15), %eax
movslq %eax, %rdi
callq 0x3400
movq %rax, %r14
testl %r15d, %r15d
jle 0x101c7
movl %r15d, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x3250
movb 0xa9(%rbx), %cl
movslq %r15d, %rax
movb %cl, (%r14,%rax)
movb 0xa6(%rbx), %cl
cmpb %cl, (%r14)
je 0x10236
cmpb %cl, -0x1(%r14,%rax)
je 0x10236
cmpl $0x3, %r15d
jl 0x10236
decl %r15d
movq %r14, %r12
incq %r12
movl $0x2, %ebp
xorl %eax, %eax
movb -0x1(%r12), %cl
cmpb 0xa6(%rbx), %cl
jne 0x10224
movb 0xa9(%rbx), %al
movb %al, -0x2(%r12)
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x103e4
movb $0x1, %al
cmpl %r15d, %ebp
jge 0x10232
incl %ebp
incq %r12
testb $0x1, %al
je 0x101fc
testb $0x1, %al
jne 0x10241
movq %rbx, %rdi
movq %r14, %rsi
callq 0x10252
movq %r14, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3380
nop
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::justValue(char*)
void
AnyOption::justValue( char *type )
{

	if ( strlen(chomp(type)) == 1  ){ /* this is a char option */
		for( int i = 0 ; i < optchar_counter ; i++ ){
			if(  optionchars[i] == type[0]  ){ /* match */
				if( optchartype[i] == COMMON_FLAG ||
				    optchartype[i] == FILE_FLAG )
				{
			 		setFlagOn( type[0] );
			 		return;
				}
			}
		}
	}	
	/* if no char options matched */
	for( int i = 0 ; i < option_counter ; i++ ){
		if( strcmp( options[i], type ) == 0 ){ /* match */
			if( optiontype[i] == COMMON_FLAG ||
			    optiontype[i] == FILE_FLAG )
			{
		 		setFlagOn( type );
		 		return;
			}
		}
	}
        printVerbose( "Unknown option in resourcefile : " );
	printVerbose( type  );
	printVerbose( );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
movb 0xa8(%rdi), %bl
movq %rsi, %r12
movq %r12, %rax
incq %r12
cmpb %bl, (%rax)
je 0x10271
leaq -0x1(%r12), %r15
movq %r15, %rdi
callq 0x3130
addq %r12, %rax
movq %rax, %rcx
decq %rax
cmpb %bl, -0x2(%rcx)
je 0x1028b
movq 0x8(%rsp), %rcx
movb 0xa9(%rcx), %cl
movb %cl, (%rax)
movq %r15, %rdi
callq 0x3130
cmpq $0x1, %rax
jne 0x10321
movq 0x8(%rsp), %rax
movslq 0x70(%rax), %rax
testq %rax, %rax
setg %bpl
jle 0x10321
movq 0x8(%rsp), %rcx
movq 0x58(%rcx), %rdx
movq 0x60(%rcx), %rsi
movb (%r14), %cl
movq %rax, %rdi
negq %rdi
movl $0x1, %r8d
cmpb %cl, -0x1(%rdx,%r8)
jne 0x102f5
movl -0x4(%rsi,%r8,4), %r9d
orl $0x2, %r9d
cmpl $0x6, %r9d
je 0x1030e
cmpq %rax, %r8
setb %bpl
leaq (%rdi,%r8), %r9
incq %r9
incq %r8
cmpq $0x1, %r9
jne 0x102df
jmp 0x10321
movsbl %cl, %esi
movq 0x8(%rsp), %rdi
callq 0xfc14
testb $0x1, %bpl
jne 0x103a0
movq 0x8(%rsp), %rax
movslq 0x50(%rax), %rbx
testq %rbx, %rbx
setg %bpl
jle 0x103af
movq 0x8(%rsp), %rax
movq 0x38(%rax), %r12
movq 0x40(%rax), %rax
movq %rax, 0x10(%rsp)
movq %rbx, %r15
negq %r15
movl $0x1, %r13d
movq -0x8(%r12,%r13,8), %rdi
movq %r14, %rsi
callq 0x3430
testl %eax, %eax
jne 0x10374
movq 0x10(%rsp), %rax
movl -0x4(%rax,%r13,4), %eax
orl $0x2, %eax
cmpl $0x6, %eax
je 0x1038d
cmpq %rbx, %r13
setb %bpl
leaq (%r15,%r13), %rax
incq %rax
incq %r13
cmpq $0x1, %rax
jne 0x10351
jmp 0x103af
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0xfb58
testb $0x1, %bpl
je 0x103af
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x251a(%rip), %rsi      # 0x128d0
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0xeea8
movq %rbx, %rdi
movq %r14, %rsi
callq 0xeef6
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xee6e
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::chomp(char*)
char*
AnyOption::chomp( char *str )
{
        while( *str == whitespace )
                str++;
        char *end = str+strlen(str)-1;
        while( *end == whitespace )
                end--;
        *(end+1) = nullterminate;
        return str;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movb 0xa8(%rdi), %bpl
movq %r15, %rax
incq %r15
cmpb %bpl, (%rax)
je 0x10614
leaq -0x1(%r15), %r14
movq %r14, %rdi
callq 0x3130
addq %r15, %rax
movq %rax, %rcx
decq %rax
cmpb %bpl, -0x2(%rcx)
je 0x1062e
movb 0xa9(%rbx), %cl
movb %cl, (%rax)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::printUsage()
void
AnyOption::printUsage()
{
	
	if( once ) {
		once = false ;
		cout << endl ;
		for( int i = 0 ; i < usage_lines ; i++ )
			cout << usage[i] << endl ;	
		cout << endl ;
	}
}

// Assembly:
cmpb $0x1, 0xab(%rdi)
jne 0x10751
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movb $0x0, 0xab(%rdi)
movq 0x7962(%rip), %rbx      # 0x17fd8
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31e0
cmpl $0x0, 0x94(%r14)
jle 0x1071f
xorl %r12d, %r12d
movq 0x88(%r14), %rax
movq (%rax,%r12,8), %r15
testq %r15, %r15
je 0x106d2
movq %r15, %rdi
callq 0x3130
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x3340
jmp 0x106e9
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x3560
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31e0
incq %r12
movslq 0x94(%r14), %rax
cmpq %rax, %r12
jl 0x106aa
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x31e0
retq
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::addUsage(char const*)
void
AnyOption::addUsage( const char *line )
{
	if( usage_lines >= max_usage_lines ){
		if( doubleUsageStorage() == false ){
			addUsageError( line );
			exit(1);
		}
	}
	usage[ usage_lines ] = line ;	
	usage_lines++;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x94(%rdi), %eax
cmpl 0x90(%rdi), %eax
jl 0x10776
movq %r14, %rdi
callq 0xed98
testb %al, %al
je 0x1079a
movq 0x88(%r14), %rax
movslq 0x94(%r14), %rcx
movq %rbx, (%rax,%rcx,8)
leal 0x1(%rcx), %eax
movl %eax, 0x94(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rsi
callq 0x107a2
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/anyoption.cc
// Function: AnyOption::addUsageError(char const*)
void
AnyOption::addUsageError( const char *line )
{
	cout << endl ;
	cout << "OPTIONS ERROR : Failed allocating extra memory " << endl ;
	cout << "While adding the usage/help  : \""<< line << "\"" << endl;
	cout << "Exiting." << endl ;
	cout << endl ;
	exit(0);

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq 0x7828(%rip), %rbx      # 0x17fd8
movq %rbx, %rdi
callq 0x3150
leaq 0x2044(%rip), %rsi      # 0x12803
movq %rbx, %rdi
callq 0x32e0
movq %rax, %rdi
callq 0x3150
leaq 0x211c(%rip), %rsi      # 0x128f2
movq %rbx, %rdi
callq 0x32e0
movq %rax, %rdi
movq %r14, %rsi
callq 0x32e0
leaq 0x2121(%rip), %rsi      # 0x12911
movq %rax, %rdi
callq 0x32e0
movq %rax, %rdi
callq 0x3150
leaq 0x1fb0(%rip), %rsi      # 0x127b7
movq %rbx, %rdi
callq 0x32e0
movq %rax, %rdi
callq 0x3150
movq %rbx, %rdi
callq 0x3150
xorl %edi, %edi
callq 0x3390
nop
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/sfmt/SFMT.c
// Function: sfmt_fill_array32
void sfmt_fill_array32(sfmt_t * sfmt, uint32_t *array, int size) {
    assert(sfmt->idx == SFMT_N32);
    assert(size % 4 == 0);
    assert(size >= SFMT_N32);

    gen_rand_array(sfmt, (w128_t *)array, size / 4);
    sfmt->idx = SFMT_N32;
}

// Assembly:
pushq %rbx
cmpl $0x270, 0x9c0(%rdi)     # imm = 0x270
jne 0x10aaa
testb $0x3, %dl
jne 0x10ac9
cmpl $0x26f, %edx            # imm = 0x26F
jle 0x10ae8
movq %rdi, %rbx
shrl $0x2, %edx
callq 0x10b07
movl $0x270, 0x9c0(%rbx)     # imm = 0x270
popq %rbx
retq
leaq 0x1ebc(%rip), %rdi      # 0x1296d
leaq 0x1ecb(%rip), %rsi      # 0x12983
leaq 0x1ed9(%rip), %rcx      # 0x12998
movl $0x11c, %edx            # imm = 0x11C
callq 0x31b0
leaq 0x1efa(%rip), %rdi      # 0x129ca
leaq 0x1eac(%rip), %rsi      # 0x12983
leaq 0x1eba(%rip), %rcx      # 0x12998
movl $0x11d, %edx            # imm = 0x11D
callq 0x31b0
leaq 0x1ee9(%rip), %rdi      # 0x129d8
leaq 0x1e8d(%rip), %rsi      # 0x12983
leaq 0x1e9b(%rip), %rcx      # 0x12998
movl $0x11e, %edx            # imm = 0x11E
callq 0x31b0
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/sfmt/SFMT.c
// Function: sfmt_fill_array64
void sfmt_fill_array64(sfmt_t * sfmt, uint64_t *array, int size) {
    assert(sfmt->idx == SFMT_N32);
    assert(size % 2 == 0);
    assert(size >= SFMT_N64);

    gen_rand_array(sfmt, (w128_t *)array, size / 2);
    sfmt->idx = SFMT_N32;

#if defined(BIG_ENDIAN64) && !defined(ONLY64)
    swap((w128_t *)array, size /2);
#endif
}

// Assembly:
pushq %rbx
cmpl $0x270, 0x9c0(%rdi)     # imm = 0x270
jne 0x11087
testb $0x1, %dl
jne 0x110a6
cmpl $0x137, %edx            # imm = 0x137
jle 0x110c5
movq %rdi, %rbx
shrl %edx
callq 0x10b07
movl $0x270, 0x9c0(%rbx)     # imm = 0x270
popq %rbx
retq
leaq 0x18df(%rip), %rdi      # 0x1296d
leaq 0x18ee(%rip), %rsi      # 0x12983
leaq 0x194d(%rip), %rcx      # 0x129e9
movl $0x140, %edx            # imm = 0x140
callq 0x31b0
leaq 0x196e(%rip), %rdi      # 0x12a1b
leaq 0x18cf(%rip), %rsi      # 0x12983
leaq 0x192e(%rip), %rcx      # 0x129e9
movl $0x141, %edx            # imm = 0x141
callq 0x31b0
leaq 0x195d(%rip), %rdi      # 0x12a29
leaq 0x18b0(%rip), %rsi      # 0x12983
leaq 0x190f(%rip), %rcx      # 0x129e9
movl $0x142, %edx            # imm = 0x142
callq 0x31b0
// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/sfmt/SFMT.c
// Function: sfmt_init_gen_rand
void sfmt_init_gen_rand(sfmt_t * sfmt, uint32_t seed) {
    int i;

    uint32_t *psfmt32 = &sfmt->state[0].u[0];

    psfmt32[idxof(0)] = seed;
    for (i = 1; i < SFMT_N32; i++) {
	psfmt32[idxof(i)] = 1812433253UL * (psfmt32[idxof(i - 1)]
					    ^ (psfmt32[idxof(i - 1)] >> 30))
	    + i;
    }
    sfmt->idx = SFMT_N32;
    period_certification(sfmt);
}

// Assembly:
movl %esi, (%rdi)
movl $0x1, %eax
movl %esi, %ecx
shrl $0x1e, %ecx
xorl %esi, %ecx
imull $0x6c078965, %ecx, %ecx # imm = 0x6C078965
leal (%rax,%rcx), %esi
movl %esi, (%rdi,%rax,4)
incq %rax
cmpq $0x270, %rax            # imm = 0x270
jne 0x110eb
movl $0x270, 0x9c0(%rdi)     # imm = 0x270
jmp 0x11115
// File: /workspace/github_cpp_makefile_star2_O1/ef-gy[P]libefgy/include/ef.gy/series.h
// Function: efgy::math::series::power<efgy::math::numeric::fractional<long long>, efgy::math::algorithm::powerSeriesE, unsigned long long>::sumTo(unsigned long long const&, efgy::math::numeric::fractional<long long> const&, efgy::math::numeric::fractional<long long> const&, efgy::math::numeric::fractional<long long> const&, efgy::math::numeric::fractional<long long> const&)
constexpr static Q sumTo(const N &n, const Q &f, const Q &x, const Q &c,
                           const Q &acc) {
    return n == 0 ? acc + (sequence::at(0) * f)
                  : sumTo(n - 1, f, x, c,
                          acc + (sequence::at(n) * f *
                                 exponentiate::integral<Q>::raise(x - c, n)));
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %r14
movq %rsi, %rbx
movq (%rdi), %rax
testq %rax, %rax
je 0x112a5
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %rbp
decq %rax
leaq 0x28(%rsp), %rcx
movq %rax, (%rcx)
callq 0x114a2
imulq (%rbx), %rax
imulq 0x8(%rbx), %rdx
leaq 0x8(%rsp), %r13
movq %rax, (%r13)
movq %rdx, 0x8(%r13)
movq %r13, %rdi
callq 0x11422
movq (%r13), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%r13), %rax
movq %rax, 0x20(%rsp)
movq 0x8(%r15), %rax
movq (%r12), %rcx
imulq %rax, %rcx
movq 0x8(%r12), %rdx
movq (%r15), %rsi
imulq %rdx, %rsi
subq %rsi, %rcx
imulq %rax, %rdx
movq %rcx, (%r13)
movq %rdx, 0x8(%r13)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x11422
movups (%r13), %xmm0
leaq 0x38(%rsp), %rdi
movups %xmm0, (%rdi)
movq (%rbp), %rax
leaq 0x30(%rsp), %rsi
movq %rax, (%rsi)
callq 0x1131a
imulq 0x18(%rsp), %rax
imulq 0x20(%rsp), %rdx
movq %rax, (%r13)
movq %rdx, 0x8(%r13)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x11422
movq 0x8(%r13), %rax
movq (%r14), %rcx
imulq %rax, %rcx
movq 0x8(%r14), %rdx
movq (%r13), %rsi
imulq %rdx, %rsi
addq %rcx, %rsi
imulq %rax, %rdx
movq %rsi, (%r13)
movq %rdx, 0x8(%r13)
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x11422
movups (%r14), %xmm0
movups %xmm0, (%r14)
leaq 0x8(%rsp), %r8
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x11174
jmp 0x1130b
leaq 0x38(%rsp), %rdi
movq $0x0, (%rdi)
callq 0x114a2
imulq (%rbx), %rax
imulq 0x8(%rbx), %rdx
leaq 0x8(%rsp), %rbx
movq %rax, (%rbx)
movq %rdx, 0x8(%rbx)
movq %rbx, %rdi
callq 0x11422
movq 0x8(%rbx), %rax
movq (%r14), %rcx
imulq %rax, %rcx
movq 0x8(%r14), %rdx
movq (%rbx), %rsi
imulq %rdx, %rsi
addq %rcx, %rsi
imulq %rax, %rdx
movq %rsi, (%rbx)
movq %rdx, 0x8(%rbx)
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x11422
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtaudio/tests/testall.cpp
// Function: sawi(void*, void*, unsigned int, double, unsigned int, void*)
int sawi( void *outputBuffer, void * /*inputBuffer*/, unsigned int nBufferFrames,
          double /*streamTime*/, RtAudioStreamStatus status, void *data )
{
  unsigned int i, j;
  extern unsigned int channels;
  double *buffer = (double *) outputBuffer;
  double *lastValues = (double *) data;

  if ( status )
    std::cout << "Stream underflow detected!" << std::endl;

  for ( i=0; i<nBufferFrames; i++ ) {
    for ( j=0; j<channels; j++ ) {
      *buffer++ = (double) lastValues[j];
      lastValues[j] += BASE_RATE * (j+1+(j*0.1));
      if ( lastValues[j] >= 1.0 ) lastValues[j] -= 2.0;
    }
  }

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r8, %rbx
movl %edx, %ebp
movq %rdi, %r14
testl %ecx, %ecx
je 0x4659
movq 0x89aa(%rip), %r15      # 0xcfc8
leaq 0x4b94(%rip), %rsi      # 0x91b9
movl $0x1a, %edx
movq %r15, %rdi
callq 0x4210
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x41d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4140
testl %ebp, %ebp
je 0x46ff
movl 0x8bc1(%rip), %eax      # 0xd228
xorl %ecx, %ecx
movsd 0x4997(%rip), %xmm0     # 0x9008
movsd 0x4997(%rip), %xmm1     # 0x9010
movsd 0x4997(%rip), %xmm2     # 0x9018
movsd 0x4997(%rip), %xmm3     # 0x9020
testq %rax, %rax
je 0x46f9
xorl %edx, %edx
xorl %esi, %esi
movsd (%rbx,%rsi,8), %xmm4
movsd %xmm4, (%r14,%rsi,8)
leaq 0x1(%rsi), %rdi
movl %edi, %r8d
xorps %xmm4, %xmm4
cvtsi2sd %r8, %xmm4
movl %esi, %r8d
xorps %xmm5, %xmm5
cvtsi2sd %r8, %xmm5
mulsd %xmm0, %xmm5
addsd %xmm4, %xmm5
mulsd %xmm1, %xmm5
addsd (%rbx,%rsi,8), %xmm5
movapd %xmm5, %xmm4
addsd %xmm2, %xmm4
movapd %xmm3, %xmm6
cmpnlesd %xmm5, %xmm6
andpd %xmm6, %xmm5
andnpd %xmm4, %xmm6
orpd %xmm5, %xmm6
movlpd %xmm6, (%rbx,%rsi,8)
addq $-0x8, %rdx
movq %rdi, %rsi
cmpq %rdi, %rax
jne 0x4692
subq %rdx, %r14
incl %ecx
cmpl %ebp, %ecx
jne 0x4689
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtaudio/tests/testall.cpp
// Function: inout(void*, void*, unsigned int, double, unsigned int, void*)
int inout( void *outputBuffer, void *inputBuffer, unsigned int /*nBufferFrames*/,
           double /*streamTime*/, RtAudioStreamStatus status, void *data )
{
  // Since the number of input and output channels is equal, we can do
  // a simple buffer copy operation here.
  if ( status ) std::cout << "Stream over/underflow detected." << std::endl;

  unsigned int *bytes = (unsigned int *) data;
  memcpy( outputBuffer, inputBuffer, *bytes );
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rsi, %rbx
movq %rdi, %r14
testl %ecx, %ecx
je 0x4865
movq 0x879f(%rip), %r12      # 0xcfc8
leaq 0x49a4(%rip), %rsi      # 0x91d4
movl $0x1f, %edx
movq %r12, %rdi
callq 0x4210
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x41d0
movsbl %al, %esi
movq %r12, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4140
movl (%r15), %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4180
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/tmtxt[P]microcontroller-emulation/main.cpp
// Function: main
int main(int argc, char *argv[])
{
	// VARIABLES USED FOR THIS PROGRAM
	
	// userOption: stores the user option. The program must handle both
	// upperand lowercase so that this variable will save only lowercase value.
	// The program have to change it to lowercase before saving
	char userOption;

	// The Microcontroller of the program
	Microcontroller* microcontroller = 0;

	
	// EXECUTION OF PROGRAM

	// print welcome
	cout << "MICROCONTROLLER SIMULATOR" << endl;
	
	// Start the program
	// Loop for user enter option until user enter 'q' or 'Q'
	do
	{
		// Display the application prompt
		cout << "Message: Enter the option you want. Type h for help" << endl;
		cout << "> ";
		
		// Read user input
		userOption = inputOption();

		cout << endl;

		// Check the userOption variable and the switch the user to the right function
		switchOption(userOption, &microcontroller);

		if(userOption != 'q'){
			// Display a newline character, just for decoration
			cout << endl;
		}
		
	} while (userOption != 'q');

	// print the goodbye message
	cout << "Quitting..." << endl;
	cout << "Thank you for using my software." << endl;
	
	// End the program
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
leaq 0x8(%rsp), %r14
movq $0x0, (%r14)
movq 0x8b3d(%rip), %rbx      # 0xafc8
leaq 0x4bb6(%rip), %rsi      # 0x7048
movl $0x19, %edx
movq %rbx, %rdi
callq 0x2190
leaq 0x4bbc(%rip), %r15      # 0x7062
leaq 0x4be9(%rip), %r12      # 0x7096
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movl $0x33, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movl $0x2, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2190
callq 0x25e6
movl %eax, %ebp
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movsbl %bpl, %ebp
movl %ebp, %edi
movq %r14, %rsi
callq 0x2684
cmpb $0x71, %bpl
jne 0x24ad
leaq 0x4b31(%rip), %rsi      # 0x7099
movl $0xb, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
leaq 0x4b02(%rip), %rsi      # 0x70a5
movl $0x20, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tmtxt[P]microcontroller-emulation/main.cpp
// Function: optionConnectHandler(mcontroller::Microcontroller**)
void optionConnectHandler(Microcontroller** microcontroller){

	// a factory for creating microcontroller
	MicrocontrollerFactory factory;

	// first free memory for the existing microcontroller
	delete *microcontroller;
	
	// display the prompt to ask user to enter microcontroller type
	cout << "Message: Connect to Microcontroller" << endl;
	cout << "Message: Auto disconnect other Microcontroller (if aleady connected)" << endl;
	cout << "Message: Enter the type of microcontroller to connect" << endl;
	cout << "type? ";

	// read the microcontroller type from user
	string inputMicrocontrollerType;
	cin >> inputMicrocontrollerType;

	// create microcontroller
	(*microcontroller) = factory.createMicrocontroller(inputMicrocontrollerType);
	
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rdi, %rbx
leaq 0x40(%rsp), %rdi
callq 0x54e0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x271f
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x88a2(%rip), %r14      # 0xafc8
leaq 0x4ae2(%rip), %rsi      # 0x720f
movl $0x23, %edx
movq %r14, %rdi
callq 0x2190
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq 0x8870(%rip), %rdi      # 0xafc8
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq 0x885c(%rip), %r14      # 0xafc8
leaq 0x4ac0(%rip), %rsi      # 0x7233
movl $0x44, %edx
movq %r14, %rdi
callq 0x2190
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq 0x882a(%rip), %rdi      # 0xafc8
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq 0x8816(%rip), %r14      # 0xafc8
leaq 0x4abf(%rip), %rsi      # 0x7278
movl $0x35, %edx
movq %r14, %rdi
callq 0x2190
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq 0x87e4(%rip), %rdi      # 0xafc8
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq 0x87d0(%rip), %rdi      # 0xafc8
leaq 0x4aaf(%rip), %rsi      # 0x72ae
movl $0x6, %edx
callq 0x2190
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
movq 0x87b3(%rip), %rdi      # 0xafd8
movq %rsp, %rsi
callq 0x21a0
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x3590
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x56d2
movq %rax, (%rbx)
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x2875
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2170
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x288b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x40(%rsp), %rdi
callq 0x350e
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x28be
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x28be
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x28d9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x28d9
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x350e
movq %rbx, %rdi
callq 0x2250
// File: /workspace/github_cpp_makefile_star2_O1/tmtxt[P]microcontroller-emulation/main.cpp
// Function: executeOptionIfConnected(mcontroller::Microcontroller**, void (*)(mcontroller::Microcontroller**))
void executeOptionIfConnected(Microcontroller** microcontroller, optionHandler* handlerFunction){
	
	// check whether the microcontroller is connected
	if((*microcontroller) == 0){
		// Not connected
		// print the message to cerr
		cerr << "Error: Not connected to any controller!" << endl;
		cerr << "Message: Type c to connect to a controller." << endl;
		cerr << "Message: Type h for help." << endl;
	} else {
		// Connected
		// execute the handler function
		handlerFunction(microcontroller);
	}
}

// Assembly:
cmpq $0x0, (%rdi)
je 0x28f3
jmpq *%rsi
pushq %rbx
movq 0x86f5(%rip), %rbx      # 0xaff0
leaq 0x4bf5(%rip), %rsi      # 0x74f7
movl $0x27, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
leaq 0x4be2(%rip), %rsi      # 0x751f
movl $0x2b, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
leaq 0x4bd3(%rip), %rsi      # 0x754b
movl $0x19, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
popq %rbx
jmp 0x20e0
// File: /workspace/github_cpp_makefile_star2_O1/tmtxt[P]microcontroller-emulation/main.cpp
// Function: optionExecuteHandler(mcontroller::Microcontroller**)
void optionExecuteHandler(mcontroller::Microcontroller** microcontroller){

	// print the message for user
	cout << "Message: Execute from current PC" << endl;
	
	// execute the opcode
	(*microcontroller)->execute();
	
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8404(%rip), %r14      # 0xafc8
leaq 0x486b(%rip), %rsi      # 0x7436
movl $0x20, %edx
movq %r14, %rdi
callq 0x2190
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq (%rbx), %rdi
movq (%rdi), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *0x18(%rax)
// File: /workspace/github_cpp_makefile_star2_O1/tmtxt[P]microcontroller-emulation/main.cpp
// Function: optionExecuteFromSpecificLocationHandler(mcontroller::Microcontroller**)
void optionExecuteFromSpecificLocationHandler(mcontroller::Microcontroller** microcontroller){

	// display the message for user
	cout << "Message: Execute from specific location." << endl;
	cout << "Message: Enter the memory location to execute (hexadecimal format)." << endl;
	
	// input location from user
	int location = (*microcontroller)->inputHexadecimal("location? ");

	// execute the opcode from location
	(*microcontroller)->executeFromLocation(location);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x83a3(%rip), %r14      # 0xafc8
leaq 0x482b(%rip), %rsi      # 0x7457
movl $0x28, %edx
movq %r14, %rdi
callq 0x2190
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
leaq 0x4819(%rip), %rsi      # 0x7480
movl $0x43, %edx
movq %r14, %rdi
callq 0x2190
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq (%rbx), %r14
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x4815(%rip), %rsi      # 0x74c4
leaq 0x4818(%rip), %rdx      # 0x74ce
movq %rsp, %r15
movq %r15, %rdi
callq 0x3620
movq %r14, %rdi
movq %r15, %rsi
callq 0x383c
movl %eax, %ebp
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2ce4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2170
movq (%rbx), %rdi
movq (%rdi), %rax
movl %ebp, %esi
callq *0x20(%rax)
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2d15
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2250
// File: /workspace/github_cpp_makefile_star2_O1/tmtxt[P]microcontroller-emulation/main.cpp
// Function: optionLookAtMemoryHandler(mcontroller::Microcontroller**)
void optionLookAtMemoryHandler(mcontroller::Microcontroller** microcontroller){

	// display the message for user
	cout << "Message: Look at memory." << endl;
	cout << "Message: Enter the memory location to look at (hexadecimal format)." << endl;
	
	// the memory location the user input
	int location;
	
	// input memory location
	location = (*microcontroller)->lookUpMemoryAddress();

	// check if the input location is valid
	if(location != Microcontroller::memoryLocationInvalid){
		// print out the value at the memory address
		unsigned int value = (*microcontroller)->getMemoryValueAtLocation(location);
		cout << "Message: The value at location ";
		cout << hex << location;
		cout << " is: ";
		cout << hex << value;
		cout << endl;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x829a(%rip), %rbx      # 0xafc8
leaq 0x4580(%rip), %rsi      # 0x72b5
movl $0x18, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
leaq 0x455e(%rip), %rsi      # 0x72ce
movl $0x43, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq (%r14), %rdi
callq 0x376a
cmpl $-0x1, %eax
je 0x2e5e
movl %eax, %r15d
movq (%r14), %rdi
movl %eax, %esi
callq 0x3740
movl %eax, %ebp
leaq 0x4547(%rip), %rsi      # 0x7312
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x18(%rbx,%rax)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x2230
leaq 0x4533(%rip), %rsi      # 0x7332
movl $0x5, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x18(%rbx,%rax)
movzbl %bpl, %esi
movq %rbx, %rdi
callq 0x20d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x20e0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tmtxt[P]microcontroller-emulation/microcontroller.cpp
// Function: mcontroller::Microcontroller::Microcontroller(int)
Microcontroller::Microcontroller(int memorySize){
		// init the memory size
		this->memorySize = memorySize;

		// init the memory array
		this->memory = new unsigned char [this->memorySize];
		this->initMemory(0);
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x759a(%rip), %rax      # 0xac58
movq %rax, (%rdi)
movl %esi, 0x18(%rdi)
movslq %esi, %r14
movq %r14, %rdi
callq 0x2030
movq %rax, 0x10(%rbx)
testl %r14d, %r14d
jle 0x36ee
xorl %eax, %eax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
incq %rax
movslq 0x18(%rbx), %rcx
cmpq %rcx, %rax
jl 0x36da
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/tmtxt[P]microcontroller-emulation/microcontroller.cpp
// Function: mcontroller::Microcontroller::getMemoryValueAtLocation(int)
unsigned char Microcontroller::getMemoryValueAtLocation(int location){
		if(location < 0 || location >= this->getMemorySize()){
			return 0;
		} else {
			return (this->getMemory())[location];
		}
	}

// Assembly:
xorl %eax, %eax
testl %esi, %esi
js 0x3754
cmpl %esi, 0x18(%rdi)
jle 0x3754
movq 0x10(%rdi), %rax
movl %esi, %ecx
movb (%rax,%rcx), %al
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/tmtxt[P]microcontroller-emulation/microcontroller.cpp
// Function: mcontroller::Microcontroller::lookUpMemoryAddress()
int Microcontroller::lookUpMemoryAddress(){

		// Init variables here
		// The input location
		int location = this->inputHexadecimal("location? ");

		// Validate that the location is out of memory array index
		if((location < 0) || (location >= this->getMemorySize())){
			// Display the error for user
			cerr << "Error: Invalid address!" << endl;
			return Microcontroller::memoryLocationInvalid;
		} else {
			// Address valid, return the address location
			return location;
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x3d3d(%rip), %rsi      # 0x74c4
leaq 0x3d40(%rip), %rdx      # 0x74ce
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3620
movq %r14, %rsi
callq 0x383c
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x37bc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
testl %ebp, %ebp
js 0x37c5
cmpl 0x18(%rbx), %ebp
jl 0x380c
movq 0x7824(%rip), %rbx      # 0xaff0
leaq 0x3e00(%rip), %rsi      # 0x75d3
movl $0x17, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x3833
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2250
nop