// File: /workspace/github_c_makefile_star2_O1/yakushstanislav[P]EagleMQ/src/eagle.c
// Function: init_server_config
void init_server_config(void)
{
	server = (EagleServer*)xmalloc(sizeof(*server));

	server->fd = 0;
	server->sfd = 0;
	server->ufd = 0;
	server->addr = xstrdup(EG_DEFAULT_ADDR);
	server->port = EG_DEFAULT_PORT;
	server->unix_socket = NULL;
	server->unix_perm = 0;
	server->child_pid = -1;
	server->name = xstrdup(EG_DEFAULT_ADMIN_NAME);
	server->password = xstrdup(EG_DEFAULT_ADMIN_PASSWORD);
	server->max_clients = EG_DEFAULT_MAX_CLIENTS;
	server->max_memory = EG_DEFAULT_MAX_MEMORY;
	server->client_timeout = EG_DEFAULT_CLIENT_TIMEOUT;
	server->storage_timeout = EG_DEFAULT_SAVE_TIMEOUT;
	server->clients = list_create();
	server->users = list_create();
	server->queues = list_create();
	server->routes = list_create();
	server->channels = list_create();
	server->now_time = time(NULL);
	server->now_timems = mstime();
	server->start_time = time(NULL);
	server->last_save = time(NULL);
	server->last_memcheck = time(NULL);
	server->nomemory = 0;
	server->msg_counter = 0;
	server->daemonize = EG_DEFAULT_DAEMONIZE;
	server->storage = xstrdup(EG_DEFAULT_STORAGE_PATH);
	server->pidfile = NULL;
	server->logfile = xstrdup(EG_DEFAULT_LOG_PATH);
	server->config = EG_DEFAULT_CONFIG_PATH;
	server->shutdown = 0;

	EG_LIST_SET_FREE_METHOD(server->users, free_user_list_handler);
	EG_LIST_SET_FREE_METHOD(server->queues, free_queue_list_handler);
	EG_LIST_SET_FREE_METHOD(server->routes, free_route_list_handler);
	EG_LIST_SET_FREE_METHOD(server->channels, free_channel_list_handler);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl $0x1e8, %edi            # imm = 0x1E8
callq 0x42f0
movq %rax, 0xf205(%rip)      # 0x12290
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
leaq 0x91d2(%rip), %rdi      # 0xc26b
callq 0x44d1
movq 0xf1eb(%rip), %rcx      # 0x12290
movq %rax, 0x18(%rcx)
movl $0x1eab, 0x20(%rcx)     # imm = 0x1EAB
xorl %r14d, %r14d
movq %r14, 0x28(%rcx)
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x30(%rcx)
leaq 0x91a9(%rip), %rbx      # 0xc275
movq %rbx, %rdi
callq 0x44d1
movq 0xf1b5(%rip), %rcx      # 0x12290
movq %rax, 0x38(%rcx)
movq %rbx, %rdi
callq 0x44d1
movq 0xf1a2(%rip), %rcx      # 0x12290
movq %rax, 0x40(%rcx)
movq $0x4000, 0x48(%rcx)     # imm = 0x4000
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rcx)
callq 0x87cc
movq 0xf183(%rip), %rcx      # 0x12290
movq %rax, 0x160(%rcx)
callq 0x87cc
movq 0xf170(%rip), %rcx      # 0x12290
movq %rax, 0x168(%rcx)
callq 0x87cc
movq 0xf15d(%rip), %rcx      # 0x12290
movq %rax, 0x170(%rcx)
callq 0x87cc
movq 0xf14a(%rip), %rcx      # 0x12290
movq %rax, 0x178(%rcx)
callq 0x87cc
movq 0xf137(%rip), %rcx      # 0x12290
movq %rax, 0x180(%rcx)
xorl %edi, %edi
callq 0x22b0
movq 0xf122(%rip), %rcx      # 0x12290
movq %rax, 0x188(%rcx)
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x21b0
imulq $0x3e8, (%rbx), %rcx    # imm = 0x3E8
movabsq $0x20c49ba5e353f7cf, %rax # imm = 0x20C49BA5E353F7CF
imulq 0x8(%rbx)
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
addq %rcx, %rdx
movq 0xf0df(%rip), %rax      # 0x12290
movq %rdx, 0x190(%rax)
xorl %edi, %edi
callq 0x22b0
movq 0xf0ca(%rip), %rcx      # 0x12290
movq %rax, 0x198(%rcx)
xorl %edi, %edi
callq 0x22b0
movq 0xf0b5(%rip), %rcx      # 0x12290
movq %rax, 0x1a0(%rcx)
xorl %edi, %edi
callq 0x22b0
movq 0xf0a0(%rip), %rcx      # 0x12290
movq %rax, 0x1a8(%rcx)
movq %r14, 0x1b0(%rcx)
movl %r14d, 0x1b8(%rcx)
leaq 0x906f(%rip), %rdi      # 0xc27b
callq 0x44d1
movq 0xf078(%rip), %rcx      # 0x12290
movq %rax, 0x1c0(%rcx)
movq %r14, 0x1c8(%rcx)
leaq 0x905a(%rip), %rdi      # 0xc287
callq 0x44d1
movq 0xf057(%rip), %rcx      # 0x12290
movq %rax, 0x1d0(%rcx)
leaq 0x904c(%rip), %rax      # 0xc293
movq %rax, 0x1d8(%rcx)
movl %r14d, 0x1e0(%rcx)
movq 0x168(%rcx), %rax
leaq 0x5b49(%rip), %rdx      # 0x8dac
movq %rdx, 0x10(%rax)
movq 0x170(%rcx), %rax
leaq 0x6484(%rip), %rdx      # 0x96f9
movq %rdx, 0x10(%rax)
movq 0x178(%rcx), %rax
leaq 0x683c(%rip), %rdx      # 0x9ac3
movq %rdx, 0x10(%rax)
movq 0x180(%rcx), %rax
leaq 0x6e9d(%rip), %rcx      # 0xa136
movq %rcx, 0x10(%rax)
addq $0x18, %rsp
popq %rbx
popq %r14
retq