// File: /workspace/github_cpp_makefile_star2_O1/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 0xe27e
movq (%r14), %r12
movzbl (%r12), %eax
cmpl $0x22, %eax
je 0xe31a
cmpl $0x28, %eax
jne 0xe347
incq %r12
movq %r12, (%r14)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xe4d1
movq %rax, %r13
movq %r14, %rdi
callq 0xe27e
movq (%r14), %rax
cmpb $0x29, (%rax)
jne 0xe4a6
incq %rax
movq %rax, (%r14)
jmp 0xe42c
leaq 0x1(%r12), %r15
movq %r15, (%r14)
addq $0x2, %r12
xorl %r13d, %r13d
movzbl -0x1(%r12), %eax
cmpl $0x22, %eax
je 0xe386
testl %eax, %eax
je 0xe4a6
movq %r12, (%r14)
incq %r12
incq %r13
jmp 0xe329
movsbl %al, %edi
callq 0x3741
testl %eax, %eax
je 0xe3ae
movq (%r14), %r13
movb (%r13), %al
testb %al, %al
je 0xe3c8
incq %r13
xorl %ebp, %ebp
movsbl %al, %edi
callq 0x3741
testl %eax, %eax
je 0xe3ca
movq %r13, %rax
addq %rbp, %rax
movq %rax, (%r14)
movb (%r13,%rbp), %al
incq %rbp
testb %al, %al
jne 0xe363
jmp 0xe3ca
movq %r12, (%r14)
leal 0x1(%r13), %edi
callq 0x250a
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 0x44ad(%rip), %rdi      # 0x12862
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2350
xorl %ebp, %ebp
leal 0x1(%rbp), %edi
callq 0x250a
movq %rax, %r13
movl %ebp, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2240
leaq 0x4e07(%rip), %rsi      # 0x131f0
movq %r13, %rdi
callq 0x2070
testl %eax, %eax
jne 0xe42c
movq (%r14), %rbp
cmpb $0x28, (%rbp)
jne 0xe42c
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 0xe43e
cmpl $0x29, %eax
je 0xe43e
movq %rbp, (%r14)
incq %rbp
incq %r13
jmp 0xe414
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leal 0x1(%r13), %edi
callq 0x250a
movq %rax, %rbp
movq %rax, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2240
movq %r15, %rdi
movq %rbp, %rsi
callq 0x26b0
movq %rax, %r15
movq %rbp, %rdi
callq 0x2050
movq (%r14), %rax
cmpb $0x29, (%rax)
jne 0xe4c9
incq (%r14)
testq %r15, %r15
je 0xe49a
testb $0x20, 0x30(%r15)
leaq 0x4bed(%rip), %rax      # 0x13077
leaq 0x3fd6(%rip), %rdi      # 0x12467
cmoveq %rax, %rdi
jmp 0xe3b5
leaq 0x4bd6(%rip), %rdi      # 0x13077
jmp 0xe3b5
movq 0x38(%rbx), %rsi
movl 0xc(%rbx), %edx
movq 0x28(%rbx), %rcx
leaq 0x3bb8(%rip), %rdi      # 0x12070
xorl %eax, %eax
callq 0x2140
movl $0x1, %edi
callq 0x2330
movq %rbx, %rdi
callq 0x24e6