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

	// Do not deal with ES-isms like precision, older extensions and such.
	options.es = false;
	options.version = 450;
	backend.float_literal_suffix = true;
	backend.double_literal_suffix = false;
	backend.long_long_literal_suffix = true;
	backend.uint32_t_literal_suffix = true;
	backend.basic_int_type = "int32_t";
	backend.basic_uint_type = "uint32_t";
	backend.swizzle_is_function = true;
	backend.shared_is_implied = true;
	backend.flexible_member_array_supported = false;
	backend.explicit_struct_type = true;
	backend.use_initializer_list = true;

	build_function_control_flow_graphs_and_analyze();
	update_active_builtins();

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

		resource_registrations.clear();
		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);

	// Match opening scope of emit_header().
	end_scope_decl();
	// namespace
	end_scope();

	// Emit C entry points
	emit_c_linkage();

	// Entry point in CPP is always main() for the time being.
	get_entry_point().name = "main";

	return buffer->str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
movq %rsp, %rdi
callq 0xb97c
movb $0x0, 0x43c(%r14)
movl $0x1c2, 0x438(%r14) # imm = 0x1C2
movl $0x1010001, 0x600(%r14) # imm = 0x1010001
leaq 0xabf67(%rip), %rax     # 0xb53d8
movq %rax, 0x608(%r14)
leaq 0xabf58(%rip), %rax     # 0xb53d7
movq %rax, 0x610(%r14)
movl $0x1000101, 0x620(%r14) # imm = 0x1000101
movb $0x1, 0x624(%r14)
movq %r14, %rdi
callq 0x1aa86
movq %r14, %rdi
callq 0x1a798
leaq 0x788(%r14), %r12
leaq 0x18(%rsp), %r15
movl $0x4, %ebx
leaq 0x10(%rsp), %r13
decl %ebx
je 0x95fd
movq 0x788(%r14), %rsi
movq %r12, %rdi
callq 0x10120
movq %r14, %rdi
callq 0x260dc
movl $0x178, %edi            # imm = 0x178
callq 0x6250
movq %rax, %rbp
movq %rax, %rdi
callq 0x6370
movq 0x420(%r14), %rdi
movq %rbp, 0x420(%r14)
testq %rdi, %rdi
je 0x950c
movq (%rdi), %rax
callq *0x8(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *0x78(%rax)
movq %r14, %rdi
callq 0x8ff2
movl 0x108(%r14), %esi
movq %r14, %rdi
callq 0xb9ca
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
leaq 0x48(%rsp), %rcx
movq %rcx, 0x18(%rsp)
movq $0x1, 0x20(%rsp)
movups %xmm0, 0x10(%r15)
movl $0x3f800000, 0x38(%rsp) # imm = 0x3F800000
movups %xmm0, 0x28(%r15)
movq %r14, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x2736e
movq %r15, %rdi
callq 0xd5b0
cmpb $0x0, 0x1d0(%r14)
jne 0x94bf
movq %r14, %rdi
callq 0x2889c
movq 0x8(%rsp), %rbx
movq %r14, %rdi
callq 0x4358a
movq %r14, %rdi
callq 0x96ca
movq %r14, %rdi
callq 0x16254
movq %rax, %rdi
addq $0x8, %rdi
movq 0x10(%rax), %rdx
leaq 0xb5512(%rip), %rcx     # 0xbead5
movl $0x4, %r8d
xorl %esi, %esi
callq 0x63f0
movq 0x420(%r14), %rsi
addq $0x8, %rsi
movq %rbx, %rdi
callq 0x6410
movq %rsp, %rdi
callq 0xb9fe
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x6140
movq %rax, %rbx
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xabdc6(%rip), %rsi     # 0xb53e0
leaq 0xabdf0(%rip), %rdx     # 0xb5411
leaq 0x10(%rsp), %rdi
callq 0x7c64
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0xf3756(%rip), %rax     # 0xfcd98
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0xf372e(%rip), %rsi     # 0xfcd80
movq 0xf497f(%rip), %rdx     # 0xfdfd8
movq %rbx, %rdi
callq 0x6470
jmp 0x96b7
jmp 0x96b7
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x9687
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x9687
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x96ba
movq %rbx, %rdi
callq 0x6200
jmp 0x96ba
jmp 0x96b7
movq %rax, %r14
movl $0x178, %esi            # imm = 0x178
movq %rbp, %rdi
callq 0x6260
jmp 0x96ba
movq %rax, %r14
movq %r15, %rdi
callq 0xd5b0
jmp 0x96ba
movq %rax, %r14
movq %rsp, %rdi
callq 0xb9fe
movq %r14, %rdi
callq 0x64a0