// File: /workspace/github_cpp_makefile_star2_O2/NichtJens[P]lmf2txt/LMF_IO.cpp
// Function: LMF_IO::ReadTDC8HPHeader_LMFV_10()
__int32	LMF_IO::ReadTDC8HPHeader_LMFV_10()
// reads LMF headers from Cobold 2011 R1+R2
/////////////////////////////////////////////////////////////////
{
	this->TDC8HP.ui32oldRollOver = 0;
	this->TDC8HP.ui64RollOvers = 0;
	this->TDC8HP.ui32AbsoluteTimeStamp = 0;
	this->TDC8HP.ui64TDC8HP_AbsoluteTimeStamp = 0;

	__int32		byte_counter = 0;

	*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;

	byte_counter = old_byte_counter;

	*input_lmf >> LMF_Version; byte_counter += sizeof(__int32);
	TDC8HP.UserHeaderVersion = 7;

	*input_lmf >> this->number_of_DAQ_source_strings;  byte_counter += sizeof(__int32);

	DAQ_source_strings = new std::string*[number_of_DAQ_source_strings];
	memset(DAQ_source_strings,0,sizeof(std::string*)*number_of_DAQ_source_strings);
	for (__int32 i=0;i<number_of_DAQ_source_strings;++i) {
		__int32 string_len;
		*input_lmf >> string_len;    byte_counter += sizeof(__int32);
		DAQ_source_strings[i] = new std::string();
		DAQ_source_strings[i]->reserve(string_len);
		while (string_len > 0) {
			__int8 c;
			*input_lmf >> c;     byte_counter += sizeof(__int8);
			*DAQ_source_strings[i] += c;
			--string_len;
		}
	}
	
	*input_lmf >> time_reference; byte_counter += sizeof(__int32);
	*input_lmf >> tdcresolution; byte_counter += sizeof(double);		// tdc resolution in ns
	*input_lmf >> TDCDataType; byte_counter += sizeof(__int32);

	unsigned __int64 temp_uint64;
	*input_lmf >> temp_uint64;
	number_of_channels =__int32(temp_uint64);
	byte_counter += sizeof(unsigned __int64);			// number of channels

	*input_lmf >> temp_uint64;
	max_number_of_hits =__int32(temp_uint64);
	byte_counter += sizeof(unsigned __int64);			// number of hits

	if (__int32(number_of_channels) > num_channels)	{errorflag = 19;	return -100000;}
	if (__int32(max_number_of_hits) > num_ions)		{errorflag = 20;	return -100000;}

	*input_lmf >> data_format_in_userheader;	byte_counter += sizeof(__int32);	// data format (2=short integer)

	bool temp_bool;

	*input_lmf >> temp_bool; TDC8HP.no_config_file_read = temp_bool; byte_counter += sizeof(bool);	// parameter 60-1
		
	*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 >> temp_bool; TDC8HP.OutputLevel_p65    = temp_bool;	byte_counter += sizeof(bool);	// parameter 65-1
	*input_lmf >> temp_bool; TDC8HP.GroupingEnable_p66 = temp_bool;	byte_counter += sizeof(bool);	// parameter 66-1
	*input_lmf >> temp_bool; TDC8HP.AllowOverlap_p67   = temp_bool;	byte_counter += sizeof(bool);	// 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 >> temp_bool; TDC8HP.ExternalClock_p71   = temp_bool;	byte_counter += sizeof(bool);	// parameter 71-1
	*input_lmf >> temp_bool; TDC8HP.OutputRollOvers_p72 = temp_bool;	byte_counter += sizeof(bool);	// 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 >> temp_bool; TDC8HP.INL_p80 = temp_bool;	byte_counter += sizeof(bool);	// parameter 80-1
	*input_lmf >> temp_bool; TDC8HP.DNL_p81 = temp_bool;	byte_counter += sizeof(bool);	// 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 (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);

	//// read TDCInfo
	*input_lmf >> TDC8HP.Number_of_TDCs;  byte_counter += sizeof(__int32);
	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);
	}

	*input_lmf >> TDC8HP.number_of_bools; byte_counter += sizeof(__int32);
	for (__int32 i=0;i<TDC8HP.number_of_bools;++i) {
		bool bool_dummy;
		*input_lmf >> bool_dummy;	byte_counter += sizeof(bool);
	}

	*input_lmf >> TDC8HP.number_of_int32s; byte_counter += sizeof(__int32);
	*input_lmf >> TDC8HP.i32NumberOfDAQLoops;	byte_counter += sizeof(__int32);
	*input_lmf >> TDC8HP.TDC8HP_DriverVersion;	byte_counter += sizeof(__int32);
	*input_lmf >> TDC8HP.iTriggerChannelMask;	byte_counter += sizeof(__int32);
	*input_lmf >> TDC8HP.iTime_zero_channel;	byte_counter += sizeof(__int32); // 1 means: first channel
	*input_lmf >> TDC8HP.BinsizeType;	byte_counter += sizeof(__int32); // 1 means: first channel
	for (__int32 i=5;i<TDC8HP.number_of_int32s;++i) {
		__int32 int_dummy;
		*input_lmf >> int_dummy;	byte_counter += sizeof(__int32);
	}

	*input_lmf >> TDC8HP.number_of_doubles; byte_counter += sizeof(__int32);
	*input_lmf >> TDC8HP.OffsetTimeZeroChannel_s;  byte_counter += sizeof(double);
	for (__int32 i=1;i<TDC8HP.number_of_doubles;++i) {
		double double_dummy;
		*input_lmf >> double_dummy; byte_counter += sizeof(double);
	}

	return byte_counter;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
andq $0x0, 0x1548(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x1534(%rdi)
movq 0x2b18(%rdi), %rdi
leaq 0x12c8(%rbx), %rsi
callq 0x110e4
movq 0x2b18(%rbx), %rdi
leaq 0x2a4(%rbx), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
leaq 0x2a8(%rbx), %rsi
callq 0x10d66
movq 0x2b18(%rbx), %rdi
leaq 0x129c(%rbx), %rsi
callq 0x10fca
movslq 0x129c(%rbx), %r14
movq %r14, %rdi
incq %rdi
callq 0x2030
movq %rax, %r15
movq 0x2b18(%rbx), %rdi
movq %rax, %rsi
movl %r14d, %edx
callq 0x10d8a
movslq 0x129c(%rbx), %rax
movb $0x0, (%r15,%rax)
leaq 0xa0(%rbx), %rdi
movq %r15, %rsi
callq 0x2230
movq %r15, %rdi
callq 0x21a0
movl 0x129c(%rbx), %ebp
movq 0x2b18(%rbx), %rdi
leaq 0x12a4(%rbx), %rsi
callq 0x10fca
movl $0x7, 0x14dc(%rbx)
movq 0x2b18(%rbx), %rdi
leaq 0x1328(%rbx), %r14
movq %r14, %rsi
callq 0x10fca
addl $0x1c, %ebp
movslq 0x1328(%rbx), %r12
leaq (,%r12,8), %r13
testq %r12, %r12
pushq $-0x1
popq %rdi
cmovnsq %r13, %rdi
callq 0x2030
movq %rax, 0x1330(%rbx)
xorl %r15d, %r15d
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x20b0
leaq 0x18(%rsp), %r13
movslq %r12d, %rax
cmpq %rax, %r15
jge 0x93a2
movq 0x2b18(%rbx), %rdi
leaq 0x10(%rsp), %rsi
callq 0x10fca
addl $0x4, %ebp
pushq $0x20
popq %rdi
callq 0x2130
leaq 0x10(%rax), %rcx
movq %rcx, (%rax)
andq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x1330(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
movq 0x1330(%rbx), %rax
movq (%rax,%r15,8), %rdi
movslq 0x10(%rsp), %rsi
callq 0x2200
movl 0x10(%rsp), %eax
testl %eax, %eax
jle 0x9397
movq 0x2b18(%rbx), %rdi
movq %r13, %rsi
callq 0x11060
incl %ebp
movsbl 0x18(%rsp), %esi
movq 0x1330(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x20f0
movl 0x10(%rsp), %eax
decl %eax
movl %eax, 0x10(%rsp)
jmp 0x9361
incq %r15
movl (%r14), %r12d
jmp 0x9305
movq 0x2b18(%rbx), %rdi
leaq 0x240(%rbx), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
leaq 0x12b8(%rbx), %rsi
callq 0x110e4
movq 0x2b18(%rbx), %rdi
leaq 0x12ac(%rbx), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
leaq 0x10(%rsp), %r14
movq %r14, %rsi
callq 0x10d78
movl (%r14), %eax
movl %eax, 0x2b4(%rbx)
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
callq 0x10d78
movl (%r14), %eax
movl %eax, 0x2bc(%rbx)
movl 0x2b4(%rbx), %ecx
cmpl 0x2b70(%rbx), %ecx
jle 0x942a
movl $0x13, 0x12e0(%rbx)
jmp 0x943c
cmpl %eax, 0x2b74(%rbx)
jge 0x9452
movl $0x14, 0x12e0(%rbx)
movl $0xfffe7960, %ebp       # imm = 0xFFFE7960
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2b18(%rbx), %rdi
leaq 0x290(%rbx), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
leaq 0xf(%rsp), %r14
movq %r14, %rsi
callq 0x1114e
movzbl (%r14), %eax
movl %eax, 0x13fc(%rbx)
movq 0x2b18(%rbx), %rdi
leaq 0x1400(%rbx), %rsi
callq 0x10d78
movq 0x2b18(%rbx), %rdi
leaq 0x1408(%rbx), %rsi
callq 0x10d78
movq 0x2b18(%rbx), %rdi
leaq 0x1410(%rbx), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
leaq 0x1414(%rbx), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
callq 0x1114e
movzbl (%r14), %eax
movl %eax, 0x1418(%rbx)
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
callq 0x1114e
movzbl (%r14), %eax
movl %eax, 0x141c(%rbx)
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
callq 0x1114e
movzbl (%r14), %eax
movl %eax, 0x1424(%rbx)
movq 0x2b18(%rbx), %rdi
leaq 0x1428(%rbx), %rsi
callq 0x110e4
movq 0x2b18(%rbx), %rdi
leaq 0x1430(%rbx), %rsi
callq 0x110e4
movq 0x2b18(%rbx), %rdi
leaq 0x1438(%rbx), %rsi
callq 0x110e4
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
callq 0x1114e
movzbl (%r14), %eax
movl %eax, 0x1440(%rbx)
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
callq 0x1114e
movzbl (%r14), %eax
movl %eax, 0x1444(%rbx)
movq 0x2b18(%rbx), %rdi
leaq 0x1448(%rbx), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
leaq 0x144c(%rbx), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
leaq 0x1450(%rbx), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
leaq 0x1454(%rbx), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
callq 0x1114e
movzbl (%r14), %eax
movl %eax, 0x1458(%rbx)
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
callq 0x1114e
movzbl (%r14), %eax
movl %eax, 0x145c(%rbx)
movq 0x2b18(%rbx), %rdi
leaq 0x14d0(%rbx), %rsi
callq 0x10fca
movslq 0x14d0(%rbx), %r14
movq %r14, %rdi
incq %rdi
callq 0x2030
movq %rax, %r15
movq 0x2b18(%rbx), %rdi
movq %rax, %rsi
movl %r14d, %edx
callq 0x10d8a
movslq 0x14d0(%rbx), %rax
xorl %r13d, %r13d
movb %r13b, (%r15,%rax)
leaq 0x1470(%rbx), %rdi
movq %r15, %rsi
callq 0x2230
movq %r15, %rdi
callq 0x21a0
movl 0x14d0(%rbx), %r12d
movq 0x2b18(%rbx), %rdi
leaq 0x14d4(%rbx), %rsi
callq 0x10fca
movslq 0x14d4(%rbx), %r14
movq %r14, %rdi
incq %rdi
callq 0x2030
movq %rax, %r15
movq 0x2b18(%rbx), %rdi
movq %rax, %rsi
movl %r14d, %edx
callq 0x10d8a
movslq 0x14d4(%rbx), %rax
movb %r13b, (%r15,%rax)
leaq 0x1490(%rbx), %rdi
movq %r15, %rsi
callq 0x2230
movq %r15, %rdi
callq 0x21a0
movl 0x14d4(%rbx), %eax
movl %eax, 0x24(%rsp)
movq 0x2b18(%rbx), %rdi
leaq 0x14d8(%rbx), %rsi
callq 0x10fca
movslq 0x14d8(%rbx), %r14
movq %r14, %rdi
incq %rdi
callq 0x2030
movq %rax, %r15
movq 0x2b18(%rbx), %rdi
movq %rax, %rsi
movl %r14d, %edx
callq 0x10d8a
movslq 0x14d8(%rbx), %rax
movb %r13b, (%r15,%rax)
leaq 0x14b0(%rbx), %rdi
movq %r15, %rsi
callq 0x2230
movq %r15, %rdi
callq 0x21a0
movl 0x14d8(%rbx), %r14d
cmpl $-0x1, 0x290(%rbx)
jne 0x9745
movl $0x1, 0x14e8(%rbx)
movq 0x2b18(%rbx), %rdi
leaq 0x14e4(%rbx), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
leaq 0x14e0(%rbx), %rsi
callq 0x1114e
movq 0x2b18(%rbx), %rdi
leaq 0x14f0(%rbx), %rsi
callq 0x110e4
movq 0x2b18(%rbx), %rdi
leaq 0x14ec(%rbx), %rsi
callq 0x1114e
movq 0x2b18(%rbx), %rdi
leaq 0x14ed(%rbx), %rsi
callq 0x1114e
movq 0x2b18(%rbx), %rdi
leaq 0x14ee(%rbx), %rsi
callq 0x1114e
movq 0x2b18(%rbx), %rdi
leaq 0x14f8(%rbx), %rsi
callq 0x10fca
addl 0x24(%rsp), %r12d
addl %r14d, %r12d
addl %r12d, %ebp
addl $0xb4, %ebp
xorl %r14d, %r14d
movslq 0x14f8(%rbx), %rax
movq 0x2b18(%rbx), %rdi
cmpq %rax, %r14
jge 0x9952
movq 0x1500(%rbx,%r14,8), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x4, %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x8, %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0xc, %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x10, %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x14, %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x18, %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x20, %rsi
callq 0x110e4
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x28, %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x2c, %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x30, %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movq 0x38(%rax), %rsi
movl $0x8000, %edx           # imm = 0x8000
callq 0x10d8a
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movq 0x40(%rax), %rsi
movl $0x4000, %edx           # imm = 0x4000
callq 0x10d8a
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x48, %rsi
callq 0x1114e
incq %r14
addl $0xc031, %ebp           # imm = 0xC031
jmp 0x97de
leaq 0x1528(%rbx), %r14
movq %r14, %rsi
callq 0x10fca
xorl %r12d, %r12d
leaq 0x18(%rsp), %r15
cmpl (%r14), %r12d
jge 0x9982
movq 0x2b18(%rbx), %rdi
movq %r15, %rsi
callq 0x1114e
incl %r12d
jmp 0x9969
movq 0x2b18(%rbx), %rdi
leaq 0x152c(%rbx), %r14
movq %r14, %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
leaq 0x1518(%rbx), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
leaq 0x151c(%rbx), %rsi
callq 0x10d66
movq 0x2b18(%rbx), %rdi
leaq 0x1520(%rbx), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
leaq 0x1524(%rbx), %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
leaq 0x1468(%rbx), %rsi
callq 0x10fca
addl %r12d, %ebp
pushq $0x5
popq %r12
leaq 0x18(%rsp), %r15
cmpl (%r14), %r12d
jge 0x9a1f
movq 0x2b18(%rbx), %rdi
movq %r15, %rsi
callq 0x10fca
incl %r12d
addl $0x4, %ebp
jmp 0x9a03
movq 0x2b18(%rbx), %rdi
leaq 0x1530(%rbx), %r14
movq %r14, %rsi
callq 0x10fca
movq 0x2b18(%rbx), %rdi
leaq 0x1460(%rbx), %rsi
callq 0x110e4
pushq $0x1
popq %r12
leaq 0x18(%rsp), %r15
cmpl (%r14), %r12d
jge 0x9441
movq 0x2b18(%rbx), %rdi
movq %r15, %rsi
callq 0x110e4
addl $0x8, %ebp
incl %r12d
jmp 0x9a51
nop