// File: NichtJens[P]lmf2txt/LMF_IO.cpp
// Function: LMF_IO::WriteTDC8HPHeader_LMFV_8_to_9()
__int32	LMF_IO::WriteTDC8HPHeader_LMFV_8_to_9()
/////////////////////////////////////////////////////////////////
{
	unsigned __int32 byte_counter	= 0;

	bool			 bool_dummy = false;
//	double			 double_Dummy	= 0.;
//	__int32			 int_Dummy		= 0;
	unsigned __int32 unsigned_int_Dummy = 0;
	__int64			 int64_dummy	= 0;

	*output_lmf << frequency;	byte_counter += sizeof(double);		// frequency is always 4th value
	*output_lmf << IOaddress;	byte_counter += sizeof(__int32);		// IO address (parameter 1) always 5th value
	*output_lmf << timestamp_format_output;	byte_counter += sizeof(__int32);		// TimeInfo (parameter 2) always 6th value  (0,1,2)*32Bit

	unsigned __int32 dummy = (unsigned __int32)(DAQ_info.length());
	*output_lmf << dummy;
	byte_counter += sizeof(__int32);		// Length of DAQInfo always 7th value

	output_lmf->write(DAQ_info.c_str(), __int32(DAQ_info.length()));	// DAQInfo always 8th value
	byte_counter += (unsigned __int32)(DAQ_info.length());

	*output_lmf << LMF_Version_output; byte_counter += sizeof(__int32);

	if ((number_of_DAQ_source_strings_output < 0) || (!DAQ_source_strings_output)) number_of_DAQ_source_strings_output = 0;
	*output_lmf << number_of_DAQ_source_strings_output;  byte_counter += sizeof(__int32);

	for (__int32 i=0;i<number_of_DAQ_source_strings_output;++i) {
		unsigned_int_Dummy = (unsigned __int32)(DAQ_source_strings_output[i]->length());
		*output_lmf << unsigned_int_Dummy;   byte_counter += sizeof(__int32);
		output_lmf->write(DAQ_source_strings_output[i]->c_str(),__int32(DAQ_source_strings_output[i]->length()));
		byte_counter += (unsigned __int32)(DAQ_source_strings_output[i]->length());
	}

	*output_lmf << time_reference; byte_counter += sizeof(__int32);
	*output_lmf << tdcresolution_output; byte_counter += sizeof(double);		// tdc resolution in ns

	TDCDataType = 1;
	*output_lmf << TDCDataType; byte_counter += sizeof(__int32);

	int64_dummy = number_of_channels_output;
	*output_lmf << int64_dummy; byte_counter += sizeof(__int64);			// number of channels
	int64_dummy = max_number_of_hits_output;
	*output_lmf << int64_dummy; byte_counter += sizeof(__int64);			// number of hits
	
	*output_lmf << data_format_in_userheader_output;	byte_counter += sizeof(__int32);				// data format (2=short integer)

	bool_dummy = TDC8HP.no_config_file_read ? true: false;
	*output_lmf << bool_dummy;	byte_counter += sizeof(bool);	// parameter 60-1
	*output_lmf << TDC8HP.RisingEnable_p61;		byte_counter += sizeof(__int64);	// parameter 61-1
	*output_lmf << TDC8HP.FallingEnable_p62;	byte_counter += sizeof(__int64);	// parameter 62-1
	
	*output_lmf << TDC8HP.TriggerEdge_p63;		byte_counter += sizeof(__int32);	// parameter 63-1
	*output_lmf << TDC8HP.TriggerChannel_p64;	byte_counter += sizeof(__int32);	// parameter 64-1
	bool_dummy = TDC8HP.OutputLevel_p65 ? true:false;
	*output_lmf << bool_dummy;		byte_counter += sizeof(bool);	// parameter 65-1
	bool_dummy = TDC8HP.GroupingEnable_p66_output ? true : false;
	*output_lmf << bool_dummy;	byte_counter += sizeof(bool);	// parameter 66-1
	bool_dummy = TDC8HP.AllowOverlap_p67 ? true: false;
	*output_lmf << bool_dummy;		byte_counter += sizeof(bool);	// parameter 67-1
	*output_lmf << TDC8HP.TriggerDeadTime_p68;	byte_counter += sizeof(double);	// parameter 68-1
	*output_lmf << TDC8HP.GroupRangeStart_p69;	byte_counter += sizeof(double);	// parameter 69-1
	*output_lmf << TDC8HP.GroupRangeEnd_p70;	byte_counter += sizeof(double);	// parameter 70-1
	bool_dummy = TDC8HP.ExternalClock_p71 ? true:false;
	*output_lmf << bool_dummy;	byte_counter += sizeof(bool);	// parameter 71-1
	bool_dummy = TDC8HP.OutputRollOvers_p72 ? true:false;
	*output_lmf << bool_dummy;	byte_counter += sizeof(bool);	// parameter 72-1
	*output_lmf << TDC8HP.DelayTap0_p73;		byte_counter += sizeof(__int32);	// parameter 73-1
	*output_lmf << TDC8HP.DelayTap1_p74;		byte_counter += sizeof(__int32);	// parameter 74-1
	*output_lmf << TDC8HP.DelayTap2_p75;		byte_counter += sizeof(__int32);	// parameter 75-1
	*output_lmf << TDC8HP.DelayTap3_p76;		byte_counter += sizeof(__int32);	// parameter 76-1
	bool_dummy = TDC8HP.INL_p80 ? true : false;
	*output_lmf << bool_dummy;				byte_counter += sizeof(bool);	// parameter 80-1
	bool_dummy = TDC8HP.DNL_p81 ? true:false;
	*output_lmf << bool_dummy;				byte_counter += sizeof(bool);	// parameter 81-1

	dummy = __int32(TDC8HP.csConfigFile.length());
	*output_lmf << dummy;	byte_counter += sizeof(__int32);
	output_lmf->write(TDC8HP.csConfigFile.c_str(), __int32(TDC8HP.csConfigFile.length()));
	byte_counter += __int32(TDC8HP.csConfigFile.length());

	dummy = __int32(TDC8HP.csINLFile.length());
	*output_lmf << dummy;	byte_counter += sizeof(__int32);
	output_lmf->write(TDC8HP.csINLFile.c_str(), __int32(TDC8HP.csINLFile.length()));
	byte_counter += __int32(TDC8HP.csINLFile.length());

	dummy = __int32(TDC8HP.csDNLFile.length());
	*output_lmf << dummy;	byte_counter += sizeof(__int32);
	output_lmf->write(TDC8HP.csDNLFile.c_str(), __int32(TDC8HP.csDNLFile.length()));
	byte_counter += __int32(TDC8HP.csDNLFile.length());

	*output_lmf << TDC8HP.SyncValidationChannel; byte_counter += sizeof(__int32);
	*output_lmf << TDC8HP.VHR_25ps; byte_counter += sizeof(bool);
	
	*output_lmf << TDC8HP.GroupTimeOut;  byte_counter += sizeof(double);

	*output_lmf << TDC8HP.SSEEnable;  byte_counter += sizeof(bool);
	*output_lmf << TDC8HP.MMXEnable;  byte_counter += sizeof(bool);
	*output_lmf << TDC8HP.DMAEnable;  byte_counter += sizeof(bool);

	//// write TDCInfo
	*output_lmf << TDC8HP.Number_of_TDCs;	byte_counter += sizeof(__int32);
	for(__int32 iCount=0;iCount<TDC8HP.Number_of_TDCs;++iCount) {
		*output_lmf << TDC8HP.TDC_info[iCount]->index;				byte_counter += sizeof(__int32);
		*output_lmf << TDC8HP.TDC_info[iCount]->channelCount;		byte_counter += sizeof(__int32);
		*output_lmf << TDC8HP.TDC_info[iCount]->channelStart;		byte_counter += sizeof(__int32);
		*output_lmf << TDC8HP.TDC_info[iCount]->highResChannelCount;	byte_counter += sizeof(__int32);
		*output_lmf << TDC8HP.TDC_info[iCount]->highResChannelStart;	byte_counter += sizeof(__int32);
		*output_lmf << TDC8HP.TDC_info[iCount]->lowResChannelCount;	byte_counter += sizeof(__int32);
		*output_lmf << TDC8HP.TDC_info[iCount]->lowResChannelStart;	byte_counter += sizeof(__int32);
		*output_lmf << TDC8HP.TDC_info[iCount]->resolution;			byte_counter += sizeof(double);
		*output_lmf << TDC8HP.TDC_info[iCount]->serialNumber;		byte_counter += sizeof(__int32);
		*output_lmf << TDC8HP.TDC_info[iCount]->version;			byte_counter += sizeof(__int32);
		*output_lmf << TDC8HP.TDC_info[iCount]->fifoSize;			byte_counter += sizeof(__int32);
		output_lmf->write((__int8*)TDC8HP.TDC_info[iCount]->INLCorrection,sizeof(__int32)*8*1024);		byte_counter += sizeof(__int32)*8*1024;
		output_lmf->write((__int8*)TDC8HP.TDC_info[iCount]->DNLData,sizeof(unsigned __int16)*8*1024);	byte_counter += sizeof(unsigned __int16)*8*1024;
		*output_lmf << TDC8HP.TDC_info[iCount]->flashValid;			byte_counter += sizeof(bool);
	}


	*output_lmf << TDC8HP.number_of_bools; byte_counter += sizeof(__int32);
	for (__int32 i=4; i<TDC8HP.number_of_bools; ++i) {
		bool bdummy = false;
		*output_lmf << bdummy; byte_counter += sizeof(bool);
	}

	if (TDC8HP.number_of_int32s < 4) TDC8HP.number_of_int32s = 4;
	if (TDC8HP.UserHeaderVersion >= 6) TDC8HP.number_of_int32s = 5;
	*output_lmf << TDC8HP.number_of_int32s; byte_counter += sizeof(__int32);
	*output_lmf << TDC8HP.i32NumberOfDAQLoops;	byte_counter += sizeof(__int32);
	*output_lmf << TDC8HP.TDC8HP_DriverVersion; byte_counter += sizeof(__int32);	
	*output_lmf << TDC8HP.iTriggerChannelMask;	byte_counter += sizeof(__int32);
	*output_lmf << TDC8HP.iTime_zero_channel;	byte_counter += sizeof(__int32);

	if (TDC8HP.UserHeaderVersion == 5) {
		for (__int32 i=4; i<TDC8HP.number_of_int32s; ++i) {
			__int32 idummy = 0;
			*output_lmf << idummy; byte_counter += sizeof(__int32);
		}
	} else {
		*output_lmf << TDC8HP.BinsizeType;	byte_counter += sizeof(__int32);
		for (__int32 i=5; i<TDC8HP.number_of_int32s; ++i) {
			__int32 idummy = 0;
			*output_lmf << idummy; byte_counter += sizeof(__int32);
		}
	}

	if (TDC8HP.UserHeaderVersion == 5) {
		*output_lmf << TDC8HP.number_of_doubles; byte_counter += sizeof(__int32);
		for (__int32 i=0; i<TDC8HP.number_of_doubles; ++i) {
			 double ddummy = 0.;
			*output_lmf << ddummy; byte_counter += sizeof(double);
		}
	}
	if (TDC8HP.UserHeaderVersion >= 6) {
		if (TDC8HP.number_of_doubles == 0) {
			*output_lmf << __int32(1); byte_counter += sizeof(__int32);
			*output_lmf << double(0.); byte_counter += sizeof(double);
		} else {
			*output_lmf << TDC8HP.number_of_doubles; byte_counter += sizeof(__int32);
			*output_lmf << TDC8HP.OffsetTimeZeroChannel_s; byte_counter += sizeof(double);
			for (__int32 i=1; i<TDC8HP.number_of_doubles; ++i) {
				 double ddummy = 0.;
				*output_lmf << ddummy; byte_counter += sizeof(double);
			}
		}
	}
	
	return byte_counter;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movl $0x0, -0xc(%rbp)
movb $0x0, -0xd(%rbp)
movl $0x0, -0x14(%rbp)
movq $0x0, -0x20(%rbp)
movq 0x2b20(%rax), %rdi
movsd 0x12c8(%rax), %xmm0
callq 0x1d130
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x8, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x2a4(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x2ac(%rax), %esi
callq 0x1caf0
movq -0x68(%rbp), %rdi
movl -0xc(%rbp), %eax
addq $0x4, %rax
movl %eax, -0xc(%rbp)
addq $0xa0, %rdi
callq 0x22b0
movq %rax, %rcx
movq -0x68(%rbp), %rax
movl %ecx, -0x24(%rbp)
movq 0x2b20(%rax), %rdi
movl -0x24(%rbp), %esi
callq 0x1caf0
movq -0x68(%rbp), %rdi
movl -0xc(%rbp), %eax
addq $0x4, %rax
movl %eax, -0xc(%rbp)
movq 0x2b20(%rdi), %rax
movq %rax, -0x78(%rbp)
addq $0xa0, %rdi
callq 0x20b0
movq -0x68(%rbp), %rdi
movq %rax, -0x70(%rbp)
addq $0xa0, %rdi
callq 0x22b0
movq -0x78(%rbp), %rdi
movq -0x70(%rbp), %rsi
movl %eax, %edx
callq 0x1cd10
movq -0x68(%rbp), %rdi
addq $0xa0, %rdi
callq 0x22b0
movq %rax, %rcx
movq -0x68(%rbp), %rax
addl -0xc(%rbp), %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x12a8(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
cmpl $0x0, 0x132c(%rax)
jl 0x11184
movq -0x68(%rbp), %rax
cmpq $0x0, 0x1338(%rax)
jne 0x11192
movq -0x68(%rbp), %rax
movl $0x0, 0x132c(%rax)
movq -0x68(%rbp), %rax
movq 0x2b20(%rax), %rdi
movl 0x132c(%rax), %esi
callq 0x1d170
movl -0xc(%rbp), %eax
addq $0x4, %rax
movl %eax, -0xc(%rbp)
movl $0x0, -0x28(%rbp)
movq -0x68(%rbp), %rcx
movl -0x28(%rbp), %eax
cmpl 0x132c(%rcx), %eax
jge 0x1128a
movq -0x68(%rbp), %rax
movq 0x1338(%rax), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x22b0
movq %rax, %rcx
movq -0x68(%rbp), %rax
movl %ecx, -0x14(%rbp)
movq 0x2b20(%rax), %rdi
movl -0x14(%rbp), %esi
callq 0x1caf0
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rcx
movq %rcx, -0x88(%rbp)
movq 0x1338(%rax), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x20b0
movq %rax, %rcx
movq -0x68(%rbp), %rax
movq %rcx, -0x80(%rbp)
movq 0x1338(%rax), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x22b0
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
movl %eax, %edx
callq 0x1cd10
movq -0x68(%rbp), %rax
movq 0x1338(%rax), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x22b0
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x111b9
movq -0x68(%rbp), %rax
movq 0x2b20(%rax), %rdi
movl 0x240(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x4, %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movsd 0x12c0(%rax), %xmm0
callq 0x1d130
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x8, %ecx
movl %ecx, -0xc(%rbp)
movl $0x1, 0x12ac(%rax)
movq 0x2b20(%rax), %rdi
movl 0x12ac(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x4, %ecx
movl %ecx, -0xc(%rbp)
movslq 0x2c4(%rax), %rcx
movq %rcx, -0x20(%rbp)
movq 0x2b20(%rax), %rdi
movq -0x20(%rbp), %rsi
callq 0x1d1a0
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x8, %ecx
movl %ecx, -0xc(%rbp)
movslq 0x2cc(%rax), %rcx
movq %rcx, -0x20(%rbp)
movq 0x2b20(%rax), %rdi
movq -0x20(%rbp), %rsi
callq 0x1d1a0
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x8, %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x294(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x4, %ecx
movl %ecx, -0xc(%rbp)
movl 0x13fc(%rax), %ecx
testl %ecx, %ecx
setne -0xd(%rbp)
movq 0x2b20(%rax), %rdi
movzbl -0xd(%rbp), %esi
andl $0x1, %esi
callq 0x1d300
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
incl %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movq 0x1400(%rax), %rsi
callq 0x1cce0
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x8, %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movq 0x1408(%rax), %rsi
callq 0x1cce0
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x8, %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x1410(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x4, %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x1414(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x4, %ecx
movl %ecx, -0xc(%rbp)
movl 0x1418(%rax), %ecx
testl %ecx, %ecx
setne -0xd(%rbp)
movq 0x2b20(%rax), %rdi
movzbl -0xd(%rbp), %esi
andl $0x1, %esi
callq 0x1d300
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
incl %ecx
movl %ecx, -0xc(%rbp)
movl 0x1420(%rax), %ecx
testl %ecx, %ecx
setne -0xd(%rbp)
movq 0x2b20(%rax), %rdi
movzbl -0xd(%rbp), %esi
andl $0x1, %esi
callq 0x1d300
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
incl %ecx
movl %ecx, -0xc(%rbp)
movl 0x1424(%rax), %ecx
testl %ecx, %ecx
setne -0xd(%rbp)
movq 0x2b20(%rax), %rdi
movzbl -0xd(%rbp), %esi
andl $0x1, %esi
callq 0x1d300
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
incl %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movsd 0x1428(%rax), %xmm0
callq 0x1d130
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x8, %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movsd 0x1430(%rax), %xmm0
callq 0x1d130
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x8, %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movsd 0x1438(%rax), %xmm0
callq 0x1d130
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x8, %ecx
movl %ecx, -0xc(%rbp)
movl 0x1440(%rax), %ecx
testl %ecx, %ecx
setne -0xd(%rbp)
movq 0x2b20(%rax), %rdi
movzbl -0xd(%rbp), %esi
andl $0x1, %esi
callq 0x1d300
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
incl %ecx
movl %ecx, -0xc(%rbp)
movl 0x1444(%rax), %ecx
testl %ecx, %ecx
setne -0xd(%rbp)
movq 0x2b20(%rax), %rdi
movzbl -0xd(%rbp), %esi
andl $0x1, %esi
callq 0x1d300
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
incl %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x1448(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x4, %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x144c(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x4, %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x1450(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x4, %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x1454(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x4, %ecx
movl %ecx, -0xc(%rbp)
movl 0x1458(%rax), %ecx
testl %ecx, %ecx
setne -0xd(%rbp)
movq 0x2b20(%rax), %rdi
movzbl -0xd(%rbp), %esi
andl $0x1, %esi
callq 0x1d300
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
incl %ecx
movl %ecx, -0xc(%rbp)
movl 0x145c(%rax), %edx
xorl %ecx, %ecx
negl %edx
sbbl %ecx, %ecx
andb $0x1, %cl
movb %cl, -0xd(%rbp)
movq 0x2b20(%rax), %rdi
movb -0xd(%rbp), %al
andb $0x1, %al
movzbl %al, %esi
callq 0x1d300
movq -0x68(%rbp), %rdi
movl -0xc(%rbp), %eax
addq $0x1, %rax
movl %eax, -0xc(%rbp)
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0x78, %rdi
callq 0x22b0
movq %rax, %rcx
movq -0x68(%rbp), %rax
movl %ecx, -0x24(%rbp)
movq 0x2b20(%rax), %rdi
movl -0x24(%rbp), %esi
callq 0x1caf0
movq -0x68(%rbp), %rdi
movl -0xc(%rbp), %eax
addq $0x4, %rax
movl %eax, -0xc(%rbp)
movq 0x2b20(%rdi), %rax
movq %rax, -0xb8(%rbp)
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0x78, %rdi
callq 0x20b0
movq -0x68(%rbp), %rdi
movq %rax, -0xb0(%rbp)
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0x78, %rdi
callq 0x22b0
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movl %eax, %edx
callq 0x1cd10
movq -0x68(%rbp), %rdi
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0x78, %rdi
callq 0x22b0
movq -0x68(%rbp), %rdi
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0x98, %rdi
callq 0x22b0
movq %rax, %rcx
movq -0x68(%rbp), %rax
movl %ecx, -0x24(%rbp)
movq 0x2b20(%rax), %rdi
movl -0x24(%rbp), %esi
callq 0x1caf0
movq -0x68(%rbp), %rdi
movl -0xc(%rbp), %eax
addq $0x4, %rax
movl %eax, -0xc(%rbp)
movq 0x2b20(%rdi), %rax
movq %rax, -0xa8(%rbp)
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0x98, %rdi
callq 0x20b0
movq -0x68(%rbp), %rdi
movq %rax, -0xa0(%rbp)
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0x98, %rdi
callq 0x22b0
movq -0xa8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
movl %eax, %edx
callq 0x1cd10
movq -0x68(%rbp), %rdi
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0x98, %rdi
callq 0x22b0
movq -0x68(%rbp), %rdi
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0xb8, %rdi
callq 0x22b0
movq %rax, %rcx
movq -0x68(%rbp), %rax
movl %ecx, -0x24(%rbp)
movq 0x2b20(%rax), %rdi
movl -0x24(%rbp), %esi
callq 0x1caf0
movq -0x68(%rbp), %rdi
movl -0xc(%rbp), %eax
addq $0x4, %rax
movl %eax, -0xc(%rbp)
movq 0x2b20(%rdi), %rax
movq %rax, -0x98(%rbp)
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0xb8, %rdi
callq 0x20b0
movq -0x68(%rbp), %rdi
movq %rax, -0x90(%rbp)
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0xb8, %rdi
callq 0x22b0
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rsi
movl %eax, %edx
callq 0x1cd10
movq -0x68(%rbp), %rdi
addq $0x13f8, %rdi           # imm = 0x13F8
addq $0xb8, %rdi
callq 0x22b0
movq %rax, %rcx
movq -0x68(%rbp), %rax
addl -0xc(%rbp), %ecx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x14e4(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movb 0x14e0(%rax), %al
andb $0x1, %al
movzbl %al, %esi
callq 0x1d300
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x1, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movsd 0x14f0(%rax), %xmm0
callq 0x1d130
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x8, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movb 0x14ec(%rax), %al
andb $0x1, %al
movzbl %al, %esi
callq 0x1d300
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x1, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movb 0x14ed(%rax), %al
andb $0x1, %al
movzbl %al, %esi
callq 0x1d300
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x1, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movb 0x14ee(%rax), %al
andb $0x1, %al
movzbl %al, %esi
callq 0x1d300
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x1, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x14f8(%rax), %esi
callq 0x1d170
movl -0xc(%rbp), %eax
addq $0x4, %rax
movl %eax, -0xc(%rbp)
movl $0x0, -0x2c(%rbp)
movq -0x68(%rbp), %rcx
movl -0x2c(%rbp), %eax
cmpl 0x14f8(%rcx), %eax
jge 0x11b98
movq -0x68(%rbp), %rax
movq 0x2b20(%rax), %rdi
movslq -0x2c(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movl (%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movslq -0x2c(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movl 0x4(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movslq -0x2c(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movl 0x8(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movslq -0x2c(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movl 0xc(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movslq -0x2c(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movl 0x10(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movslq -0x2c(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movl 0x14(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movslq -0x2c(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movl 0x18(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movslq -0x2c(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movsd 0x20(%rax), %xmm0
callq 0x1d130
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x8, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movslq -0x2c(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movl 0x28(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movslq -0x2c(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movl 0x2c(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movslq -0x2c(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movl 0x30(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movslq -0x2c(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movq 0x38(%rax), %rsi
movl $0x8000, %edx           # imm = 0x8000
callq 0x1cd10
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x8000, %rcx           # imm = 0x8000
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movslq -0x2c(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movq 0x40(%rax), %rsi
movl $0x4000, %edx           # imm = 0x4000
callq 0x1cd10
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4000, %rcx           # imm = 0x4000
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movslq -0x2c(%rbp), %rcx
movq 0x1500(%rax,%rcx,8), %rax
movb 0x48(%rax), %al
andb $0x1, %al
movzbl %al, %esi
callq 0x1d300
movl -0xc(%rbp), %eax
addq $0x1, %rax
movl %eax, -0xc(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x11921
movq -0x68(%rbp), %rax
movq 0x2b20(%rax), %rdi
movl 0x1528(%rax), %esi
callq 0x1d170
movl -0xc(%rbp), %eax
addq $0x4, %rax
movl %eax, -0xc(%rbp)
movl $0x4, -0x30(%rbp)
movq -0x68(%rbp), %rcx
movl -0x30(%rbp), %eax
cmpl 0x1528(%rcx), %eax
jge 0x11bff
movq -0x68(%rbp), %rax
movb $0x0, -0x31(%rbp)
movq 0x2b20(%rax), %rdi
movb -0x31(%rbp), %al
andb $0x1, %al
movzbl %al, %esi
callq 0x1d300
movl -0xc(%rbp), %eax
addq $0x1, %rax
movl %eax, -0xc(%rbp)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x11bbf
movq -0x68(%rbp), %rax
cmpl $0x4, 0x152c(%rax)
jge 0x11c1a
movq -0x68(%rbp), %rax
movl $0x4, 0x152c(%rax)
movq -0x68(%rbp), %rax
cmpl $0x6, 0x14dc(%rax)
jl 0x11c35
movq -0x68(%rbp), %rax
movl $0x5, 0x152c(%rax)
movq -0x68(%rbp), %rax
movq 0x2b20(%rax), %rdi
movl 0x152c(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x1518(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x151c(%rax), %esi
callq 0x1caf0
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x1520(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movl 0x1524(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
cmpl $0x5, 0x14dc(%rax)
jne 0x11d29
movl $0x4, -0x38(%rbp)
movq -0x68(%rbp), %rcx
movl -0x38(%rbp), %eax
cmpl 0x152c(%rcx), %eax
jge 0x11d27
movq -0x68(%rbp), %rax
movl $0x0, -0x3c(%rbp)
movq 0x2b20(%rax), %rdi
movl -0x3c(%rbp), %esi
callq 0x1d170
movl -0xc(%rbp), %eax
addq $0x4, %rax
movl %eax, -0xc(%rbp)
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x11ce9
jmp 0x11d90
movq -0x68(%rbp), %rax
movq 0x2b20(%rax), %rdi
movl 0x1468(%rax), %esi
callq 0x1d170
movl -0xc(%rbp), %eax
addq $0x4, %rax
movl %eax, -0xc(%rbp)
movl $0x5, -0x40(%rbp)
movq -0x68(%rbp), %rcx
movl -0x40(%rbp), %eax
cmpl 0x152c(%rcx), %eax
jge 0x11d8e
movq -0x68(%rbp), %rax
movl $0x0, -0x44(%rbp)
movq 0x2b20(%rax), %rdi
movl -0x44(%rbp), %esi
callq 0x1d170
movl -0xc(%rbp), %eax
addq $0x4, %rax
movl %eax, -0xc(%rbp)
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0x11d50
jmp 0x11d90
movq -0x68(%rbp), %rax
cmpl $0x5, 0x14dc(%rax)
jne 0x11e07
movq -0x68(%rbp), %rax
movq 0x2b20(%rax), %rdi
movl 0x1530(%rax), %esi
callq 0x1d170
movl -0xc(%rbp), %eax
addq $0x4, %rax
movl %eax, -0xc(%rbp)
movl $0x0, -0x48(%rbp)
movq -0x68(%rbp), %rcx
movl -0x48(%rbp), %eax
cmpl 0x1530(%rcx), %eax
jge 0x11e05
movq -0x68(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, -0x50(%rbp)
movq 0x2b20(%rax), %rdi
movsd -0x50(%rbp), %xmm0
callq 0x1d130
movl -0xc(%rbp), %eax
addq $0x8, %rax
movl %eax, -0xc(%rbp)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x11dc4
jmp 0x11e07
movq -0x68(%rbp), %rax
cmpl $0x6, 0x14dc(%rax)
jl 0x11ef4
movq -0x68(%rbp), %rax
cmpl $0x0, 0x1530(%rax)
jne 0x11e66
movq -0x68(%rbp), %rax
movq 0x2b20(%rax), %rdi
movl $0x1, %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
xorps %xmm0, %xmm0
callq 0x1d130
movl -0xc(%rbp), %eax
addq $0x8, %rax
movl %eax, -0xc(%rbp)
jmp 0x11ef2
movq -0x68(%rbp), %rax
movq 0x2b20(%rax), %rdi
movl 0x1530(%rax), %esi
callq 0x1d170
movq -0x68(%rbp), %rax
movl -0xc(%rbp), %ecx
addq $0x4, %rcx
movl %ecx, -0xc(%rbp)
movq 0x2b20(%rax), %rdi
movsd 0x1460(%rax), %xmm0
callq 0x1d130
movl -0xc(%rbp), %eax
addq $0x8, %rax
movl %eax, -0xc(%rbp)
movl $0x1, -0x54(%rbp)
movq -0x68(%rbp), %rcx
movl -0x54(%rbp), %eax
cmpl 0x1530(%rcx), %eax
jge 0x11ef0
movq -0x68(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, -0x60(%rbp)
movq 0x2b20(%rax), %rdi
movsd -0x60(%rbp), %xmm0
callq 0x1d130
movl -0xc(%rbp), %eax
addq $0x8, %rax
movl %eax, -0xc(%rbp)
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x11eaf
jmp 0x11ef2
jmp 0x11ef4
movl -0xc(%rbp), %eax
addq $0xc0, %rsp
popq %rbp
retq