// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x2b20(%rdi), %rdi
movsd 0x12c8(%rbx), %xmm0
callq 0x13618
movq 0x2b20(%rbx), %rdi
movl 0x2a4(%rbx), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movl 0x2ac(%rbx), %esi
callq 0x13378
movl 0xa8(%rbx), %esi
movq 0x2b20(%rbx), %rdi
callq 0x13378
movq 0x2b20(%rbx), %rdi
movq 0xa0(%rbx), %rsi
movl 0xa8(%rbx), %edx
callq 0x1348c
movq 0xa8(%rbx), %r14
movq 0x2b20(%rbx), %rdi
movl 0x12a8(%rbx), %esi
callq 0x1365e
movl 0x132c(%rbx), %esi
testl %esi, %esi
js 0xc0f8
cmpq $0x0, 0x1338(%rbx)
jne 0xc104
movl $0x0, 0x132c(%rbx)
xorl %esi, %esi
movq 0x2b20(%rbx), %rdi
callq 0x1365e
addl $0x1c, %r14d
cmpl $0x0, 0x132c(%rbx)
jle 0xc17b
movq 0x1338(%rbx), %rax
xorl %r15d, %r15d
movq (%rax,%r15,8), %rax
movl 0x8(%rax), %esi
movq 0x2b20(%rbx), %rdi
callq 0x13378
movq 0x2b20(%rbx), %rdi
movq 0x1338(%rbx), %rax
movq (%rax,%r15,8), %rax
movq (%rax), %rsi
movl 0x8(%rax), %edx
callq 0x1348c
movq 0x1338(%rbx), %rax
movq (%rax,%r15,8), %rcx
movl 0x8(%rcx), %ecx
addl %ecx, %r14d
addl $0x4, %r14d
incq %r15
movslq 0x132c(%rbx), %rcx
cmpq %rcx, %r15
jl 0xc127
movq 0x2b20(%rbx), %rdi
movl 0x240(%rbx), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movsd 0x12c0(%rbx), %xmm0
callq 0x13618
movl $0x1, 0x12ac(%rbx)
movq 0x2b20(%rbx), %rdi
movl $0x1, %esi
callq 0x1365e
movslq 0x2c4(%rbx), %rsi
movq 0x2b20(%rbx), %rdi
callq 0x136a2
movslq 0x2cc(%rbx), %rsi
movq 0x2b20(%rbx), %rdi
callq 0x136a2
movq 0x2b20(%rbx), %rdi
movl 0x294(%rbx), %esi
callq 0x1365e
xorl %edi, %edi
cmpl $0x0, 0x13fc(%rbx)
setne %dil
movq 0x2b20(%rbx), %r15
movq (%r15), %rsi
callq 0x2190
movq 0x10(%r15), %rcx
movq 0x20(%r15), %rax
incq %rax
movq %rax, 0x20(%r15)
cmpq %rax, %rcx
jae 0xc228
movq %rax, 0x10(%r15)
movq 0x2b20(%rbx), %rdi
movq 0x1400(%rbx), %rsi
callq 0x13448
movq 0x2b20(%rbx), %rdi
movq 0x1408(%rbx), %rsi
callq 0x13448
movq 0x2b20(%rbx), %rdi
movl 0x1410(%rbx), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movl 0x1414(%rbx), %esi
callq 0x1365e
xorl %edi, %edi
cmpl $0x0, 0x1418(%rbx)
setne %dil
movq 0x2b20(%rbx), %r15
movq (%r15), %rsi
callq 0x2190
movq 0x10(%r15), %rcx
movq 0x20(%r15), %rax
incq %rax
movq %rax, 0x20(%r15)
cmpq %rax, %rcx
jae 0xc2a6
movq %rax, 0x10(%r15)
xorl %edi, %edi
cmpl $0x0, 0x1420(%rbx)
setne %dil
movq 0x2b20(%rbx), %r15
movq (%r15), %rsi
callq 0x2190
movq 0x10(%r15), %rcx
movq 0x20(%r15), %rax
incq %rax
movq %rax, 0x20(%r15)
cmpq %rax, %rcx
jae 0xc2da
movq %rax, 0x10(%r15)
xorl %edi, %edi
cmpl $0x0, 0x1424(%rbx)
setne %dil
movq 0x2b20(%rbx), %r15
movq (%r15), %rsi
callq 0x2190
movq 0x10(%r15), %rcx
movq 0x20(%r15), %rax
incq %rax
movq %rax, 0x20(%r15)
cmpq %rax, %rcx
jae 0xc30e
movq %rax, 0x10(%r15)
movq 0x2b20(%rbx), %rdi
movsd 0x1428(%rbx), %xmm0
callq 0x13618
movq 0x2b20(%rbx), %rdi
movsd 0x1430(%rbx), %xmm0
callq 0x13618
movq 0x2b20(%rbx), %rdi
movsd 0x1438(%rbx), %xmm0
callq 0x13618
xorl %edi, %edi
cmpl $0x0, 0x1440(%rbx)
setne %dil
movq 0x2b20(%rbx), %r15
movq (%r15), %rsi
callq 0x2190
movq 0x10(%r15), %rcx
movq 0x20(%r15), %rax
incq %rax
movq %rax, 0x20(%r15)
cmpq %rax, %rcx
jae 0xc37e
movq %rax, 0x10(%r15)
xorl %edi, %edi
cmpl $0x0, 0x1444(%rbx)
setne %dil
movq 0x2b20(%rbx), %r15
movq (%r15), %rsi
callq 0x2190
movq 0x10(%r15), %rcx
movq 0x20(%r15), %rax
incq %rax
movq %rax, 0x20(%r15)
cmpq %rax, %rcx
jae 0xc3b2
movq %rax, 0x10(%r15)
movq 0x2b20(%rbx), %rdi
movl 0x1448(%rbx), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movl 0x144c(%rbx), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movl 0x1450(%rbx), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movl 0x1454(%rbx), %esi
callq 0x1365e
xorl %edi, %edi
cmpl $0x0, 0x1458(%rbx)
setne %dil
movq 0x2b20(%rbx), %r15
movq (%r15), %rsi
callq 0x2190
movq 0x10(%r15), %rcx
movq 0x20(%r15), %rax
incq %rax
movq %rax, 0x20(%r15)
cmpq %rax, %rcx
jae 0xc42e
movq %rax, 0x10(%r15)
xorl %edi, %edi
cmpl $0x0, 0x145c(%rbx)
setne %dil
movq 0x2b20(%rbx), %r15
movq (%r15), %rsi
callq 0x2190
movq 0x10(%r15), %rcx
movq 0x20(%r15), %rax
incq %rax
movq %rax, 0x20(%r15)
cmpq %rax, %rcx
jae 0xc462
movq %rax, 0x10(%r15)
movl 0x1478(%rbx), %esi
movq 0x2b20(%rbx), %rdi
callq 0x13378
movq 0x2b20(%rbx), %rdi
movq 0x1470(%rbx), %rsi
movl 0x1478(%rbx), %edx
callq 0x1348c
movl 0x1478(%rbx), %ebp
movl 0x1498(%rbx), %esi
movq 0x2b20(%rbx), %rdi
callq 0x13378
movq 0x2b20(%rbx), %rdi
movq 0x1490(%rbx), %rsi
movl 0x1498(%rbx), %edx
callq 0x1348c
movl 0x1498(%rbx), %r15d
movl 0x14b8(%rbx), %esi
movq 0x2b20(%rbx), %rdi
callq 0x13378
movq 0x2b20(%rbx), %rdi
movq 0x14b0(%rbx), %rsi
movl 0x14b8(%rbx), %edx
callq 0x1348c
movl 0x14b8(%rbx), %r12d
movl 0x14e4(%rbx), %esi
movq 0x2b20(%rbx), %rdi
callq 0x1365e
movq 0x2b20(%rbx), %r13
movzbl 0x14e0(%rbx), %edi
movq (%r13), %rsi
callq 0x2190
movq 0x10(%r13), %rcx
movq 0x20(%r13), %rax
incq %rax
movq %rax, 0x20(%r13)
cmpq %rax, %rcx
jae 0xc538
movq %rax, 0x10(%r13)
movq 0x2b20(%rbx), %rdi
movsd 0x14f0(%rbx), %xmm0
callq 0x13618
movq 0x2b20(%rbx), %r13
movzbl 0x14ec(%rbx), %edi
movq (%r13), %rsi
callq 0x2190
movq 0x10(%r13), %rcx
movq 0x20(%r13), %rax
incq %rax
movq %rax, 0x20(%r13)
cmpq %rax, %rcx
jae 0xc57b
movq %rax, 0x10(%r13)
movq 0x2b20(%rbx), %r13
movzbl 0x14ed(%rbx), %edi
movq (%r13), %rsi
callq 0x2190
movq 0x10(%r13), %rcx
movq 0x20(%r13), %rax
incq %rax
movq %rax, 0x20(%r13)
cmpq %rax, %rcx
jae 0xc5aa
movq %rax, 0x10(%r13)
movq 0x2b20(%rbx), %r13
movzbl 0x14ee(%rbx), %edi
movq (%r13), %rsi
callq 0x2190
movq 0x10(%r13), %rcx
movq 0x20(%r13), %rax
incq %rax
movq %rax, 0x20(%r13)
cmpq %rax, %rcx
jae 0xc5d9
movq %rax, 0x10(%r13)
movq 0x2b20(%rbx), %rdi
movl 0x14f8(%rbx), %esi
callq 0x1365e
addl %ebp, %r14d
addl %r15d, %r14d
leal (%r12,%r14), %ebp
addl $0x8c, %ebp
cmpl $0x0, 0x14f8(%rbx)
jle 0xc7d8
xorl %r14d, %r14d
movl $0x8000, %r15d          # imm = 0x8000
movl $0x4000, %r12d          # imm = 0x4000
movq 0x2b20(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movl (%rax), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movl 0x4(%rax), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movl 0x8(%rax), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movl 0xc(%rax), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movl 0x10(%rax), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movl 0x14(%rax), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movl 0x18(%rax), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movsd 0x20(%rax), %xmm0
callq 0x13618
movq 0x2b20(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movl 0x28(%rax), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movl 0x2c(%rax), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movq 0x1500(%rbx,%r14,8), %rax
movl 0x30(%rax), %esi
callq 0x1365e
movq 0x2b20(%rbx), %r13
movq 0x1500(%rbx,%r14,8), %rax
movq 0x38(%rax), %rdi
movq (%r13), %rcx
movl $0x1, %esi
movl $0x8000, %edx           # imm = 0x8000
callq 0x2240
movq 0x20(%r13), %rax
addq %r15, %rax
movq %rax, 0x20(%r13)
cmpq %rax, 0x10(%r13)
jae 0xc750
movq %rax, 0x10(%r13)
movq 0x2b20(%rbx), %r13
movq 0x1500(%rbx,%r14,8), %rax
movq 0x40(%rax), %rdi
movq (%r13), %rcx
movl $0x1, %esi
movl $0x4000, %edx           # imm = 0x4000
callq 0x2240
movq 0x20(%r13), %rax
addq %r12, %rax
movq %rax, 0x20(%r13)
cmpq %rax, 0x10(%r13)
jae 0xc78b
movq %rax, 0x10(%r13)
movq 0x2b20(%rbx), %r13
movq 0x1500(%rbx,%r14,8), %rax
movzbl 0x48(%rax), %edi
movq (%r13), %rsi
callq 0x2190
movq 0x10(%r13), %rcx
movq 0x20(%r13), %rax
incq %rax
movq %rax, 0x20(%r13)
cmpq %rax, %rcx
jae 0xc7bf
movq %rax, 0x10(%r13)
addl $0xc031, %ebp           # imm = 0xC031
incq %r14
movslq 0x14f8(%rbx), %rax
cmpq %rax, %r14
jl 0xc617
movq 0x2b20(%rbx), %rdi
movl 0x1528(%rbx), %esi
callq 0x1365e
cmpl $0x5, 0x1528(%rbx)
jl 0xc833
movl $0x4, %r14d
movq 0x2b20(%rbx), %r15
movq (%r15), %rsi
xorl %edi, %edi
callq 0x2190
movq 0x10(%r15), %rcx
movq 0x20(%r15), %rax
incq %rax
movq %rax, 0x20(%r15)
cmpq %rax, %rcx
jae 0xc822
movq %rax, 0x10(%r15)
incl %r14d
cmpl 0x1528(%rbx), %r14d
jl 0xc7f9
addl %r14d, %ebp
jmp 0xc836
addl $0x4, %ebp
movl 0x152c(%rbx), %esi
cmpl $0x4, %esi
jge 0xc850
movl $0x4, 0x152c(%rbx)
movl $0x4, %esi
cmpl $0x6, 0x14dc(%rbx)
jl 0xc868
movl $0x5, 0x152c(%rbx)
movl $0x5, %esi
movq 0x2b20(%rbx), %rdi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movl 0x1518(%rbx), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movl 0x151c(%rbx), %esi
callq 0x13378
movq 0x2b20(%rbx), %rdi
movl 0x1520(%rbx), %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movl 0x1524(%rbx), %esi
callq 0x1365e
cmpl $0x5, 0x14dc(%rbx)
jne 0xc8f6
addl $0x14, %ebp
cmpl $0x5, 0x152c(%rbx)
jl 0xc937
movl $0x4, %r14d
movq 0x2b20(%rbx), %rdi
xorl %esi, %esi
callq 0x1365e
addl $0x4, %ebp
incl %r14d
cmpl 0x152c(%rbx), %r14d
jl 0xc8d7
jmp 0xc937
movq 0x2b20(%rbx), %rdi
movl 0x1468(%rbx), %esi
callq 0x1365e
addl $0x18, %ebp
cmpl $0x6, 0x152c(%rbx)
jl 0xc937
movl $0x5, %r14d
movq 0x2b20(%rbx), %rdi
xorl %esi, %esi
callq 0x1365e
addl $0x4, %ebp
incl %r14d
cmpl 0x152c(%rbx), %r14d
jl 0xc91a
movl 0x14dc(%rbx), %eax
cmpl $0x5, %eax
jne 0xc987
movq 0x2b20(%rbx), %rdi
movl 0x1530(%rbx), %esi
callq 0x1365e
addl $0x4, %ebp
cmpl $0x0, 0x1530(%rbx)
jle 0xc981
xorl %r14d, %r14d
movq 0x2b20(%rbx), %rdi
xorps %xmm0, %xmm0
callq 0x13618
addl $0x8, %ebp
incl %r14d
cmpl 0x1530(%rbx), %r14d
jl 0xc963
movl 0x14dc(%rbx), %eax
cmpl $0x6, %eax
jl 0xca04
movl 0x1530(%rbx), %esi
movq 0x2b20(%rbx), %rdi
testl %esi, %esi
je 0xc9e8
callq 0x1365e
movq 0x2b20(%rbx), %rdi
movsd 0x1460(%rbx), %xmm0
callq 0x13618
addl $0xc, %ebp
cmpl $0x2, 0x1530(%rbx)
jl 0xca04
movl $0x1, %r14d
movq 0x2b20(%rbx), %rdi
xorps %xmm0, %xmm0
callq 0x13618
addl $0x8, %ebp
incl %r14d
cmpl 0x1530(%rbx), %r14d
jl 0xc9c8
jmp 0xca04
movl $0x1, %esi
callq 0x1365e
movq 0x2b20(%rbx), %rdi
xorps %xmm0, %xmm0
callq 0x13618
addl $0xc, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop