// File: FreeSlave[P]vhlt/hlcsg/properties.cpp
// Function: properties_initialize(char const*)
void properties_initialize(const char* filename)
{
    if (filename == NULL)
    { return; }

    if (q_exists(filename))
    { Log("Loading null entity list from '%s'\n", filename); }
    else
    {
		Error("Could not find null entity list file '%s'\n", filename);
        return;
    }

	ifstream file(filename,ios::in);
	if(!file)
	{ 
		file.close();
		return; 
	}


	//begin reading list of items
	char line[MAX_VAL]; //MAX_VALUE //vluzacn
	memset(line,0,sizeof(char)*4096);
	while(!file.eof())
	{
		string str;
		getline(file,str);
		{ //--vluzacn
			char *s = strdup (str.c_str ());
			int i;
			for (i = 0; s[i] != '\0'; i++)
			{
				if (s[i] == '\n' || s[i] == '\r')
				{
					s[i] = '\0';
				}
			}
			str.assign (s);
			free (s);
		}
		if(str.size() < 1)
		{ continue; }
		g_invisible_items.insert(str);
	}
	file.close();
}

// Assembly:
subq $0x1288, %rsp           # imm = 0x1288
movq %rdi, 0x1280(%rsp)
cmpq $0x0, 0x1280(%rsp)
jne 0x1e95f
jmp 0x1ebd5
movq 0x1280(%rsp), %rdi
callq 0xafd0
testb $0x1, %al
jne 0x1e972
jmp 0x1e98a
movq 0x1280(%rsp), %rsi
leaq 0xfd9f(%rip), %rdi      # 0x2e720
movb $0x0, %al
callq 0xb5d0
jmp 0x1e9a5
movq 0x1280(%rsp), %rsi
leaq 0xfdab(%rip), %rdi      # 0x2e744
movb $0x0, %al
callq 0xba80
jmp 0x1ebd5
movq 0x1280(%rsp), %rsi
leaq 0x1078(%rsp), %rdi
movl $0x8, %edx
callq 0x46c0
movq 0x1078(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x1078(%rsp,%rax), %rdi
callq 0x41d0
movb %al, 0x1f(%rsp)
jmp 0x1e9de
movb 0x1f(%rsp), %al
testb $0x1, %al
jne 0x1e9e8
jmp 0x1ea20
leaq 0x1078(%rsp), %rdi
callq 0x40f0
jmp 0x1e9f7
movl $0x1, 0x1068(%rsp)
jmp 0x1ebc8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1070(%rsp)
movl %eax, 0x106c(%rsp)
jmp 0x1ebdd
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
movl $0x1000, %edx           # imm = 0x1000
callq 0x4210
movq 0x1078(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x1078(%rsp,%rax), %rdi
callq 0x46e0
movb %al, 0x1e(%rsp)
jmp 0x1ea50
movb 0x1e(%rsp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x1ea5f
jmp 0x1ebae
leaq 0x40(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x4520
movq 0x10(%rsp), %rsi
leaq 0x1078(%rsp), %rdi
callq 0x40e0
jmp 0x1ea82
leaq 0x40(%rsp), %rdi
callq 0x41a0
movq %rax, %rdi
callq 0x46b0
movq %rax, 0x38(%rsp)
movl $0x0, 0x34(%rsp)
movq 0x38(%rsp), %rax
movslq 0x34(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x1eb1c
movq 0x38(%rsp), %rax
movslq 0x34(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0xa, %eax
je 0x1eada
movq 0x38(%rsp), %rax
movslq 0x34(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0xd, %eax
jne 0x1eb0d
movq 0x38(%rsp), %rax
movslq 0x34(%rsp), %rcx
movb $0x0, (%rax,%rcx)
jmp 0x1eb0d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1070(%rsp)
movl %eax, 0x106c(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x4240
jmp 0x1ebdd
jmp 0x1eb0f
movl 0x34(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
jmp 0x1eaa1
movq 0x38(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x4720
jmp 0x1eb2d
movq 0x38(%rsp), %rdi
callq 0x4470
leaq 0x40(%rsp), %rdi
callq 0x42a0
cmpq $0x1, %rax
jae 0x1eb54
movl $0x2, 0x1068(%rsp)
jmp 0x1eb8d
leaq 0x61bcb05(%rip), %rdi   # 0x61db660
leaq 0x40(%rsp), %rsi
callq 0x1ec20
movb %dl, 0x7(%rsp)
movq %rax, 0x8(%rsp)
jmp 0x1eb70
movb 0x7(%rsp), %al
movq 0x8(%rsp), %rcx
movq %rcx, 0x20(%rsp)
movb %al, 0x28(%rsp)
movl $0x0, 0x1068(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x4240
movl 0x1068(%rsp), %eax
testl %eax, %eax
je 0x1eba9
jmp 0x1eba4
jmp 0x1ea31
jmp 0x1ea31
leaq 0x1078(%rsp), %rdi
callq 0x40f0
jmp 0x1ebbd
movl $0x0, 0x1068(%rsp)
leaq 0x1078(%rsp), %rdi
callq 0x4120
addq $0x1288, %rsp           # imm = 0x1288
retq
leaq 0x1078(%rsp), %rdi
callq 0x4120
movq 0x1070(%rsp), %rdi
callq 0x4650
nopw (%rax,%rax)