// File: /workspace/github_cpp_makefile_star2_O2/narges64[P]SIMBA/common.cpp
// Function: parameter_value::load_inline_parameters(int, char**)
void parameter_value::load_inline_parameters(int argc, char ** argv)
{
	int pre_eql,next_eql;
	int res_eql;
	char *ptr;

	for (int i = 3; i < argc; i++){
			ptr = strchr(argv[i], '=');
			if (!ptr) continue;

			pre_eql = ptr - argv[i];
			next_eql = pre_eql + 1;
			while(argv[i][pre_eql-1] == ' ') pre_eql--;
			argv[i][pre_eql] = 0;

			if ((res_eql = strcmp(argv[i],"lun_number")) == 0){
				sscanf(argv[i] + next_eql, "%d", &lun_num);
			}else if((res_eql=strcmp(argv[i],"dram_capacity")) ==0){
				sscanf(argv[i] + next_eql,"%d",&dram_capacity);
			}else if((res_eql=strcmp(argv[i],"gcb_capacity")) ==0){
				sscanf(argv[i] + next_eql,"%d",&gcb_capacity);
			}else if((res_eql=strcmp(argv[i],"queue_length")) ==0){
					sscanf(argv[i] + next_eql,"%d",&queue_length);
			}else if((res_eql=strcmp(argv[i],"syn_rd_ratio")) == 0){
					sscanf(argv[i] + next_eql, "%f",&syn_rd_ratio);
			}else if((res_eql=strcmp(argv[i],"syn_interarrival_mean")) == 0){
					sscanf(argv[i] + next_eql, "%d",&syn_interarrival_mean);
			}else if((res_eql=strcmp(argv[i],"syn_req_size")) == 0){
					sscanf(argv[i] + next_eql, "%d",&syn_req_size);
			}else if((res_eql=strcmp(argv[i],"syn_req_count")) == 0){
					sscanf(argv[i] + next_eql, "%d",&syn_req_count);
			}else if((res_eql=strcmp(argv[i],"time_scale")) == 0){
					sscanf(argv[i] + next_eql,"%lf",&time_scale);
			}else if((res_eql=strcmp(argv[i],"gc_time_ratio")) == 0){
					sscanf(argv[i] + next_eql,"%f",&gc_time_ratio);
			}else if((res_eql=strcmp(argv[i],"trace_file")) == 0){
					sscanf(argv[i] + next_eql,"%s",trace_filename); 
			}else if((res_eql=strcmp(argv[i],"synthetic")) == 0){
					sscanf(argv[i] + next_eql,"%d",&synthetic); 
			}else if((res_eql=strcmp(argv[i],"gc_algorithm")) == 0){
					sscanf(argv[i] + next_eql,"%d",&gc_algorithm); 
			}else{
					printf("don't match\t %s\n",argv[i]);
			}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbx
leaq 0x74(%rdi), %rax
movq %rax, (%rsp)
leaq 0x348(%rdi), %rax
movq %rax, 0x8(%rsp)
leaq 0x338(%rdi), %rax
movq %rax, 0x18(%rsp)
leaq 0x80(%rdi), %rax
movq %rax, 0x20(%rsp)
leaq 0x328(%rdi), %rax
movq %rax, 0x28(%rsp)
leaq 0x32c(%rdi), %rax
movq %rax, 0x30(%rsp)
leaq 0x330(%rdi), %rax
movq %rax, 0x38(%rsp)
leaq 0x324(%rdi), %rax
movq %rax, 0x40(%rsp)
leaq 0x78(%rdi), %rax
movq %rax, 0x48(%rsp)
leaq 0x90(%rdi), %rax
movq %rax, 0x50(%rsp)
leaq 0x8c(%rdi), %rax
movq %rax, 0x58(%rsp)
movq %rdi, 0x10(%rsp)
leaq 0x88(%rdi), %rax
movq %rax, 0x60(%rsp)
movslq %esi, %r12
pushq $0x3
popq %r14
pushq $0x3d
popq %r15
cmpq %r12, %r14
jge 0x3723
movq (%rbx,%r14,8), %rbp
movq %rbp, %rdi
movl %r15d, %esi
callq 0x20a0
testq %rax, %rax
je 0x371b
movq %rax, %r13
subq %rbp, %r13
movslq %r13d, %rax
addq %rbp, %rax
incq %rax
cmpb $0x20, -0x2(%rax)
leaq -0x1(%rax), %rax
je 0x34a2
incl %r13d
movb $0x0, (%rax)
movq (%rbx,%r14,8), %rbp
movq %rbp, %rdi
leaq 0x5ec4(%rip), %rsi      # 0x9384
callq 0x2240
movslq %r13d, %r13
testl %eax, %eax
je 0x35fa
movq %rbp, %rdi
leaq 0x5eb5(%rip), %rsi      # 0x938f
callq 0x2240
testl %eax, %eax
je 0x3611
movq %rbp, %rdi
leaq 0x5eac(%rip), %rsi      # 0x939d
callq 0x2240
testl %eax, %eax
je 0x3628
movq %rbp, %rdi
leaq 0x5ea2(%rip), %rsi      # 0x93aa
callq 0x2240
testl %eax, %eax
je 0x363f
movq %rbp, %rdi
leaq 0x5e98(%rip), %rsi      # 0x93b7
callq 0x2240
testl %eax, %eax
je 0x3656
movq %rbp, %rdi
leaq 0x5e8e(%rip), %rsi      # 0x93c4
callq 0x2240
testl %eax, %eax
je 0x366d
movq %rbp, %rdi
leaq 0x5e8d(%rip), %rsi      # 0x93da
callq 0x2240
testl %eax, %eax
je 0x3684
movq %rbp, %rdi
leaq 0x5e83(%rip), %rsi      # 0x93e7
callq 0x2240
testl %eax, %eax
je 0x3698
movq %rbp, %rdi
leaq 0x5e7a(%rip), %rsi      # 0x93f5
callq 0x2240
testl %eax, %eax
je 0x36ac
movq %rbp, %rdi
leaq 0x5e6e(%rip), %rsi      # 0x9400
callq 0x2240
testl %eax, %eax
je 0x36c0
movq %rbp, %rdi
leaq 0x5e65(%rip), %rsi      # 0x940e
callq 0x2240
testl %eax, %eax
je 0x36d4
movq %rbp, %rdi
leaq 0x5da9(%rip), %rsi      # 0x9369
callq 0x2240
testl %eax, %eax
je 0x36ef
movq %rbp, %rdi
leaq 0x5e42(%rip), %rsi      # 0x9419
callq 0x2240
testl %eax, %eax
je 0x3703
leaq 0x5d88(%rip), %rdi      # 0x9373
movq %rbp, %rsi
xorl %eax, %eax
callq 0x2050
jmp 0x371b
addq %r13, %rbp
movq %rbp, %rdi
leaq 0x5a4e(%rip), %rsi      # 0x9055
movq 0x60(%rsp), %rdx
jmp 0x3714
addq %r13, %rbp
movq %rbp, %rdi
leaq 0x5a37(%rip), %rsi      # 0x9055
movq 0x58(%rsp), %rdx
jmp 0x3714
addq %r13, %rbp
movq %rbp, %rdi
leaq 0x5a20(%rip), %rsi      # 0x9055
movq 0x50(%rsp), %rdx
jmp 0x3714
addq %r13, %rbp
movq %rbp, %rdi
leaq 0x5a09(%rip), %rsi      # 0x9055
movq 0x48(%rsp), %rdx
jmp 0x3714
addq %r13, %rbp
movq %rbp, %rdi
leaq 0x5b63(%rip), %rsi      # 0x91c6
movq 0x40(%rsp), %rdx
jmp 0x3714
addq %r13, %rbp
movq %rbp, %rdi
leaq 0x59db(%rip), %rsi      # 0x9055
movq 0x38(%rsp), %rdx
jmp 0x3714
addq %r13, %rbp
movq %rbp, %rdi
leaq 0x59c4(%rip), %rsi      # 0x9055
movq 0x30(%rsp), %rdx
jmp 0x3714
addq %r13, %rbp
movq %rbp, %rdi
leaq 0x59b0(%rip), %rsi      # 0x9055
movq 0x28(%rsp), %rdx
jmp 0x3714
addq %r13, %rbp
movq %rbp, %rdi
leaq 0x5c90(%rip), %rsi      # 0x9349
movq 0x20(%rsp), %rdx
jmp 0x3714
addq %r13, %rbp
movq %rbp, %rdi
leaq 0x5af9(%rip), %rsi      # 0x91c6
movq 0x18(%rsp), %rdx
jmp 0x3714
addq %r13, %rbp
movq 0x10(%rsp), %rax
movq 0x340(%rax), %rdx
movq %rbp, %rdi
leaq 0x596b(%rip), %rsi      # 0x9058
jmp 0x3714
addq %r13, %rbp
movq %rbp, %rdi
leaq 0x5959(%rip), %rsi      # 0x9055
movq 0x8(%rsp), %rdx
jmp 0x3714
addq %r13, %rbp
movq %rbp, %rdi
leaq 0x5945(%rip), %rsi      # 0x9055
movq (%rsp), %rdx
xorl %eax, %eax
callq 0x2130
incq %r14
jmp 0x3472
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq