// File: /workspace/github_c_makefile_star2_O3/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 0x5128
movq %rdi, %r14
movq 0x8(%rdi), %r12
movsbl (%r12), %ebx
movl %ebx, %edi
callq 0x4440
cmpl $0x5f, %ebx
je 0x4f18
testl %eax, %eax
je 0x5142
xorl %r15d, %r15d
movl $0x41, %edi
xorl %ebx, %ebx
callq 0x4030
movq %rax, %rbx
movl $0x40, %r13d
xorl %r15d, %r15d
movb (%r12,%r15), %bpl
movsbl %bpl, %edi
callq 0x4440
testl %eax, %eax
je 0x4f4c
cmpq $0x2, %r13
jae 0x4f58
jmp 0x4f64
cmpb $0x5f, %bpl
jne 0x4f64
cmpq $0x1, %r13
jbe 0x4f64
movb %bpl, (%rbx,%r15)
decq %r13
incq %r15
jmp 0x4f33
movb $0x0, (%rbx,%r15)
cmpq $0x3f, %r15
je 0x5179
addq %r15, %r12
movb (%r12), %bpl
movsbl %bpl, %edi
callq 0x4080
testl %eax, %eax
je 0x4f91
movb 0x1(%r12), %bpl
incq %r12
jmp 0x4f7a
cmpb $0x3d, %bpl
jne 0x5198
movb 0x1(%r12), %bpl
movsbl %bpl, %edi
callq 0x4080
testl %eax, %eax
je 0x4fc0
movb 0x2(%r12), %bpl
movsbl %bpl, %edi
callq 0x4080
incq %r12
jmp 0x4fa9
cmpb $0x22, %bpl
jne 0x51b9
xorl %r15d, %r15d
movl $0x201, %edi            # imm = 0x201
callq 0x4030
addq $0x2, %r12
movq %rax, %r15
movb (%r12), %al
testb %al, %al
je 0x50ee
movl $0x1ff, %edx            # imm = 0x1FF
movq %r15, %rcx
cmpb $0x22, %al
je 0x503c
incq %r12
movb %al, (%rcx)
incq %rcx
movb (%r12), %al
leaq -0x1(%rdx), %rsi
testb %al, %al
je 0x5013
cmpq $0x1, %rdx
movq %rsi, %rdx
ja 0x4ff2
movb $0x0, (%rcx)
testq %rsi, %rsi
jne 0x50ee
xorl %r15d, %r15d
leaq 0x43ab(%rip), %rsi      # 0x93d4
leaq 0x43d4(%rip), %rdx      # 0x9404
movl $0x4b, %edi
xorl %eax, %eax
callq 0x55ac
movb $0x0, (%rcx)
movb 0x1(%r12), %bpl
movsbl %bpl, %edi
callq 0x4080
testl %eax, %eax
je 0x5064
movb 0x2(%r12), %bpl
movsbl %bpl, %edi
callq 0x4080
incq %r12
jmp 0x504d
cmpb $0x3b, %bpl
jne 0x51da
movb 0x2(%r12), %bpl
movsbl %bpl, %edi
callq 0x4080
testl %eax, %eax
je 0x5098
addq $0x3, %r12
movb (%r12), %bpl
movsbl %bpl, %edi
callq 0x4080
incq %r12
testl %eax, %eax
jne 0x5084
testb %bpl, %bpl
je 0x50aa
movzbl %bpl, %eax
cmpl $0x23, %eax
jne 0x51f8
movq %rbx, %rdi
callq *0x18(%r14)
testb %al, %al
je 0x50d0
movq %rbx, %rdi
movq %r15, %rsi
callq *0x20(%r14)
movl %eax, %ebp
callq 0x4050
movl %ebp, (%rax)
testl %ebp, %ebp
jne 0x5216
movq %rbx, %rdi
callq 0x45b0
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x45b0
movq %r15, %rdi
callq 0x45b0
movl $0x10, %edi
callq 0x41f0
movq %rax, %r15
leaq 0x41f5(%rip), %rsi      # 0x92ff
movq %rax, %rdi
callq 0x4190
movq 0x8ecf(%rip), %rsi      # 0xdfe8
movq 0x8e90(%rip), %rdx      # 0xdfb0
movq %r15, %rdi
callq 0x4760
leaq 0x4cfe(%rip), %rsi      # 0x9e2d
leaq 0x4170(%rip), %rdx      # 0x92a6
movl $0x16, %edi
xorl %eax, %eax
callq 0x55ac
movl $0x10, %edi
callq 0x41f0
movq %rax, %rbp
leaq 0x415c(%rip), %rsi      # 0x92b2
movq %rax, %rdi
callq 0x4190
xorl %r15d, %r15d
movq 0x8e80(%rip), %rsi      # 0xdfe8
movq 0x8e41(%rip), %rdx      # 0xdfb0
xorl %ebx, %ebx
movq %rbp, %rdi
callq 0x4760
xorl %r15d, %r15d
leaq 0x4251(%rip), %rsi      # 0x93d4
leaq 0x426a(%rip), %rdx      # 0x93f4
xorl %ebx, %ebx
movl $0x4b, %edi
xorl %eax, %eax
callq 0x55ac
movl $0x10, %edi
callq 0x41f0
movq %rax, %r15
leaq 0x4123(%rip), %rsi      # 0x92cf
movq %rax, %rdi
callq 0x4190
jmp 0x5112
movl $0x10, %edi
callq 0x41f0
movq %rax, %r15
leaq 0x411f(%rip), %rsi      # 0x92ec
movq %rax, %rdi
callq 0x4190
jmp 0x5112
movl $0x10, %edi
callq 0x41f0
movq %rax, %rbp
leaq 0x4127(%rip), %rsi      # 0x9315
movq %rax, %rdi
callq 0x4190
jmp 0x5232
movl $0x10, %edi
callq 0x41f0
movq %rax, %rbp
leaq 0x411d(%rip), %rsi      # 0x9329
movq %rax, %rdi
callq 0x4190
jmp 0x5232
movl $0x10, %edi
callq 0x41f0
movq %rax, %rbp
leaq 0x4124(%rip), %rsi      # 0x934e
movq %rax, %rdi
callq 0x4190
movq 0x8daf(%rip), %rsi      # 0xdfe8
movq 0x8d70(%rip), %rdx      # 0xdfb0
movq %rbp, %rdi
callq 0x4760
jmp 0x524e
jmp 0x524e
jmp 0x5292
movq %rdx, %r12
movq %rax, %r13
movq %rbp, %rdi
callq 0x42f0
jmp 0x5298
jmp 0x5277
jmp 0x5277
movq %rdx, %r12
movq %rax, %r13
movq %rbp, %rdi
callq 0x42f0
xorl %r15d, %r15d
xorl %ebx, %ebx
jmp 0x5298
movq %rdx, %r12
movq %rax, %r13
movq %r15, %rdi
callq 0x42f0
jmp 0x528d
movq %rdx, %r12
movq %rax, %r13
xorl %r15d, %r15d
jmp 0x5298
movq %rdx, %r12
movq %rax, %r13
movq %r13, %rdi
cmpl $0x3, %r12d
jne 0x52eb
callq 0x41a0
movq %rax, %r14
movq 0x8d30(%rip), %rdi      # 0xdfe0
leaq 0x410d(%rip), %rsi      # 0x93c4
movl $0xf, %edx
callq 0x4500
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq 0x8d0f(%rip), %rdi      # 0xdfe0
movq %rax, %rsi
callq 0x4400
movq %rax, %rdi
movl $0xa, %esi
callq 0x4510
jmp 0x5384
callq 0x41a0
cmpl $0x2, %r12d
jne 0x5371
movq %rax, %r13
leaq 0x6(%rsp), %rsi
movb $0x9, (%rsi)
movq 0x8cd8(%rip), %rdi      # 0xdfe0
movl $0x1, %edx
callq 0x4500
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x4400
leaq 0x7(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x4500
movq (%r13), %rax
movq %r13, %rdi
callq *0x10(%rax)
leaq 0x400a(%rip), %rsi      # 0x934e
movq %rax, %rdi
callq 0x4640
testl %eax, %eax
jne 0x5394
callq 0x4050
movl (%rax), %edi
movq (%r14), %rdx
movq 0x10(%r14), %rcx
leaq 0x4025(%rip), %rsi      # 0x938a
movl %edi, %r8d
xorl %eax, %eax
callq 0x588f
jmp 0x5384
movq 0x8c68(%rip), %rdi      # 0xdfe0
leaq 0x3fdd(%rip), %rsi      # 0x935c
callq 0x4400
movq %rbx, %rdi
movq %r15, %rsi
callq 0x53ec
callq 0x4230
movq (%r14), %r12
movq 0x10(%r14), %r14
movq (%r13), %rax
movq %r13, %rdi
callq *0x10(%rax)
leaq 0x4006(%rip), %rsi      # 0x93b2
xorl %edi, %edi
movq %r12, %rdx
movq %r14, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x588f
jmp 0x5384
movq %rax, %rbx
callq 0x4730
jmp 0x53dc
movq %rax, %rbx
callq 0x4730
jmp 0x53dc
movq %rax, %rbx
callq 0x4730
movq %rbx, %rdi
callq 0x4790
movq %rax, %rdi
callq 0x550f