// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_glsl.cpp
// Function: spirv_cross::CompilerGLSL::emit_continue_block[abi:cxx11](unsigned int)
string CompilerGLSL::emit_continue_block(uint32_t continue_block)
{
	auto *block = &get<SPIRBlock>(continue_block);

	// While emitting the continue block, declare_temporary will check this
	// if we have to emit temporaries.
	current_continue_block = block;

	vector<string> statements;

	// Capture all statements into our list.
	auto *old = redirect_statement;
	redirect_statement = &statements;

	// Stamp out all blocks one after each other.
	while ((ir.block_meta[block->self] & ParsedIR::BLOCK_META_LOOP_HEADER_BIT) == 0)
	{
		propagate_loop_dominators(*block);
		// Write out all instructions we have in this block.
		emit_block_instructions(*block);

		// For plain branchless for/while continue blocks.
		if (block->next_block)
		{
			flush_phi(continue_block, block->next_block);
			block = &get<SPIRBlock>(block->next_block);
		}
		// For do while blocks. The last block will be a select block.
		else if (block->true_block)
		{
			flush_phi(continue_block, block->true_block);
			block = &get<SPIRBlock>(block->true_block);
		}
	}

	// Restore old pointer.
	redirect_statement = old;

	// Somewhat ugly, strip off the last ';' since we use ',' instead.
	// Ideally, we should select this behavior in statement().
	for (auto &s : statements)
	{
		if (!s.empty() && s.back() == ';')
			s.erase(s.size() - 1, 1);
	}

	current_continue_block = nullptr;
	return merge(statements);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movl %edx, %esi
callq 0x7870
movq %rax, %r15
movq %rax, 0x430(%r14)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rax
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq 0x428(%r14), %r13
movq %rax, 0x428(%r14)
movl 0x8(%r15), %eax
movq 0x80(%r14), %rcx
testb $0x1, (%rcx,%rax)
movq %rbx, 0x8(%rsp)
jne 0x4ee7e
movq %r14, %rdi
movq %r15, %rsi
callq 0x4ebfa
movq %r13, %rbx
movq %r15, 0x410(%r14)
movq 0x38(%r15), %r12
movq 0x40(%r15), %r13
cmpq %r13, %r12
je 0x4edc9
movq (%r14), %rax
movq %r14, %rdi
movq %r12, %rsi
callq *0x48(%rax)
addq $0xc, %r12
jmp 0x4edb2
movq $0x0, 0x410(%r14)
movl 0x18(%r15), %edx
testl %edx, %edx
je 0x4edef
movq %r14, %rdi
movl %ebp, %esi
callq 0x4e47c
movq %rbx, %r13
addq $0x18, %r15
jmp 0x4ee08
movl 0x2c(%r15), %edx
testl %edx, %edx
movq %rbx, %r13
je 0x4ee16
movq %r14, %rdi
movl %ebp, %esi
callq 0x4e47c
addq $0x2c, %r15
movl (%r15), %esi
movq %r14, %rdi
callq 0x7870
movq %rax, %r15
movl 0x8(%r15), %eax
movq 0x80(%r14), %rcx
testb $0x1, (%rcx,%rax)
je 0x4ed95
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %r12
movq %r13, 0x428(%r14)
cmpq %r12, %r15
je 0x4ee9f
movq 0x8(%rsp), %rbx
movq 0x8(%r15), %rsi
testq %rsi, %rsi
je 0x4ee69
movq (%r15), %rax
cmpb $0x3b, -0x1(%rax,%rsi)
jne 0x4ee69
decq %rsi
movl $0x1, %edx
movq %r15, %rdi
callq 0x6080
addq $0x20, %r15
cmpq %r12, %r15
jne 0x4ee46
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %r12
jmp 0x4eea4
movq %r13, 0x428(%r14)
xorl %eax, %eax
movq %rax, 0x430(%r14)
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq %rax, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
jmp 0x4eefd
movq 0x8(%rsp), %rbx
xorl %eax, %eax
movq %rax, 0x430(%r14)
leaq 0x10(%rbx), %r13
movq %r13, (%rbx)
movq %rax, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
cmpq %r12, %r15
je 0x4eefd
leaq 0x6b1e3(%rip), %r14     # 0xba0ab
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq 0x8(%rsp), %rdi
callq 0x60b0
movq 0x18(%rsp), %rax
addq $-0x20, %rax
cmpq %rax, %r15
je 0x4eef4
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x64e0
addq $0x20, %r15
cmpq %r12, %r15
jne 0x4eec8
leaq 0x10(%rsp), %rdi
callq 0xda2c
movq 0x8(%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4ef3d
movq %rax, %r14
movq 0x8(%rsp), %rax
movq (%rax), %rdi
cmpq %r13, %rdi
je 0x4ef40
movq (%r13), %rsi
incq %rsi
callq 0x6260
jmp 0x4ef40
jmp 0x4ef3d
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0xda2c
movq %r14, %rdi
callq 0x64a0