// File: /workspace/github_cpp_makefile_star2_O3/lhydave[P]SysYCompilerLab/back/emit_tigger.cpp
// Function: tigger::emit_goto(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string emit_goto(int label, const string &cond)
{
	seq.push_back(make_shared<goto_stmt>(cond, label));
	if (cond.empty()) // unconditional jump
		return "\tgoto l" + to_string(label) + "\n";
	// conditional jump
	return "\tif " + cond + " goto l" + to_string(label) + "\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x2c(%rsp), %r8
movl %esi, (%r8)
leaq 0x38(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x30(%rsp), %r15
leaq 0x78(%rsp), %rdx
movq %r15, %rsi
movq %r14, %rcx
callq 0x1e666
movaps (%r15), %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
leaq 0x193ac(%rip), %rdi     # 0x35998
callq 0x1e104
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1c600
callq 0x18806
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x1c60f
callq 0x18806
cmpq $0x0, 0x8(%r14)
je 0x1c664
leaq 0xc63c(%rip), %rsi      # 0x28c59
leaq 0x78(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x11c02
leaq 0xc63c(%rip), %rsi      # 0x28c70
movq %r15, %rdi
callq 0x5510
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1c6d0
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x1c6d8
movl 0x2c(%rsp), %r13d
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x1c8e6
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x1c8dd
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x1c8e3
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x1c8e6
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x1c68e
addl $-0x3, %r14d
jmp 0x1c8e6
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x2c(%rsp), %r14d
movl %r14d, %ebp
negl %ebp
cmovsl %r14d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x1c752
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x1c749
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x1c74f
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x1c752
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x1c716
addl $-0x3, %r15d
jmp 0x1c752
addl $-0x2, %r15d
jmp 0x1c752
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x68(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x58(%rsp), %rdi
movl $0x2d, %edx
callq 0x52b0
addq 0x58(%rsp), %r14
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x1205c
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x60(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x1c7a6
movq 0x40(%rsp), %rdi
movq 0x58(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x1c7c4
movl $0xf, %edi
cmpq %r13, %rsi
je 0x1c7bf
movq 0x68(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x1c7d0
leaq 0x30(%rsp), %rdi
callq 0x50c0
jmp 0x1c7de
leaq 0x58(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5290
leaq 0x10(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x1c801
movq %rsi, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1c807
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xc1e8(%rip), %rsi      # 0x28a13
movq %rsp, %rdi
callq 0x5510
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x1c855
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x1c85b
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)
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c88d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5240
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x1c8a4
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x5240
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x1c8bb
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5240
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c9f4
movq 0x88(%rsp), %rsi
jmp 0x1c9ec
addl $-0x2, %r14d
jmp 0x1c8e6
decl %r14d
shrl $0x1f, %r13d
movl %r13d, %esi
addl %r14d, %esi
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x30(%rsp), %r15
movq %r15, %rdi
movl $0x2d, %edx
callq 0x52b0
movq (%r15), %rdi
addq %r13, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x1205c
leaq 0xc112(%rip), %rcx      # 0x28a35
movl $0x7, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5290
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1c95b
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1c962
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xc090(%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 0x1c9aa
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x1c9b0
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 (%rsp), %rdi
cmpq %r14, %rdi
je 0x1c9dd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5240
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x1c9f4
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5240
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x1ca27
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x1ca27
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x1cadb
movq 0x40(%rsp), %rsi
jmp 0x1cab0
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1ca5f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x1ca5f
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x1ca7b
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x1ca7b
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x1ca97
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x1ca97
movq %rax, %rbx
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1cadb
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x5240
jmp 0x1cadb
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1cacc
callq 0x18806
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x1cadb
callq 0x18806
movq %rbx, %rdi
callq 0x54c0