// File: /workspace/github_cpp_makefile_star2_O1/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 0x78fe
movq %rax, %r15
movq %rax, 0x430(%r14)
xorps %xmm0, %xmm0
movq %rsp, %rax
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq 0x428(%r14), %rcx
movq %rcx, 0x20(%rsp)
movq %rax, 0x428(%r14)
movl 0x8(%r15), %eax
movq 0x80(%r14), %rcx
testb $0x1, (%rcx,%rax)
jne 0x4f5ec
movq %r14, %rdi
movq %r15, %rsi
callq 0x4f3d2
movq %r15, 0x410(%r14)
movq 0x38(%r15), %r12
movq 0x40(%r15), %r13
cmpq %r13, %r12
je 0x4f5a0
movq (%r14), %rax
movq %r14, %rdi
movq %r12, %rsi
callq *0x48(%rax)
addq $0xc, %r12
jmp 0x4f589
movq $0x0, 0x410(%r14)
movl 0x18(%r15), %edx
testl %edx, %edx
je 0x4f5c3
movq %r14, %rdi
movl %ebp, %esi
callq 0x4ec3e
addq $0x18, %r15
jmp 0x4f5d9
movl 0x2c(%r15), %edx
testl %edx, %edx
je 0x4f55e
movq %r14, %rdi
movl %ebp, %esi
callq 0x4ec3e
addq $0x2c, %r15
movl (%r15), %esi
movq %r14, %rdi
callq 0x78fe
movq %rax, %r15
jmp 0x4f55e
movq 0x20(%rsp), %rax
movq %rax, 0x428(%r14)
movq (%rsp), %r15
movq 0x8(%rsp), %r12
cmpq %r12, %r15
je 0x4f62f
movq 0x8(%r15), %rsi
testq %rsi, %rsi
je 0x4f629
movq (%r15), %rax
cmpb $0x3b, -0x1(%rax,%rsi)
jne 0x4f629
decq %rsi
movl $0x1, %edx
movq %r15, %rdi
callq 0x6080
addq $0x20, %r15
jmp 0x4f601
xorl %eax, %eax
movq %rax, 0x430(%r14)
leaq 0x10(%rbx), %r15
movq %r15, (%rbx)
movq %rax, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
movq (%rsp), %r12
movq 0x8(%rsp), %r13
cmpq %r13, %r12
je 0x4f68f
leaq 0x6ba5f(%rip), %r14     # 0xbb0bb
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rbx, %rdi
callq 0x60b0
movq 0x8(%rsp), %rax
addq $-0x20, %rax
cmpq %rax, %r12
je 0x4f686
movq %rbx, %rdi
movq %r14, %rsi
callq 0x64e0
addq $0x20, %r12
cmpq %r13, %r12
jne 0x4f65c
movq %rsp, %rdi
callq 0xda64
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4f6c5
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x4f6c8
movq (%r15), %rsi
incq %rsi
callq 0x6260
jmp 0x4f6c8
jmp 0x4f6c5
movq %rax, %r14
movq %rsp, %rdi
callq 0xda64
movq %r14, %rdi
callq 0x64a0