// File: /workspace/github_cpp_makefile_star2_O3/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 0x28a0
movq %rdi, %rbx
movq (%rax), %r14
leaq 0xed96(%rip), %rsi      # 0x115cb
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x28a7
leaq 0xe890(%rip), %rsi      # 0x110d8
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x28a7
leaq 0xe881(%rip), %rsi      # 0x110dc
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x28a7
leaq 0xe872(%rip), %rsi      # 0x110e0
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x28a7
leaq 0xe86a(%rip), %rsi      # 0x110eb
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x28a7
leaq 0xe860(%rip), %rsi      # 0x110f4
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x28a7
xorl %eax, %eax
jmp 0x2a85
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x28aa
leaq 0xf861(%rip), %rsi      # 0x1211e
xorl %edx, %edx
callq 0x270b
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x2694
testq %rax, %rax
jne 0x2a85
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x28db
leaq 0xf884(%rip), %rsi      # 0x12172
xorl %edx, %edx
callq 0x270b
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x2694
testq %rax, %rax
jne 0x2a85
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x290c
leaq 0xf880(%rip), %rsi      # 0x1219f
xorl %edx, %edx
callq 0x270b
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x2694
testq %rax, %rax
jne 0x2a85
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x293d
leaq 0xf82d(%rip), %rsi      # 0x1217d
xorl %edx, %edx
callq 0x270b
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x2694
testq %rax, %rax
jne 0x2a85
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x296e
leaq 0xe77c(%rip), %rsi      # 0x110fd
xorl %edx, %edx
callq 0x270b
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x2694
testq %rax, %rax
jne 0x2a85
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x299f
leaq 0xe751(%rip), %rsi      # 0x11103
xorl %edx, %edx
callq 0x270b
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x2694
testq %rax, %rax
jne 0x2a85
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x29d0
leaq 0xe72b(%rip), %rsi      # 0x1110e
xorl %edx, %edx
callq 0x270b
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x2694
testq %rax, %rax
jne 0x2a85
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x2a01
leaq 0xe705(%rip), %rsi      # 0x11119
xorl %edx, %edx
callq 0x270b
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x2694
testq %rax, %rax
jne 0x2a85
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x2a2e
leaq 0xe6e3(%rip), %rsi      # 0x11124
xorl %edx, %edx
callq 0x270b
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x2694
testq %rax, %rax
jne 0x2a85
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x2a5b
leaq 0xe6c1(%rip), %rsi      # 0x1112f
xorl %edx, %edx
callq 0x270b
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x2694
testq %rax, %rax
je 0x2a8d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rax
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x2a90
leaq 0xe698(%rip), %rsi      # 0x1113b
xorl %edx, %edx
callq 0x270b
movq (%rbx), %rsi
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2694