// File: /workspace/github_c_makefile_star2_O3/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 0x138a(%rip), %rsi      # 0xc89f
callq 0x2230
testl %eax, %eax
je 0xb651
leaq 0x137b(%rip), %rsi      # 0xc8a4
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xb664
leaq 0x1369(%rip), %rsi      # 0xc8a9
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xb67e
leaq 0x135e(%rip), %rsi      # 0xc8b5
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xb68e
leaq 0x1352(%rip), %rsi      # 0xc8c0
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xb69e
leaq 0x134a(%rip), %rsi      # 0xc8cf
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xb6ae
leaq 0x133d(%rip), %rsi      # 0xc8d9
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xb6db
leaq 0x132f(%rip), %rsi      # 0xc8e2
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xb6e9
leaq 0x1321(%rip), %rsi      # 0xc8eb
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xb6f7
leaq 0x1317(%rip), %rsi      # 0xc8f8
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xb718
leaq 0x130c(%rip), %rsi      # 0xc904
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xb732
leaq 0x1300(%rip), %rsi      # 0xc90f
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xb760
leaq 0x12f6(%rip), %rsi      # 0xc91c
movq %r14, %rdi
callq 0x2230
testl %eax, %eax
je 0xb777
leaq 0x12ee(%rip), %rdi      # 0xc92b
movq %r14, %rsi
xorl %eax, %eax
callq 0x4d36
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xb710
leaq 0x6c38(%rip), %rax      # 0x12290
movq (%rax), %rdi
addq $0x18, %rdi
jmp 0xb706
movq %rbx, %rdi
callq 0x2410
leaq 0x6c1d(%rip), %rcx      # 0x12290
movq (%rcx), %rcx
movl %eax, 0x20(%rcx)
jmp 0xb70e
leaq 0x6c0b(%rip), %rax      # 0x12290
movq (%rax), %rdi
addq $0x28, %rdi
jmp 0xb706
leaq 0x6bfb(%rip), %rax      # 0x12290
movq (%rax), %rdi
addq $0x38, %rdi
jmp 0xb706
leaq 0x6beb(%rip), %rax      # 0x12290
movq (%rax), %rdi
addq $0x40, %rdi
jmp 0xb706
xorl %eax, %eax
cmpb $0x6f, (%rbx)
movl $0x0, %ecx
jne 0xb6c9
cmpb $0x6e, 0x1(%rbx)
jne 0xb6c9
xorl %ecx, %ecx
cmpb $0x0, 0x2(%rbx)
sete %cl
leaq 0x6bc0(%rip), %rdx      # 0x12290
movq (%rdx), %rdx
movl %ecx, 0x1b8(%rdx)
jmp 0xb710
leaq 0x6bae(%rip), %rax      # 0x12290
movl $0x1c8, %edi            # imm = 0x1C8
jmp 0xb703
leaq 0x6ba0(%rip), %rax      # 0x12290
movl $0x1d0, %edi            # imm = 0x1D0
jmp 0xb703
leaq 0x6b92(%rip), %rax      # 0x12290
movl $0x1c0, %edi            # imm = 0x1C0
addq (%rax), %rdi
movq %rbx, %rsi
callq 0xb78e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
callq 0x2410
cltq
leaq 0x6b67(%rip), %rcx      # 0x12290
movq (%rcx), %rcx
movq %rax, 0x48(%rcx)
jmp 0xb70e
leaq 0x4(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x51b9
movq %rax, %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x0, (%r14)
jne 0xb710
leaq 0x6b39(%rip), %rax      # 0x12290
movq (%rax), %rax
movq %rcx, 0x50(%rax)
jmp 0xb70e
movq %rbx, %rdi
callq 0x2410
leaq 0x6b21(%rip), %rcx      # 0x12290
movq (%rcx), %rcx
movl %eax, 0x5c(%rcx)
jmp 0xb70e
movq %rbx, %rdi
callq 0x2410
leaq 0x6b0a(%rip), %rcx      # 0x12290
movq (%rcx), %rcx
movl %eax, 0x58(%rcx)
jmp 0xb70e