// File: melop[P]admixem/config.cpp
// Function: SimulationConfigurations::fnParseSampleGenDef()
void SimulationConfigurations::fnParseSampleGenDef() {
	string sDefFile = this->GetConfig("samplegens");
	if (sDefFile == "") {
		return;
	}

	FILE *pDefFile;

	printf("%s : %s\n", "Start loading sampling range file ...", sDefFile.c_str());

	pDefFile = fopen(sDefFile.c_str(), "r");

	if (!pDefFile) {
		printf("%s : %s\n", "Cannot open sampling range file ...", sDefFile.c_str());
		throw "Cannot open sampling range file!";
	}

	//Go over each line:
	char szBuffer[MAXLINE];


	while(fgets(szBuffer, MAXLINE, pDefFile) != NULL) 
	{
		int nStartGen = 0;
		int nEndGen = 0;
		int nReadField = sscanf(szBuffer, "%d %d", &nStartGen, &nEndGen);
		if (nReadField <= 0 ) {
			continue;
		}

		if (nReadField == 1) {
			nEndGen = nStartGen;
		}

		this->_mvSampleGens.push_back( std::pair< int, int>( nStartGen ,  nEndGen ) );

	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x3d150, %rsp          # imm = 0x3D150
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x3d128(%rbp)
leaq -0x49(%rbp), %rdi
movq %rdi, -0x3d120(%rbp)
callq 0x8870
movq -0x3d120(%rbp), %rdx
leaq 0x4fa44(%rip), %rsi     # 0x7794c
leaq -0x48(%rbp), %rdi
callq 0xcb30
jmp 0x27f13
movq -0x3d128(%rbp), %rsi
leaq -0x28(%rbp), %rdi
leaq -0x48(%rbp), %rdx
callq 0x1c190
jmp 0x27f29
leaq -0x48(%rbp), %rdi
callq 0x82e0
leaq -0x49(%rbp), %rdi
callq 0x8540
leaq 0x4f37c(%rip), %rsi     # 0x772be
leaq -0x28(%rbp), %rdi
callq 0xcbe0
movb %al, -0x3d129(%rbp)
jmp 0x27f53
movb -0x3d129(%rbp), %al
testb $0x1, %al
jne 0x27f5f
jmp 0x27fb6
movl $0x1, -0x60(%rbp)
jmp 0x2813a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x27f8e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x82e0
leaq -0x49(%rbp), %rdi
callq 0x8540
jmp 0x2814c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x82e0
jmp 0x2814c
leaq -0x28(%rbp), %rdi
callq 0x81d0
movq %rax, %rdx
leaq 0x4f358(%rip), %rdi     # 0x77321
leaq 0x4f987(%rip), %rsi     # 0x77957
xorl %eax, %eax
callq 0x8080
jmp 0x27fd9
leaq -0x28(%rbp), %rdi
callq 0x81d0
movq %rax, %rdi
leaq 0x50f56(%rip), %rsi     # 0x78f42
callq 0x85e0
movq %rax, -0x3d138(%rbp)
jmp 0x27ffa
movq -0x3d138(%rbp), %rax
movq %rax, -0x68(%rbp)
cmpq $0x0, -0x68(%rbp)
jne 0x2805b
leaq -0x28(%rbp), %rdi
callq 0x81d0
movq %rax, %rdx
leaq 0x4f302(%rip), %rdi     # 0x77321
leaq 0x4f957(%rip), %rsi     # 0x7797d
xorl %eax, %eax
callq 0x8080
jmp 0x2802f
movl $0x8, %edi
callq 0x8230
movq %rax, %rdi
leaq 0x4f95e(%rip), %rax     # 0x779a1
movq %rax, (%rdi)
movq 0x81efb(%rip), %rsi     # 0xa9f48
xorl %eax, %eax
movl %eax, %edx
callq 0x8820
jmp 0x28155
jmp 0x2805d
movq -0x68(%rbp), %rdx
leaq -0x3d100(%rbp), %rdi
movl $0x3d090, %esi          # imm = 0x3D090
callq 0x8750
movq %rax, -0x3d140(%rbp)
jmp 0x2807b
movq -0x3d140(%rbp), %rax
cmpq $0x0, %rax
je 0x28133
movl $0x0, -0x3d104(%rbp)
movl $0x0, -0x3d108(%rbp)
leaq -0x3d100(%rbp), %rdi
leaq 0x4f914(%rip), %rsi     # 0x779c2
leaq -0x3d104(%rbp), %rdx
leaq -0x3d108(%rbp), %rcx
movb $0x0, %al
callq 0x8480
movl %eax, -0x3d10c(%rbp)
cmpl $0x0, -0x3d10c(%rbp)
jg 0x280d4
jmp 0x2805d
cmpl $0x1, -0x3d10c(%rbp)
jne 0x280e9
movl -0x3d104(%rbp), %eax
movl %eax, -0x3d108(%rbp)
movq -0x3d128(%rbp), %rax
addq $0xb8, %rax
movq %rax, -0x3d148(%rbp)
leaq -0x3d114(%rbp), %rdi
leaq -0x3d104(%rbp), %rsi
leaq -0x3d108(%rbp), %rdx
callq 0x2d900
jmp 0x28119
movq -0x3d148(%rbp), %rdi
leaq -0x3d114(%rbp), %rsi
callq 0x2d8d0
jmp 0x2812e
jmp 0x2805d
movl $0x0, -0x60(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x82e0
addq $0x3d150, %rsp          # imm = 0x3D150
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0x8860
nopw %cs:(%rax,%rax)