// File: NichtJens[P]lmf2txt/LMF_IO.cpp
// Function: LMF_IO::ReadTDC8HPHeader_LMFV_1_to_7(int)
__int32	LMF_IO::ReadTDC8HPHeader_LMFV_1_to_7(__int32 byte_counter_external)
/////////////////////////////////////////////////////////////////
{
	this->TDC8HP.ui32oldRollOver = 0;
	this->TDC8HP.ui64RollOvers = 0;
	this->TDC8HP.ui32AbsoluteTimeStamp = 0;
	this->TDC8HP.ui64TDC8HP_AbsoluteTimeStamp = 0;

	__int32		byte_counter = 0;

	unsigned __int64 StartPosition1 = input_lmf->tell();

	*input_lmf >> frequency;	byte_counter += sizeof(double);		// frequency is always 4th value
	*input_lmf >> IOaddress;	byte_counter += sizeof(__int32);		// IO address (parameter 1) always 5th value
	*input_lmf >> timestamp_format;	byte_counter += sizeof(__int32);	// TimeInfo (parameter 2) always 6th value  (0,1,2)*32Bit

	*input_lmf >> DAQ_info_Length;	byte_counter += sizeof(__int32);		// Length of DAQInfo always 7th value
	__int8 * __int8_temp = new __int8[DAQ_info_Length+1];
	input_lmf->read(__int8_temp,DAQ_info_Length);	// DAQInfo always 8th value
	__int8_temp[DAQ_info_Length] = 0;
	DAQ_info = __int8_temp;
	delete[] __int8_temp; __int8_temp = 0;
	byte_counter += DAQ_info_Length;

//	input_lmf->flush();
	unsigned __int64 StartPosition = input_lmf->tell();
	__int32 old_byte_counter = byte_counter;
L50:
	byte_counter = old_byte_counter;

	if (DAQVersion > 20080000) TDC8HP.UserHeaderVersion = 4;

	if (TDC8HP.UserHeaderVersion >= 1) {
		*input_lmf >> LMF_Version; byte_counter += sizeof(__int32);
		if (LMF_Version == 8) TDC8HP.UserHeaderVersion = 5;
		if (LMF_Version >= 9) TDC8HP.UserHeaderVersion = 6;
		if (LMF_Version >= 10) TDC8HP.UserHeaderVersion = 7;
	}
	
	if (TDC8HP.UserHeaderVersion >= 5) {
		input_lmf->seek(StartPosition1);
		if (TDC8HP.UserHeaderVersion < 7) return ReadTDC8HPHeader_LMFV_8_to_9();
		return ReadTDC8HPHeader_LMFV_10();
	}

	*input_lmf >> time_reference; byte_counter += sizeof(__int32);
	*input_lmf >> tdcresolution; byte_counter += sizeof(double);		// tdc resolution in ns
	if (tdcresolution < 0.0001 || tdcresolution > 100.) {
		if (TDC8HP.UserHeaderVersion != 0) return 0;
		TDC8HP.UserHeaderVersion = 1;

		input_lmf->seek(StartPosition);
		goto L50;
	}
	//tdcresolution = double(__int32(tdcresolution*1000000+0.01))/1000000.;
	if (TDC8HP.UserHeaderVersion >= 1) {
		*input_lmf >> TDCDataType; byte_counter += sizeof(__int32);
	}


	unsigned __int64 TempPosition = input_lmf->tell();
	bool bRead32bit = false;

L100:

	if (DAQVersion < 20080000 || bRead32bit) {
		*input_lmf >> number_of_channels; byte_counter += sizeof(__int32);			// number of channels
	} else {
		unsigned __int64 temp;
		*input_lmf >> temp;
		if (temp > 4000000000) {
			input_lmf->seek(TempPosition);
			bRead32bit = true;
			goto L100;
		}
		number_of_channels =__int32(temp);
		byte_counter += sizeof(unsigned __int64);			// number of channels
	}

	if (number_of_channels < 1 || number_of_channels > 100) {
		if (TDC8HP.UserHeaderVersion != 0) return 0;
//		in_ar->Close(); delete in_ar; in_ar = 0;
		input_lmf->seek(StartPosition);
//		in_ar = new CArchive(input_lmf,CArchive::load);
		goto L50;
	}


	if (DAQVersion < 20080000 || bRead32bit) {
		*input_lmf >> max_number_of_hits; byte_counter += sizeof(__int32);			// number of hits
	} else {
		unsigned __int64 temp;
		*input_lmf >> temp;
		max_number_of_hits =__int32(temp);
		byte_counter += sizeof(unsigned __int64);			// number of hits
	}

	if (int(number_of_channels) > num_channels)	{errorflag = 19;	return -100000;}
	if (int(max_number_of_hits) > num_ions)		{errorflag = 20;	return -100000;}

	if (max_number_of_hits < 1 || max_number_of_hits > 100) {
		if (TDC8HP.UserHeaderVersion != 0) return 0;
//		in_ar->Close(); delete in_ar; in_ar = 0;
		input_lmf->seek(StartPosition);
//		in_ar = new CArchive(input_lmf,CArchive::load);
		goto L50;
	}

	*input_lmf >> data_format_in_userheader;	byte_counter += sizeof(__int32);	// data format (2=short integer)
	*input_lmf >> TDC8HP.no_config_file_read;	byte_counter += sizeof(__int32);	// parameter 60-1
	if (DAQVersion < 20080000 || bRead32bit) {
		unsigned __int32 temp;
		*input_lmf >> temp; TDC8HP.RisingEnable_p61 = temp;		byte_counter += sizeof(__int32);	// parameter 61-1
		*input_lmf >> temp; TDC8HP.FallingEnable_p62 = temp;		byte_counter += sizeof(__int32);	// parameter 62-1
	} else {
		*input_lmf >> TDC8HP.RisingEnable_p61;		byte_counter += sizeof(__int64);	// parameter 61-1
		*input_lmf >> TDC8HP.FallingEnable_p62;		byte_counter += sizeof(__int64);	// parameter 62-1
	}
	*input_lmf >> TDC8HP.TriggerEdge_p63;		byte_counter += sizeof(__int32);	// parameter 63-1
	*input_lmf >> TDC8HP.TriggerChannel_p64;	byte_counter += sizeof(__int32);	// parameter 64-1
	*input_lmf >> TDC8HP.OutputLevel_p65;		byte_counter += sizeof(__int32);	// parameter 65-1
	*input_lmf >> TDC8HP.GroupingEnable_p66;	byte_counter += sizeof(__int32);	// parameter 66-1
	*input_lmf >> TDC8HP.AllowOverlap_p67;		byte_counter += sizeof(__int32);	// parameter 67-1
	*input_lmf >> TDC8HP.TriggerDeadTime_p68;	byte_counter += sizeof(double);		// parameter 68-1
	*input_lmf >> TDC8HP.GroupRangeStart_p69;	byte_counter += sizeof(double);		// parameter 69-1
	*input_lmf >> TDC8HP.GroupRangeEnd_p70;		byte_counter += sizeof(double);		// parameter 70-1
	*input_lmf >> TDC8HP.ExternalClock_p71;		byte_counter += sizeof(__int32);	// parameter 71-1
	*input_lmf >> TDC8HP.OutputRollOvers_p72;	byte_counter += sizeof(__int32);	// parameter 72-1
	*input_lmf >> TDC8HP.DelayTap0_p73;			byte_counter += sizeof(__int32);	// parameter 73-1
	*input_lmf >> TDC8HP.DelayTap1_p74;			byte_counter += sizeof(__int32);	// parameter 74-1
	*input_lmf >> TDC8HP.DelayTap2_p75;			byte_counter += sizeof(__int32);	// parameter 75-1
	*input_lmf >> TDC8HP.DelayTap3_p76;			byte_counter += sizeof(__int32);	// parameter 76-1
	*input_lmf >> TDC8HP.INL_p80;				byte_counter += sizeof(__int32);	// parameter 80-1
	*input_lmf >> TDC8HP.DNL_p81;				byte_counter += sizeof(__int32);	// parameter 81-1

	*input_lmf >> TDC8HP.csConfigFile_Length;
	byte_counter += sizeof(__int32);
	__int8_temp = new __int8[TDC8HP.csConfigFile_Length+1];
	input_lmf->read(__int8_temp,TDC8HP.csConfigFile_Length);
	__int8_temp[TDC8HP.csConfigFile_Length] = 0;
	TDC8HP.csConfigFile = __int8_temp;
	delete[] __int8_temp; __int8_temp = 0;
	byte_counter += TDC8HP.csConfigFile_Length;

	*input_lmf >> TDC8HP.csINLFile_Length;
	byte_counter += sizeof(__int32);
	__int8_temp = new __int8[TDC8HP.csINLFile_Length+1];
	input_lmf->read(__int8_temp,TDC8HP.csINLFile_Length);
	__int8_temp[TDC8HP.csINLFile_Length] = 0;
	TDC8HP.csINLFile = __int8_temp;
	delete[] __int8_temp; __int8_temp = 0;
	byte_counter += TDC8HP.csINLFile_Length;

	*input_lmf >> TDC8HP.csDNLFile_Length;
	byte_counter += sizeof(__int32);
	__int8_temp = new __int8[TDC8HP.csDNLFile_Length+1];
	input_lmf->read(__int8_temp,TDC8HP.csDNLFile_Length);
	__int8_temp[TDC8HP.csDNLFile_Length] = 0;
	TDC8HP.csDNLFile = __int8_temp;
	delete[] __int8_temp; __int8_temp = 0;
	byte_counter += TDC8HP.csDNLFile_Length;

	if (DAQVersion < 20080000) {
		if ((unsigned) byte_counter == User_header_size - 12 - 4) {  // Cobold 2002 v11
			if (TDC8HP.UserHeaderVersion < 2) TDC8HP.UserHeaderVersion = 2;
			*input_lmf >> TDC8HP.SyncValidationChannel;  byte_counter += sizeof(__int32); 	// parameter 77-1
		}
		if ((unsigned) byte_counter == User_header_size - 12 - 4 - 4) { // never used in official Cobold releases
			TDC8HP.UserHeaderVersion = 3;
			*input_lmf >> TDC8HP.SyncValidationChannel;  byte_counter += sizeof(__int32);
			*input_lmf >> TDC8HP.VHR_25ps;				 byte_counter += sizeof(bool);
		}
	} else {
		if (this->data_format_in_userheader == -1) TDC8HP.variable_event_length = 1;
		*input_lmf >> TDC8HP.SyncValidationChannel;  byte_counter += sizeof(__int32);
		*input_lmf >> TDC8HP.VHR_25ps;  byte_counter += sizeof(bool);

		*input_lmf >> TDC8HP.GroupTimeOut;  byte_counter += sizeof(double);

		*input_lmf >> TDC8HP.SSEEnable;  byte_counter += sizeof(bool);
		*input_lmf >> TDC8HP.MMXEnable;  byte_counter += sizeof(bool);
		*input_lmf >> TDC8HP.DMAEnable;  byte_counter += sizeof(bool);

		unsigned __int64 TempPosition = input_lmf->tell();
		bool bNoTDCInfoRead = false;
		__int32 old_byte_counter2 = byte_counter;

L200:
		byte_counter = old_byte_counter2;
		input_lmf->seek(TempPosition);

		if (!bNoTDCInfoRead) {
			// read TDCInfo
			*input_lmf >> TDC8HP.Number_of_TDCs;  byte_counter += sizeof(__int32);
				if (TDC8HP.Number_of_TDCs<0 || TDC8HP.Number_of_TDCs>3) {bNoTDCInfoRead = true;	goto L200;}
			for(__int32 iCount=0;iCount<TDC8HP.Number_of_TDCs;++iCount) {
				*input_lmf >> TDC8HP.TDC_info[iCount]->index;				byte_counter += sizeof(__int32);
				*input_lmf >> TDC8HP.TDC_info[iCount]->channelCount;		byte_counter += sizeof(__int32);
				*input_lmf >> TDC8HP.TDC_info[iCount]->channelStart;		byte_counter += sizeof(__int32);
				*input_lmf >> TDC8HP.TDC_info[iCount]->highResChannelCount;	byte_counter += sizeof(__int32);
				*input_lmf >> TDC8HP.TDC_info[iCount]->highResChannelStart;	byte_counter += sizeof(__int32);
				*input_lmf >> TDC8HP.TDC_info[iCount]->lowResChannelCount;	byte_counter += sizeof(__int32);
				*input_lmf >> TDC8HP.TDC_info[iCount]->lowResChannelStart;	byte_counter += sizeof(__int32);
				*input_lmf >> TDC8HP.TDC_info[iCount]->resolution;			byte_counter += sizeof(double);
				*input_lmf >> TDC8HP.TDC_info[iCount]->serialNumber;		byte_counter += sizeof(__int32);
				*input_lmf >> TDC8HP.TDC_info[iCount]->version;				byte_counter += sizeof(__int32);
				*input_lmf >> TDC8HP.TDC_info[iCount]->fifoSize;			byte_counter += sizeof(__int32);
				input_lmf->read((__int8*)TDC8HP.TDC_info[iCount]->INLCorrection,sizeof(__int32)*8*1024);	byte_counter += sizeof(__int32)*8*1024;
				input_lmf->read((__int8*)TDC8HP.TDC_info[iCount]->DNLData,sizeof(unsigned __int16)*8*1024);	byte_counter += sizeof(unsigned __int16)*8*1024;
				*input_lmf >> TDC8HP.TDC_info[iCount]->flashValid;			byte_counter += sizeof(bool);
			}
		}

		bool bool_dummy;
		*input_lmf >> bool_dummy; byte_counter += sizeof(bool);
		*input_lmf >> bool_dummy; byte_counter += sizeof(bool);
		*input_lmf >> bool_dummy; byte_counter += sizeof(bool);
		*input_lmf >> bool_dummy; byte_counter += sizeof(bool);
		*input_lmf >> bool_dummy; byte_counter += sizeof(bool);

		*input_lmf >> TDC8HP.i32NumberOfDAQLoops;	byte_counter += sizeof(__int32);
		if (TDC8HP.i32NumberOfDAQLoops == 0x12345678) TDC8HP.i32NumberOfDAQLoops = 1;
		*input_lmf >> TDC8HP.TDC8HP_DriverVersion;	byte_counter += sizeof(__int32);
		if (TDC8HP.TDC8HP_DriverVersion == 0x12345678) TDC8HP.TDC8HP_DriverVersion = 0;
		*input_lmf >> TDC8HP.iTriggerChannelMask;	byte_counter += sizeof(__int32);
		if (TDC8HP.iTriggerChannelMask == 0x12345678) TDC8HP.iTriggerChannelMask = 0;
		*input_lmf >> TDC8HP.iTime_zero_channel;	byte_counter += sizeof(__int32);
		if (TDC8HP.iTime_zero_channel == 0x12345678) TDC8HP.iTime_zero_channel = -1;

		if (TDC8HP.i32NumberOfDAQLoops != 0x12345678) {
			if (TDC8HP.i32NumberOfDAQLoops<-2 || TDC8HP.i32NumberOfDAQLoops > 2e6) {bNoTDCInfoRead = true;	goto L200;}
		}
		
		if (TDC8HP.iTime_zero_channel != 0x12345678) {
			if (TDC8HP.iTime_zero_channel <-1 || TDC8HP.iTime_zero_channel  > 50)  {bNoTDCInfoRead = true;	goto L200;}
		}

		__int32 int_dummy;
		*input_lmf >> int_dummy; byte_counter += sizeof(__int32);

		double double_dummy;
		*input_lmf >> double_dummy; byte_counter += sizeof(double);
		*input_lmf >> double_dummy; byte_counter += sizeof(double);
		*input_lmf >> double_dummy; byte_counter += sizeof(double);
		*input_lmf >> double_dummy; byte_counter += sizeof(double);
		*input_lmf >> double_dummy; byte_counter += sizeof(double);
		
		if (!bNoTDCInfoRead && ((unsigned) (byte_counter_external + byte_counter) == User_header_size+4)) {bNoTDCInfoRead = true;	goto L200;}
	}
	
	if (bRead32bit && LMF_Version == 6) {
		TDC8HP.exotic_file_type = 1;
	}

	return byte_counter;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movl $0x0, 0x1534(%rax)
movq $0x0, 0x1538(%rax)
movl $0x0, 0x1540(%rax)
movq $0x0, 0x1548(%rax)
movl $0x0, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
callq 0x1d110
movq -0x98(%rbp), %rsi
movq %rax, -0x20(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x12c8, %rsi           # imm = 0x12C8
callq 0x1d1f0
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x8, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x2a4, %rsi            # imm = 0x2A4
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x2a8, %rsi            # imm = 0x2A8
callq 0x1cb80
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x129c, %rsi           # imm = 0x129C
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movl 0x129c(%rax), %eax
addl $0x1, %eax
movslq %eax, %rdi
callq 0x2030
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq 0x2b18(%rax), %rdi
movq -0x28(%rbp), %rsi
movl 0x129c(%rax), %edx
callq 0x1cbe0
movq -0x98(%rbp), %rdi
movq -0x28(%rbp), %rax
movslq 0x129c(%rdi), %rcx
movb $0x0, (%rax,%rcx)
movq -0x28(%rbp), %rsi
addq $0xa0, %rdi
callq 0x2250
movq -0x28(%rbp), %rax
movq %rax, -0x90(%rbp)
cmpq $0x0, %rax
je 0x68d1
movq -0x90(%rbp), %rdi
callq 0x2240
movq -0x98(%rbp), %rax
movq $0x0, -0x28(%rbp)
movl 0x129c(%rax), %ecx
addl -0x18(%rbp), %ecx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
callq 0x1d110
movq %rax, -0x30(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x98(%rbp), %rax
movl -0x34(%rbp), %ecx
movl %ecx, -0x18(%rbp)
cmpl $0x1326580, 0x280(%rax) # imm = 0x1326580
jbe 0x692c
movq -0x98(%rbp), %rax
movl $0x4, 0x14dc(%rax)
movq -0x98(%rbp), %rax
cmpl $0x1, 0x14dc(%rax)
jl 0x69ca
movq -0x98(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x12a4, %rsi           # imm = 0x12A4
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
cmpl $0x8, 0x12a4(%rax)
jne 0x6986
movq -0x98(%rbp), %rax
movl $0x5, 0x14dc(%rax)
movq -0x98(%rbp), %rax
cmpl $0x9, 0x12a4(%rax)
jl 0x69a7
movq -0x98(%rbp), %rax
movl $0x6, 0x14dc(%rax)
movq -0x98(%rbp), %rax
cmpl $0xa, 0x12a4(%rax)
jl 0x69c8
movq -0x98(%rbp), %rax
movl $0x7, 0x14dc(%rax)
jmp 0x69ca
movq -0x98(%rbp), %rax
cmpl $0x5, 0x14dc(%rax)
jl 0x6a29
movq -0x98(%rbp), %rax
movq 0x2b18(%rax), %rdi
movq -0x20(%rbp), %rsi
callq 0x2440
movq -0x98(%rbp), %rax
cmpl $0x7, 0x14dc(%rax)
jge 0x6a15
movq -0x98(%rbp), %rdi
callq 0xda40
movl %eax, -0x4(%rbp)
jmp 0x7c7e
movq -0x98(%rbp), %rdi
callq 0xebf0
movl %eax, -0x4(%rbp)
jmp 0x7c7e
movq -0x98(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x240, %rsi            # imm = 0x240
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x12b8, %rsi           # imm = 0x12B8
callq 0x1d1f0
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x8, %rcx
movl %ecx, -0x18(%rbp)
movsd 0x1859e(%rip), %xmm0    # 0x1f020
ucomisd 0x12b8(%rax), %xmm0
ja 0x6aa9
movq -0x98(%rbp), %rax
movsd 0x12b8(%rax), %xmm0
movsd 0x18585(%rip), %xmm1    # 0x1f028
ucomisd %xmm1, %xmm0
jbe 0x6aeb
movq -0x98(%rbp), %rax
cmpl $0x0, 0x14dc(%rax)
je 0x6ac5
movl $0x0, -0x4(%rbp)
jmp 0x7c7e
movq -0x98(%rbp), %rax
movl $0x1, 0x14dc(%rax)
movq 0x2b18(%rax), %rdi
movq -0x30(%rbp), %rsi
callq 0x2440
jmp 0x6902
movq -0x98(%rbp), %rax
cmpl $0x1, 0x14dc(%rax)
jl 0x6b20
movq -0x98(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x12ac, %rsi           # imm = 0x12AC
callq 0x1cf60
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq -0x98(%rbp), %rax
movq 0x2b18(%rax), %rdi
callq 0x1d110
movq %rax, -0x40(%rbp)
movb $0x0, -0x41(%rbp)
movq -0x98(%rbp), %rax
cmpl $0x1326580, 0x280(%rax) # imm = 0x1326580
jb 0x6b54
testb $0x1, -0x41(%rbp)
je 0x6b7b
movq -0x98(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x2b4, %rsi            # imm = 0x2B4
callq 0x1cb80
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
jmp 0x6bd6
movq -0x98(%rbp), %rax
movq 0x2b18(%rax), %rdi
leaq -0x50(%rbp), %rsi
callq 0x1cbb0
movl $0xee6b2800, %eax       # imm = 0xEE6B2800
cmpq %rax, -0x50(%rbp)
jbe 0x6bba
movq -0x98(%rbp), %rax
movq 0x2b18(%rax), %rdi
movq -0x40(%rbp), %rsi
callq 0x2440
movb $0x1, -0x41(%rbp)
jmp 0x6b3b
movq -0x98(%rbp), %rax
movq -0x50(%rbp), %rcx
movl %ecx, 0x2b4(%rax)
movslq -0x18(%rbp), %rax
addq $0x8, %rax
movl %eax, -0x18(%rbp)
movq -0x98(%rbp), %rax
cmpl $0x1, 0x2b4(%rax)
jb 0x6bf6
movq -0x98(%rbp), %rax
cmpl $0x64, 0x2b4(%rax)
jbe 0x6c2e
movq -0x98(%rbp), %rax
cmpl $0x0, 0x14dc(%rax)
je 0x6c12
movl $0x0, -0x4(%rbp)
jmp 0x7c7e
movq -0x98(%rbp), %rax
movq 0x2b18(%rax), %rdi
movq -0x30(%rbp), %rsi
callq 0x2440
jmp 0x6902
movq -0x98(%rbp), %rax
cmpl $0x1326580, 0x280(%rax) # imm = 0x1326580
jb 0x6c47
testb $0x1, -0x41(%rbp)
je 0x6c6e
movq -0x98(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x2bc, %rsi            # imm = 0x2BC
callq 0x1cb80
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
jmp 0x6ca1
movq -0x98(%rbp), %rax
movq 0x2b18(%rax), %rdi
leaq -0x58(%rbp), %rsi
callq 0x1cbb0
movq -0x98(%rbp), %rax
movq -0x58(%rbp), %rcx
movl %ecx, 0x2bc(%rax)
movslq -0x18(%rbp), %rax
addq $0x8, %rax
movl %eax, -0x18(%rbp)
movq -0x98(%rbp), %rcx
movl 0x2b4(%rcx), %eax
cmpl 0x2b70(%rcx), %eax
jle 0x6cd3
movq -0x98(%rbp), %rax
movl $0x13, 0x12e0(%rax)
movl $0xfffe7960, -0x4(%rbp) # imm = 0xFFFE7960
jmp 0x7c7e
movq -0x98(%rbp), %rcx
movl 0x2bc(%rcx), %eax
cmpl 0x2b74(%rcx), %eax
jle 0x6d05
movq -0x98(%rbp), %rax
movl $0x14, 0x12e0(%rax)
movl $0xfffe7960, -0x4(%rbp) # imm = 0xFFFE7960
jmp 0x7c7e
movq -0x98(%rbp), %rax
cmpl $0x1, 0x2bc(%rax)
jb 0x6d25
movq -0x98(%rbp), %rax
cmpl $0x64, 0x2bc(%rax)
jbe 0x6d5d
movq -0x98(%rbp), %rax
cmpl $0x0, 0x14dc(%rax)
je 0x6d41
movl $0x0, -0x4(%rbp)
jmp 0x7c7e
movq -0x98(%rbp), %rax
movq 0x2b18(%rax), %rdi
movq -0x30(%rbp), %rsi
callq 0x2440
jmp 0x6902
movq -0x98(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x290, %rsi            # imm = 0x290
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x4, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
cmpl $0x1326580, 0x280(%rax) # imm = 0x1326580
jb 0x6dc4
testb $0x1, -0x41(%rbp)
je 0x6e25
movq -0x98(%rbp), %rax
movq 0x2b18(%rax), %rdi
leaq -0x5c(%rbp), %rsi
callq 0x1cb80
movq -0x98(%rbp), %rax
movl -0x5c(%rbp), %ecx
movq %rcx, 0x1400(%rax)
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
leaq -0x5c(%rbp), %rsi
callq 0x1cb80
movq -0x98(%rbp), %rax
movl -0x5c(%rbp), %ecx
movq %rcx, 0x1408(%rax)
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
jmp 0x6e77
movq -0x98(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x8, %rsi
callq 0x1cbb0
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x8, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x10, %rsi
callq 0x1cbb0
movslq -0x18(%rbp), %rax
addq $0x8, %rax
movl %eax, -0x18(%rbp)
movq -0x98(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x18, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x1c, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x20, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x24, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x2c, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x30, %rsi
callq 0x1d1f0
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x8, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x38, %rsi
callq 0x1d1f0
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x8, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x40, %rsi
callq 0x1d1f0
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x8, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x48, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x4c, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x50, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x54, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x58, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x5c, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x60, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x64, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0xd8, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movl 0x14d0(%rax), %eax
addl $0x1, %eax
movslq %eax, %rdi
callq 0x2030
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq 0x2b18(%rax), %rdi
movq -0x28(%rbp), %rsi
movl 0x14d0(%rax), %edx
callq 0x1cbe0
movq -0x98(%rbp), %rdi
movq -0x28(%rbp), %rax
movslq 0x14d0(%rdi), %rcx
movb $0x0, (%rax,%rcx)
movq -0x28(%rbp), %rsi
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0x78, %rdi
callq 0x2250
movq -0x28(%rbp), %rax
movq %rax, -0xa0(%rbp)
cmpq $0x0, %rax
je 0x71b6
movq -0xa0(%rbp), %rdi
callq 0x2240
movq -0x98(%rbp), %rsi
movq $0x0, -0x28(%rbp)
movl 0x14d0(%rsi), %eax
addl -0x18(%rbp), %eax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0xdc, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movl 0x14d4(%rax), %eax
addl $0x1, %eax
movslq %eax, %rdi
callq 0x2030
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq 0x2b18(%rax), %rdi
movq -0x28(%rbp), %rsi
movl 0x14d4(%rax), %edx
callq 0x1cbe0
movq -0x98(%rbp), %rdi
movq -0x28(%rbp), %rax
movslq 0x14d4(%rdi), %rcx
movb $0x0, (%rax,%rcx)
movq -0x28(%rbp), %rsi
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0x98, %rdi
callq 0x2250
movq -0x28(%rbp), %rax
movq %rax, -0xa8(%rbp)
cmpq $0x0, %rax
je 0x727c
movq -0xa8(%rbp), %rdi
callq 0x2240
movq -0x98(%rbp), %rsi
movq $0x0, -0x28(%rbp)
movl 0x14d4(%rsi), %eax
addl -0x18(%rbp), %eax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0xe0, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movl 0x14d8(%rax), %eax
addl $0x1, %eax
movslq %eax, %rdi
callq 0x2030
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq 0x2b18(%rax), %rdi
movq -0x28(%rbp), %rsi
movl 0x14d8(%rax), %edx
callq 0x1cbe0
movq -0x98(%rbp), %rdi
movq -0x28(%rbp), %rax
movslq 0x14d8(%rdi), %rcx
movb $0x0, (%rax,%rcx)
movq -0x28(%rbp), %rsi
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0xb8, %rdi
callq 0x2250
movq -0x28(%rbp), %rax
movq %rax, -0xb0(%rbp)
cmpq $0x0, %rax
je 0x7342
movq -0xb0(%rbp), %rdi
callq 0x2240
movq -0x98(%rbp), %rax
movq $0x0, -0x28(%rbp)
movl 0x14d8(%rax), %ecx
addl -0x18(%rbp), %ecx
movl %ecx, -0x18(%rbp)
cmpl $0x1326580, 0x280(%rax) # imm = 0x1326580
jae 0x7458
movq -0x98(%rbp), %rcx
movl -0x18(%rbp), %eax
movl 0x29c(%rcx), %ecx
subl $0xc, %ecx
subl $0x4, %ecx
cmpl %ecx, %eax
jne 0x73d4
movq -0x98(%rbp), %rax
cmpl $0x2, 0x14dc(%rax)
jge 0x73a8
movq -0x98(%rbp), %rax
movl $0x2, 0x14dc(%rax)
movq -0x98(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0xec, %rsi
callq 0x1cf60
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq -0x98(%rbp), %rcx
movl -0x18(%rbp), %eax
movl 0x29c(%rcx), %ecx
subl $0xc, %ecx
subl $0x4, %ecx
subl $0x4, %ecx
cmpl %ecx, %eax
jne 0x7453
movq -0x98(%rbp), %rsi
movl $0x3, 0x14dc(%rsi)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0xec, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0xe8, %rsi
callq 0x1d2d0
movslq -0x18(%rbp), %rax
addq $0x1, %rax
movl %eax, -0x18(%rbp)
jmp 0x7c51
movq -0x98(%rbp), %rax
cmpl $-0x1, 0x290(%rax)
jne 0x7479
movq -0x98(%rbp), %rax
movl $0x1, 0x14e8(%rax)
movq -0x98(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0xec, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0xe8, %rsi
callq 0x1d2d0
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x1, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0xf8, %rsi
callq 0x1d1f0
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x8, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0xf4, %rsi
callq 0x1d2d0
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x1, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0xf5, %rsi
callq 0x1d2d0
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x1, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0xf6, %rsi
callq 0x1d2d0
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x1, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
callq 0x1d110
movq %rax, -0x68(%rbp)
movb $0x0, -0x69(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x70(%rbp)
movq -0x98(%rbp), %rax
movl -0x70(%rbp), %ecx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
movq -0x68(%rbp), %rsi
callq 0x2440
testb $0x1, -0x69(%rbp)
jne 0x78d8
movq -0x98(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x100, %rsi            # imm = 0x100
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
cmpl $0x0, 0x14f8(%rax)
jl 0x7615
movq -0x98(%rbp), %rax
cmpl $0x3, 0x14f8(%rax)
jle 0x761b
movb $0x1, -0x69(%rbp)
jmp 0x75a2
movl $0x0, -0x74(%rbp)
movq -0x98(%rbp), %rcx
movl -0x74(%rbp), %eax
cmpl 0x14f8(%rcx), %eax
jge 0x78d6
movq -0x98(%rbp), %rax
movq 0x2b18(%rax), %rdi
movslq -0x74(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
movslq -0x74(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rsi
addq $0x4, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
movslq -0x74(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rsi
addq $0x8, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
movslq -0x74(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rsi
addq $0xc, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
movslq -0x74(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rsi
addq $0x10, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
movslq -0x74(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rsi
addq $0x14, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
movslq -0x74(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rsi
addq $0x18, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
movslq -0x74(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rsi
addq $0x20, %rsi
callq 0x1d1f0
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x8, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
movslq -0x74(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rsi
addq $0x28, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
movslq -0x74(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rsi
addq $0x2c, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
movslq -0x74(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rsi
addq $0x30, %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
movslq -0x74(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movq 0x38(%rax), %rsi
movl $0x8000, %edx           # imm = 0x8000
callq 0x1cbe0
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x8000, %rcx           # imm = 0x8000
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
movslq -0x74(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movq 0x40(%rax), %rsi
movl $0x4000, %edx           # imm = 0x4000
callq 0x1cbe0
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4000, %rcx           # imm = 0x4000
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
movslq -0x74(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rsi
addq $0x48, %rsi
callq 0x1d2d0
movslq -0x18(%rbp), %rax
addq $0x1, %rax
movl %eax, -0x18(%rbp)
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
jmp 0x7622
jmp 0x78d8
movq -0x98(%rbp), %rax
movq 0x2b18(%rax), %rdi
leaq -0x75(%rbp), %rsi
callq 0x1d2d0
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x1, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
leaq -0x75(%rbp), %rsi
callq 0x1d2d0
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x1, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
leaq -0x75(%rbp), %rsi
callq 0x1d2d0
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x1, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
leaq -0x75(%rbp), %rsi
callq 0x1d2d0
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x1, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
leaq -0x75(%rbp), %rsi
callq 0x1d2d0
movq -0x98(%rbp), %rsi
movslq -0x18(%rbp), %rax
addq $0x1, %rax
movl %eax, -0x18(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x120, %rsi            # imm = 0x120
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
cmpl $0x12345678, 0x1518(%rax) # imm = 0x12345678
jne 0x79d2
movq -0x98(%rbp), %rax
movl $0x1, 0x1518(%rax)
movq -0x98(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x124, %rsi            # imm = 0x124
callq 0x1cb80
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
cmpl $0x12345678, 0x151c(%rax) # imm = 0x12345678
jne 0x7a22
movq -0x98(%rbp), %rax
movl $0x0, 0x151c(%rax)
movq -0x98(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x128, %rsi            # imm = 0x128
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
cmpl $0x12345678, 0x1520(%rax) # imm = 0x12345678
jne 0x7a72
movq -0x98(%rbp), %rax
movl $0x0, 0x1520(%rax)
movq -0x98(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x13f8, %rsi           # imm = 0x13F8
addq $0x12c, %rsi            # imm = 0x12C
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
cmpl $0x12345678, 0x1524(%rax) # imm = 0x12345678
jne 0x7ac2
movq -0x98(%rbp), %rax
movl $0xffffffff, 0x1524(%rax) # imm = 0xFFFFFFFF
movq -0x98(%rbp), %rax
cmpl $0x12345678, 0x1518(%rax) # imm = 0x12345678
je 0x7b0d
movq -0x98(%rbp), %rax
cmpl $-0x2, 0x1518(%rax)
jl 0x7b02
movq -0x98(%rbp), %rax
cvtsi2sdl 0x1518(%rax), %xmm0
movsd 0x17534(%rip), %xmm1    # 0x1f030
ucomisd %xmm1, %xmm0
jbe 0x7b0b
movb $0x1, -0x69(%rbp)
jmp 0x75a2
jmp 0x7b0d
movq -0x98(%rbp), %rax
cmpl $0x12345678, 0x1524(%rax) # imm = 0x12345678
je 0x7b4b
movq -0x98(%rbp), %rax
cmpl $-0x1, 0x1524(%rax)
jl 0x7b40
movq -0x98(%rbp), %rax
cmpl $0x32, 0x1524(%rax)
jle 0x7b49
movb $0x1, -0x69(%rbp)
jmp 0x75a2
jmp 0x7b4b
movq -0x98(%rbp), %rax
movq 0x2b18(%rax), %rdi
leaq -0x7c(%rbp), %rsi
callq 0x1cf60
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
leaq -0x88(%rbp), %rsi
callq 0x1d1f0
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x8, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
leaq -0x88(%rbp), %rsi
callq 0x1d1f0
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x8, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
leaq -0x88(%rbp), %rsi
callq 0x1d1f0
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x8, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
leaq -0x88(%rbp), %rsi
callq 0x1d1f0
movq -0x98(%rbp), %rax
movslq -0x18(%rbp), %rcx
addq $0x8, %rcx
movl %ecx, -0x18(%rbp)
movq 0x2b18(%rax), %rdi
leaq -0x88(%rbp), %rsi
callq 0x1d1f0
movslq -0x18(%rbp), %rax
addq $0x8, %rax
movl %eax, -0x18(%rbp)
testb $0x1, -0x69(%rbp)
jne 0x7c4f
movq -0x98(%rbp), %rcx
movl -0x14(%rbp), %eax
addl -0x18(%rbp), %eax
movl 0x29c(%rcx), %ecx
addl $0x4, %ecx
cmpl %ecx, %eax
jne 0x7c4f
movb $0x1, -0x69(%rbp)
jmp 0x75a2
jmp 0x7c51
testb $0x1, -0x41(%rbp)
je 0x7c78
movq -0x98(%rbp), %rax
cmpl $0x6, 0x12a4(%rax)
jne 0x7c78
movq -0x98(%rbp), %rax
movl $0x1, 0x13f8(%rax)
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
nopw (%rax,%rax)