// File: /workspace/github_cpp_makefile_star2_O3/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 0x6d4c
movq %r14, %rdi
callq 0x14bb6
testb %al, %al
je 0x149bf
leaq 0x14148(%rip), %rsi     # 0x28abb
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x11c02
leaq 0x14587(%rip), %rsi     # 0x28f0e
leaq 0x20(%rsp), %rdi
callq 0x5510
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdi
je 0x14ab3
movq %rdi, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x14abd
leaq 0x48(%rsp), %rdi
movq %rsp, %rsi
movl %ebx, %edx
callq 0x136ee
leaq 0x209ab(%rip), %rdi     # 0x35380
movq %rsp, %rsi
callq 0x1313a
movq %rax, %rbx
leaq 0x48(%rsp), %rsi
movq %rax, %rdi
callq 0x5310
leaq 0x68(%rsp), %r14
movq 0x30(%rbx), %rax
movups (%r14), %xmm0
movups 0x20(%rbx), %xmm1
movups %xmm0, 0x20(%rbx)
movq 0x10(%r14), %rcx
movq %rcx, 0x30(%rbx)
leaq 0x20(%rsp), %r15
movaps %xmm1, (%r15)
movq %rax, 0x10(%r15)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
xorl %r13d, %r13d
movq %r13, 0x10(%r14)
movq %r15, %rdi
callq 0x12144
leaq 0x80(%rsp), %r12
movq 0x48(%rbx), %rax
movups (%r12), %xmm0
movups 0x38(%rbx), %xmm1
movups %xmm0, 0x38(%rbx)
movq 0x10(%r12), %rcx
movq %rcx, 0x48(%rbx)
movaps %xmm1, (%r15)
movq %rax, 0x10(%r15)
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
movq %r13, 0x10(%r12)
leaq 0x20(%rsp), %rdi
callq 0x12144
movl 0x18(%r12), %eax
movl %eax, 0x50(%rbx)
movq %r12, %rdi
callq 0x12144
movq %r14, %rdi
callq 0x12144
movq -0x38(%r12), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x14aa2
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5240
leaq 0x2090f(%rip), %rdi     # 0x353b8
movq %rsp, %rsi
callq 0x5140
jmp 0x14b1d
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq %r14, %rdi
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x30(%rsp), %rcx
movq -0x10(%rcx), %rax
cmpq %rcx, %rax
je 0x14af8
movq 0x30(%rsp), %rsi
incq %rsi
movq %rax, %rdi
callq 0x5240
movq 0x48(%rsp), %rdi
leaq 0x207b1(%rip), %rax     # 0x352b0
movl (%rax), %esi
callq 0x8030
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x14b1d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5240
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14b38
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 0x14b93
movq 0x58(%rsp), %rsi
jmp 0x14b82
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x11f70
jmp 0x14b93
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14b93
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x14b93
jmp 0x14b90
jmp 0x14b90
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14bae
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5240
movq %rbx, %rdi
callq 0x54c0