// File: corecodec[P]coremake/coremake.c
// Function: preprocess_builtlib
void preprocess_builtlib(item* p)
{
	size_t i;
	if (!p) return;
	for (i=0;i<item_childcount(p);++i)
	{
		item* builtlib = item_get(p->child[i],"builtlib",0);
        item* value = getvalue(builtlib);
        if (value)
        {
            ++stamp;
            preprocess_dependency_include(p->child[i],item_get(p->child[i],"useinclude",0),1,1);
            preprocess_dependency_include(p->child[i],item_get(p->child[i],"use",0),1,0);

            preprocess_uselib(getroot(p,"group"),p->child[i],value);
            preprocess_uselib(getroot(p,"exe"),p->child[i],value);
            preprocess_uselib(getroot(p,"dll"),p->child[i],value);
            preprocess_uselib(getroot(p,"con"),p->child[i],value);
            preprocess_uselib(getroot(p,"lib"),p->child[i],value);
            preprocess_uselib(getroot(p,"dll_csharp"),p->child[i],value);
            preprocess_uselib(getroot(p,"exe_csharp"),p->child[i],value);
            preprocess_uselib(getroot(p,"con_csharp"),p->child[i],value);
            preprocess_uselib(getroot(p,"lib_csharp"),p->child[i],value);
            preprocess_uselib(getroot(p,"exe_android"),p->child[i],value);
            preprocess_uselib(getroot(p,"dll_android"),p->child[i],value);
			item_delete(p->child[i]);
			--i;
        }
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0xea98
jmp 0xedac
movq $0x0, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
callq 0x25d0
movq %rax, %rcx
movq -0x28(%rbp), %rax
cmpq %rcx, %rax
jae 0xedac
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x7826(%rip), %rsi      # 0x162fe
xorl %edx, %edx
callq 0x28d0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2990
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0xed99
movl 0xbabf(%rip), %eax      # 0x1a5c0
addl $0x1, %eax
movl %eax, 0xbab6(%rip)      # 0x1a5c0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x75dc(%rip), %rsi      # 0x16111
xorl %edx, %edx
callq 0x28d0
movq -0x38(%rbp), %rdi
movq %rax, %rsi
movl $0x1, %ecx
movl %ecx, %edx
callq 0xd0f0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x7593(%rip), %rsi      # 0x1610d
xorl %edx, %edx
callq 0x28d0
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0xd0f0
movq -0x8(%rbp), %rdi
leaq 0x758f(%rip), %rsi      # 0x1612e
callq 0x2890
movq %rax, %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x20(%rbp), %rdx
callq 0xe410
movq -0x8(%rbp), %rdi
leaq 0x8667(%rip), %rsi      # 0x17232
callq 0x2890
movq %rax, %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x20(%rbp), %rdx
callq 0xe410
movq -0x8(%rbp), %rdi
leaq 0x869a(%rip), %rsi      # 0x17291
callq 0x2890
movq %rax, %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x20(%rbp), %rdx
callq 0xe410
movq -0x8(%rbp), %rdi
leaq 0x8663(%rip), %rsi      # 0x17286
callq 0x2890
movq %rax, %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x20(%rbp), %rdx
callq 0xe410
movq -0x8(%rbp), %rdi
leaq 0x8664(%rip), %rsi      # 0x172b3
callq 0x2890
movq %rax, %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x20(%rbp), %rdx
callq 0xe410
movq -0x8(%rbp), %rdi
leaq 0x74b9(%rip), %rsi      # 0x16134
callq 0x2890
movq %rax, %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x20(%rbp), %rdx
callq 0xe410
movq -0x8(%rbp), %rdi
leaq 0x74a3(%rip), %rsi      # 0x1614a
callq 0x2890
movq %rax, %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x20(%rbp), %rdx
callq 0xe410
movq -0x8(%rbp), %rdi
leaq 0x746c(%rip), %rsi      # 0x1613f
callq 0x2890
movq %rax, %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x20(%rbp), %rdx
callq 0xe410
movq -0x8(%rbp), %rdi
leaq 0x7456(%rip), %rsi      # 0x16155
callq 0x2890
movq %rax, %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x20(%rbp), %rdx
callq 0xe410
movq -0x8(%rbp), %rdi
leaq 0x7435(%rip), %rsi      # 0x16160
callq 0x2890
movq %rax, %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x20(%rbp), %rdx
callq 0xe410
movq -0x8(%rbp), %rdi
leaq 0x7415(%rip), %rsi      # 0x1616c
callq 0x2890
movq %rax, %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x20(%rbp), %rdx
callq 0xe410
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x3150
movq -0x10(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0xed9b
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0xeaa0
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)