// File: /workspace/github_cpp_makefile_star2_O1/lhydave[P]SysYCompilerLab/front/symtab.cpp
// Function: sysY_AST::reg_func(char const*, sysY_AST::data_t)
void reg_func(const char *_name, data_t ret_type)
{
	dbg_printf("%s return int: %d\n", _name, ret_type == INT);
	string name(_name);
	assert(!name.empty());
	if (defined(name))
	{
		string msg = "identifier '" + name + "' was already defined";
		yyerror(msg.c_str());
		return;
	}
	func_table[name] = func_entry(name, ret_type);
	now_func_name = name;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa0, %rsp
movl %esi, %ebx
movq %rdi, %rsi
movq %rsp, %r14
leaq 0x48(%rsp), %rdx
movq %r14, %rdi
callq 0x6eb8
movq %r14, %rdi
callq 0x14929
testb %al, %al
je 0x146fc
leaq 0x143d4(%rip), %rsi     # 0x28a84
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x11eb4
leaq 0x1481a(%rip), %rsi     # 0x28ede
leaq 0x20(%rsp), %rdi
callq 0x5510
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1482c
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x14833
leaq 0x48(%rsp), %rdi
movq %rsp, %rsi
movl %ebx, %edx
callq 0x1341a
leaq 0x20c6e(%rip), %rdi     # 0x35380
movq %rsp, %rsi
callq 0x12e54
movq %rax, %rbx
leaq 0x48(%rsp), %rsi
movq %rax, %rdi
callq 0x5310
leaq 0x68(%rsp), %r14
xorl %r13d, %r13d
leaq 0x20(%rsp), %r15
movq %r13, 0x10(%r15)
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
movq 0x20(%rbx), %rax
movups 0x28(%rbx), %xmm0
movq (%r14), %rcx
movq %rcx, 0x20(%rbx)
movq 0x8(%r14), %rcx
movq %rcx, 0x28(%rbx)
movq 0x10(%r14), %rcx
movq %rcx, 0x30(%rbx)
movq (%r15), %rcx
movq 0x8(%r15), %rdx
movq 0x10(%r15), %rsi
movq %rax, (%r15)
movups %xmm0, 0x8(%r15)
movq %rcx, (%r14)
movq %rdx, 0x8(%r14)
movq %rsi, 0x10(%r14)
movq %r15, %rdi
callq 0x123f6
leaq 0x80(%rsp), %r12
movq %r13, 0x10(%r15)
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
movq 0x38(%rbx), %rax
movups 0x40(%rbx), %xmm0
movq (%r12), %rcx
movq %rcx, 0x38(%rbx)
movq 0x8(%r12), %rcx
movq %rcx, 0x40(%rbx)
movq 0x10(%r12), %rcx
movq %rcx, 0x48(%rbx)
movq (%r15), %rcx
movq 0x8(%r15), %rdx
movq 0x10(%r15), %rsi
movq %rax, (%r15)
movups %xmm0, 0x8(%r15)
movq %rcx, (%r12)
movq %rdx, 0x8(%r12)
movq %rsi, 0x10(%r12)
leaq 0x20(%rsp), %rdi
callq 0x123f6
movl 0x18(%r12), %eax
movl %eax, 0x50(%rbx)
movq %r12, %rdi
callq 0x123f6
movq %r14, %rdi
callq 0x123f6
movq -0x38(%r12), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x1481b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5240
leaq 0x20b96(%rip), %rdi     # 0x353b8
movq %rsp, %rsi
callq 0x5140
jmp 0x14890
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14866
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5240
movq 0x48(%rsp), %rdi
leaq 0x20a3e(%rip), %rax     # 0x352b0
movl (%rax), %esi
callq 0x81dc
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x14890
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5240
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x148ab
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5240
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x14906
movq 0x58(%rsp), %rsi
jmp 0x148f5
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x12222
jmp 0x14906
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14906
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x14906
jmp 0x14903
jmp 0x14903
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14921
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5240
movq %rbx, %rdi
callq 0x54c0