// File: /workspace/github_cpp_makefile_star2_O1/lhydave[P]SysYCompilerLab/front/node.cpp
// Function: sysY_AST::gen_vardecl[abi:cxx11](sysY_AST::var_entry const&, bool)
static string gen_vardecl(const var_entry &var, bool indent)
{
	string prefix = indent ? "\t" : "";
	if (var.is_param) // parameters
		return "";
	if (!var.is_array) // variable
		return prefix + "var " + var.eeyore_name + "\n";
	else // array
	{
		auto size = std::accumulate(
			var.dim.begin(), var.dim.end(), int_size, std::multiplies<int>());
		return prefix + "var " + to_string(size) + " " + var.eeyore_name + "\n";
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x2006e(%rip), %rax     # 0x298d8
leaq 0x20068(%rip), %rsi     # 0x298d9
testl %edx, %edx
cmovneq %rax, %rsi
leaq 0xb8(%rsp), %r12
movq %r12, -0x10(%r12)
movl %edx, %edx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rdi
callq 0x6ef6
cmpb $0x1, 0x42(%r14)
jne 0x98bb
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2002e(%rip), %rdx     # 0x298d9
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x6ef6
jmp 0x9d04
cmpb $0x0, 0x40(%r14)
je 0x98e3
movq 0x48(%r14), %rax
movq 0x50(%r14), %rcx
movl $0x4, %r13d
cmpq %rcx, %rax
je 0x9959
imull (%rax), %r13d
addq $0x4, %rax
jmp 0x98d0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x124aa
leaq 0x1f331(%rip), %rsi     # 0x28c41
leaq 0x8(%rsp), %rdi
callq 0x5510
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq 0x8(%rsp), %rdi
callq 0x50c0
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x99f7
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x99fe
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x124aa
leaq 0x1f2bb(%rip), %rsi     # 0x28c41
leaq 0x28(%rsp), %rdi
callq 0x5510
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x9a9d
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x9a94
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x9a9a
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x9a9d
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x99b5
addl $-0x3, %r15d
jmp 0x9a9d
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1efbb(%rip), %rsi     # 0x289dc
callq 0x5510
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x9a48
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x9a4e
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x9a7c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5240
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9d04
movq 0x18(%rsp), %rsi
jmp 0x9cfc
addl $-0x2, %r15d
jmp 0x9a9d
decl %r15d
shrl $0x1f, %r13d
leal (%r15,%r13), %esi
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x68(%rsp), %rdi
movl $0x2d, %edx
callq 0x52b0
movl %r13d, %edi
addq 0x68(%rsp), %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x1230e
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
leaq 0x38(%rsp), %r13
cmpq %r13, %rcx
je 0x9af6
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
leaq 0x78(%rsp), %rbp
jbe 0x9b16
movl $0xf, %esi
cmpq %rbp, 0x68(%rsp)
je 0x9b11
movq 0x78(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x9b27
movq 0x68(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x50c0
jmp 0x9b35
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5290
leaq 0x98(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x9b62
movq %rsi, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x9b68
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x90(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x1efd7(%rip), %rsi     # 0x28b66
leaq 0x88(%rsp), %rdi
callq 0x5510
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9bc3
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x9bca
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0x50c0
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9c19
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x9c20
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1ed99(%rip), %rsi     # 0x289dc
callq 0x5510
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x9c6a
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x9c70
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x9c9e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5240
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9cb5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5240
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9cd6
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5240
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x9ced
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5240
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x9d04
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5240
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9d21
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5240
movq %rbx, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x9d55
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x9d55
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9d71
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x9d71
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9d97
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x9d97
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x9dd8
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x9dd8
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x9df1
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x9df1
jmp 0x9dd5
jmp 0x9dee
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x9e11
movq 0x38(%rsp), %rsi
jmp 0x9e00
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9e11
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x9e11
jmp 0x9e0e
jmp 0x9e0e
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9e2e
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5240
movq %rbx, %rdi
callq 0x54c0