// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_glsl.cpp
// Function: spirv_cross::CompilerGLSL::compile[abi:cxx11]()
string CompilerGLSL::compile()
{
	// Force a classic "C" locale, reverts when function returns
	ClassicLocale classic_locale;

	if (options.vulkan_semantics)
		backend.allow_precision_qualifiers = true;
	backend.force_gl_in_out_block = true;
	backend.supports_extensions = true;

	// Scan the SPIR-V to find trivial uses of extensions.
	build_function_control_flow_graphs_and_analyze();
	find_static_extensions();
	fixup_image_load_store_access();
	update_active_builtins();
	analyze_image_and_sampler_usage();

	uint32_t pass_count = 0;
	do
	{
		if (pass_count >= 3)
			SPIRV_CROSS_THROW("Over 3 compilation loops detected. Must be a bug!");

		reset();

		// Move constructor for this type is broken on GCC 4.9 ...
		buffer = unique_ptr<ostringstream>(new ostringstream());

		emit_header();
		emit_resources();

		emit_function(get<SPIRFunction>(ir.default_entry_point), Bitset());

		pass_count++;
	} while (force_recompile);

	// Entry point in GLSL is always main().
	get_entry_point().name = "main";

	return buffer->str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %rdi
callq 0x9fe2
cmpb $0x1, 0x43e(%r14)
jne 0x213fa
movb $0x1, 0x62b(%r14)
movq %rbx, 0x18(%rsp)
movb $0x1, %al
movb %al, 0x62d(%r14)
movb %al, 0x630(%r14)
movq %r14, %rdi
callq 0x162d0
movq %r14, %rdi
callq 0x20e8e
movq %r14, %rdi
callq 0x215f0
movq %r14, %rdi
callq 0x16086
movq %r14, %rdi
callq 0x1610e
leaq 0x28(%rsp), %r15
leaq 0x58(%rsp), %rbp
pushq $0x4
popq %rbx
leaq 0x20(%rsp), %r12
decl %ebx
je 0x2154c
movq %r14, %rdi
callq 0x20c2c
movl $0x178, %edi            # imm = 0x178
callq 0x6270
movq %rax, %r13
movq %rax, %rdi
callq 0x63a0
movq 0x420(%r14), %rdi
movq %r13, 0x420(%r14)
testq %rdi, %rdi
je 0x21487
movq (%rdi), %rax
callq *0x8(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *0x78(%rax)
movq %r14, %rdi
callq 0x21664
movl 0x108(%r14), %esi
movq %r14, %rdi
callq 0xa048
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x40(%rsp)
movq %rbp, 0x28(%rsp)
movq $0x1, 0x30(%rsp)
movups %xmm0, 0x10(%r15)
movl $0x3f800000, 0x48(%rsp) # imm = 0x3F800000
movups %xmm0, 0x28(%r15)
movq %r14, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x21c20
movq %r15, %rdi
callq 0xb51c
cmpb $0x0, 0x1d0(%r14)
jne 0x21449
movq %r14, %rdi
callq 0x12fa4
movq 0x18(%rsp), %rbx
addq $0x8, %rax
leaq 0x77558(%rip), %rsi     # 0x98a6d
movq %rax, %rdi
callq 0x64e0
movq 0x420(%r14), %rsi
addq $0x8, %rsi
movq %rbx, %rdi
callq 0x6430
leaq 0x10(%rsp), %rdi
callq 0xa05e
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x6140
movq %rax, %rbx
leaq 0x6de5a(%rip), %rsi     # 0x8f3b8
leaq 0x20(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x6100
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x6f6e
xorl %ebp, %ebp
leaq 0xc583a(%rip), %rsi     # 0xe6dc0
movq 0xc6a53(%rip), %rdx     # 0xe7fe0
movq %rbx, %rdi
callq 0x6490
jmp 0x215db
jmp 0x215db
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x6548
testb %bpl, %bpl
jne 0x215b0
jmp 0x215de
movq %rax, %r14
movq %rbx, %rdi
callq 0x6200
jmp 0x215de
jmp 0x215db
movq %rax, %r14
movl $0x178, %esi            # imm = 0x178
movq %r13, %rdi
callq 0x6280
jmp 0x215de
movq %rax, %r14
movq %r15, %rdi
callq 0xb51c
jmp 0x215de
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0xa05e
movq %r14, %rdi
callq 0x64b0