// File: matteorr[P]EarleyParser/EarleyParser.cpp
// Function: EarleyParser::initialize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
void EarleyParser::initialize( string filePath, bool probablityParser )
{
	this->probabilityParser = probablityParser;

	string line;
	ifstream inputFile;

	inputFile.open( filePath.c_str(), fstream::in );

	if( inputFile.is_open() )
	{
		while( inputFile.good() )
		{
			/*
			 * reads a line (production) from the context free input grammar
			 */
			getline( inputFile, line );

			//skips empty line
			if( line.size() == 0 ) continue;

			cout << "[DEBUG]: " << line << endl;

			/*
			 * extracts tokens of the production
			 * separated by "->"
			 * first token is terminal symbol
			 * second token is production rule
			 * third tolken is production probability
			 */
			vector< string > tokenVector;
			this->splitToVector( line, &tokenVector, "->", false );

			//skips comment line
			if( tokenVector.at(0) == "#" ) continue;

			for( unsigned int i = 0; i < tokenVector.size(); i++ ){
				cout << "[DEBUG]: " << "line token: [" << tokenVector.at(i) << "]" << endl;
			}

			/*
			 * extracts all symbols in the production
			 * separated by " "
			 */
			vector< string > productionTokenVector;
			this->splitToVector( tokenVector.at(1), &productionTokenVector, " ", false );
			for( unsigned int i = 0; i < productionTokenVector.size(); i++ ){
				cout << "[DEBUG]: " << "production token: [" << productionTokenVector.at(i) << "]" << endl;
			}

			/*
			 * looks in the hash table of productions
			 * if the non terminal symbol was allready inserted
			 */
			EarleyParser::productionHashTable::iterator got = this->earleyProductions.find( tokenVector.at(0) );
			if( got != this->earleyProductions.end() )
			{
				/*
				 * element found in hash table (key tokenVector->at(0) contained)
				 * add a new Production at the end of the list
				 */

				cout << "[DEBUG]: found [" << got->first << "] adding Production to existing list" << endl << endl;

				got->second.push_back( Production( atof( tokenVector.at(2).c_str() ), productionTokenVector.size(), productionTokenVector ) );

			}else{
				/*
				 * element not found in hash table (key tokenVector->at(0) not contained)
				 * create a new list and save it in hash map
				 * adds new Production to the list
				 */

				list<Production> productionList;

				pair< string, list<Production> > productions( tokenVector.at(0), productionList );

				std::pair<EarleyParser::productionHashTable::iterator, bool> insertionResult;
				insertionResult = this->earleyProductions.insert( productions );
				if( insertionResult.second == true ){
					/*
					 * element inserted with success
					 */
					insertionResult.first->second.push_back( Production( atof( tokenVector.at(2).c_str() ), productionTokenVector.size(), productionTokenVector ) );

					cout << "[DEBUG]: created new list [" << productions.first << "] and inserted Production with success" << endl << endl;
				}
			}

		}
		inputFile.close();

		/*
		 * check probabilities coherence if specified by the input boolean
		 */
		if( this->probabilityParser == true ){

			for( productionHashTable::iterator i = this->earleyProductions.begin(); i != this->earleyProductions.end(); i++ ){

				float productionProbability = 0;

				cout << "[DEBUG]: checking probability of [" << i->first << "]" << endl;

				for( list<Production>::iterator j = i->second.begin(); j != i->second.end(); j++ ){

					productionProbability += j->getProductionProbability();
				}
				if( productionProbability != 1 ){
					cout << "[DEBUG]: probability of [" << i->first << "] does not sum up to 1! - BAD INPUT GRAMMAR" << endl;
					exit(1);
				}
			}
		}

	}else{
		cout << "Error: not able to open input file [" << filePath << "]" << endl;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x5e0, %rsp            # imm = 0x5E0
movq %rsi, -0x430(%rbp)
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x428(%rbp)
movb -0x11(%rbp), %cl
andb $0x1, %cl
movb %cl, 0x8(%rax)
leaq -0x38(%rbp), %rdi
callq 0x22a0
leaq -0x240(%rbp), %rdi
callq 0x2210
jmp 0x288c
movq -0x430(%rbp), %rdi
callq 0x20e0
movq %rax, %rsi
leaq -0x240(%rbp), %rdi
movl $0x8, %edx
callq 0x2150
jmp 0x28ae
leaq -0x240(%rbp), %rdi
callq 0x22f0
movb %al, -0x431(%rbp)
jmp 0x28c2
movb -0x431(%rbp), %al
testb $0x1, %al
jne 0x28d1
jmp 0x350e
jmp 0x28d3
movq -0x240(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x240(%rbp,%rax), %rdi
callq 0x2320
movb %al, -0x432(%rbp)
jmp 0x28f3
movb -0x432(%rbp), %al
testb $0x1, %al
jne 0x2902
jmp 0x32c8
leaq -0x240(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2050
jmp 0x2914
leaq -0x38(%rbp), %rdi
callq 0x2160
cmpq $0x0, %rax
jne 0x2953
jmp 0x28d3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x35a3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x3597
movq 0x1967e(%rip), %rdi     # 0x1bfd8
leaq 0x106ab(%rip), %rsi     # 0x1300c
callq 0x21c0
movq %rax, -0x440(%rbp)
jmp 0x296f
movq -0x440(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x21a0
movq %rax, -0x448(%rbp)
jmp 0x2988
movq -0x448(%rbp), %rdi
movq 0x19632(%rip), %rsi     # 0x1bfc8
callq 0x21f0
jmp 0x299d
leaq -0x268(%rbp), %rdi
callq 0x6c50
leaq -0x289(%rbp), %rdi
movq %rdi, -0x450(%rbp)
callq 0x2350
movq -0x450(%rbp), %rdx
leaq 0x1064c(%rip), %rsi     # 0x13016
leaq -0x288(%rbp), %rdi
callq 0x2290
jmp 0x29d8
movq -0x428(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq -0x268(%rbp), %rdx
leaq -0x288(%rbp), %rcx
xorl %r8d, %r8d
callq 0x35c0
jmp 0x29fb
leaq -0x288(%rbp), %rdi
callq 0x2140
leaq -0x289(%rbp), %rdi
callq 0x2200
xorl %eax, %eax
movl %eax, %esi
leaq -0x268(%rbp), %rdi
callq 0x7090
movq %rax, -0x458(%rbp)
jmp 0x2a2c
movq -0x458(%rbp), %rdi
leaq 0x105df(%rip), %rsi     # 0x13019
callq 0x7060
movb %al, -0x459(%rbp)
jmp 0x2a47
movb -0x459(%rbp), %al
testb $0x1, %al
jne 0x2a53
jmp 0x2abc
movl $0x2, -0x290(%rbp)
jmp 0x3289
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x2a94
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
leaq -0x288(%rbp), %rdi
callq 0x2140
leaq -0x289(%rbp), %rdi
callq 0x2200
jmp 0x32b7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x32b7
movl $0x0, -0x294(%rbp)
movl -0x294(%rbp), %eax
movq %rax, -0x468(%rbp)
leaq -0x268(%rbp), %rdi
callq 0x6c90
movq %rax, %rcx
movq -0x468(%rbp), %rax
cmpq %rcx, %rax
jae 0x2baa
movq 0x194df(%rip), %rdi     # 0x1bfd8
leaq 0x1050c(%rip), %rsi     # 0x1300c
callq 0x21c0
movq %rax, -0x470(%rbp)
jmp 0x2b0e
movq -0x470(%rbp), %rdi
leaq 0x104ff(%rip), %rsi     # 0x1301b
callq 0x21c0
movq %rax, -0x478(%rbp)
jmp 0x2b2a
movl -0x294(%rbp), %eax
movl %eax, %esi
leaq -0x268(%rbp), %rdi
callq 0x7090
movq %rax, -0x480(%rbp)
jmp 0x2b47
movq -0x480(%rbp), %rsi
movq -0x478(%rbp), %rdi
callq 0x21a0
movq %rax, -0x488(%rbp)
jmp 0x2b63
movq -0x488(%rbp), %rdi
leaq 0x104b8(%rip), %rsi     # 0x13029
callq 0x21c0
movq %rax, -0x490(%rbp)
jmp 0x2b7f
movq -0x490(%rbp), %rdi
movq 0x1943b(%rip), %rsi     # 0x1bfc8
callq 0x21f0
jmp 0x2b94
jmp 0x2b96
movl -0x294(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x294(%rbp)
jmp 0x2ac6
leaq -0x2b0(%rbp), %rdi
callq 0x6c50
leaq -0x268(%rbp), %rdi
movl $0x1, %esi
callq 0x7090
movq %rax, -0x498(%rbp)
jmp 0x2bd0
leaq -0x2d1(%rbp), %rdi
movq %rdi, -0x4a0(%rbp)
callq 0x2350
movq -0x4a0(%rbp), %rdx
leaq 0x1099c(%rip), %rsi     # 0x1358d
leaq -0x2d0(%rbp), %rdi
callq 0x2290
jmp 0x2bff
movq -0x498(%rbp), %rsi
movq -0x428(%rbp), %rdi
leaq -0x2b0(%rbp), %rdx
leaq -0x2d0(%rbp), %rcx
xorl %r8d, %r8d
callq 0x35c0
jmp 0x2c25
leaq -0x2d0(%rbp), %rdi
callq 0x2140
leaq -0x2d1(%rbp), %rdi
callq 0x2200
movl $0x0, -0x2d8(%rbp)
movl -0x2d8(%rbp), %eax
movq %rax, -0x4a8(%rbp)
leaq -0x2b0(%rbp), %rdi
callq 0x6c90
movq %rax, %rcx
movq -0x4a8(%rbp), %rax
cmpq %rcx, %rax
jae 0x2d85
movq 0x1935e(%rip), %rdi     # 0x1bfd8
leaq 0x1038b(%rip), %rsi     # 0x1300c
callq 0x21c0
movq %rax, -0x4b0(%rbp)
jmp 0x2c8f
movq -0x4b0(%rbp), %rdi
leaq 0x1038e(%rip), %rsi     # 0x1302b
callq 0x21c0
movq %rax, -0x4b8(%rbp)
jmp 0x2cab
movl -0x2d8(%rbp), %eax
movl %eax, %esi
leaq -0x2b0(%rbp), %rdi
callq 0x7090
movq %rax, -0x4c0(%rbp)
jmp 0x2cc8
movq -0x4c0(%rbp), %rsi
movq -0x4b8(%rbp), %rdi
callq 0x21a0
movq %rax, -0x4c8(%rbp)
jmp 0x2ce4
movq -0x4c8(%rbp), %rdi
leaq 0x10337(%rip), %rsi     # 0x13029
callq 0x21c0
movq %rax, -0x4d0(%rbp)
jmp 0x2d00
movq -0x4d0(%rbp), %rdi
movq 0x192ba(%rip), %rsi     # 0x1bfc8
callq 0x21f0
jmp 0x2d15
jmp 0x2d17
movl -0x2d8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2d8(%rbp)
jmp 0x2c47
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x32ab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x2d74
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
leaq -0x2d0(%rbp), %rdi
callq 0x2140
leaq -0x2d1(%rbp), %rdi
callq 0x2200
jmp 0x32ab
movq -0x428(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x4e0(%rbp)
xorl %eax, %eax
movl %eax, %esi
leaq -0x268(%rbp), %rdi
callq 0x7090
movq %rax, -0x4d8(%rbp)
jmp 0x2db0
movq -0x4d8(%rbp), %rsi
movq -0x4e0(%rbp), %rdi
callq 0x70d0
movq %rax, -0x4e8(%rbp)
jmp 0x2dcc
movq -0x428(%rbp), %rdi
movq -0x4e8(%rbp), %rax
movq %rax, -0x2e0(%rbp)
addq $0x10, %rdi
callq 0x7130
movq %rax, -0x2e8(%rbp)
leaq -0x2e0(%rbp), %rdi
leaq -0x2e8(%rbp), %rsi
callq 0x7100
testb $0x1, %al
jne 0x2e0d
jmp 0x2fb1
movq 0x191c4(%rip), %rdi     # 0x1bfd8
leaq 0x10224(%rip), %rsi     # 0x1303f
callq 0x21c0
movq %rax, -0x4f0(%rbp)
jmp 0x2e29
leaq -0x2e0(%rbp), %rdi
callq 0x7160
movq -0x4f0(%rbp), %rdi
movq %rax, %rsi
callq 0x21a0
movq %rax, -0x4f8(%rbp)
jmp 0x2e4d
movq -0x4f8(%rbp), %rdi
leaq 0x101f5(%rip), %rsi     # 0x13050
callq 0x21c0
movq %rax, -0x500(%rbp)
jmp 0x2e69
movq -0x500(%rbp), %rdi
movq 0x19151(%rip), %rsi     # 0x1bfc8
callq 0x21f0
movq %rax, -0x508(%rbp)
jmp 0x2e85
movq -0x508(%rbp), %rdi
movq 0x19135(%rip), %rsi     # 0x1bfc8
callq 0x21f0
jmp 0x2e9a
leaq -0x2e0(%rbp), %rdi
callq 0x7160
addq $0x20, %rax
movq %rax, -0x518(%rbp)
leaq -0x268(%rbp), %rdi
movl $0x2, %esi
callq 0x7090
movq %rax, -0x510(%rbp)
jmp 0x2ecb
movq -0x510(%rbp), %rdi
callq 0x20e0
movq %rax, %rdi
callq 0x2240
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x52c(%rbp)
leaq -0x2b0(%rbp), %rdi
movq %rdi, -0x528(%rbp)
callq 0x6c90
movq -0x528(%rbp), %rsi
movl %eax, -0x51c(%rbp)
leaq -0x328(%rbp), %rdi
callq 0x71d0
jmp 0x2f19
movl -0x51c(%rbp), %esi
movss -0x52c(%rbp), %xmm0
leaq -0x310(%rbp), %rdi
leaq -0x328(%rbp), %rdx
callq 0x113c0
jmp 0x2f3c
movq -0x518(%rbp), %rdi
leaq -0x310(%rbp), %rsi
callq 0x7190
jmp 0x2f51
leaq -0x310(%rbp), %rdi
callq 0x11450
leaq -0x328(%rbp), %rdi
callq 0x6f60
jmp 0x3273
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x2fa0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
leaq -0x310(%rbp), %rdi
callq 0x11450
leaq -0x328(%rbp), %rdi
callq 0x6f60
jmp 0x32ab
leaq -0x340(%rbp), %rdi
callq 0x72c0
xorl %eax, %eax
movl %eax, %esi
leaq -0x268(%rbp), %rdi
callq 0x7090
movq %rax, -0x538(%rbp)
jmp 0x2fd6
movq -0x538(%rbp), %rsi
leaq -0x378(%rbp), %rdi
leaq -0x340(%rbp), %rdx
callq 0x72e0
jmp 0x2ff2
leaq -0x388(%rbp), %rdi
callq 0x7340
jmp 0x3000
movq -0x428(%rbp), %rdi
addq $0x10, %rdi
leaq -0x378(%rbp), %rsi
callq 0x7380
movb %dl, -0x541(%rbp)
movq %rax, -0x540(%rbp)
jmp 0x3026
movb -0x541(%rbp), %al
movq -0x540(%rbp), %rcx
movq %rcx, -0x3a8(%rbp)
movb %al, -0x3a0(%rbp)
movq -0x3a8(%rbp), %rax
movq %rax, -0x398(%rbp)
movb -0x3a0(%rbp), %al
movb %al, -0x390(%rbp)
leaq -0x388(%rbp), %rdi
leaq -0x398(%rbp), %rsi
callq 0x73c0
movb -0x380(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x323f
leaq -0x388(%rbp), %rdi
callq 0x7160
addq $0x20, %rax
movq %rax, -0x558(%rbp)
leaq -0x268(%rbp), %rdi
movl $0x2, %esi
callq 0x7090
movq %rax, -0x550(%rbp)
jmp 0x30b2
movq -0x550(%rbp), %rdi
callq 0x20e0
movq %rax, %rdi
callq 0x2240
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x56c(%rbp)
leaq -0x2b0(%rbp), %rdi
movq %rdi, -0x568(%rbp)
callq 0x6c90
movq -0x568(%rbp), %rsi
movl %eax, -0x55c(%rbp)
leaq -0x3e8(%rbp), %rdi
callq 0x71d0
jmp 0x3100
movl -0x55c(%rbp), %esi
movss -0x56c(%rbp), %xmm0
leaq -0x3d0(%rbp), %rdi
leaq -0x3e8(%rbp), %rdx
callq 0x113c0
jmp 0x3123
movq -0x558(%rbp), %rdi
leaq -0x3d0(%rbp), %rsi
callq 0x7190
jmp 0x3138
leaq -0x3d0(%rbp), %rdi
callq 0x11450
leaq -0x3e8(%rbp), %rdi
callq 0x6f60
movq 0x18e81(%rip), %rdi     # 0x1bfd8
leaq 0xff17(%rip), %rsi      # 0x13075
callq 0x21c0
movq %rax, -0x578(%rbp)
jmp 0x316c
movq -0x578(%rbp), %rdi
leaq -0x378(%rbp), %rsi
callq 0x21a0
movq %rax, -0x580(%rbp)
jmp 0x3188
movq -0x580(%rbp), %rdi
leaq 0xfefb(%rip), %rsi      # 0x13091
callq 0x21c0
movq %rax, -0x588(%rbp)
jmp 0x31a4
movq -0x588(%rbp), %rdi
movq 0x18e16(%rip), %rsi     # 0x1bfc8
callq 0x21f0
movq %rax, -0x590(%rbp)
jmp 0x31c0
movq -0x590(%rbp), %rdi
movq 0x18dfa(%rip), %rsi     # 0x1bfc8
callq 0x21f0
jmp 0x31d5
jmp 0x323f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x3265
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x3259
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x3231
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
leaq -0x3d0(%rbp), %rdi
callq 0x11450
leaq -0x3e8(%rbp), %rdi
callq 0x6f60
jmp 0x3259
leaq -0x378(%rbp), %rdi
callq 0x73f0
leaq -0x340(%rbp), %rdi
callq 0x7420
jmp 0x3273
leaq -0x378(%rbp), %rdi
callq 0x73f0
leaq -0x340(%rbp), %rdi
callq 0x7420
jmp 0x32ab
leaq -0x2b0(%rbp), %rdi
callq 0x6f60
movl $0x0, -0x290(%rbp)
leaq -0x268(%rbp), %rdi
callq 0x6f60
movl -0x290(%rbp), %eax
testl %eax, %eax
je 0x32a6
jmp 0x32a1
jmp 0x28d3
jmp 0x28d3
leaq -0x2b0(%rbp), %rdi
callq 0x6f60
leaq -0x268(%rbp), %rdi
callq 0x6f60
jmp 0x3597
leaq -0x240(%rbp), %rdi
callq 0x2070
jmp 0x32d6
movq -0x428(%rbp), %rax
movb 0x8(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x350c
movq -0x428(%rbp), %rdi
addq $0x10, %rdi
callq 0x7440
movq %rax, -0x3f0(%rbp)
movq -0x428(%rbp), %rdi
addq $0x10, %rdi
callq 0x7130
movq %rax, -0x3f8(%rbp)
leaq -0x3f0(%rbp), %rdi
leaq -0x3f8(%rbp), %rsi
callq 0x7100
testb $0x1, %al
jne 0x3338
jmp 0x350a
movl $0x0, -0x3fc(%rbp)
movq 0x18c8f(%rip), %rdi     # 0x1bfd8
leaq 0xfd68(%rip), %rsi      # 0x130b8
callq 0x21c0
movq %rax, -0x598(%rbp)
jmp 0x335e
leaq -0x3f0(%rbp), %rdi
callq 0x7160
movq -0x598(%rbp), %rdi
movq %rax, %rsi
callq 0x21a0
movq %rax, -0x5a0(%rbp)
jmp 0x3382
movq -0x5a0(%rbp), %rdi
leaq 0xfc99(%rip), %rsi      # 0x13029
callq 0x21c0
movq %rax, -0x5a8(%rbp)
jmp 0x339e
movq -0x5a8(%rbp), %rdi
movq 0x18c1c(%rip), %rsi     # 0x1bfc8
callq 0x21f0
jmp 0x33b3
leaq -0x3f0(%rbp), %rdi
callq 0x7160
movq %rax, %rdi
addq $0x20, %rdi
callq 0x7470
movq %rax, -0x408(%rbp)
leaq -0x3f0(%rbp), %rdi
callq 0x7160
movq %rax, %rdi
addq $0x20, %rdi
callq 0x74d0
movq %rax, -0x410(%rbp)
leaq -0x408(%rbp), %rdi
leaq -0x410(%rbp), %rsi
callq 0x74a0
testb $0x1, %al
jne 0x340a
jmp 0x345a
leaq -0x408(%rbp), %rdi
callq 0x7500
movq %rax, %rdi
callq 0x11500
movss %xmm0, -0x5ac(%rbp)
jmp 0x3428
movss -0x5ac(%rbp), %xmm0
addss -0x3fc(%rbp), %xmm0
movss %xmm0, -0x3fc(%rbp)
leaq -0x408(%rbp), %rdi
xorl %esi, %esi
callq 0x7520
movq %rax, -0x418(%rbp)
jmp 0x33d2
movss -0x3fc(%rbp), %xmm0
movss 0xfb9a(%rip), %xmm1     # 0x13004
ucomiss %xmm1, %xmm0
jne 0x3473
jp 0x3473
jmp 0x34ee
movq 0x18b5e(%rip), %rdi     # 0x1bfd8
leaq 0xfc5a(%rip), %rsi      # 0x130db
callq 0x21c0
movq %rax, -0x5b8(%rbp)
jmp 0x348f
leaq -0x3f0(%rbp), %rdi
callq 0x7160
movq -0x5b8(%rbp), %rdi
movq %rax, %rsi
callq 0x21a0
movq %rax, -0x5c0(%rbp)
jmp 0x34b3
movq -0x5c0(%rbp), %rdi
leaq 0xfc34(%rip), %rsi      # 0x130f5
callq 0x21c0
movq %rax, -0x5c8(%rbp)
jmp 0x34cf
movq -0x5c8(%rbp), %rdi
movq 0x18aeb(%rip), %rsi     # 0x1bfc8
callq 0x21f0
jmp 0x34e4
movl $0x1, %edi
callq 0x2220
jmp 0x34f0
leaq -0x3f0(%rbp), %rdi
xorl %esi, %esi
callq 0x7550
movq %rax, -0x420(%rbp)
jmp 0x3305
jmp 0x350c
jmp 0x3579
movq 0x18ac3(%rip), %rdi     # 0x1bfd8
leaq 0xfc05(%rip), %rsi      # 0x13121
callq 0x21c0
movq %rax, -0x5d0(%rbp)
jmp 0x352a
movq -0x430(%rbp), %rsi
movq -0x5d0(%rbp), %rdi
callq 0x21a0
movq %rax, -0x5d8(%rbp)
jmp 0x3546
movq -0x5d8(%rbp), %rdi
leaq 0xfad5(%rip), %rsi      # 0x13029
callq 0x21c0
movq %rax, -0x5e0(%rbp)
jmp 0x3562
movq -0x5e0(%rbp), %rdi
movq 0x18a58(%rip), %rsi     # 0x1bfc8
callq 0x21f0
jmp 0x3577
jmp 0x3579
leaq -0x240(%rbp), %rdi
callq 0x2090
leaq -0x38(%rbp), %rdi
callq 0x2140
addq $0x5e0, %rsp            # imm = 0x5E0
popq %rbp
retq
leaq -0x240(%rbp), %rdi
callq 0x2090
leaq -0x38(%rbp), %rdi
callq 0x2140
movq -0x248(%rbp), %rdi
callq 0x2340
nopl (%rax,%rax)