// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x2434(%rip), %rsi      # 0x1282f
callq 0x2270
cmpl $0x0, %eax
jne 0x10421
leaq 0x6ea4(%rip), %rax      # 0x172b0
movq (%rax), %rdi
addq $0x18, %rdi
movq -0x18(%rbp), %rsi
callq 0x106e0
jmp 0x106c8
movq -0x10(%rbp), %rdi
leaq 0x2408(%rip), %rsi      # 0x12834
callq 0x2270
cmpl $0x0, %eax
jne 0x10453
movq -0x18(%rbp), %rdi
callq 0x2460
movl %eax, %ecx
leaq 0x6e68(%rip), %rax      # 0x172b0
movq (%rax), %rax
movl %ecx, 0x20(%rax)
jmp 0x106c6
movq -0x10(%rbp), %rdi
leaq 0x23db(%rip), %rsi      # 0x12839
callq 0x2270
cmpl $0x0, %eax
jne 0x10484
leaq 0x6e41(%rip), %rax      # 0x172b0
movq (%rax), %rdi
addq $0x28, %rdi
movq -0x18(%rbp), %rsi
callq 0x106e0
jmp 0x106c4
movq -0x10(%rbp), %rdi
leaq 0x23b6(%rip), %rsi      # 0x12845
callq 0x2270
cmpl $0x0, %eax
jne 0x104b5
leaq 0x6e10(%rip), %rax      # 0x172b0
movq (%rax), %rdi
addq $0x38, %rdi
movq -0x18(%rbp), %rsi
callq 0x106e0
jmp 0x106c2
movq -0x10(%rbp), %rdi
leaq 0x2390(%rip), %rsi      # 0x12850
callq 0x2270
cmpl $0x0, %eax
jne 0x104e6
leaq 0x6ddf(%rip), %rax      # 0x172b0
movq (%rax), %rdi
addq $0x40, %rdi
movq -0x18(%rbp), %rsi
callq 0x106e0
jmp 0x106c0
movq -0x10(%rbp), %rdi
leaq 0x236e(%rip), %rsi      # 0x1285f
callq 0x2270
cmpl $0x0, %eax
jne 0x1051b
movq -0x18(%rbp), %rdi
callq 0x10720
movl %eax, %ecx
leaq 0x6da3(%rip), %rax      # 0x172b0
movq (%rax), %rax
movl %ecx, 0x1b8(%rax)
jmp 0x106be
movq -0x10(%rbp), %rdi
leaq 0x2343(%rip), %rsi      # 0x12869
callq 0x2270
cmpl $0x0, %eax
jne 0x1054f
leaq 0x6d79(%rip), %rax      # 0x172b0
movq (%rax), %rdi
addq $0x1c8, %rdi            # imm = 0x1C8
movq -0x18(%rbp), %rsi
callq 0x106e0
jmp 0x106bc
movq -0x10(%rbp), %rdi
leaq 0x2318(%rip), %rsi      # 0x12872
callq 0x2270
cmpl $0x0, %eax
jne 0x10583
leaq 0x6d45(%rip), %rax      # 0x172b0
movq (%rax), %rdi
addq $0x1d0, %rdi            # imm = 0x1D0
movq -0x18(%rbp), %rsi
callq 0x106e0
jmp 0x106ba
movq -0x10(%rbp), %rdi
leaq 0x22ed(%rip), %rsi      # 0x1287b
callq 0x2270
cmpl $0x0, %eax
jne 0x105b7
leaq 0x6d11(%rip), %rax      # 0x172b0
movq (%rax), %rdi
addq $0x1c0, %rdi            # imm = 0x1C0
movq -0x18(%rbp), %rsi
callq 0x106e0
jmp 0x106b8
movq -0x10(%rbp), %rdi
leaq 0x22c6(%rip), %rsi      # 0x12888
callq 0x2270
cmpl $0x0, %eax
jne 0x105eb
movq -0x18(%rbp), %rdi
callq 0x2460
movslq %eax, %rcx
leaq 0x6cd1(%rip), %rax      # 0x172b0
movq (%rax), %rax
movq %rcx, 0x48(%rax)
jmp 0x106b6
movq -0x10(%rbp), %rdi
leaq 0x229e(%rip), %rsi      # 0x12894
callq 0x2270
cmpl $0x0, %eax
jne 0x10637
movq -0x18(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
callq 0x60c0
movq %rax, -0x28(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x10623
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x106cf
movq -0x28(%rbp), %rcx
leaq 0x6c82(%rip), %rax      # 0x172b0
movq (%rax), %rax
movq %rcx, 0x50(%rax)
jmp 0x106b4
movq -0x10(%rbp), %rdi
leaq 0x225d(%rip), %rsi      # 0x1289f
callq 0x2270
cmpl $0x0, %eax
jne 0x10666
movq -0x18(%rbp), %rdi
callq 0x2460
movl %eax, %ecx
leaq 0x6c52(%rip), %rax      # 0x172b0
movq (%rax), %rax
movl %ecx, 0x5c(%rax)
jmp 0x106b2
movq -0x10(%rbp), %rdi
leaq 0x223b(%rip), %rsi      # 0x128ac
callq 0x2270
cmpl $0x0, %eax
jne 0x10695
movq -0x18(%rbp), %rdi
callq 0x2460
movl %eax, %ecx
leaq 0x6c23(%rip), %rax      # 0x172b0
movq (%rax), %rax
movl %ecx, 0x58(%rax)
jmp 0x106b0
movq -0x10(%rbp), %rsi
leaq 0x221b(%rip), %rdi      # 0x128bb
movb $0x0, %al
callq 0x5a10
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x106cf
jmp 0x106b2
jmp 0x106b4
jmp 0x106b6
jmp 0x106b8
jmp 0x106ba
jmp 0x106bc
jmp 0x106be
jmp 0x106c0
jmp 0x106c2
jmp 0x106c4
jmp 0x106c6
jmp 0x106c8
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)