// File: /workspace/github_c_makefile_star2_O2/yakushstanislav[P]EagleMQ/src/config.c
// Function: config_parse_key_value
int config_parse_key_value(char *key, char *value)
{
	int err;
	long long max_memory;

	if (!strcmp(key, "addr")) {
		set_value_string(&server->addr, value);
	} else if (!strcmp(key, "port")) {
		server->port = atoi(value);
	} else if (!strcmp(key, "unix-socket")) {
		set_value_string(&server->unix_socket, value);
	} else if (!strcmp(key, "admin-name")) {
		set_value_string(&server->name, value);
	} else if (!strcmp(key, "admin-password")) {
		set_value_string(&server->password, value);
	} else if (!strcmp(key, "daemonize")) {
		server->daemonize = parse_on_off(value);
	} else if (!strcmp(key, "pid-file")) {
		set_value_string(&server->pidfile, value);
	} else if (!strcmp(key, "log-file")) {
		set_value_string(&server->logfile, value);
	} else if (!strcmp(key, "storage-file")) {
		set_value_string(&server->storage, value);
	} else if (!strcmp(key, "max-clients")) {
		server->max_clients = atoi(value);
	} else if (!strcmp(key, "max-memory")) {
		max_memory = memtoll(value, &err);
		if (err) return EG_STATUS_ERR;
		server->max_memory = max_memory;
	} else if (!strcmp(key, "save-timeout")) {
		server->storage_timeout = atoi(value);
	} else if (!strcmp(key, "client-timeout")) {
		server->client_timeout = atoi(value);
	} else {
		info("Error parse key: %s", key);
		return EG_STATUS_ERR;
	}

	return EG_STATUS_OK;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x22f6(%rip), %rsi      # 0xc85f
callq 0x2230
testl %eax, %eax
je 0xa6a0
leaq 0x22e7(%rip), %rsi      # 0xc864
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xa6b3
leaq 0x22d5(%rip), %rsi      # 0xc869
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xa6cd
leaq 0x22ca(%rip), %rsi      # 0xc875
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xa6dd
leaq 0x22be(%rip), %rsi      # 0xc880
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xa6ed
leaq 0x22b6(%rip), %rsi      # 0xc88f
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xa6fd
leaq 0x22a9(%rip), %rsi      # 0xc899
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xa72a
leaq 0x229b(%rip), %rsi      # 0xc8a2
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xa738
leaq 0x228d(%rip), %rsi      # 0xc8ab
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xa746
leaq 0x2283(%rip), %rsi      # 0xc8b8
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xa767
leaq 0x2278(%rip), %rsi      # 0xc8c4
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xa781
leaq 0x226c(%rip), %rsi      # 0xc8cf
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xa79c
leaq 0x2262(%rip), %rsi      # 0xc8dc
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xa7b3
leaq 0x225a(%rip), %rdi      # 0xc8eb
movq %r14, %rsi
xorl %eax, %eax
callq 0x46b1
jmp 0xa797
leaq 0x7be9(%rip), %rax      # 0x12290
movq (%rax), %rdi
addq $0x18, %rdi
jmp 0xa755
movq %rbx, %rdi
callq 0x2420
leaq 0x7bce(%rip), %rcx      # 0x12290
movq (%rcx), %rcx
movl %eax, 0x20(%rcx)
jmp 0xa75d
leaq 0x7bbc(%rip), %rax      # 0x12290
movq (%rax), %rdi
addq $0x28, %rdi
jmp 0xa755
leaq 0x7bac(%rip), %rax      # 0x12290
movq (%rax), %rdi
addq $0x38, %rdi
jmp 0xa755
leaq 0x7b9c(%rip), %rax      # 0x12290
movq (%rax), %rdi
addq $0x40, %rdi
jmp 0xa755
xorl %eax, %eax
cmpb $0x6f, (%rbx)
movl $0x0, %ecx
jne 0xa718
cmpb $0x6e, 0x1(%rbx)
jne 0xa718
xorl %ecx, %ecx
cmpb $0x0, 0x2(%rbx)
sete %cl
leaq 0x7b71(%rip), %rdx      # 0x12290
movq (%rdx), %rdx
movl %ecx, 0x1b8(%rdx)
jmp 0xa75f
leaq 0x7b5f(%rip), %rax      # 0x12290
movl $0x1c8, %edi            # imm = 0x1C8
jmp 0xa752
leaq 0x7b51(%rip), %rax      # 0x12290
movl $0x1d0, %edi            # imm = 0x1D0
jmp 0xa752
leaq 0x7b43(%rip), %rax      # 0x12290
movl $0x1c0, %edi            # imm = 0x1C0
addq (%rax), %rdi
movq %rbx, %rsi
callq 0xa7da
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
callq 0x2420
cltq
leaq 0x7b18(%rip), %rcx      # 0x12290
movq (%rcx), %rcx
movq %rax, 0x48(%rcx)
jmp 0xa75d
leaq 0x4(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4b15
cmpl $0x0, (%r14)
je 0xa7ca
pushq $-0x1
popq %rax
jmp 0xa75f
movq %rbx, %rdi
callq 0x2420
leaq 0x7ae5(%rip), %rcx      # 0x12290
movq (%rcx), %rcx
movl %eax, 0x5c(%rcx)
jmp 0xa75d
movq %rbx, %rdi
callq 0x2420
leaq 0x7ace(%rip), %rcx      # 0x12290
movq (%rcx), %rcx
movl %eax, 0x58(%rcx)
jmp 0xa75d
leaq 0x7abf(%rip), %rcx      # 0x12290
movq (%rcx), %rcx
movq %rax, 0x50(%rcx)
jmp 0xa75d