// File: /workspace/github_cpp_makefile_star2_O1/corecodec[P]coremake/coremake.c
// Function: findref
item* findref(const item* p)
{
	if (p->parent && (stricmp(p->parent->value,"project")==0 ||
		              stricmp(p->parent->value,"dep")==0 ||
		              stricmp(p->parent->value,"use")==0 ||
					  stricmp(p->parent->value,"useinclude")==0 ||
					  stricmp(p->parent->value,"usemerge")==0 ||
					  stricmp(p->parent->value,"usebuilt")==0))
	{
		item* v = item_find(getroot(p,"exe"),p->value);
		if (!v)
			v = item_find(getroot(p,"con"),p->value);
		if (!v)
			v = item_find(getroot(p,"lib"),p->value);
		if (!v)
			v = item_find(getroot(p,"dll"),p->value);
		if (!v)
			v = item_find(getroot(p,"group"),p->value);
		if (!v)
			v = item_find(getroot(p,"dll_csharp"),p->value);
		if (!v)
			v = item_find(getroot(p,"con_csharp"),p->value);
		if (!v)
			v = item_find(getroot(p,"exe_csharp"),p->value);
		if (!v)
			v = item_find(getroot(p,"lib_csharp"),p->value);
		if (!v)
			v = item_find(getroot(p,"exe_android"),p->value);
		if (!v)
			v = item_find(getroot(p,"dll_android"),p->value);
		return v;
	}
	return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x28fc
movq %rdi, %rbx
movq (%rax), %r14
leaq 0xfd38(%rip), %rsi      # 0x125c9
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2903
leaq 0xf834(%rip), %rsi      # 0x120d8
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2903
leaq 0xf825(%rip), %rsi      # 0x120dc
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2903
leaq 0xf816(%rip), %rsi      # 0x120e0
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2903
leaq 0xf80e(%rip), %rsi      # 0x120eb
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2903
leaq 0xf804(%rip), %rsi      # 0x120f4
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2903
xorl %eax, %eax
jmp 0x2ac5
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x2906
leaq 0x10803(%rip), %rsi     # 0x1311c
xorl %edx, %edx
callq 0x2745
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x26b0
testq %rax, %rax
jne 0x2958
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x2933
leaq 0x1082a(%rip), %rsi     # 0x13170
xorl %edx, %edx
callq 0x2745
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x26b0
testq %rax, %rax
jne 0x2985
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x2960
leaq 0x1082a(%rip), %rsi     # 0x1319d
xorl %edx, %edx
callq 0x2745
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x26b0
testq %rax, %rax
jne 0x29b2
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x298d
leaq 0x107db(%rip), %rsi     # 0x1317b
xorl %edx, %edx
callq 0x2745
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x26b0
testq %rax, %rax
jne 0x29df
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x29ba
leaq 0xf730(%rip), %rsi      # 0x120fd
xorl %edx, %edx
callq 0x2745
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x26b0
testq %rax, %rax
jne 0x2a0c
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x29e7
leaq 0xf709(%rip), %rsi      # 0x12103
xorl %edx, %edx
callq 0x2745
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x26b0
testq %rax, %rax
jne 0x2a39
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x2a14
leaq 0xf6e7(%rip), %rsi      # 0x1210e
xorl %edx, %edx
callq 0x2745
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x26b0
testq %rax, %rax
jne 0x2a66
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x2a41
leaq 0xf6c5(%rip), %rsi      # 0x12119
xorl %edx, %edx
callq 0x2745
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x26b0
testq %rax, %rax
jne 0x2a93
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x2a6e
leaq 0xf6a3(%rip), %rsi      # 0x12124
xorl %edx, %edx
callq 0x2745
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x26b0
testq %rax, %rax
jne 0x2ac0
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x2a9b
leaq 0xf681(%rip), %rsi      # 0x1212f
xorl %edx, %edx
callq 0x2745
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x26b0
testq %rax, %rax
je 0x2acd
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x2ad0
leaq 0xf658(%rip), %rsi      # 0x1213b
xorl %edx, %edx
callq 0x2745
movq (%rbx), %rsi
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x26b0