// File: /workspace/github_cpp_makefile_star2_O3/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, %rbx
movq %rsi, %r15
movq %rdi, %r14
callq 0xe21c
movq (%r14), %r12
movzbl (%r12), %r13d
cmpl $0x22, %r13d
je 0xe2ba
cmpl $0x28, %r13d
jne 0xe2e7
incq %r12
movq %r12, (%r14)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xe46d
movq %rax, %r13
movq %r14, %rdi
callq 0xe21c
movq (%r14), %rax
cmpb $0x29, (%rax)
jne 0xe441
incq %rax
movq %rax, (%r14)
jmp 0xe3cc
leaq 0x1(%r12), %r15
movq %r15, (%r14)
addq $0x2, %r12
xorl %r13d, %r13d
movzbl -0x1(%r12), %eax
cmpl $0x22, %eax
je 0xe326
testl %eax, %eax
je 0xe441
movq %r12, (%r14)
incq %r12
incq %r13
jmp 0xe2c9
movsbl %r13b, %edi
callq 0x3704
testl %eax, %eax
je 0xe34e
movq %rbx, (%rsp)
testb %r13b, %r13b
je 0xe368
leaq 0x1(%r12), %rbx
xorl %ebp, %ebp
movsbl %r13b, %edi
callq 0x3704
testl %eax, %eax
je 0xe36a
leaq (%rbx,%rbp), %rax
movq %rax, (%r14)
movb (%rbx,%rbp), %r13b
incq %rbp
testb %r13b, %r13b
jne 0xe304
jmp 0xe36a
movq %r12, (%r14)
leal 0x1(%r13), %edi
callq 0x24fa
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
leaq 0x350f(%rip), %rdi      # 0x11864
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2340
xorl %ebp, %ebp
leal 0x1(%rbp), %edi
callq 0x24fa
movq %rax, %r13
movl %ebp, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2240
leaq 0x3e62(%rip), %rsi      # 0x121eb
movq %r13, %rdi
callq 0x2070
testl %eax, %eax
jne 0xe3cc
movq (%r14), %rbp
cmpb $0x28, (%rbp)
jne 0xe3cc
movq %r13, %rdi
callq 0x2050
leaq 0x1(%rbp), %r12
movq %r12, (%r14)
addq $0x2, %rbp
xorl %r13d, %r13d
movzbl -0x1(%rbp), %eax
testl %eax, %eax
je 0xe3de
cmpl $0x29, %eax
je 0xe3de
movq %rbp, (%r14)
incq %rbp
incq %r13
jmp 0xe3b4
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leal 0x1(%r13), %edi
callq 0x24fa
movq %rax, %rbp
movq %rax, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2240
movq %r15, %rdi
movq %rbp, %rsi
callq 0x2694
movq %rax, %r15
movq %rbp, %rdi
callq 0x2050
movq (%r14), %rax
cmpb $0x29, (%rax)
jne 0xe464
incq %rax
movq %rax, (%r14)
testq %r15, %r15
je 0xe429
movl 0x30(%r15), %eax
testb $0x20, %al
jne 0xe435
leaq 0x3c49(%rip), %rdi      # 0x12079
jmp 0xe355
leaq 0x302d(%rip), %rdi      # 0x11469
jmp 0xe355
movq 0x38(%rbx), %rsi
movl 0xc(%rbx), %edx
movq 0x28(%rbx), %rcx
leaq 0x2c1d(%rip), %rdi      # 0x11070
xorl %eax, %eax
callq 0x2140
movl $0x1, %edi
callq 0x2320
movq (%rsp), %rdi
callq 0x24d6