LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::get_common_basic_type(spirv_cross::SPIRType const&, spirv_cross::SPIRType::BaseType&)
bool Compiler::get_common_basic_type(const SPIRType &type, SPIRType::BaseType &base_type)
{
	if (type.basetype == SPIRType::Struct)
	{
		base_type = SPIRType::Unknown;
		for (auto &member_type : type.member_types)
		{
			SPIRType::BaseType member_base;
			if (!get_common_basic_type(get<SPIRType>(member_type), member_base))
				return false;

			if (base_type == SPIRType::Unknown)
				base_type = member_base;
			else if (base_type != member_base)
				return false;
		}
		return true;
	}
	else
	{
		base_type = type.basetype;
		return true;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movl 0xc(%rsi), %eax
cmpl $0xc, %eax
jne 0x15be0
movq %rdi, %r14
andl $0x0, (%rbx)
movq 0x68(%rsi), %r12
movq 0x70(%rsi), %r13
leaq 0xc(%rsp), %r15
cmpq %r13, %r12
je 0x15be2
movl (%r12), %esi
movq %r14, %rdi
callq 0x90a4
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x15b7a
testb %al, %al
je 0x15be6
movl (%rbx), %eax
movl 0xc(%rsp), %ecx
testl %eax, %eax
je 0x15bd8
cmpl %ecx, %eax
je 0x15bda
jmp 0x15be6
movl %ecx, (%rbx)
addq $0x4, %r12
jmp 0x15ba5
movl %eax, (%rbx)
movb $0x1, %al
jmp 0x15be8
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::update_active_builtins()
void Compiler::update_active_builtins()
{
	active_input_builtins.reset();
	active_output_builtins.reset();
	cull_distance_count = 0;
	clip_distance_count = 0;
	ActiveBuiltinHandler handler(*this);
	traverse_all_reachable_opcodes(get<SPIRFunction>(ir.default_entry_point), handler);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
addq $0x2d0, %rdi            # imm = 0x2D0
callq 0x17770
leaq 0x310(%rbx), %rdi
callq 0x17770
andq $0x0, 0x350(%rbx)
leaq 0xd11b1(%rip), %rax     # 0xe7268
addq $0x10, %rax
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
movq %rbx, 0x8(%r14)
movl 0x108(%rbx), %esi
movq %rbx, %rdi
callq 0xa048
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x1157c
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::analyze_image_and_sampler_usage()
void Compiler::analyze_image_and_sampler_usage()
{
	CombinedImageSamplerDrefHandler dref_handler(*this);
	traverse_all_reachable_opcodes(get<SPIRFunction>(ir.default_entry_point), dref_handler);

	CombinedImageSamplerUsageHandler handler(*this, dref_handler.dref_combined_samplers);
	traverse_all_reachable_opcodes(get<SPIRFunction>(ir.default_entry_point), handler);
	comparison_ids = move(handler.comparison_ids);
	need_subpass_input = handler.need_subpass_input;

	// Forward information from separate images and samplers into combined image samplers.
	for (auto &combined : combined_image_samplers)
		if (comparison_ids.count(combined.sampler_id))
			comparison_ids.insert(combined.combined_id);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xe0, %rsp
movq %rdi, %rbx
leaq 0xd11a4(%rip), %rax     # 0xe72c8
addq $0x10, %rax
leaq 0x48(%rsp), %rcx
movq %rax, -0x40(%rcx)
movq %rdi, -0x38(%rcx)
movq %rcx, -0x30(%rcx)
movq $0x1, -0x28(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rcx)
movl $0x3f800000, -0x10(%rcx) # imm = 0x3F800000
movups %xmm0, -0x8(%rcx)
movl 0x108(%rdi), %esi
callq 0xa048
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1157c
leaq 0x18(%rsp), %rax
leaq 0xd11ae(%rip), %rcx     # 0xe7328
addq $0x10, %rcx
leaq 0x98(%rsp), %rdx
movq %rcx, -0x48(%rdx)
movq %rbx, -0x40(%rdx)
movq %rax, -0x38(%rdx)
movq %rdx, -0x30(%rdx)
pushq $0x1
popq %rax
movq %rax, -0x28(%rdx)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rdx)
movl $0x3f800000, %ecx       # imm = 0x3F800000
movl %ecx, -0x10(%rdx)
movups %xmm0, -0x8(%rdx)
leaq 0xd0(%rsp), %rdx
movq %rdx, -0x30(%rdx)
movq %rax, -0x28(%rdx)
movups %xmm0, -0x20(%rdx)
movl %ecx, -0x10(%rdx)
movups %xmm0, -0x8(%rdx)
movb $0x0, 0x8(%rdx)
movl 0x108(%rbx), %esi
movq %rbx, %rdi
callq 0xa048
leaq 0x50(%rsp), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1157c
leaq 0xa0(%rsp), %r15
leaq 0x360(%rbx), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x19fc0
movb 0x38(%r15), %al
movb %al, 0x398(%rbx)
movq 0x1d8(%rbx), %r15
movq 0x1e0(%rbx), %rbx
cmpq %rbx, %r15
je 0x16246
leaq 0x8(%r15), %rsi
movq %r14, %rdi
callq 0x1aeea
testq %rax, %rax
je 0x16240
movq %r14, %rdi
movq %r15, %rsi
callq 0x1af30
addq $0xc, %r15
jmp 0x1621f
leaq 0x50(%rsp), %rdi
callq 0x17c60
leaq 0x8(%rsp), %rdi
callq 0x17c88
addq $0xe0, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x1626e
movq %rax, %rbx
jmp 0x1627b
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x17c60
leaq 0x8(%rsp), %rdi
callq 0x17c88
movq %rbx, %rdi
callq 0x64b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::CFGBuilder::follow_function_call(spirv_cross::SPIRFunction const&)
bool Compiler::CFGBuilder::follow_function_call(const SPIRFunction &func)
{
	if (function_cfgs.find(func.self) == end(function_cfgs))
	{
		function_cfgs[func.self].reset(new CFG(compiler, func));
		return true;
	}
	else
		return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x10(%rdi), %r12
leaq 0x8(%rsi), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x1ea20
movq %rax, %rbx
testq %rax, %rax
jne 0x165df
movq %r12, %rdi
movq %r13, %rsi
callq 0x1ec1a
movq %rax, %r13
movl $0x90, %edi
callq 0x6270
movq %rax, %r12
movq 0x8(%r15), %rsi
movq %rax, %rdi
movq %r14, %rdx
callq 0x661c
movq %r13, %rdi
movq %r12, %rsi
callq 0x1ef0a
testq %rbx, %rbx
sete %al
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movl $0x90, %esi
movq %r12, %rdi
callq 0x6280
movq %rbx, %rdi
callq 0x64b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::CombinedImageSamplerUsageHandler::begin_function_scope(unsigned int const*, unsigned int)
bool Compiler::CombinedImageSamplerUsageHandler::begin_function_scope(const uint32_t *args, uint32_t length)
{
	if (length < 3)
		return false;

	auto &func = compiler.get<SPIRFunction>(args[2]);
	const auto *arg = &args[3];
	length -= 3;

	for (uint32_t i = 0; i < length; i++)
	{
		auto &argument = func.arguments[i];
		dependency_hierarchy[argument.id].insert(arg[i]);
	}

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
cmpl $0x3, %edx
jb 0x1666f
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%rdi), %rdi
movl 0x8(%rsi), %esi
callq 0xa048
movq %rax, %r12
addq $0xc, %r14
leal -0x3(%rbx), %eax
addq $0x18, %r15
imulq $0x14, %rax, %r13
xorl %ebp, %ebp
cmpq %rbp, %r13
je 0x1666f
movq 0x18(%r12), %rax
leaq (%rax,%rbp), %rsi
addq $0x4, %rsi
movq %r15, %rdi
callq 0x1e658
movq %rax, %rdi
movq %r14, %rsi
callq 0x1af30
addq $0x14, %rbp
addq $0x4, %r14
jmp 0x16640
cmpl $0x3, %ebx
setae %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::CombinedImageSamplerUsageHandler::add_hierarchy_to_comparison_ids(unsigned int)
void Compiler::CombinedImageSamplerUsageHandler::add_hierarchy_to_comparison_ids(uint32_t id)
{
	// Traverse the variable dependency hierarchy and tag everything in its path with comparison ids.
	comparison_ids.insert(id);
	for (auto &dep_id : dependency_hierarchy[id])
		add_hierarchy_to_comparison_ids(dep_id);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x4(%rsp), %r14
movl %esi, (%r14)
addq $0x50, %rdi
movq %r14, %rsi
callq 0x1af30
leaq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0x1e658
movq %rax, %r14
addq $0x10, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x166c8
movl 0x8(%r14), %esi
movq %rbx, %rdi
callq 0x16684
jmp 0x166b2
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::CombinedImageSamplerUsageHandler::handle(spv::Op, unsigned int const*, unsigned int)
bool Compiler::CombinedImageSamplerUsageHandler::handle(Op opcode, const uint32_t *args, uint32_t length)
{
	switch (opcode)
	{
	case OpAccessChain:
	case OpInBoundsAccessChain:
	case OpLoad:
	{
		if (length < 3)
			return false;
		dependency_hierarchy[args[1]].insert(args[2]);

		// Ideally defer this to OpImageRead, but then we'd need to track loaded IDs.
		// If we load an image, we're going to use it and there is little harm in declaring an unused gl_FragCoord.
		auto &type = compiler.get<SPIRType>(args[0]);
		if (type.image.dim == DimSubpassData)
			need_subpass_input = true;

		// If we load a SampledImage and it will be used with Dref, propagate the state up.
		if (dref_combined_samplers.count(args[1]) != 0)
			add_hierarchy_to_comparison_ids(args[1]);
		break;
	}

	case OpSampledImage:
	{
		if (length < 4)
			return false;

		uint32_t result_type = args[0];
		uint32_t result_id = args[1];
		auto &type = compiler.get<SPIRType>(result_type);
		if (type.image.depth || dref_combined_samplers.count(result_id) != 0)
		{
			// This image must be a depth image.
			uint32_t image = args[2];
			add_hierarchy_to_comparison_ids(image);

			// This sampler must be a SamplerComparisonState, and not a regular SamplerState.
			uint32_t sampler = args[3];
			add_hierarchy_to_comparison_ids(sampler);

			// Mark the OpSampledImage itself as being comparison state.
			comparison_ids.insert(result_id);
		}
		return true;
	}

	default:
		break;
	}

	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rdi, %r14
movb $0x1, %bl
leal -0x41(%rsi), %eax
cmpl $0x2, %eax
jb 0x166f2
cmpl $0x56, %esi
je 0x1674f
cmpl $0x3d, %esi
jne 0x16756
cmpl $0x3, %ecx
jb 0x16754
leaq 0x18(%r14), %rdi
leaq 0x4(%r15), %r12
movq %r12, %rsi
callq 0x1e658
leaq 0x8(%r15), %rsi
movq %rax, %rdi
callq 0x1af30
movq 0x8(%r14), %rdi
movl (%r15), %esi
callq 0x90a4
cmpl $0x6, 0x84(%rax)
jne 0x16730
movb $0x1, 0x88(%r14)
movq 0x10(%r14), %rdi
movq %r12, %rsi
callq 0x1aeea
testq %rax, %rax
je 0x16756
movl (%r12), %esi
movq %r14, %rdi
callq 0x16684
jmp 0x16756
cmpl $0x4, %ecx
jae 0x16764
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl (%r15), %esi
movl 0x4(%r15), %eax
movl %eax, 0x4(%rsp)
movq 0x8(%r14), %rdi
callq 0x90a4
cmpb $0x0, 0x88(%rax)
jne 0x16794
movq 0x10(%r14), %rdi
leaq 0x4(%rsp), %rsi
callq 0x1aeea
testq %rax, %rax
je 0x16756
movl 0x8(%r15), %esi
movq %r14, %rdi
callq 0x16684
movl 0xc(%r15), %esi
movq %r14, %rdi
callq 0x16684
addq $0x50, %r14
leaq 0x4(%rsp), %rsi
movq %r14, %rdi
callq 0x1af30
jmp 0x16756
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::buffer_is_hlsl_counter_buffer(unsigned int) const
bool Compiler::buffer_is_hlsl_counter_buffer(uint32_t id) const
{
	// First, check for the proper decoration.
	if (ir.meta.at(id).hlsl_is_magic_counter_buffer)
		return true;

	// Check for legacy fallback method.
	// FIXME: This should be deprecated eventually.

	if (ir.meta.at(id).hlsl_magic_counter_buffer_candidate)
	{
		auto *var = maybe_get<SPIRVariable>(id);
		// Ensure that this is actually a buffer object.
		return var && (var->storage == StorageClassStorageBuffer ||
		               has_decoration(get<SPIRType>(var->basetype).self, DecorationBufferBlock));
	}
	else
		return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x38(%rdi), %r15
movl %esi, %r12d
movq %r15, %rdi
movq %r12, %rsi
callq 0x17518
movb $0x1, %bpl
cmpb $0x0, 0x141(%rax)
jne 0x1683d
movq %r15, %rdi
movq %r12, %rsi
callq 0x17518
cmpb $0x1, 0x140(%rax)
jne 0x1683b
movq %rbx, %rdi
movl %r14d, %esi
callq 0x170fa
testq %rax, %rax
je 0x1683b
cmpl $0xc, 0x10(%rax)
je 0x1683d
movl 0xc(%rax), %esi
movq %rbx, %rdi
callq 0x16fc8
movl 0x8(%rax), %esi
addq $0x8, %rbx
pushq $0x3
popq %rdx
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1fcfa
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::buffer_get_hlsl_counter_buffer(unsigned int, unsigned int&) const
bool Compiler::buffer_get_hlsl_counter_buffer(uint32_t id, uint32_t &counter_id) const
{
	// First, check for the proper decoration.
	if (ir.meta[id].hlsl_magic_counter_buffer != 0)
	{
		counter_id = ir.meta[id].hlsl_magic_counter_buffer;
		return true;
	}

	// Check for legacy fallback method.
	// FIXME: This should be deprecated eventually.

	auto &name = get_name(id);
	uint32_t id_bound = get_current_id_bound();
	for (uint32_t i = 0; i < id_bound; i++)
	{
		if (ir.meta[i].hlsl_magic_counter_buffer_candidate && ir.meta[i].hlsl_magic_counter_buffer_name == name)
		{
			auto *var = maybe_get<SPIRVariable>(i);
			// Ensure that this is actually a buffer object.
			if (var && (var->storage == StorageClassStorageBuffer ||
			            has_decoration(get<SPIRType>(var->basetype).self, DecorationBufferBlock)))
			{
				counter_id = i;
				return true;
			}
		}
	}
	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %esi
movq 0x38(%rdi), %rax
imulq $0x148, %rsi, %rcx      # imm = 0x148
movl 0x144(%rax,%rcx), %r13d
testl %r13d, %r13d
je 0x1687a
movl %r13d, (%rdx)
movb $0x1, %al
jmp 0x16911
movq %rdi, %r14
movq %rdx, 0x8(%rsp)
leaq 0x38(%rdi), %r15
movq %r15, %rdi
callq 0x17518
movq %rax, %r12
movq 0x28(%r14), %rax
subq 0x20(%r14), %rax
shrq $0x4, %rax
leaq 0x8(%r14), %rcx
movq %rcx, 0x10(%rsp)
movl %eax, %ebx
movl $0x120, %ebp            # imm = 0x120
xorl %r13d, %r13d
cmpq %r13, %rbx
je 0x1690f
movq (%r15), %rdi
cmpb $0x1, 0x20(%rdi,%rbp)
jne 0x16903
addq %rbp, %rdi
movq %r12, %rsi
callq 0x17d0d
testb %al, %al
je 0x16903
movq %r14, %rdi
movl %r13d, %esi
callq 0x170fa
testq %rax, %rax
je 0x16903
cmpl $0xc, 0x10(%rax)
je 0x16920
movl 0xc(%rax), %esi
movq %r14, %rdi
callq 0x16fc8
movl 0x8(%rax), %esi
movq 0x10(%rsp), %rdi
pushq $0x3
popq %rdx
callq 0x1fcfa
testb %al, %al
jne 0x16920
incq %r13
addq $0x148, %rbp            # imm = 0x148
jmp 0x168b0
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rdx
jmp 0x16870
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::combined_decoration_for_member(spirv_cross::SPIRType const&, unsigned int) const
Bitset Compiler::combined_decoration_for_member(const SPIRType &type, uint32_t index) const
{
	Bitset flags;
	auto &memb = ir.meta[type.self].members;
	if (index >= memb.size())
		return flags;
	auto &dec = memb[index];

	// If our type is a struct, traverse all the members as well recursively.
	flags.merge_or(dec.decoration_flags);
	for (uint32_t i = 0; i < type.member_types.size(); i++)
		flags.merge_or(combined_decoration_for_member(get<SPIRType>(type.member_types[i]), i));

	return flags;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
andq $0x0, (%rdi)
leaq 0x38(%rdi), %rax
movq %rax, 0x8(%rdi)
movq $0x1, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
movl $0x3f800000, 0x28(%rdi) # imm = 0x3F800000
movups %xmm0, 0x30(%rdi)
movl 0x8(%rdx), %eax
movq 0x38(%rsi), %rdx
imulq $0x148, %rax, %rax      # imm = 0x148
movl %ecx, %ecx
movq 0xd0(%rdx,%rax), %rsi
movq 0xd8(%rdx,%rax), %rax
subq %rsi, %rax
movl $0xd0, %edi
cqto
idivq %rdi
cmpq %rcx, %rax
jbe 0x16c84
imulq $0xd0, %rcx, %rax
addq %rax, %rsi
addq $0x60, %rsi
movq %rbx, %rdi
callq 0x17e7a
xorl %r13d, %r13d
leaq 0x10(%rsp), %r12
leaq 0x8(%rsp), %rbp
movl %r13d, %r13d
movq 0x68(%r14), %rax
movq 0x70(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r13, %rcx
jbe 0x16c84
movl (%rax,%r13,4), %esi
movq %r15, %rdi
callq 0x16fc8
movq %rbp, %rdi
movq %r15, %rsi
movq %rax, %rdx
movl %r13d, %ecx
callq 0x16ba6
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x17e7a
movq %r12, %rdi
callq 0xb51c
incl %r13d
jmp 0x16c38
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x16ca5
movq %rax, %r14
movq %r12, %rdi
callq 0xb51c
jmp 0x16ca8
movq %rax, %r14
addq $0x8, %rbx
movq %rbx, %rdi
callq 0xb51c
movq %r14, %rdi
callq 0x64b0
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_common.hpp
// Function: spirv_cross::Bitset::get(unsigned int) const
inline bool get(uint32_t bit) const
	{
		if (bit < 64)
			return (lower & (1ull << bit)) != 0;
		else
			return higher.count(bit) != 0;
	}

// Assembly:
pushq %rax
movl %esi, 0x4(%rsp)
cmpl $0x3f, %esi
ja 0x16f07
pushq $0x1
popq %rax
movl %esi, %ecx
shlq %cl, %rax
andq (%rdi), %rax
jmp 0x16f15
addq $0x8, %rdi
leaq 0x4(%rsp), %rsi
callq 0x1aeea
testq %rax, %rax
setne %al
popq %rcx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_common.hpp
// Function: spirv_cross::Bitset::set(unsigned int)
inline void set(uint32_t bit)
	{
		if (bit < 64)
			lower |= 1ull << bit;
		else
			higher.insert(bit);
	}

// Assembly:
pushq %rax
movl %esi, 0x4(%rsp)
cmpl $0x3f, %esi
ja 0x1766b
pushq $0x1
popq %rax
movl %esi, %ecx
shlq %cl, %rax
orq %rax, (%rdi)
jmp 0x17679
addq $0x8, %rdi
leaq 0x4(%rsp), %rsi
callq 0x1af30
popq %rax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_common.hpp
// Function: spirv_cross::Bitset::clear(unsigned int)
inline void clear(uint32_t bit)
	{
		if (bit < 64)
			lower &= ~(1ull << bit);
		else
			higher.erase(bit);
	}

// Assembly:
pushq %rax
movl %esi, 0x4(%rsp)
cmpl $0x3f, %esi
ja 0x17693
pushq $-0x2
popq %rax
movl %esi, %ecx
rolq %cl, %rax
andq %rax, (%rdi)
jmp 0x176a1
addq $0x8, %rdi
leaq 0x4(%rsp), %rsi
callq 0x1a0f0
popq %rax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_common.hpp
// Function: spirv_cross::SPIRConstant::make_null(spirv_cross::SPIRType const&)
inline void make_null(const SPIRType &constant_type_)
	{
		m = {};
		m.columns = constant_type_.columns;
		for (auto &c : m.c)
			c.vecsize = constant_type_.vecsize;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x1ae7e
leaq 0x10(%rbx), %rdi
movl $0xf4, %edx
movq %r15, %rsi
callq 0x6220
movl 0x18(%r14), %eax
movl %eax, 0x100(%rbx)
movl 0x14(%r14), %eax
xorl %ecx, %ecx
cmpq $0xe0, %rcx
je 0x17e6d
movl %eax, 0x40(%rbx,%rcx)
addq $0x38, %rcx
jmp 0x17e5a
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_common.hpp
// Function: spirv_cross::Variant::operator=(spirv_cross::Variant const&)
Variant &operator=(const Variant &other)
	{
#ifdef SPIRV_CROSS_COPY_CONSTRUCTOR_SANITIZE
		abort();
#endif
		if (this != &other)
		{
			holder.reset();
			if (other.holder)
				holder = other.holder->clone();
			type = other.type;
			allow_type_rewrite = other.allow_type_rewrite;
		}
		return *this;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpq %rsi, %rdi
je 0x18890
movq %rsi, %r14
movq (%rbx), %rdi
andq $0x0, (%rbx)
testq %rdi, %rdi
je 0x18844
movq (%rdi), %rax
callq *0x8(%rax)
movq (%r14), %rsi
testq %rsi, %rsi
je 0x18882
movq (%rsi), %rax
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq *0x10(%rax)
movq (%r15), %rax
andq $0x0, (%r15)
movq (%rbx), %rdi
movq %rax, (%rbx)
testq %rdi, %rdi
je 0x18882
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x18882
movq (%rdi), %rax
callq *0x8(%rax)
movl 0x8(%r14), %eax
movl %eax, 0x8(%rbx)
movb 0xc(%r14), %al
movb %al, 0xc(%rbx)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_common.hpp
// Function: spirv_cross::Bitset::operator==(spirv_cross::Bitset const&) const
inline bool operator==(const Bitset &other) const
	{
		if (lower != other.lower)
			return false;

		if (higher.size() != other.higher.size())
			return false;

		for (auto &v : higher)
			if (other.higher.count(v) == 0)
				return false;

		return true;
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq (%rdi), %rax
cmpq (%rsi), %rax
jne 0x1ae75
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rdi), %rax
cmpq 0x20(%rsi), %rax
jne 0x1ae75
addq $0x8, %rbx
addq $0x18, %r14
movq (%r14), %r14
testq %r14, %r14
sete %bpl
je 0x1ae77
leaq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x1aeea
testq %rax, %rax
jne 0x1ae56
jmp 0x1ae77
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_common.hpp
// Function: spirv_cross::SPIRAccessChain& spirv_cross::variant_set<spirv_cross::SPIRAccessChain, unsigned int const&, spv::StorageClass const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, unsigned int&>(spirv_cross::Variant&, unsigned int const&, spv::StorageClass const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, unsigned int&)
T &variant_set(Variant &var, P &&... args)
{
	auto uptr = std::unique_ptr<T>(new T(std::forward<P>(args)...));
	auto ptr = uptr.get();
	var.set(std::move(uptr), T::type);
	return *ptr;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, %r15
movq %r8, %r13
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %rbp
movq %rdi, 0x10(%rsp)
pushq $0x68
popq %rdi
callq 0x6270
movq %rax, %rbx
movl (%rbp), %ebp
movl (%r12), %r12d
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x63c0
leaq 0x18(%rsp), %rdi
movq %r13, %rsi
callq 0x63c0
movl (%r15), %r9d
leaq 0x38(%rsp), %rcx
leaq 0x18(%rsp), %r8
movq %rbx, %rdi
movl %ebp, %esi
movl %r12d, %edx
callq 0x6bd7e
leaq 0x18(%rsp), %rdi
callq 0x6548
leaq 0x38(%rsp), %rdi
callq 0x6548
leaq 0x8(%rsp), %rsi
movq %rbx, (%rsi)
pushq $0xc
popq %rdx
movq 0x10(%rsp), %rdi
callq 0x1dca4
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6bd22
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6bd75
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x6bd75
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x6548
jmp 0x6bd5b
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x6548
jmp 0x6bd6a
movq %rax, %r14
pushq $0x68
popq %rsi
movq %rbx, %rdi
callq 0x6280
movq %r14, %rdi
callq 0x64b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_common.hpp
// Function: spirv_cross::Variant::set(std::unique_ptr<spirv_cross::IVariant, std::default_delete<spirv_cross::IVariant>>, unsigned int)
void set(std::unique_ptr<IVariant> val, uint32_t new_type)
	{
		holder = std::move(val);
		if (!allow_type_rewrite && type != TypeNone && type != new_type)
			SPIRV_CROSS_THROW("Overwriting a variant with new type.");
		type = new_type;
		allow_type_rewrite = false;
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl %edx, %ebx
movq %rdi, %r14
callq 0x1889e
cmpb $0x0, 0xc(%r14)
jne 0x1dccf
movl 0x8(%r14), %eax
testl %eax, %eax
sete %cl
cmpl %ebx, %eax
sete %al
orb %cl, %al
je 0x1dce1
movl %ebx, 0x8(%r14)
movb $0x0, 0xc(%r14)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x6140
movq %rax, %rbx
leaq 0x7256e(%rip), %rsi     # 0x90261
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x6100
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x6f6e
xorl %ebp, %ebp
leaq 0xc90a5(%rip), %rsi     # 0xe6dc0
movq 0xca2be(%rip), %rdx     # 0xe7fe0
movq %rbx, %rdi
callq 0x6490
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x6548
testb %bpl, %bpl
jne 0x1dd41
jmp 0x1dd49
movq %rax, %r14
movq %rbx, %rdi
callq 0x6200
movq %r14, %rdi
callq 0x64b0
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross_parsed_ir.cpp
// Function: spirv_cross::ParsedIR::get_member_name[abi:cxx11](unsigned int, unsigned int) const
const string &ParsedIR::get_member_name(uint32_t id, uint32_t index) const
{
	auto &m = meta[id];
	if (index >= m.members.size())
	{
		static string empty;
		return empty;
	}

	return m.members[index].alias;
}

// Assembly:
pushq %rbx
movl %esi, %eax
movq 0x30(%rdi), %rsi
movl %edx, %ecx
imulq $0x148, %rax, %rax      # imm = 0x148
movq 0xd0(%rsi,%rax), %rbx
movq 0xd8(%rsi,%rax), %rax
subq %rbx, %rax
movl $0xd0, %esi
cqto
idivq %rsi
cmpq %rcx, %rax
jbe 0x1f510
imulq $0xd0, %rcx, %rax
addq %rax, %rbx
jmp 0x1f521
movb 0xc9002(%rip), %al      # 0xe8518
leaq 0xc8fdb(%rip), %rbx     # 0xe84f8
testb %al, %al
je 0x1f526
movq %rbx, %rax
popq %rbx
retq
leaq 0xc8feb(%rip), %rdi     # 0xe8518
callq 0x64c0
testl %eax, %eax
je 0x1f521
leaq 0xc8fcb(%rip), %rax     # 0xe8508
movq %rax, 0xc8fb4(%rip)     # 0xe84f8
leaq 0xc8fad(%rip), %rbx     # 0xe84f8
andq $0x0, 0xc8fad(%rip)     # 0xe8500
movb $0x0, 0xc8fae(%rip)     # 0xe8508
movq 0xc8a77(%rip), %rdi     # 0xe7fd8
leaq 0xc8d38(%rip), %rdx     # 0xe82a0
movq %rbx, %rsi
callq 0x6240
leaq 0xc8fa1(%rip), %rdi     # 0xe8518
callq 0x61b0
jmp 0x1f521
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross_parsed_ir.cpp
// Function: spirv_cross::ParsedIR::set_name(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void ParsedIR::set_name(uint32_t id, const string &name)
{
	auto &str = meta[id].decoration.alias;
	str.clear();

	if (name.empty())
		return;

	// glslang uses identifiers to pass along meaningful information
	// about HLSL reflection.
	// FIXME: This should be deprecated eventually.
	auto &m = meta[id];
	if (source.hlsl && name.size() >= 6 && name.find("@count") == name.size() - 6)
	{
		m.hlsl_magic_counter_buffer_candidate = true;
		m.hlsl_magic_counter_buffer_name = name.substr(0, name.find("@count"));
	}
	else
	{
		m.hlsl_magic_counter_buffer_candidate = false;
		m.hlsl_magic_counter_buffer_name.clear();
	}

	// Reserved for temporaries.
	if (name[0] == '_' && name.size() >= 2 && isdigit(name[1]))
		return;

	str = ensure_valid_identifier(name, false);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %esi, %eax
movq 0x30(%rdi), %rbx
imulq $0x148, %rax, %r13      # imm = 0x148
andq $0x0, 0x8(%rbx,%r13)
movq (%rbx,%r13), %rax
movb $0x0, (%rax)
movq 0x8(%rdx), %rax
testq %rax, %rax
je 0x1f68c
movq %rdx, %r14
movq 0x30(%rdi), %r15
addq %r13, %r15
cmpq $0x6, %rax
jb 0x1f631
cmpb $0x0, 0x10a(%rdi)
je 0x1f631
leaq 0x70f4e(%rip), %rsi     # 0x90520
movq %r14, %rdi
xorl %edx, %edx
callq 0x6510
movq 0x8(%r14), %rcx
addq $-0x6, %rcx
cmpq %rcx, %rax
jne 0x1f631
movb $0x1, 0x140(%r15)
leaq 0x70f28(%rip), %rsi     # 0x90520
movq %r14, %rdi
xorl %edx, %edx
callq 0x6510
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x62b0
addq $0x120, %r15            # imm = 0x120
movq %r15, %rdi
movq %r12, %rsi
callq 0x6320
movq %r12, %rdi
callq 0x6548
jmp 0x1f64b
xorl %eax, %eax
movb %al, 0x140(%r15)
andq $0x0, 0x128(%r15)
movq 0x120(%r15), %rcx
movb %al, (%rcx)
movq (%r14), %rax
cmpb $0x5f, (%rax)
jne 0x1f666
cmpq $0x2, 0x8(%r14)
jb 0x1f666
movsbl 0x1(%rax), %eax
addl $-0x30, %eax
cmpl $0xa, %eax
jb 0x1f68c
addq %r13, %rbx
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x1f69a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6320
movq %r15, %rdi
callq 0x6548
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross_parsed_ir.cpp
// Function: spirv_cross::ensure_valid_identifier(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
static string ensure_valid_identifier(const string &name, bool member)
{
	// Functions in glslangValidator are mangled with name(<mangled> stuff.
	// Normally, we would never see '(' in any legal identifiers, so just strip them out.
	auto str = name.substr(0, name.find('('));

	for (uint32_t i = 0; i < str.size(); i++)
	{
		auto &c = str[i];

		if (member)
		{
			// _m<num> variables are reserved by the internal implementation,
			// otherwise, make sure the name is a valid identifier.
			if (i == 0)
				c = isalpha(c) ? c : '_';
			else if (i == 2 && str[0] == '_' && str[1] == 'm')
				c = isalpha(c) ? c : '_';
			else
				c = isalnum(c) ? c : '_';
		}
		else
		{
			// _<num> variables are reserved by the internal implementation,
			// otherwise, make sure the name is a valid identifier.
			if (i == 0 || (str[0] == '_' && i == 1))
				c = isalpha(c) ? c : '_';
			else
				c = isalnum(c) ? c : '_';
		}
	}
	return str;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
xorl %r12d, %r12d
pushq $0x28
popq %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x6370
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x62b0
pushq $0x5f
popq %rbp
movl %r12d, %r15d
cmpq %r15, 0x8(%r14)
jbe 0x1f740
movq (%r14), %r12
testb %bl, %bl
je 0x1f6ed
cmpq $0x2, %r15
je 0x1f701
testl %r15d, %r15d
je 0x1f710
jmp 0x1f71f
testq %r15, %r15
je 0x1f710
cmpl $0x1, %r15d
jne 0x1f71f
cmpb $0x5f, (%r12)
je 0x1f710
jmp 0x1f71f
cmpb $0x5f, (%r12)
jne 0x1f71f
cmpb $0x6d, 0x1(%r12)
jne 0x1f71f
movb (%r12,%r15), %r13b
movsbl %r13b, %edi
callq 0x6450
jmp 0x1f72c
movb (%r12,%r15), %r13b
movsbl %r13b, %edi
callq 0x6290
movl %ebp, %ecx
testl %eax, %eax
je 0x1f736
movzbl %r13b, %ecx
movb %cl, (%r12,%r15)
leal 0x1(%r15), %r12d
jmp 0x1f6d0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross_parsed_ir.cpp
// Function: spirv_cross::ParsedIR::set_member_name(unsigned int, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void ParsedIR::set_member_name(uint32_t id, uint32_t index, const string &name)
{
	meta[id].members.resize(max(meta[id].members.size(), size_t(index) + 1));

	auto &str = meta[id].members[index].alias;
	str.clear();
	if (name.empty())
		return;

	// Reserved for unnamed members.
	if (name[0] == '_' && name.size() >= 3 && name[1] == 'm' && isdigit(name[2]))
		return;

	str = ensure_valid_identifier(name, true);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %rbx
movl %edx, %ecx
movq %rdi, %r14
movl %esi, %eax
movq 0x30(%rdi), %rdx
imulq $0x148, %rax, %r15      # imm = 0x148
movl $0xd0, %esi
leaq (%r15,%rsi), %rdi
addq %rdx, %rdi
movq 0xd8(%rdx,%r15), %rax
subq 0xd0(%rdx,%r15), %rax
cqto
idivq %rsi
movl %ecx, %r12d
leaq 0x1(%r12), %rsi
cmpq %rsi, %rax
cmovaq %rax, %rsi
callq 0x174de
movq 0x30(%r14), %rax
movq 0xd0(%rax,%r15), %r14
imulq $0xd0, %r12, %rax
andq $0x0, 0x8(%r14,%rax)
movq (%r14,%rax), %rcx
movb $0x0, (%rcx)
movq 0x8(%rbx), %rcx
testq %rcx, %rcx
je 0x1f819
cmpq $0x3, %rcx
jb 0x1f7f0
movq (%rbx), %rcx
cmpb $0x5f, (%rcx)
jne 0x1f7f0
cmpb $0x6d, 0x1(%rcx)
jne 0x1f7f0
movsbl 0x2(%rcx), %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jb 0x1f819
addq %rax, %r14
leaq 0x8(%rsp), %r15
pushq $0x1
popq %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1f69a
movq %r14, %rdi
movq %r15, %rsi
callq 0x6320
movq %r15, %rdi
callq 0x6548
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross_parsed_ir.cpp
// Function: spirv_cross::ParsedIR::set_decoration_string(unsigned int, spv::Decoration, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void ParsedIR::set_decoration_string(uint32_t id, Decoration decoration, const string &argument)
{
	auto &dec = meta[id].decoration;
	dec.decoration_flags.set(decoration);

	switch (decoration)
	{
	case DecorationHlslSemanticGOOGLE:
		dec.hlsl_semantic = argument;
		break;

	default:
		break;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ebp
movl %esi, %eax
movq 0x30(%rdi), %r14
imulq $0x148, %rax, %r15      # imm = 0x148
leaq (%r14,%r15), %rdi
addq $0x60, %rdi
movl %edx, %esi
callq 0x17654
cmpl $0x1603, %ebp           # imm = 0x1603
jne 0x1f872
addq %r15, %r14
addq $0x40, %r14
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x6170
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross_parsed_ir.cpp
// Function: spirv_cross::ParsedIR::set_decoration(unsigned int, spv::Decoration, unsigned int)
void ParsedIR::set_decoration(uint32_t id, Decoration decoration, uint32_t argument)
{
	auto &dec = meta[id].decoration;
	dec.decoration_flags.set(decoration);

	switch (decoration)
	{
	case DecorationBuiltIn:
		dec.builtin = true;
		dec.builtin_type = static_cast<BuiltIn>(argument);
		break;

	case DecorationLocation:
		dec.location = argument;
		break;

	case DecorationComponent:
		dec.component = argument;
		break;

	case DecorationOffset:
		dec.offset = argument;
		break;

	case DecorationArrayStride:
		dec.array_stride = argument;
		break;

	case DecorationMatrixStride:
		dec.matrix_stride = argument;
		break;

	case DecorationBinding:
		dec.binding = argument;
		break;

	case DecorationDescriptorSet:
		dec.set = argument;
		break;

	case DecorationInputAttachmentIndex:
		dec.input_attachment = argument;
		break;

	case DecorationSpecId:
		dec.spec_id = argument;
		break;

	case DecorationIndex:
		dec.index = argument;
		break;

	case DecorationHlslCounterBufferGOOGLE:
		meta[id].hlsl_magic_counter_buffer = argument;
		meta[id].hlsl_is_magic_counter_buffer = true;
		break;

	default:
		break;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %ecx, %ebx
movl %edx, %r14d
movq %rdi, %r15
movl %esi, %eax
movq 0x30(%rdi), %r12
imulq $0x148, %rax, %r13      # imm = 0x148
leaq (%r12,%r13), %rdi
addq $0x60, %rdi
addq %r13, %r12
movl %edx, %esi
callq 0x17654
leal -0x1e(%r14), %eax
cmpl $0xd, %eax
ja 0x1f8d4
leaq 0x70b8a(%rip), %rcx     # 0x90448
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl %ebx, 0xa4(%r12)
jmp 0x1f97f
cmpl $0x1, %r14d
je 0x1f977
cmpl $0x6, %r14d
je 0x1f94c
cmpl $0x7, %r14d
je 0x1f956
cmpl $0x1602, %r14d          # imm = 0x1602
je 0x1f960
cmpl $0xb, %r14d
jne 0x1f97f
movb $0x1, 0xcc(%r12)
movl %ebx, 0xa0(%r12)
jmp 0x1f97f
movl %ebx, 0xb4(%r12)
jmp 0x1f97f
movl %ebx, 0xb0(%r12)
jmp 0x1f97f
movl %ebx, 0xa8(%r12)
jmp 0x1f97f
movl %ebx, 0xc8(%r12)
jmp 0x1f97f
movl %ebx, 0xac(%r12)
jmp 0x1f97f
movl %ebx, 0xc0(%r12)
jmp 0x1f97f
movl %ebx, 0xb8(%r12)
jmp 0x1f97f
movl %ebx, 0xbc(%r12)
jmp 0x1f97f
movq 0x30(%r15), %rax
movl %ebx, 0x144(%rax,%r13)
movb $0x1, 0x141(%rax,%r13)
jmp 0x1f97f
movl %ebx, 0xc4(%r12)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross_parsed_ir.cpp
// Function: spirv_cross::ParsedIR::set_member_decoration(unsigned int, unsigned int, spv::Decoration, unsigned int)
void ParsedIR::set_member_decoration(uint32_t id, uint32_t index, Decoration decoration, uint32_t argument)
{
	meta[id].members.resize(max(meta[id].members.size(), size_t(index) + 1));
	auto &dec = meta[id].members[index];
	dec.decoration_flags.set(decoration);

	switch (decoration)
	{
	case DecorationBuiltIn:
		dec.builtin = true;
		dec.builtin_type = static_cast<BuiltIn>(argument);
		break;

	case DecorationLocation:
		dec.location = argument;
		break;

	case DecorationComponent:
		dec.component = argument;
		break;

	case DecorationBinding:
		dec.binding = argument;
		break;

	case DecorationOffset:
		dec.offset = argument;
		break;

	case DecorationSpecId:
		dec.spec_id = argument;
		break;

	case DecorationMatrixStride:
		dec.matrix_stride = argument;
		break;

	case DecorationIndex:
		dec.index = argument;
		break;

	default:
		break;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %r8d, %ebx
movl %ecx, %r14d
movl %edx, %ecx
movq %rdi, %r15
movl %esi, %eax
movq 0x30(%rdi), %rdx
imulq $0x148, %rax, %r12      # imm = 0x148
movl $0xd0, %esi
leaq (%r12,%rsi), %rdi
addq %rdx, %rdi
movq 0xd8(%rdx,%r12), %rax
subq 0xd0(%rdx,%r12), %rax
cqto
idivq %rsi
movl %ecx, %r13d
leaq 0x1(%r13), %rsi
cmpq %rsi, %rax
cmovaq %rax, %rsi
callq 0x174de
movq 0x30(%r15), %rax
movq 0xd0(%rax,%r12), %rax
imulq $0xd0, %r13, %rcx
leaq (%rax,%rcx), %r15
leaq (%rax,%rcx), %rdi
addq $0x60, %rdi
movl %r14d, %esi
callq 0x17654
leal -0x1e(%r14), %eax
cmpl $0x5, %eax
ja 0x1fa28
leaq 0x70a6a(%rip), %rcx     # 0x90480
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl %ebx, 0xa4(%r15)
jmp 0x1fa7f
cmpl $0x1, %r14d
je 0x1fa78
cmpl $0x7, %r14d
je 0x1fa6f
cmpl $0xb, %r14d
jne 0x1fa7f
movb $0x1, 0xcc(%r15)
movl %ebx, 0xa0(%r15)
jmp 0x1fa7f
movl %ebx, 0xb0(%r15)
jmp 0x1fa7f
movl %ebx, 0xa8(%r15)
jmp 0x1fa7f
movl %ebx, 0xb4(%r15)
jmp 0x1fa7f
movl %ebx, 0xc8(%r15)
jmp 0x1fa7f
movl %ebx, 0xbc(%r15)
jmp 0x1fa7f
movl %ebx, 0xc4(%r15)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross_parsed_ir.cpp
// Function: spirv_cross::ParsedIR::mark_used_as_array_length(unsigned int)
void ParsedIR::mark_used_as_array_length(uint32_t id)
{
	switch (ids[id].get_type())
	{
	case TypeConstant:
		get<SPIRConstant>(id).is_used_as_array_length = true;
		break;

	case TypeConstantOp:
	{
		auto &cop = get<SPIRConstantOp>(id);
		for (uint32_t arg_id : cop.arguments)
			mark_used_as_array_length(arg_id);
		break;
	}

	case TypeUndef:
		break;

	default:
		assert(0);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %eax
movq 0x18(%rdi), %rcx
shlq $0x4, %rax
movl 0x8(%rcx,%rax), %eax
cmpl $0xd, %eax
je 0x1fabe
movq %rdi, %rbx
cmpl $0xa, %eax
je 0x1fac4
cmpl $0x3, %eax
jne 0x1faea
movq %rbx, %rdi
callq 0x2039c
movb $0x1, 0x109(%rax)
popq %rbx
popq %r14
popq %r15
retq
movq %rbx, %rdi
callq 0x203ae
movq 0x10(%rax), %r14
movq 0x18(%rax), %r15
cmpq %r15, %r14
je 0x1fabe
movl (%r14), %esi
movq %rbx, %rdi
callq 0x1fa8a
addq $0x4, %r14
jmp 0x1fad4
leaq 0x7df9a(%rip), %rdi     # 0x9da8b
leaq 0x70a2f(%rip), %rsi     # 0x90527
leaq 0x70a4e(%rip), %rcx     # 0x9054d
movl $0x113, %edx            # imm = 0x113
callq 0x61c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross_parsed_ir.cpp
// Function: spirv_cross::ParsedIR::get_buffer_block_flags(spirv_cross::SPIRVariable const&) const
Bitset ParsedIR::get_buffer_block_flags(const SPIRVariable &var) const
{
	auto &type = get<SPIRType>(var.basetype);
	assert(type.basetype == SPIRType::Struct);

	// Some flags like non-writable, non-readable are actually found
	// as member decorations. If all members have a decoration set, propagate
	// the decoration up as a regular variable decoration.
	Bitset base_flags = meta[var.self].decoration.decoration_flags;

	if (type.member_types.empty())
		return base_flags;

	Bitset all_members_flags = get_member_decoration_bitset(type.self, 0);
	for (uint32_t i = 1; i < uint32_t(type.member_types.size()); i++)
		all_members_flags.merge_and(get_member_decoration_bitset(type.self, i));

	base_flags.merge_or(all_members_flags);
	return base_flags;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movl 0xc(%rdx), %esi
movq %r14, %rdi
callq 0x203c0
cmpl $0xc, 0xc(%rax)
jne 0x1fbd2
movq %rax, %r15
movl 0x8(%r12), %eax
movq 0x30(%r14), %rcx
imulq $0x148, %rax, %rax      # imm = 0x148
leaq (%rcx,%rax), %rsi
addq $0x60, %rsi
movq %rbx, %rdi
callq 0x934a
movq 0x68(%r15), %rax
cmpq 0x70(%r15), %rax
je 0x1fbc2
movl 0x8(%r15), %esi
movq %r14, %rdi
xorl %edx, %edx
callq 0x1fc1a
movq %rsp, %rdi
movq %rax, %rsi
callq 0x934a
pushq $0x1
popq %rbp
movq %rsp, %r12
movq 0x70(%r15), %rax
subq 0x68(%r15), %rax
shrq $0x2, %rax
cmpl %eax, %ebp
jae 0x1fbad
movl 0x8(%r15), %esi
movq %r14, %rdi
movl %ebp, %edx
callq 0x1fc1a
movq %r12, %rdi
movq %rax, %rsi
callq 0x203d2
incl %ebp
jmp 0x1fb80
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x17e7a
leaq 0x8(%rsp), %rdi
callq 0xb51c
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x709b4(%rip), %rdi     # 0x9058d
leaq 0x70947(%rip), %rsi     # 0x90527
leaq 0x709c8(%rip), %rcx     # 0x905af
movl $0x11a, %edx            # imm = 0x11A
callq 0x61c0
jmp 0x1fbf8
movq %rax, %r14
jmp 0x1fc05
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0xb51c
addq $0x8, %rbx
movq %rbx, %rdi
callq 0xb51c
movq %r14, %rdi
callq 0x64b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross_parsed_ir.cpp
// Function: spirv_cross::ParsedIR::get_member_decoration_bitset(unsigned int, unsigned int) const
const Bitset &ParsedIR::get_member_decoration_bitset(uint32_t id, uint32_t index) const
{
	auto &m = meta[id];
	if (index >= m.members.size())
	{
		static const Bitset cleared = {};
		return cleared;
	}

	return m.members[index].decoration_flags;
}

// Assembly:
pushq %rbx
movl %esi, %eax
movq 0x30(%rdi), %rdi
movl %edx, %ecx
imulq $0x148, %rax, %rax      # imm = 0x148
movq 0xd0(%rdi,%rax), %rsi
movq 0xd8(%rdi,%rax), %rax
subq %rsi, %rax
movl $0xd0, %edi
cqto
idivq %rdi
cmpq %rcx, %rax
jbe 0x1fc5d
imulq $0xd0, %rcx, %rax
leaq (%rsi,%rax), %rbx
addq $0x60, %rbx
jmp 0x1fc6e
movb 0xc88fd(%rip), %al      # 0xe8560
leaq 0xc88b6(%rip), %rbx     # 0xe8520
testb %al, %al
je 0x1fc73
movq %rbx, %rax
popq %rbx
retq
leaq 0xc88e6(%rip), %rdi     # 0xe8560
callq 0x64c0
testl %eax, %eax
je 0x1fc6e
xorps %xmm0, %xmm0
movups %xmm0, 0xc8893(%rip)    # 0xe8520
movups %xmm0, 0xc889c(%rip)    # 0xe8530
movups %xmm0, 0xc88a5(%rip)    # 0xe8540
leaq 0xc887e(%rip), %rbx     # 0xe8520
leaq 0xc88af(%rip), %rax     # 0xe8558
movq %rax, 0xc8878(%rip)     # 0xe8528
movq $0x1, 0xc8875(%rip) # 0xe8530
movups %xmm0, 0xc8876(%rip)    # 0xe8538
movl $0x3f800000, 0xc887c(%rip) # imm = 0x3F800000
movups %xmm0, 0xc887d(%rip)    # 0xe8550
leaq 0x7aa(%rip), %rdi       # 0x20484
leaq 0xc85bf(%rip), %rdx     # 0xe82a0
movq %rbx, %rsi
callq 0x6240
leaq 0xc8870(%rip), %rdi     # 0xe8560
callq 0x61b0
jmp 0x1fc6e
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross_parsed_ir.cpp
// Function: spirv_cross::ParsedIR::get_decoration(unsigned int, spv::Decoration) const
uint32_t ParsedIR::get_decoration(uint32_t id, Decoration decoration) const
{
	auto &dec = meta[id].decoration;
	if (!dec.decoration_flags.get(decoration))
		return 0;

	switch (decoration)
	{
	case DecorationBuiltIn:
		return dec.builtin_type;
	case DecorationLocation:
		return dec.location;
	case DecorationComponent:
		return dec.component;
	case DecorationOffset:
		return dec.offset;
	case DecorationBinding:
		return dec.binding;
	case DecorationDescriptorSet:
		return dec.set;
	case DecorationInputAttachmentIndex:
		return dec.input_attachment;
	case DecorationSpecId:
		return dec.spec_id;
	case DecorationArrayStride:
		return dec.array_stride;
	case DecorationMatrixStride:
		return dec.matrix_stride;
	case DecorationIndex:
		return dec.index;
	default:
		return 1;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movl %esi, %eax
movq 0x30(%rdi), %r14
imulq $0x148, %rax, %r15      # imm = 0x148
leaq (%r14,%r15), %rdi
addq $0x60, %rdi
movl %edx, %esi
callq 0x16ef0
movl %eax, %ecx
xorl %eax, %eax
testb %cl, %cl
je 0x1fdee
addq %r15, %r14
pushq $0x1
popq %rax
leal -0x1e(%rbx), %ecx
cmpl $0xd, %ecx
ja 0x1fd82
leaq 0x70728(%rip), %rdx     # 0x90498
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl 0xa4(%r14), %eax
jmp 0x1fdee
cmpl $0x1, %ebx
je 0x1fdd5
cmpl $0x6, %ebx
je 0x1fdde
cmpl $0x7, %ebx
je 0x1fde7
cmpl $0xb, %ebx
jne 0x1fdee
movl 0xa0(%r14), %eax
jmp 0x1fdee
movl 0xb0(%r14), %eax
jmp 0x1fdee
movl 0xa8(%r14), %eax
jmp 0x1fdee
movl 0xac(%r14), %eax
jmp 0x1fdee
movl 0xc8(%r14), %eax
jmp 0x1fdee
movl 0xc0(%r14), %eax
jmp 0x1fdee
movl 0xb4(%r14), %eax
jmp 0x1fdee
movl 0xc4(%r14), %eax
jmp 0x1fdee
movl 0xb8(%r14), %eax
jmp 0x1fdee
movl 0xbc(%r14), %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross_parsed_ir.cpp
// Function: spirv_cross::ParsedIR::get_decoration_string[abi:cxx11](unsigned int, spv::Decoration) const
const string &ParsedIR::get_decoration_string(uint32_t id, Decoration decoration) const
{
	auto &dec = meta[id].decoration;
	static const string empty;

	if (!dec.decoration_flags.get(decoration))
		return empty;

	switch (decoration)
	{
	case DecorationHlslSemanticGOOGLE:
		return dec.hlsl_semantic;

	default:
		return empty;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movq 0x30(%rdi), %r14
movb 0xc877f(%rip), %al      # 0xe8588
testb %al, %al
je 0x1fe52
movl %ebp, %eax
imulq $0x148, %rax, %r15      # imm = 0x148
leaq (%r14,%r15), %rdi
addq $0x60, %rdi
movl %ebx, %esi
callq 0x16ef0
leaq (%r14,%r15), %rcx
addq $0x40, %rcx
leaq 0xc8734(%rip), %rdx     # 0xe8568
testb %al, %al
cmoveq %rdx, %rcx
cmpl $0x1603, %ebx           # imm = 0x1603
cmovneq %rdx, %rcx
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc872f(%rip), %rdi     # 0xe8588
callq 0x64c0
testl %eax, %eax
je 0x1fe0d
leaq 0xc870f(%rip), %rax     # 0xe8578
movq %rax, 0xc86f8(%rip)     # 0xe8568
leaq 0xc86f1(%rip), %rsi     # 0xe8568
andq $0x0, 0xc86f1(%rip)     # 0xe8570
movb $0x0, 0xc86f2(%rip)     # 0xe8578
movq 0xc814b(%rip), %rdi     # 0xe7fd8
leaq 0xc840c(%rip), %rdx     # 0xe82a0
callq 0x6240
leaq 0xc86e8(%rip), %rdi     # 0xe8588
callq 0x61b0
jmp 0x1fe0d
// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_cross_parsed_ir.cpp
// Function: spirv_cross::ParsedIR::unset_decoration(unsigned int, spv::Decoration)
void ParsedIR::unset_decoration(uint32_t id, Decoration decoration)
{
	auto &dec = meta[id].decoration;
	dec.decoration_flags.clear(decoration);
	switch (decoration)
	{
	case DecorationBuiltIn:
		dec.builtin = false;
		break;

	case DecorationLocation:
		dec.location = 0;
		break;

	case DecorationComponent:
		dec.component = 0;
		break;

	case DecorationOffset:
		dec.offset = 0;
		break;

	case DecorationBinding:
		dec.binding = 0;
		break;

	case DecorationDescriptorSet:
		dec.set = 0;
		break;

	case DecorationInputAttachmentIndex:
		dec.input_attachment = 0;
		break;

	case DecorationSpecId:
		dec.spec_id = 0;
		break;

	case DecorationHlslSemanticGOOGLE:
		dec.hlsl_semantic.clear();
		break;

	case DecorationHlslCounterBufferGOOGLE:
	{
		auto &counter = meta[id].hlsl_magic_counter_buffer;
		if (counter)
		{
			meta[counter].hlsl_is_magic_counter_buffer = false;
			counter = 0;
		}
		break;
	}

	default:
		break;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r14
movl %esi, %eax
movq 0x30(%rdi), %r15
imulq $0x148, %rax, %r12      # imm = 0x148
leaq (%r15,%r12), %rdi
addq $0x60, %rdi
addq %r12, %r15
movl %edx, %esi
callq 0x1767c
leal -0x1e(%rbx), %eax
cmpl $0xd, %eax
ja 0x1fefb
leaq 0x705eb(%rip), %rcx     # 0x904d0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
andl $0x0, 0xa4(%r15)
jmp 0x1ff9f
cmpl $0x1, %ebx
je 0x1ff59
cmpl $0x1603, %ebx           # imm = 0x1603
je 0x1ff93
cmpl $0x1602, %ebx           # imm = 0x1602
je 0x1ff63
cmpl $0xb, %ebx
jne 0x1ff9f
movb $0x0, 0xcc(%r15)
jmp 0x1ff9f
andl $0x0, 0xac(%r15)
jmp 0x1ff9f
andl $0x0, 0xb0(%r15)
jmp 0x1ff9f
andl $0x0, 0xb4(%r15)
jmp 0x1ff9f
andl $0x0, 0xa8(%r15)
jmp 0x1ff9f
andl $0x0, 0xc0(%r15)
jmp 0x1ff9f
andl $0x0, 0xc4(%r15)
jmp 0x1ff9f
movq 0x30(%r14), %rax
movl 0x144(%rax,%r12), %ecx
testq %rcx, %rcx
je 0x1ff9f
leaq (%rax,%r12), %rdx
addq $0x144, %rdx            # imm = 0x144
imulq $0x148, %rcx, %rcx      # imm = 0x148
movb $0x0, 0x141(%rax,%rcx)
andl $0x0, (%rdx)
jmp 0x1ff9f
andq $0x0, 0x48(%r15)
movq 0x40(%r15), %rax
movb $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop