// File: /workspace/github_cpp_makefile_star2_O3/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
movq $0x0, 0x1548(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x1534(%rdi)
movq 0x2b18(%rdi), %rdi
leaq 0x12c8(%rbx), %rsi
movl $0x8, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x2a4(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x2a8(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x129c(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
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 0x133bc
movslq 0x129c(%rbx), %rax
movb $0x0, (%r15,%rax)
leaq 0xa0(%rbx), %r14
movq 0xa8(%rbx), %r12
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x21f0
movq %r15, %rdi
callq 0x21a0
movl 0x129c(%rbx), %r13d
movq 0x2b18(%rbx), %rdi
leaq 0x12a4(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movl $0x7, 0x14dc(%rbx)
movq 0x2b18(%rbx), %rdi
leaq 0x1328(%rbx), %r14
movq %r14, %rsi
movl $0x4, %edx
callq 0x133bc
addl $0x1c, %r13d
movslq 0x1328(%rbx), %r12
leaq (,%r12,8), %r15
testq %r12, %r12
movq $-0x1, %rdi
cmovnsq %r15, %rdi
callq 0x2030
movq %rax, 0x1330(%rbx)
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x20b0
testq %r12, %r12
jle 0xab24
xorl %ebp, %ebp
leaq 0x10(%rsp), %r15
leaq 0x18(%rsp), %r12
movq 0x2b18(%rbx), %rdi
movq %r15, %rsi
movl $0x4, %edx
callq 0x133bc
addl $0x4, %r13d
movl $0x20, %edi
callq 0x2130
leaq 0x10(%rax), %rcx
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x1330(%rbx), %rcx
movq %rax, (%rcx,%rbp,8)
movq 0x1330(%rbx), %rax
movq (%rax,%rbp,8), %rdi
movslq 0x10(%rsp), %rsi
callq 0x2210
cmpl $0x0, 0x10(%rsp)
jle 0xab15
movq 0x2b18(%rbx), %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x133bc
incl %r13d
movsbl 0x18(%rsp), %esi
movq 0x1330(%rbx), %rax
movq (%rax,%rbp,8), %rdi
callq 0x20f0
movl 0x10(%rsp), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsp)
cmpl $0x1, %eax
jg 0xaad9
incq %rbp
movslq (%r14), %rax
cmpq %rax, %rbp
jl 0xaa7d
movq 0x2b18(%rbx), %rdi
leaq 0x240(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x12b8(%rbx), %rsi
movl $0x8, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x12ac(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x10(%rsp), %r14
movq %r14, %rsi
movl $0x8, %edx
callq 0x133bc
movl (%r14), %eax
movl %eax, 0x2b4(%rbx)
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x133bc
movl (%r14), %eax
movl %eax, 0x2bc(%rbx)
movl 0x2b4(%rbx), %ecx
cmpl 0x2b70(%rbx), %ecx
jle 0xabc5
movl $0x13, 0x12e0(%rbx)
jmp 0xabd7
cmpl %eax, 0x2b74(%rbx)
jge 0xabed
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
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0xf(%rsp), %r14
movq %r14, %rsi
movl $0x1, %edx
callq 0x133bc
movzbl (%r14), %eax
movl %eax, 0x13fc(%rbx)
movq 0x2b18(%rbx), %rdi
leaq 0x1400(%rbx), %rsi
movl $0x8, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x1408(%rbx), %rsi
movl $0x8, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x1410(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x1414(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x133bc
movzbl (%r14), %eax
movl %eax, 0x1418(%rbx)
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x133bc
movzbl (%r14), %eax
movl %eax, 0x141c(%rbx)
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x133bc
movzbl (%r14), %eax
movl %eax, 0x1424(%rbx)
movq 0x2b18(%rbx), %rdi
leaq 0x1428(%rbx), %rsi
movl $0x8, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x1430(%rbx), %rsi
movl $0x8, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x1438(%rbx), %rsi
movl $0x8, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x133bc
movzbl (%r14), %eax
movl %eax, 0x1440(%rbx)
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x133bc
movzbl (%r14), %eax
movl %eax, 0x1444(%rbx)
movq 0x2b18(%rbx), %rdi
leaq 0x1448(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x144c(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x1450(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x1454(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x133bc
movzbl (%r14), %eax
movl %eax, 0x1458(%rbx)
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x133bc
movzbl (%r14), %eax
movl %eax, 0x145c(%rbx)
movq 0x2b18(%rbx), %rdi
leaq 0x14d0(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
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 0x133bc
movslq 0x14d0(%rbx), %rax
xorl %ebp, %ebp
movb %bpl, (%r15,%rax)
leaq 0x1470(%rbx), %r14
movq 0x1478(%rbx), %r12
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x21f0
movq %r15, %rdi
callq 0x21a0
movl 0x14d0(%rbx), %eax
movl %eax, 0x24(%rsp)
movq 0x2b18(%rbx), %rdi
leaq 0x14d4(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
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 0x133bc
movslq 0x14d4(%rbx), %rax
movb %bpl, (%r15,%rax)
leaq 0x1490(%rbx), %r14
movq 0x1498(%rbx), %r12
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x21f0
movq %r15, %rdi
callq 0x21a0
movl 0x14d4(%rbx), %eax
movl %eax, 0x20(%rsp)
movq 0x2b18(%rbx), %rdi
leaq 0x14d8(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
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 0x133bc
movslq 0x14d8(%rbx), %rax
movb %bpl, (%r15,%rax)
leaq 0x14b0(%rbx), %r14
movq 0x14b8(%rbx), %r12
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x21f0
movq %r15, %rdi
callq 0x21a0
movl 0x14d8(%rbx), %r14d
cmpl $-0x1, 0x290(%rbx)
jne 0xafa3
movl $0x1, 0x14e8(%rbx)
movq 0x2b18(%rbx), %rdi
leaq 0x14e4(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x14e0(%rbx), %rsi
movl $0x1, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x14f0(%rbx), %rsi
movl $0x8, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x14ec(%rbx), %rsi
movl $0x1, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x14ed(%rbx), %rsi
movl $0x1, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x14ee(%rbx), %rsi
movl $0x1, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x14f8(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
addl 0x24(%rsp), %r13d
addl 0x20(%rsp), %r13d
leal (%r14,%r13), %ebp
addl $0x8c, %ebp
cmpl $0x0, 0x14f8(%rbx)
jle 0xb21a
xorl %r14d, %r14d
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x4, %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x8, %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0xc, %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x10, %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x14, %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x18, %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x20, %rsi
movl $0x8, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x28, %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x2c, %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x30, %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movq 0x38(%rax), %rsi
movl $0x8000, %edx           # imm = 0x8000
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movq 0x40(%rax), %rsi
movl $0x4000, %edx           # imm = 0x4000
callq 0x133bc
movq 0x2b18(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rsi
addq $0x48, %rsi
movl $0x1, %edx
callq 0x133bc
addl $0xc031, %ebp           # imm = 0xC031
incq %r14
movslq 0x14f8(%rbx), %rax
cmpq %rax, %r14
jl 0xb06f
movq 0x2b18(%rbx), %rdi
leaq 0x1528(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
addl $0x4, %ebp
cmpl $0x0, 0x1528(%rbx)
jle 0xb269
xorl %r15d, %r15d
leaq 0x18(%rsp), %r14
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x133bc
incl %r15d
cmpl 0x1528(%rbx), %r15d
jl 0xb246
addl %r15d, %ebp
movq 0x2b18(%rbx), %rdi
leaq 0x152c(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x1518(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x151c(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x1520(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x1524(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x1468(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
addl $0x18, %ebp
cmpl $0x6, 0x152c(%rbx)
jl 0xb333
movl $0x5, %r15d
leaq 0x18(%rsp), %r14
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
movl $0x4, %edx
callq 0x133bc
addl $0x4, %ebp
incl %r15d
cmpl 0x152c(%rbx), %r15d
jl 0xb310
movq 0x2b18(%rbx), %rdi
leaq 0x1530(%rbx), %rsi
movl $0x4, %edx
callq 0x133bc
movq 0x2b18(%rbx), %rdi
leaq 0x1460(%rbx), %rsi
movl $0x8, %edx
callq 0x133bc
addl $0xc, %ebp
cmpl $0x2, 0x1530(%rbx)
jl 0xabdc
movl $0x1, %r15d
leaq 0x18(%rsp), %r14
movq 0x2b18(%rbx), %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x133bc
addl $0x8, %ebp
incl %r15d
cmpl 0x1530(%rbx), %r15d
jl 0xb37e
jmp 0xabdc