// File: /workspace/github_cpp_makefile_star2_O1/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 0xb8b8
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %rax
cmpq 0x18(%rdi), %rax
je 0xb8aa
xorl %ebp, %ebp
leaq 0x6d0d(%rip), %r14      # 0x122cd
leaq 0x6b74(%rip), %r15      # 0x1213b
movq 0x18(%rbx), %rax
movq (%rax,%rbp,8), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2745
testq %rax, %rax
je 0xb60b
movq 0x18(%rax), %rcx
movq 0x20(%rax), %rdx
cmpq %rdx, %rcx
sete %al
je 0xb607
movq (%rcx), %r12
testb $0x40, 0x30(%r12)
je 0xb607
addq $0x8, %rcx
cmpq %rdx, %rcx
sete %al
jne 0xb5ee
jmp 0xb607
testb $0x1, %al
je 0xb60e
xorl %r12d, %r12d
testq %r12, %r12
je 0xb892
incl 0xbfb3(%rip)            # 0x175d0
movq 0x18(%rbx), %rax
movq (%rax,%rbp,8), %r13
movq %r13, %rdi
leaq 0x6ab1(%rip), %rsi      # 0x120e0
xorl %edx, %edx
callq 0x2745
movq %r13, %rdi
movq %rax, %rsi
movl $0x1, %edx
movl $0x1, %ecx
callq 0xa207
movq 0x18(%rbx), %rax
movq (%rax,%rbp,8), %r13
movq %r13, %rdi
leaq 0x6a7f(%rip), %rsi      # 0x120dc
xorl %edx, %edx
callq 0x2745
movq %r13, %rdi
movq %rax, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0xa207
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb679
leaq 0x6a71(%rip), %rsi      # 0x120fd
xorl %edx, %edx
callq 0x2745
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb09b
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb6a9
leaq 0x7a60(%rip), %rsi      # 0x1311c
xorl %edx, %edx
callq 0x2745
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb09b
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb6d9
leaq 0x7a8f(%rip), %rsi      # 0x1317b
xorl %edx, %edx
callq 0x2745
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb09b
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb709
leaq 0x7a54(%rip), %rsi      # 0x13170
xorl %edx, %edx
callq 0x2745
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb09b
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb739
leaq 0x7a51(%rip), %rsi      # 0x1319d
xorl %edx, %edx
callq 0x2745
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb09b
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb769
leaq 0x6987(%rip), %rsi      # 0x12103
xorl %edx, %edx
callq 0x2745
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb09b
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb799
leaq 0x696d(%rip), %rsi      # 0x12119
xorl %edx, %edx
callq 0x2745
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb09b
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb7c9
leaq 0x6932(%rip), %rsi      # 0x1210e
xorl %edx, %edx
callq 0x2745
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb09b
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb7f9
leaq 0x6918(%rip), %rsi      # 0x12124
xorl %edx, %edx
callq 0x2745
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb09b
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb829
leaq 0x68f3(%rip), %rsi      # 0x1212f
xorl %edx, %edx
callq 0x2745
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb09b
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xb859
movq %r15, %rsi
xorl %edx, %edx
callq 0x2745
movq 0x18(%rbx), %rcx
movq (%rcx,%rbp,8), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0xb09b
movq 0x18(%rbx), %rax
movq (%rax,%rbp,8), %rdi
callq 0x2da0
decq %rbp
incq %rbp
movq 0x20(%rbx), %rax
subq 0x18(%rbx), %rax
sarq $0x3, %rax
cmpq %rax, %rbp
jb 0xb5c7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq