// File: NichtJens[P]lmf2txt/LMF_IO.cpp
// Function: LMF_IO::ReadHM1Header()
__int32	LMF_IO::ReadHM1Header()
/////////////////////////////////////////////////////////////////
{
	__int32		byte_counter;
	byte_counter = 0;

	HM1.use_normal_method = false;

	*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;


	__int32 nominalHeaderLength;
	nominalHeaderLength = sizeof(__int32)*21 + sizeof(double)*2 + DAQ_info_Length;	// size of user defined header
	if (DAQ_ID == DAQ_ID_HM1_ABM) nominalHeaderLength += 24*sizeof(__int32);

	if (DAQVersion >= 20080507) HM1.use_normal_method = true;

	if ((unsigned) nominalHeaderLength == User_header_size) HM1.use_normal_method = true;

	if (DAQVersion >= 20020408 && HM1.use_normal_method) {
		*input_lmf >> LMF_Version; byte_counter += sizeof(__int32);
	}

	*input_lmf >> system_timeout; byte_counter += sizeof(__int32);		//   system time-out
	*input_lmf >> time_reference; byte_counter += sizeof(__int32);
	*input_lmf >> HM1.FAK_DLL_Value; byte_counter += sizeof(__int32);
	*input_lmf >> HM1.Resolution_Flag; byte_counter += sizeof(__int32);
	*input_lmf >> HM1.trigger_mode_for_start; byte_counter += sizeof(__int32);
	*input_lmf >> HM1.trigger_mode_for_stop; byte_counter += sizeof(__int32);
	*input_lmf >> tdcresolution; byte_counter += sizeof(double);		// tdc resolution in ns

	if (DAQVersion >= 20020408 && HM1.use_normal_method) {
		*input_lmf >> TDCDataType; byte_counter += sizeof(__int32);
	}

	*input_lmf >> HM1.Even_open_time; byte_counter += sizeof(__int32);
	*input_lmf >> HM1.Auto_Trigger; byte_counter += sizeof(__int32);

	if (DAQVersion >= 20020408) {
		__int64 i64_dummy;
		*input_lmf >> i64_dummy; number_of_channels = (unsigned __int32)i64_dummy; byte_counter += sizeof(__int64);			// number of channels
		*input_lmf >> i64_dummy; max_number_of_hits = (unsigned __int32)i64_dummy; byte_counter += sizeof(__int64);			// number of hits
	} else {
	*input_lmf >> number_of_channels; byte_counter += sizeof(__int32);			// number of channels
	*input_lmf >> max_number_of_hits; byte_counter += sizeof(__int32);			// 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;}
	*input_lmf >> HM1.set_bits_for_GP1; byte_counter += sizeof(__int32);
	*input_lmf >> data_format_in_userheader;	byte_counter += sizeof(__int32);				// data format (2=short integer)
	*input_lmf >> module_2nd;	byte_counter += sizeof(__int32);		// indicator for 2nd module data

	if (DAQ_ID == DAQ_ID_2HM1) {
		*input_lmf >> DAQSubVersion;						byte_counter += sizeof(__int32);
		*input_lmf >> HM1.TWOHM1_FAK_DLL_Value;				byte_counter += sizeof(__int32);  // parameter 10-1
		*input_lmf >> HM1.TWOHM1_Resolution_Flag;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.TWOHM1_trigger_mode_for_start;	byte_counter += sizeof(__int32);
		*input_lmf >> HM1.TWOHM1_trigger_mode_for_stop;		byte_counter += sizeof(__int32);
		*input_lmf >> HM1.TWOHM1_res_adjust;				byte_counter += sizeof(__int32);
		*input_lmf >> HM1.TWOHM1_tdcresolution;				byte_counter += sizeof(double);
		*input_lmf >> HM1.TWOHM1_test_overflow;				byte_counter += sizeof(__int32);
		*input_lmf >> HM1.TWOHM1_number_of_channels;		byte_counter += sizeof(__int32);
		*input_lmf >> HM1.TWOHM1_number_of_hits;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.TWOHM1_set_bits_for_GP1;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.TWOHM1_HM1_ID_1;					byte_counter += sizeof(__int32);
		*input_lmf >> HM1.TWOHM1_HM1_ID_2;					byte_counter += sizeof(__int32);
	}

	if (DAQ_ID == DAQ_ID_HM1_ABM) {
		max_number_of_hits = 1;
		*input_lmf >> HM1.ABM_m_xFrom;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_m_xTo;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_m_yFrom;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_m_yTo;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_m_xMin;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_m_xMax;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_m_yMin;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_m_yMax;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_m_xOffset;		byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_m_yOffset;		byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_m_zOffset;		byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_Mode;				byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_OsziDarkInvert;	byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_ErrorHisto;		byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_XShift;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_YShift;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_ZShift;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_ozShift;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_wdShift;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_ucLevelXY;		byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_ucLevelZ;			byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_uiABMXShift;		byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_uiABMYShift;		byte_counter += sizeof(__int32);
		*input_lmf >> HM1.ABM_uiABMZShift;		byte_counter += sizeof(__int32);
		if (DAQVersion > 20080507) {
			__int32 i32Dummy;
			*input_lmf >> i32Dummy;		byte_counter += sizeof(__int32);
		}
	}

	if (DAQ_ID == 1 && DAQVersion == 20080507 && LMF_Version == 7) {
		input_lmf->flush();
		input_lmf->seek(Headersize+User_header_size);
		input_lmf->flush();
	}

	return byte_counter;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rsi
movq %rsi, -0x48(%rbp)
movl $0x0, -0x14(%rbp)
movb $0x0, 0x13bc(%rsi)
movq 0x2b18(%rsi), %rdi
addq $0x12c8, %rsi           # imm = 0x12C8
callq 0x1d1f0
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x8, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x2a4, %rsi            # imm = 0x2A4
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x2a8, %rsi            # imm = 0x2A8
callq 0x1cb80
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x129c, %rsi           # imm = 0x129C
callq 0x1cf60
movq -0x48(%rbp), %rax
movslq -0x14(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x14(%rbp)
movl 0x129c(%rax), %eax
addl $0x1, %eax
movslq %eax, %rdi
callq 0x2030
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, -0x20(%rbp)
movq 0x2b18(%rax), %rdi
movq -0x20(%rbp), %rsi
movl 0x129c(%rax), %edx
callq 0x1cbe0
movq -0x48(%rbp), %rdi
movq -0x20(%rbp), %rax
movslq 0x129c(%rdi), %rcx
movb $0x0, (%rax,%rcx)
movq -0x20(%rbp), %rsi
addq $0xa0, %rdi
callq 0x2250
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x7da6
movq -0x40(%rbp), %rdi
callq 0x2240
movq -0x48(%rbp), %rax
movq $0x0, -0x20(%rbp)
movl 0x129c(%rax), %ecx
addl -0x14(%rbp), %ecx
movl %ecx, -0x14(%rbp)
movslq 0x129c(%rax), %rcx
addq $0x64, %rcx
movl %ecx, -0x24(%rbp)
cmpl $0x6, 0x288(%rax)
jne 0x7de0
movslq -0x24(%rbp), %rax
addq $0x60, %rax
movl %eax, -0x24(%rbp)
movq -0x48(%rbp), %rax
cmpl $0x132677b, 0x280(%rax) # imm = 0x132677B
jb 0x7dfb
movq -0x48(%rbp), %rax
movb $0x1, 0x13bc(%rax)
movq -0x48(%rbp), %rcx
movl -0x24(%rbp), %eax
cmpl 0x29c(%rcx), %eax
jne 0x7e15
movq -0x48(%rbp), %rax
movb $0x1, 0x13bc(%rax)
movq -0x48(%rbp), %rax
cmpl $0x1317cb8, 0x280(%rax) # imm = 0x1317CB8
jb 0x7e54
movq -0x48(%rbp), %rax
testb $0x1, 0x13bc(%rax)
je 0x7e54
movq -0x48(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x12a4, %rsi           # imm = 0x12A4
callq 0x1cf60
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq -0x48(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x128c, %rsi           # imm = 0x128C
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x240, %rsi            # imm = 0x240
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x4, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x8, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0xc, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x12b8, %rsi           # imm = 0x12B8
callq 0x1d1f0
movq -0x48(%rbp), %rax
movslq -0x14(%rbp), %rcx
addq $0x8, %rcx
movl %ecx, -0x14(%rbp)
cmpl $0x1317cb8, 0x280(%rax) # imm = 0x1317CB8
jb 0x7f8d
movq -0x48(%rbp), %rax
testb $0x1, 0x13bc(%rax)
je 0x7f8d
movq -0x48(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x12ac, %rsi           # imm = 0x12AC
callq 0x1cf60
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq -0x48(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x10, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x14, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rax
movslq -0x14(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x14(%rbp)
cmpl $0x1317cb8, 0x280(%rax) # imm = 0x1317CB8
jb 0x8041
movq -0x48(%rbp), %rax
movq 0x2b18(%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x1d220
movq -0x48(%rbp), %rax
movq -0x30(%rbp), %rcx
movl %ecx, 0x2b4(%rax)
movslq -0x14(%rbp), %rcx
addq $0x8, %rcx
movl %ecx, -0x14(%rbp)
movq 0x2b18(%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x1d220
movq -0x48(%rbp), %rax
movq -0x30(%rbp), %rcx
movl %ecx, 0x2bc(%rax)
movslq -0x14(%rbp), %rax
addq $0x8, %rax
movl %eax, -0x14(%rbp)
jmp 0x8085
movq -0x48(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x2b4, %rsi            # imm = 0x2B4
callq 0x1cb80
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x2bc, %rsi            # imm = 0x2BC
callq 0x1cb80
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq -0x48(%rbp), %rcx
movl 0x2b4(%rcx), %eax
cmpl 0x2b70(%rcx), %eax
jle 0x80b1
movq -0x48(%rbp), %rax
movl $0x13, 0x12e0(%rax)
movl $0xfffe7960, -0x4(%rbp) # imm = 0xFFFE7960
jmp 0x87b2
movq -0x48(%rbp), %rcx
movl 0x2bc(%rcx), %eax
cmpl 0x2b74(%rcx), %eax
jle 0x80dd
movq -0x48(%rbp), %rax
movl $0x14, 0x12e0(%rax)
movl $0xfffe7960, -0x4(%rbp) # imm = 0xFFFE7960
jmp 0x87b2
movq -0x48(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x18, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x290, %rsi            # imm = 0x290
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1288, %rsi           # imm = 0x1288
callq 0x1cf60
movq -0x48(%rbp), %rax
movslq -0x14(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x14(%rbp)
cmpl $0x4, 0x288(%rax)
jne 0x8366
movq -0x48(%rbp), %rsi
movq 0x2b18(%rsi), %rdi
addq $0x1284, %rsi           # imm = 0x1284
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x80, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x84, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x88, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x8c, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x90, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x98, %rsi
callq 0x1d1f0
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x8, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0xa0, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0xa4, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0xa8, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0xac, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0xb0, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0xb4, %rsi
callq 0x1cf60
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq -0x48(%rbp), %rax
cmpl $0x6, 0x288(%rax)
jne 0x8742
movq -0x48(%rbp), %rsi
movl $0x1, 0x2bc(%rsi)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x1c, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x20, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x24, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x28, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x2c, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x30, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x34, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x38, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x3c, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x40, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x44, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x48, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x4c, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x50, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x54, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x58, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x5c, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x60, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x64, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x68, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x6c, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x70, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x74, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
movq 0x2b18(%rsi), %rdi
addq $0x1340, %rsi           # imm = 0x1340
addq $0x78, %rsi
callq 0x1cf60
movq -0x48(%rbp), %rax
movslq -0x14(%rbp), %rcx
addq $0x4, %rcx
movl %ecx, -0x14(%rbp)
cmpl $0x132677b, 0x280(%rax) # imm = 0x132677B
jbe 0x8740
movq -0x48(%rbp), %rax
movq 0x2b18(%rax), %rdi
leaq -0x34(%rbp), %rsi
callq 0x1cf60
movslq -0x14(%rbp), %rax
addq $0x4, %rax
movl %eax, -0x14(%rbp)
jmp 0x8742
movq -0x48(%rbp), %rax
cmpl $0x1, 0x288(%rax)
jne 0x87ac
movq -0x48(%rbp), %rax
cmpl $0x132677b, 0x280(%rax) # imm = 0x132677B
jne 0x87ac
movq -0x48(%rbp), %rax
cmpl $0x7, 0x12a4(%rax)
jne 0x87ac
movq -0x48(%rbp), %rax
movq 0x2b18(%rax), %rdi
callq 0x1d1d0
movq -0x48(%rbp), %rcx
movq 0x2b18(%rcx), %rdi
movl 0x298(%rcx), %eax
addl 0x29c(%rcx), %eax
movl %eax, %eax
movl %eax, %esi
callq 0x2440
movq -0x48(%rbp), %rax
movq 0x2b18(%rax), %rdi
callq 0x1d1d0
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)