// File: /workspace/github_cpp_makefile_star2_O2/corecodec[P]coremake/coremake.c
// Function: eval3
char* eval3(const char** s,item* config,reader* file)
{
	int n;
	char* a;
	const char* s0;
	evalspace(s);
	if ((*s)[0] == '(')
	{
		char* a;
		*s += 1;
		a = eval0(s,config,file);

		evalspace(s);
		if ((*s)[0] != ')')
			syntax(file);
		*s += 1;
		return a;
	}
	else
	if ((*s)[0] == '"')
	{
		*s += 1;
		s0 = *s;
		for (n=0;(*s)[0] && (*s)[0]!='"';(*s)++,++n);
		if ((*s)[0]!='"')
			syntax(file);
		*s += 1;
		a = (char*)zalloc(n+1);
		memcpy(a,s0,n);
	}
	else
	if (isname((*s)[0]))
	{
		s0 = *s;
		for (n=0;(*s)[0] && isname((*s)[0]);(*s)++,++n);
		a = (char*)zalloc(n+1);
		memcpy(a,s0,n);

		if (stricmp(a,"defined")==0 && (*s)[0]=='(')
		{
			item* i;
			free(a);
			*s += 1;

			s0 = *s;
			for (n=0;(*s)[0] && (*s)[0]!=')';(*s)++,++n);
			a = (char*)zalloc(n+1);
			memcpy(a,s0,n);

			i = item_find(config,a);
			free(a);

			if ((*s)[0] != ')')
				syntax(file);
			*s += 1;

			a = bool2str(i && (i->flags & FLAG_DEFINED));
		}
	}
	else
		a = strdup("");

	return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0xc9c4
movq (%rbx), %r12
movzbl (%r12), %r13d
cmpl $0x22, %r13d
je 0xca5a
cmpl $0x28, %r13d
jne 0xca87
incq %r12
movq %r12, (%rbx)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0xcbe2
movq %rax, %r13
movq %rbx, %rdi
callq 0xc9c4
movq (%rbx), %rax
cmpb $0x29, (%rax)
jne 0xcbda
incq %rax
movq %rax, (%rbx)
jmp 0xcb4a
leaq 0x1(%r12), %r15
movq %r15, (%rbx)
addq $0x2, %r12
xorl %r13d, %r13d
movzbl -0x1(%r12), %eax
cmpl $0x22, %eax
je 0xcabd
testl %eax, %eax
je 0xcbda
movq %r12, (%rbx)
incq %r12
incq %r13
jmp 0xca69
movsbl %r13b, %edi
callq 0x3476
testl %eax, %eax
je 0xcb5c
pushq $0x1
popq %rbp
testb %r13b, %r13b
je 0xcae5
movsbl %r13b, %edi
callq 0x3476
testl %eax, %eax
je 0xcae5
leaq (%r12,%rbp), %rax
movq %rax, (%rbx)
movb (%r12,%rbp), %r13b
incq %rbp
jmp 0xca9b
movq %r12, (%rbx)
leal 0x1(%r13), %edi
callq 0x24e4
movq %rax, %rdi
movq %r15, %rsi
movq %r13, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2240
movl %ebp, %edi
callq 0x24e4
movq %rax, %r13
decq %rbp
movq %rax, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x2240
leaq 0x46e6(%rip), %rsi      # 0x111ed
movq %r13, %rdi
callq 0x2070
testl %eax, %eax
jne 0xcb4a
movq (%rbx), %rbp
cmpb $0x28, (%rbp)
jne 0xcb4a
movq %r13, %rdi
callq 0x2050
leaq 0x1(%rbp), %r12
movq %r12, (%rbx)
addq $0x2, %rbp
xorl %r13d, %r13d
movzbl -0x1(%rbp), %eax
testl %eax, %eax
je 0xcb76
cmpl $0x29, %eax
je 0xcb76
movq %rbp, (%rbx)
incq %rbp
incq %r13
jmp 0xcb32
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3d01(%rip), %rdi      # 0x10864
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2340
leal 0x1(%r13), %edi
callq 0x24e4
movq %rax, %rbp
movq %rax, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2240
movq %r15, %rdi
movq %rbp, %rsi
callq 0x262e
movq %rax, %r15
movq %rbp, %rdi
callq 0x2050
movq (%rbx), %rax
cmpb $0x29, (%rax)
jne 0xcbda
incq %rax
movq %rax, (%rbx)
testq %r15, %r15
je 0xcbc5
movl 0x30(%r15), %edi
shrl $0x5, %edi
andl $0x1, %edi
jmp 0xcbc7
xorl %edi, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc9ab
movq %r14, %rdi
callq 0x24c2