// File: /workspace/github_c_makefile_star2_O2/uhlin[P]enhanced-duc/source/interpreter.cpp
// Function: Interpreter
void
Interpreter(const struct Interpreter_in *in)
{
	char	*id = nullptr;
	char	*arg = nullptr;

	if (in == nullptr)
		fatal(EINVAL, "%s", __func__);

	try {
		const char *cp = addrof(in->line[0]);

		if (!isalnum(*cp) && *cp != '_')
			throw std::runtime_error("unexpected leading "
			    "character");
		id = copy_identifier(cp);
		eatwhite(&cp);
		if (*cp++ != '=') {
			throw std::runtime_error("expected assignment "
			    "operator");
		}

		eatwhite(&cp);
		if (*cp++ != ArgBegin)
			throw std::runtime_error("expected arg begin");
		else if ((arg = copy_argument(cp)) == nullptr)
			throw std::runtime_error("unterminated argument");

		eatwhite(&cp);
		if (*cp++ != ';')
			throw std::runtime_error("no line terminator!");

		eatwhite(&cp);
		if (*cp && *cp != CommentChar) {
			throw std::runtime_error("implicit data after "
			    "line terminator!");
		} else if (!(in->validator_func(id))) {
#if IGNORE_UNRECOGNIZED_IDENTIFIERS
			/* ignore */;
#else
			throw std::runtime_error("no such identifier");
#endif
		} else if ((errno = in->install_func(id, arg)) != 0) {
			throw std::runtime_error("install error");
		}
	} catch (const std::bad_alloc &e) {
		std::cerr << "out of memory: " << e.what() << '\n';
		clean_up(id, arg);
		abort();
	} catch (const std::runtime_error &e) {
		std::cerr << '\t' << in->line << '\n';

		if (strings_match(e.what(), "install error")) {
			log_warn(errno, "%s:%ld: error: "
			    "install_func returned %d", in->path, in->line_num,
			    errno);
		} else {
			log_warn(0, "%s:%ld: error: %s", in->path, in->line_num,
			    e.what());
		}

		clean_up(id, arg);
		abort();
	} catch (...) {
		std::cerr << "unknown exception  --  should not be reached\n";
		clean_up(id, arg);
		abort();
	}

	clean_up(id, arg);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x509f
movq %rdi, %r14
movq 0x8(%rdi), %r12
movsbl (%r12), %ebx
movl %ebx, %edi
callq 0x4440
cmpl $0x5f, %ebx
je 0x4edc
testl %eax, %eax
je 0x50b7
xorl %r15d, %r15d
pushq $0x41
popq %rdi
xorl %ebx, %ebx
callq 0x4030
movq %rax, %rbx
pushq $0x40
popq %r13
xorl %r15d, %r15d
movb (%r12,%r15), %bpl
movsbl %bpl, %edi
callq 0x4440
testl %eax, %eax
je 0x4f0c
cmpq $0x2, %r13
jae 0x4f18
jmp 0x4f24
cmpb $0x5f, %bpl
jne 0x4f24
cmpq $0x1, %r13
jbe 0x4f24
movb %bpl, (%rbx,%r15)
decq %r13
incq %r15
jmp 0x4ef3
addq %r15, %r12
movq %r12, (%rsp)
movb $0x0, (%rbx,%r15)
cmpq $0x3f, %r15
je 0x50ec
movq %rsp, %r15
movq %r15, %rdi
callq 0x5337
movq (%r15), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%r15)
cmpb $0x3d, (%rax)
jne 0x5109
movq %rsp, %r15
movq %r15, %rdi
callq 0x5337
movq (%r15), %r13
cmpb $0x22, (%r13)
jne 0x5128
xorl %r15d, %r15d
movl $0x201, %edi            # imm = 0x201
callq 0x4030
movq %rax, %r15
pushq $-0x2
popq %rcx
xorl %eax, %eax
movb 0x1(%r13,%rax), %dl
testb %dl, %dl
je 0x503f
leaq 0x202(%rcx), %rsi
cmpq $0x2, %rsi
jb 0x503f
cmpb $0x22, %dl
je 0x4fb5
movb %dl, (%r15,%rax)
decq %rcx
incq %rax
jmp 0x4f86
subq %rcx, %r13
movq %rsp, %r12
movq %r13, (%r12)
movb $0x0, (%r15,%rax)
movq %r12, %rdi
callq 0x5337
movq (%r12), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%r12)
cmpb $0x3b, (%rax)
jne 0x5147
movq %rsp, %r12
movq %r12, %rdi
callq 0x5337
movq (%r12), %rax
movzbl (%rax), %eax
testl %eax, %eax
je 0x5000
cmpl $0x23, %eax
jne 0x5163
movq %rbx, %rdi
callq *0x18(%r14)
testb %al, %al
je 0x5026
movq %rbx, %rdi
movq %r15, %rsi
callq *0x20(%r14)
movl %eax, %ebp
callq 0x4050
movl %ebp, (%rax)
testl %ebp, %ebp
jne 0x517f
movq %rbx, %rdi
movq %r15, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x535f
movb $0x0, (%r15,%rax)
cmpq $0x1ff, %rax            # imm = 0x1FF
jne 0x5067
xorl %r15d, %r15d
leaq 0x439e(%rip), %rsi      # 0x93f4
leaq 0x43c7(%rip), %rdx      # 0x9424
pushq $0x4b
popq %rdi
xorl %eax, %eax
callq 0x5513
movq %r15, %rdi
callq 0x45a0
pushq $0x10
popq %rdi
callq 0x41f0
movq %rax, %r15
leaq 0x429e(%rip), %rsi      # 0x931f
movq %rax, %rdi
callq 0x4190
movq 0x8f58(%rip), %rsi      # 0xdfe8
movq 0x8f19(%rip), %rdx      # 0xdfb0
movq %r15, %rdi
callq 0x4750
leaq 0x4da7(%rip), %rsi      # 0x9e4d
leaq 0x4219(%rip), %rdx      # 0x92c6
pushq $0x16
popq %rdi
xorl %eax, %eax
callq 0x5513
pushq $0x10
popq %rdi
callq 0x41f0
movq %rax, %rbp
leaq 0x4209(%rip), %rsi      # 0x92d2
movq %rax, %rdi
callq 0x4190
xorl %r15d, %r15d
movq 0x8f0d(%rip), %rsi      # 0xdfe8
movq 0x8ece(%rip), %rdx      # 0xdfb0
xorl %ebx, %ebx
movq %rbp, %rdi
callq 0x4750
xorl %r15d, %r15d
leaq 0x42fe(%rip), %rsi      # 0x93f4
leaq 0x4317(%rip), %rdx      # 0x9414
pushq $0x4b
popq %rdi
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x5513
pushq $0x10
popq %rdi
callq 0x41f0
movq %rax, %r15
leaq 0x41d4(%rip), %rsi      # 0x92ef
movq %rax, %rdi
callq 0x4190
jmp 0x5089
pushq $0x10
popq %rdi
callq 0x41f0
movq %rax, %r15
leaq 0x41d2(%rip), %rsi      # 0x930c
movq %rax, %rdi
callq 0x4190
jmp 0x5089
pushq $0x10
popq %rdi
callq 0x41f0
movq %rax, %rbp
leaq 0x41dc(%rip), %rsi      # 0x9335
movq %rax, %rdi
callq 0x4190
jmp 0x5199
pushq $0x10
popq %rdi
callq 0x41f0
movq %rax, %rbp
leaq 0x41d4(%rip), %rsi      # 0x9349
movq %rax, %rdi
callq 0x4190
jmp 0x5199
pushq $0x10
popq %rdi
callq 0x41f0
movq %rax, %rbp
leaq 0x41dd(%rip), %rsi      # 0x936e
movq %rax, %rdi
callq 0x4190
movq 0x8e48(%rip), %rsi      # 0xdfe8
movq 0x8e09(%rip), %rdx      # 0xdfb0
movq %rbp, %rdi
callq 0x4750
jmp 0x51b5
jmp 0x51b5
jmp 0x51f9
movq %rdx, %r12
movq %rax, %r13
movq %rbp, %rdi
callq 0x42f0
jmp 0x51ff
jmp 0x51de
jmp 0x51de
movq %rdx, %r12
movq %rax, %r13
movq %rbp, %rdi
callq 0x42f0
xorl %r15d, %r15d
xorl %ebx, %ebx
jmp 0x51ff
movq %rdx, %r12
movq %rax, %r13
movq %r15, %rdi
callq 0x42f0
jmp 0x51f4
movq %rdx, %r12
movq %rax, %r13
xorl %r15d, %r15d
jmp 0x51ff
movq %rdx, %r12
movq %rax, %r13
movq %r13, %rdi
cmpl $0x3, %r12d
jne 0x524a
callq 0x41a0
movq %rax, %r14
movq 0x8dc9(%rip), %rdi      # 0xdfe0
leaq 0x41c6(%rip), %rsi      # 0x93e4
callq 0x4400
movq %rax, %r12
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq %r12, %rdi
movq %rax, %rsi
callq 0x4400
pushq $0xa
popq %rsi
movq %rax, %rdi
callq 0x4500
jmp 0x52cf
callq 0x41a0
cmpl $0x2, %r12d
jne 0x52bc
movq %rax, %r13
movq 0x8d81(%rip), %rdi      # 0xdfe0
pushq $0x9
popq %rsi
callq 0x4500
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x4400
pushq $0xa
popq %rsi
movq %rax, %rdi
callq 0x4500
movq (%r13), %rax
movq %r13, %rdi
callq *0x10(%rax)
leaq 0x40df(%rip), %rsi      # 0x936e
movq %rax, %rdi
callq 0x537d
testb %al, %al
je 0x52df
callq 0x4050
movl (%rax), %edi
movq (%r14), %rdx
movq 0x10(%r14), %rcx
leaq 0x40fa(%rip), %rsi      # 0x93aa
movl %edi, %r8d
xorl %eax, %eax
callq 0x57ea
jmp 0x52cf
movq 0x8d1d(%rip), %rdi      # 0xdfe0
leaq 0x40b2(%rip), %rsi      # 0x937c
callq 0x4400
movq %rbx, %rdi
movq %r15, %rsi
callq 0x535f
callq 0x4230
movq (%r14), %r12
movq 0x10(%r14), %r14
movq (%r13), %rax
movq %r13, %rdi
callq *0x10(%rax)
leaq 0x40db(%rip), %rsi      # 0x93d2
xorl %edi, %edi
movq %r12, %rdx
movq %r14, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x57ea
jmp 0x52cf
movq %rax, %rbx
callq 0x4720
jmp 0x5327
movq %rax, %rbx
callq 0x4720
jmp 0x5327
movq %rax, %rbx
callq 0x4720
movq %rbx, %rdi
callq 0x4780
movq %rax, %rdi
callq 0x547c