// File: /workspace/github_cpp_makefile_star2_O3/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 0xb85f
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rax
cmpq %rax, 0x20(%rdi)
je 0xb851
xorl %ebp, %ebp
leaq 0x5d54(%rip), %r14      # 0x112cf
leaq 0x5bb9(%rip), %r15      # 0x1113b
movq (%rax,%rbp,8), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x270b
testq %rax, %rax
je 0xb836
movq 0x18(%rax), %rcx
movq 0x20(%rax), %rax
cmpq %rax, %rcx
je 0xb836
movq (%rcx), %r12
testb $0x40, 0x30(%r12)
je 0xb5bb
addq $0x8, %rcx
jmp 0xb5a1
incl 0xb00f(%rip)            # 0x165d0
movq 0x18(%rbx), %rax
movq (%rax,%rbp,8), %r13
movq %r13, %rdi
leaq 0x5b0d(%rip), %rsi      # 0x110e0
xorl %edx, %edx
callq 0x270b
movq %r13, %rdi
movq %rax, %rsi
movl $0x1, %edx
movl $0x1, %ecx
callq 0xa232
movq 0x18(%rbx), %rax
movq (%rax,%rbp,8), %r13
movq %r13, %rdi
leaq 0x5adb(%rip), %rsi      # 0x110dc
xorl %edx, %edx
callq 0x270b
movq %r13, %rdi
movq %rax, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0xa232
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb61d
leaq 0x5acd(%rip), %rsi      # 0x110fd
xorl %edx, %edx
callq 0x270b
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb050
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb64d
leaq 0x6abe(%rip), %rsi      # 0x1211e
xorl %edx, %edx
callq 0x270b
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb050
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb67d
leaq 0x6aed(%rip), %rsi      # 0x1217d
xorl %edx, %edx
callq 0x270b
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb050
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb6ad
leaq 0x6ab2(%rip), %rsi      # 0x12172
xorl %edx, %edx
callq 0x270b
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb050
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb6dd
leaq 0x6aaf(%rip), %rsi      # 0x1219f
xorl %edx, %edx
callq 0x270b
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb050
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb70d
leaq 0x59e3(%rip), %rsi      # 0x11103
xorl %edx, %edx
callq 0x270b
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb050
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb73d
leaq 0x59c9(%rip), %rsi      # 0x11119
xorl %edx, %edx
callq 0x270b
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb050
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb76d
leaq 0x598e(%rip), %rsi      # 0x1110e
xorl %edx, %edx
callq 0x270b
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb050
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb79d
leaq 0x5974(%rip), %rsi      # 0x11124
xorl %edx, %edx
callq 0x270b
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb050
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb7cd
leaq 0x594f(%rip), %rsi      # 0x1112f
xorl %edx, %edx
callq 0x270b
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb050
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb7fd
movq %r15, %rsi
xorl %edx, %edx
callq 0x270b
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb050
movq 0x18(%rbx), %rax
movq (%rax,%rbp,8), %rdi
callq 0x2d5b
decq %rbp
incq %rbp
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %rbp
jb 0xb582
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq