// File: /workspace/github_c_makefile_star2_O1/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 0x178a(%rip), %rsi      # 0xc863
callq 0x2240
testl %eax, %eax
je 0xb215
leaq 0x177b(%rip), %rsi      # 0xc868
movq %r14, %rdi
callq 0x2240
testl %eax, %eax
je 0xb228
leaq 0x1769(%rip), %rsi      # 0xc86d
movq %r14, %rdi
callq 0x2240
testl %eax, %eax
je 0xb242
leaq 0x175e(%rip), %rsi      # 0xc879
movq %r14, %rdi
callq 0x2240
testl %eax, %eax
je 0xb252
leaq 0x1752(%rip), %rsi      # 0xc884
movq %r14, %rdi
callq 0x2240
testl %eax, %eax
je 0xb262
leaq 0x174a(%rip), %rsi      # 0xc893
movq %r14, %rdi
callq 0x2240
testl %eax, %eax
je 0xb272
leaq 0x173d(%rip), %rsi      # 0xc89d
movq %r14, %rdi
callq 0x2240
testl %eax, %eax
je 0xb29a
leaq 0x172f(%rip), %rsi      # 0xc8a6
movq %r14, %rdi
callq 0x2240
testl %eax, %eax
je 0xb2a8
leaq 0x1721(%rip), %rsi      # 0xc8af
movq %r14, %rdi
callq 0x2240
testl %eax, %eax
je 0xb2b6
leaq 0x1717(%rip), %rsi      # 0xc8bc
movq %r14, %rdi
callq 0x2240
testl %eax, %eax
je 0xb2d7
leaq 0x170c(%rip), %rsi      # 0xc8c8
movq %r14, %rdi
callq 0x2240
testl %eax, %eax
je 0xb2f1
leaq 0x1700(%rip), %rsi      # 0xc8d3
movq %r14, %rdi
callq 0x2240
testl %eax, %eax
je 0xb31f
leaq 0x16f6(%rip), %rsi      # 0xc8e0
movq %r14, %rdi
callq 0x2240
testl %eax, %eax
je 0xb336
leaq 0x16ee(%rip), %rdi      # 0xc8ef
movq %r14, %rsi
xorl %eax, %eax
callq 0x48a2
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xb2cf
leaq 0x7074(%rip), %rax      # 0x12290
movq (%rax), %rdi
addq $0x18, %rdi
jmp 0xb2c5
movq %rbx, %rdi
callq 0x2420
leaq 0x7059(%rip), %rcx      # 0x12290
movq (%rcx), %rcx
movl %eax, 0x20(%rcx)
jmp 0xb2cd
leaq 0x7047(%rip), %rax      # 0x12290
movq (%rax), %rdi
addq $0x28, %rdi
jmp 0xb2c5
leaq 0x7037(%rip), %rax      # 0x12290
movq (%rax), %rdi
addq $0x38, %rdi
jmp 0xb2c5
leaq 0x7027(%rip), %rax      # 0x12290
movq (%rax), %rdi
addq $0x40, %rdi
jmp 0xb2c5
leaq 0x15db(%rip), %rsi      # 0xc854
movq %rbx, %rdi
callq 0x2240
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
leaq 0x7001(%rip), %rax      # 0x12290
movq (%rax), %rax
movl %ecx, 0x1b8(%rax)
jmp 0xb2cd
leaq 0x6fef(%rip), %rax      # 0x12290
movl $0x1c8, %edi            # imm = 0x1C8
jmp 0xb2c2
leaq 0x6fe1(%rip), %rax      # 0x12290
movl $0x1d0, %edi            # imm = 0x1D0
jmp 0xb2c2
leaq 0x6fd3(%rip), %rax      # 0x12290
movl $0x1c0, %edi            # imm = 0x1C0
addq (%rax), %rdi
movq %rbx, %rsi
callq 0xb34d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
callq 0x2420
cltq
leaq 0x6fa8(%rip), %rcx      # 0x12290
movq (%rcx), %rcx
movq %rax, 0x48(%rcx)
jmp 0xb2cd
leaq 0x4(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4d32
movq %rax, %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x0, (%r14)
jne 0xb2cf
leaq 0x6f7a(%rip), %rax      # 0x12290
movq (%rax), %rax
movq %rcx, 0x50(%rax)
jmp 0xb2cd
movq %rbx, %rdi
callq 0x2420
leaq 0x6f62(%rip), %rcx      # 0x12290
movq (%rcx), %rcx
movl %eax, 0x5c(%rcx)
jmp 0xb2cd
movq %rbx, %rdi
callq 0x2420
leaq 0x6f4b(%rip), %rcx      # 0x12290
movq (%rcx), %rcx
movl %eax, 0x58(%rcx)
jmp 0xb2cd