// File: /workspace/github_cpp_makefile_star2_O1/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:
cmpl $0x4, %esi
jl 0x3a36
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbx
movq %rdi, %r14
leaq 0x74(%rdi), %rax
movq %rax, 0x8(%rsp)
leaq 0x348(%rdi), %rax
movq %rax, 0x10(%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)
leaq 0x88(%rdi), %rax
movq %rax, 0x60(%rsp)
movl %esi, %r12d
movl $0x3, %r15d
movq (%rbx,%r15,8), %r13
movq %r13, %rdi
movl $0x3d, %esi
callq 0x20b0
testq %rax, %rax
je 0x3a1c
movq %rax, %rbp
subq %r13, %rbp
movslq %ebp, %rax
addq %r13, %rax
incq %rax
cmpb $0x20, -0x2(%rax)
leaq -0x1(%rax), %rax
je 0x3781
incl %ebp
movb $0x0, (%rax)
movq (%rbx,%r15,8), %r13
movq %r13, %rdi
leaq 0x6cd6(%rip), %rsi      # 0xa474
callq 0x2270
testl %eax, %eax
je 0x38d5
movq %r13, %rdi
leaq 0x6cca(%rip), %rsi      # 0xa47f
callq 0x2270
testl %eax, %eax
je 0x38ef
movq %r13, %rdi
leaq 0x6cc1(%rip), %rsi      # 0xa48d
callq 0x2270
testl %eax, %eax
je 0x3909
movq %r13, %rdi
leaq 0x6cb7(%rip), %rsi      # 0xa49a
callq 0x2270
testl %eax, %eax
je 0x3923
movq %r13, %rdi
leaq 0x6cad(%rip), %rsi      # 0xa4a7
callq 0x2270
testl %eax, %eax
je 0x393d
movq %r13, %rdi
leaq 0x6ca3(%rip), %rsi      # 0xa4b4
callq 0x2270
testl %eax, %eax
je 0x3957
movq %r13, %rdi
leaq 0x6ca2(%rip), %rsi      # 0xa4ca
callq 0x2270
testl %eax, %eax
je 0x3971
movq %r13, %rdi
leaq 0x6c98(%rip), %rsi      # 0xa4d7
callq 0x2270
testl %eax, %eax
je 0x398b
movq %r13, %rdi
leaq 0x6c8f(%rip), %rsi      # 0xa4e5
callq 0x2270
testl %eax, %eax
je 0x39a2
movq %r13, %rdi
leaq 0x6c83(%rip), %rsi      # 0xa4f0
callq 0x2270
testl %eax, %eax
je 0x39b9
movq %r13, %rdi
leaq 0x6c7a(%rip), %rsi      # 0xa4fe
callq 0x2270
testl %eax, %eax
je 0x39d0
movq %r13, %rdi
leaq 0x6bbe(%rip), %rsi      # 0xa459
callq 0x2270
testl %eax, %eax
je 0x39e9
movq %r13, %rdi
leaq 0x6c57(%rip), %rsi      # 0xa509
callq 0x2270
testl %eax, %eax
je 0x3a00
leaq 0x6b9d(%rip), %rdi      # 0xa463
movq %r13, %rsi
xorl %eax, %eax
callq 0x2060
jmp 0x3a1c
movslq %ebp, %rax
addq %rax, %r13
movq %r13, %rdi
leaq 0x6860(%rip), %rsi      # 0xa145
movq 0x60(%rsp), %rdx
jmp 0x3a15
movslq %ebp, %rax
addq %rax, %r13
movq %r13, %rdi
leaq 0x6846(%rip), %rsi      # 0xa145
movq 0x58(%rsp), %rdx
jmp 0x3a15
movslq %ebp, %rax
addq %rax, %r13
movq %r13, %rdi
leaq 0x682c(%rip), %rsi      # 0xa145
movq 0x50(%rsp), %rdx
jmp 0x3a15
movslq %ebp, %rax
addq %rax, %r13
movq %r13, %rdi
leaq 0x6812(%rip), %rsi      # 0xa145
movq 0x48(%rsp), %rdx
jmp 0x3a15
movslq %ebp, %rax
addq %rax, %r13
movq %r13, %rdi
leaq 0x6969(%rip), %rsi      # 0xa2b6
movq 0x40(%rsp), %rdx
jmp 0x3a15
movslq %ebp, %rax
addq %rax, %r13
movq %r13, %rdi
leaq 0x67de(%rip), %rsi      # 0xa145
movq 0x38(%rsp), %rdx
jmp 0x3a15
movslq %ebp, %rax
addq %rax, %r13
movq %r13, %rdi
leaq 0x67c4(%rip), %rsi      # 0xa145
movq 0x30(%rsp), %rdx
jmp 0x3a15
movslq %ebp, %rax
addq %rax, %r13
movq %r13, %rdi
leaq 0x67aa(%rip), %rsi      # 0xa145
movq 0x28(%rsp), %rdx
jmp 0x3a15
movslq %ebp, %rax
addq %rax, %r13
movq %r13, %rdi
leaq 0x6a87(%rip), %rsi      # 0xa439
movq 0x20(%rsp), %rdx
jmp 0x3a15
movslq %ebp, %rax
addq %rax, %r13
movq %r13, %rdi
leaq 0x68ed(%rip), %rsi      # 0xa2b6
movq 0x18(%rsp), %rdx
jmp 0x3a15
movslq %ebp, %rax
addq %rax, %r13
movq 0x340(%r14), %rdx
movq %r13, %rdi
leaq 0x6761(%rip), %rsi      # 0xa148
jmp 0x3a15
movslq %ebp, %rax
addq %rax, %r13
movq %r13, %rdi
leaq 0x674c(%rip), %rsi      # 0xa145
movq 0x10(%rsp), %rdx
jmp 0x3a15
movslq %ebp, %rax
addq %rax, %r13
movq %r13, %rdi
leaq 0x6735(%rip), %rsi      # 0xa145
movq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0x2160
incq %r15
cmpq %r12, %r15
jne 0x3758
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop