// File: /workspace/github_cpp_makefile_star2_O2/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:
testq %rdi, %rdi
je 0xa4c5
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r15d, %r15d
leaq 0x6039(%rip), %r14      # 0x102cf
pushq $0x1
popq %rbp
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r15
jae 0xa4b7
movq (%rax,%r15,8), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x26a2
movq %rax, %rdi
callq 0x270e
testq %rax, %rax
je 0xa4af
movq %rax, %r12
incl 0xc2f7(%rip)            # 0x165d0
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %r13
movq %r13, %rdi
leaq 0x5df5(%rip), %rsi      # 0x100e0
xorl %edx, %edx
callq 0x26a2
movq %r13, %rdi
movq %rax, %rsi
movl %ebp, %edx
movl %ebp, %ecx
callq 0x9062
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %r13
movq %r13, %rdi
leaq 0x5dc9(%rip), %rsi      # 0x100dc
xorl %edx, %edx
callq 0x26a2
movq %r13, %rdi
movq %rax, %rsi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x9062
movq %rbx, %rdi
leaq 0x5dca(%rip), %rsi      # 0x100fd
callq 0x268c
movq 0x18(%rbx), %rcx
movq (%rcx,%r15,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x9d87
movq %rbx, %rdi
leaq 0x6dc9(%rip), %rsi      # 0x1111e
callq 0x268c
movq 0x18(%rbx), %rcx
movq (%rcx,%r15,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x9d87
movq %rbx, %rdi
leaq 0x6e06(%rip), %rsi      # 0x1117d
callq 0x268c
movq 0x18(%rbx), %rcx
movq (%rcx,%r15,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x9d87
movq %rbx, %rdi
leaq 0x6dd9(%rip), %rsi      # 0x11172
callq 0x268c
movq 0x18(%rbx), %rcx
movq (%rcx,%r15,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x9d87
movq %rbx, %rdi
leaq 0x6de4(%rip), %rsi      # 0x1119f
callq 0x268c
movq 0x18(%rbx), %rcx
movq (%rcx,%r15,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x9d87
movq %rbx, %rdi
leaq 0x5d26(%rip), %rsi      # 0x10103
callq 0x268c
movq 0x18(%rbx), %rcx
movq (%rcx,%r15,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x9d87
movq %rbx, %rdi
leaq 0x5d1a(%rip), %rsi      # 0x10119
callq 0x268c
movq 0x18(%rbx), %rcx
movq (%rcx,%r15,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x9d87
movq %rbx, %rdi
leaq 0x5ced(%rip), %rsi      # 0x1010e
callq 0x268c
movq 0x18(%rbx), %rcx
movq (%rcx,%r15,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x9d87
movq %rbx, %rdi
leaq 0x5ce1(%rip), %rsi      # 0x10124
callq 0x268c
movq 0x18(%rbx), %rcx
movq (%rcx,%r15,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x9d87
movq %rbx, %rdi
leaq 0x5cca(%rip), %rsi      # 0x1012f
callq 0x268c
movq 0x18(%rbx), %rcx
movq (%rcx,%r15,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x9d87
movq %rbx, %rdi
leaq 0x5cb4(%rip), %rsi      # 0x1013b
callq 0x268c
movq 0x18(%rbx), %rcx
movq (%rcx,%r15,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x9d87
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x2be9
decq %r15
incq %r15
jmp 0xa299
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq