// File: /workspace/github_cpp_makefile_star2_O3/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 0x20254(%rip), %rax     # 0x29930
leaq 0x2024e(%rip), %rsi     # 0x29931
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 0x6d8a
cmpb $0x1, 0x42(%r14)
jne 0x972d
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x20214(%rip), %rdx     # 0x29931
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x6d8a
jmp 0x9b74
cmpb $0x0, 0x40(%r14)
je 0x9755
movq 0x48(%r14), %rax
movq 0x50(%r14), %rcx
movl $0x4, %r13d
cmpq %rcx, %rax
je 0x97cb
imull (%rax), %r13d
addq $0x4, %rax
jmp 0x9742
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x121f8
leaq 0x1f4f6(%rip), %rsi     # 0x28c78
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 0x9869
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x9870
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x121f8
leaq 0x1f480(%rip), %rsi     # 0x28c78
leaq 0x28(%rsp), %rdi
callq 0x5510
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x990f
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x9906
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x990c
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x990f
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x9827
addl $-0x3, %r15d
jmp 0x990f
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 0x1f180(%rip), %rsi     # 0x28a13
callq 0x5510
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x98ba
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x98c0
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 0x98ee
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5240
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9b74
movq 0x18(%rsp), %rsi
jmp 0x9b6c
addl $-0x2, %r15d
jmp 0x990f
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 0x1205c
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x38(%rsp), %r13
cmpq %r13, %rcx
je 0x9968
movq 0x38(%rsp), %rdi
movq 0x68(%rsp), %rsi
cmpq %rdi, %rax
leaq 0x78(%rsp), %rbp
jbe 0x998b
movl $0xf, %edi
cmpq %rbp, %rsi
je 0x9986
movq 0x78(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x9997
leaq 0x28(%rsp), %rdi
callq 0x50c0
jmp 0x99a5
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 0x99d2
movq %rsi, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x99d8
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 0x1f19e(%rip), %rsi     # 0x28b9d
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 0x9a33
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x9a3a
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 0x9a89
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x9a90
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 0x1ef60(%rip), %rsi     # 0x28a13
callq 0x5510
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x9ada
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x9ae0
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 0x9b0e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5240
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9b25
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5240
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9b46
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5240
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x9b5d
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5240
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x9b74
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5240
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9b91
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5240
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 0x9bc2
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x9bc2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9bde
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x9bde
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9c04
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x9c04
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x9c45
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x9c45
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x9c5e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x9c5e
jmp 0x9c42
jmp 0x9c5b
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x9c7e
movq 0x38(%rsp), %rsi
jmp 0x9c6d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9c7e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x9c7e
jmp 0x9c7b
jmp 0x9c7b
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9c9b
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5240
movq %rbx, %rdi
callq 0x54c0
nop