LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::flush_control_dependent_expressions(unsigned int)
void Compiler::flush_control_dependent_expressions(uint32_t block_id)
{
	auto &block = get<SPIRBlock>(block_id);
	for (auto &expr : block.invalidate_expressions)
		invalid_expressions.insert(expr);
	block.invalidate_expressions.clear();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
callq 0x7870
movq 0xe8(%rax), %r15
movq 0xf0(%rax), %r13
cmpq %r13, %r15
je 0x1301a
movq %rax, %rbx
addq $0x198, %r14            # imm = 0x198
leaq 0x8(%rsp), %r12
movq %r14, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1f510
addq $0x4, %r15
cmpq %r13, %r15
jne 0x12fe7
movq 0xe8(%rbx), %rax
cmpq %rax, 0xf0(%rbx)
je 0x1301a
movq %rax, 0xf0(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::flush_all_active_variables()
void Compiler::flush_all_active_variables()
{
	// Invalidate all temporaries we read from variables in this block since they were forwarded.
	// Invalidate all temporaries we read from globals.
	for (auto &v : current_function->local_variables)
		flush_dependees(get<SPIRVariable>(v));
	for (auto &arg : current_function->arguments)
		flush_dependees(get<SPIRVariable>(arg.id));
	for (auto global : global_variables)
		flush_dependees(get<SPIRVariable>(global));

	flush_all_aliased_variables();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x148(%rdi), %rax
movq 0x48(%rax), %r14
movq 0x50(%rax), %r15
cmpq %r15, %r14
je 0x1306a
movl (%r14), %esi
movq %rbx, %rdi
callq 0xb3ca
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12ef8
addq $0x4, %r14
cmpq %r15, %r14
jne 0x13044
movq 0x148(%rbx), %rax
movq 0x18(%rax), %r14
movq 0x20(%rax), %r15
cmpq %r15, %r14
je 0x13094
movl 0x4(%r14), %esi
movq %rbx, %rdi
callq 0xb3ca
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12ef8
addq $0x14, %r14
jmp 0x13072
movq 0x118(%rbx), %r14
movq 0x120(%rbx), %r15
cmpq %r15, %r14
je 0x130c3
movl (%r14), %esi
movq %rbx, %rdi
callq 0xb3ca
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12ef8
addq $0x4, %r14
jmp 0x130a2
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x12eb8
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::expression_type_id(unsigned int) const
uint32_t Compiler::expression_type_id(uint32_t id) const
{
	switch (ir.ids[id].get_type())
	{
	case TypeVariable:
		return get<SPIRVariable>(id).basetype;

	case TypeExpression:
		return get<SPIRExpression>(id).expression_type;

	case TypeConstant:
		return get<SPIRConstant>(id).constant_type;

	case TypeConstantOp:
		return get<SPIRConstantOp>(id).basetype;

	case TypeUndef:
		return get<SPIRUndef>(id).basetype;

	case TypeCombinedImageSampler:
		return get<SPIRCombinedImageSampler>(id).combined_type;

	case TypeAccessChain:
		return get<SPIRAccessChain>(id).basetype;

	default:
		SPIRV_CROSS_THROW("Cannot resolve expression type.");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %esi, %eax
movq 0x20(%rdi), %rcx
shlq $0x4, %rax
movl 0x8(%rcx,%rax), %eax
addl $-0x2, %eax
cmpl $0xb, %eax
ja 0x13148
leaq 0xa1809(%rip), %rcx     # 0xb4900
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x1b45e
jmp 0x13137
callq 0x1b562
jmp 0x13137
callq 0x1b4c6
jmp 0x13137
callq 0x1b596
jmp 0x13137
callq 0x1b492
addq $0x30, %rax
jmp 0x1313b
callq 0x1b4fa
addq $0x28, %rax
jmp 0x1313b
callq 0x1b52e
addq $0xc, %rax
movl (%rax), %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x6140
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xa1ab8(%rip), %rsi     # 0xb4c1d
leaq 0xa1ad0(%rip), %rdx     # 0xb4c3c
leaq 0x8(%rsp), %rdi
callq 0x7be0
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0xe8c3b(%rip), %rax     # 0xfbdc8
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0xe8c13(%rip), %rsi     # 0xfbdb0
movq 0xe9e34(%rip), %rdx     # 0xfcfd8
movq %rbx, %rdi
callq 0x6470
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x131c6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
testb %bpl, %bpl
jne 0x131d0
jmp 0x131d8
movq %rax, %r14
movq %rbx, %rdi
callq 0x6200
movq %r14, %rdi
callq 0x64a0
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::is_hidden_variable(spirv_cross::SPIRVariable const&, bool) const
bool Compiler::is_hidden_variable(const SPIRVariable &var, bool include_builtins) const
{
	if ((is_builtin_variable(var) && !include_builtins) || var.remapped_variable)
		return true;

	// Combined image samplers are always considered active as they are "magic" variables.
	if (find_if(begin(combined_image_samplers), end(combined_image_samplers), [&var](const CombinedImageSampler &samp) {
		    return samp.combined_id == var.self;
	    }) != end(combined_image_samplers))
	{
		return false;
	}

	bool hidden = false;
	if (check_active_interface_variables && storage_class_is_interface(var.storage))
		hidden = active_interface_variables.find(var.self) == end(active_interface_variables);
	return hidden;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x13330
movl %eax, %ecx
xorb $0x1, %cl
orb %bpl, %cl
movb $0x1, %al
cmpb $0x1, %cl
jne 0x1332a
cmpb $0x0, 0x5b(%rbx)
jne 0x1332a
movq 0x1d8(%r14), %rsi
movq 0x1e0(%r14), %rax
movl 0x8(%rbx), %ecx
movq %rax, %r9
subq %rsi, %r9
movq %r9, %r8
sarq $0x2, %r8
movabsq $-0x5555555555555555, %rdi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdi, %r8
sarq $0x2, %r8
testq %r8, %r8
jle 0x1329f
leaq (%r8,%r8,2), %rdx
shlq $0x4, %rdx
addq %rsi, %rdx
incq %r8
addq $0x18, %rsi
cmpl %ecx, -0x18(%rsi)
je 0x132d7
cmpl %ecx, -0xc(%rsi)
je 0x132dd
cmpl %ecx, (%rsi)
je 0x132e7
cmpl %ecx, 0xc(%rsi)
je 0x132e3
decq %r8
addq $0x30, %rsi
cmpq $0x1, %r8
jg 0x13277
movq %rax, %r9
subq %rdx, %r9
jmp 0x132a2
movq %rsi, %rdx
sarq $0x2, %r9
imulq %rdi, %r9
cmpq $0x1, %r9
je 0x132cc
cmpq $0x2, %r9
je 0x132c4
cmpq $0x3, %r9
jne 0x132ec
cmpl %ecx, (%rdx)
je 0x132d2
addq $0xc, %rdx
cmpl %ecx, (%rdx)
je 0x132d2
addq $0xc, %rdx
cmpl %ecx, (%rdx)
cmovneq %rax, %rdx
movq %rdx, %rsi
jmp 0x132e7
addq $-0x18, %rsi
jmp 0x132e7
addq $-0xc, %rsi
jmp 0x132e7
addq $0xc, %rsi
cmpq %rax, %rsi
jne 0x13328
cmpb $0x1, 0x190(%r14)
jne 0x13328
movl 0x10(%rbx), %ecx
xorl %eax, %eax
cmpl $0xc, %ecx
ja 0x1332a
movl $0x160f, %edx           # imm = 0x160F
btl %ecx, %edx
jae 0x1332a
addq $0x8, %rbx
addq $0x158, %r14            # imm = 0x158
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1f4b4
testq %rax, %rax
sete %al
jmp 0x1332a
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::is_builtin_variable(spirv_cross::SPIRVariable const&) const
bool Compiler::is_builtin_variable(const SPIRVariable &var) const
{
	if (var.compat_builtin || ir.meta[var.self].decoration.builtin)
		return true;
	else
		return is_builtin_type(get<SPIRType>(var.basetype));
}

// Assembly:
movb $0x1, %al
cmpb $0x0, 0x38(%rsi)
jne 0x133a4
pushq %rbx
movq %rdi, %rbx
movl 0x8(%rsi), %ecx
movq 0x38(%rdi), %rdx
imulq $0x148, %rcx, %rcx      # imm = 0x148
cmpb $0x0, 0xcc(%rdx,%rcx)
jne 0x133a3
movl 0xc(%rsi), %esi
movq %rbx, %rdi
callq 0x1b382
movl 0x8(%rax), %eax
movq 0x38(%rbx), %rcx
imulq $0x148, %rax, %rax      # imm = 0x148
movq 0xd0(%rcx,%rax), %rdx
movq 0xd8(%rcx,%rax), %rcx
cmpq %rcx, %rdx
je 0x133a1
addq $0xd0, %rdx
movb -0x4(%rdx), %al
testb %al, %al
jne 0x133a3
leaq 0xd0(%rdx), %rsi
cmpq %rcx, %rdx
movq %rsi, %rdx
jne 0x13389
jmp 0x133a3
xorl %eax, %eax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::get_first_entry_point(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool Compiler::is_builtin_type(const SPIRType &type) const
{
	// We can have builtin structs as well. If one member of a struct is builtin, the struct must also be builtin.
	for (auto &m : ir.meta[type.self].members)
		if (m.builtin)
			return true;

	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq 0xe0(%rdi), %r13
testq %r13, %r13
je 0x16506
movq %rsi, %rbx
leaq 0x70(%rsp), %r15
leaq 0x20(%rsp), %r14
movl 0x8(%r13), %eax
movl %eax, (%rsp)
leaq 0x10(%r13), %r12
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x1e72a
movq 0x38(%rsp), %rdx
cmpq %rdx, 0x8(%rbx)
jne 0x1649b
testq %rdx, %rdx
je 0x1649f
movq 0x30(%rsp), %rdi
movq (%rbx), %rsi
callq 0x6280
testl %eax, %eax
sete %bpl
jmp 0x164a2
xorl %ebp, %ebp
jmp 0x164a2
movb $0x1, %bpl
movq %r15, %rdi
callq 0xd570
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x164c1
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x6260
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x164dd
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x6260
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x164f4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6260
testb %bpl, %bpl
jne 0x16566
movq (%r13), %r13
testq %r13, %r13
jne 0x1645e
movl $0x10, %edi
callq 0x6140
movq %rax, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x9e9b3(%rip), %rsi     # 0xb4ed6
leaq 0x9e9c7(%rip), %rdx     # 0xb4ef1
movq %rsp, %rdi
callq 0x7be0
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0xe5881(%rip), %rax     # 0xfbdc8
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0xe5859(%rip), %rsi     # 0xfbdb0
movq 0xe6a7a(%rip), %rdx     # 0xfcfd8
movq %rbx, %rdi
callq 0x6470
movq %r12, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x16594
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
testb %bpl, %bpl
jne 0x1659e
jmp 0x165a6
movq %rax, %r14
movq %rbx, %rdi
callq 0x6200
movq %r14, %rdi
callq 0x64a0
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::is_member_builtin(spirv_cross::SPIRType const&, unsigned int, spv::BuiltIn*) const
bool Compiler::is_member_builtin(const SPIRType &type, uint32_t index, BuiltIn *builtin) const
{
	auto &memb = ir.meta[type.self].members;
	if (index < memb.size() && memb[index].builtin)
	{
		if (builtin)
			*builtin = memb[index].builtin_type;
		return true;
	}

	return false;
}

// Assembly:
movl 0x8(%rsi), %eax
movq 0x38(%rdi), %rsi
imulq $0x148, %rax, %rdi      # imm = 0x148
movl %edx, %eax
movq 0xd0(%rsi,%rdi), %rdx
movq 0xd8(%rsi,%rdi), %rsi
subq %rdx, %rsi
sarq $0x4, %rsi
movabsq $0x4ec4ec4ec4ec4ec5, %rdi # imm = 0x4EC4EC4EC4EC4EC5
imulq %rsi, %rdi
cmpq %rax, %rdi
jbe 0x13448
imulq $0xd0, %rax, %rsi
cmpb $0x1, 0xcc(%rdx,%rsi)
jne 0x13448
movb $0x1, %al
testq %rcx, %rcx
je 0x13447
addq %rsi, %rdx
movl 0xa0(%rdx), %edx
movl %edx, (%rcx)
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::get_active_interface_variables() const
unordered_set<uint32_t> Compiler::get_active_interface_variables() const
{
	// Traverse the call graph and find all interface variables which are in use.
	unordered_set<uint32_t> variables;
	InterfaceVariableAccessHandler handler(*this, variables);
	traverse_all_reachable_opcodes(get<SPIRFunction>(ir.default_entry_point), handler);

	// If we needed to create one, we'll need it.
	if (dummy_sampler_id)
		variables.insert(dummy_sampler_id);

	return variables;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x30(%rdi), %rax
movq %rax, (%rdi)
movq $0x1, 0x8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movl $0x3f800000, 0x20(%rdi) # imm = 0x3F800000
movups %xmm0, 0x28(%rdi)
leaq 0xe83ef(%rip), %rax     # 0xfc138
addq $0x10, %rax
movq %rax, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, 0x18(%rsp)
movl 0x108(%rsi), %esi
movq %r14, %rdi
callq 0x1b638
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x13dbc
cmpl $0x0, 0x39c(%r14)
je 0x13d9e
addq $0x39c, %r14            # imm = 0x39C
leaq 0x20(%rsp), %rdx
movq %rbx, (%rdx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f510
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0xd570
movq %r14, %rdi
callq 0x64a0
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::interface_variable_exists_in_entry_point(unsigned int) const
bool Compiler::interface_variable_exists_in_entry_point(uint32_t id) const
{
	auto &var = get<SPIRVariable>(id);
	if (var.storage != StorageClassInput && var.storage != StorageClassOutput &&
	    var.storage != StorageClassUniformConstant)
		SPIRV_CROSS_THROW("Only Input, Output variables and Uniform constants are part of a shader linking interface.");

	// This is to avoid potential problems with very old glslang versions which did
	// not emit input/output interfaces properly.
	// We can assume they only had a single entry point, and single entry point
	// shaders could easily be assumed to use every interface variable anyways.
	if (ir.entry_points.size() <= 1)
		return true;

	auto &execution = get_entry_point();
	return find(begin(execution.interface_variables), end(execution.interface_variables), id) !=
	       end(execution.interface_variables);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl %esi, 0x4(%rsp)
callq 0x1b45e
movl 0x10(%rax), %eax
cmpl $0x2, %eax
jb 0x13e5d
cmpl $0x3, %eax
jne 0x13ea6
movb $0x1, %al
cmpq $0x2, 0xe8(%rbx)
jb 0x13e9b
leaq 0xd0(%rbx), %rdi
addq $0x108, %rbx            # imm = 0x108
movq %rbx, %rsi
callq 0x21c42
movq %rax, %rbx
movq 0x58(%rax), %rdi
movq 0x60(%rax), %rsi
leaq 0x4(%rsp), %rdx
callq 0x21cf9
cmpq 0x60(%rbx), %rax
setne %al
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x6140
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xa102f(%rip), %rsi     # 0xb4ef2
leaq 0xa1082(%rip), %rdx     # 0xb4f4c
leaq 0x8(%rsp), %rdi
callq 0x7be0
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0xe7edd(%rip), %rax     # 0xfbdc8
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0xe7eb5(%rip), %rsi     # 0xfbdb0
movq 0xe90d6(%rip), %rdx     # 0xfcfd8
movq %rbx, %rdi
callq 0x6470
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x13f24
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
testb %bpl, %bpl
jne 0x13f2e
jmp 0x13f36
movq %rax, %r14
movq %rbx, %rdi
callq 0x6200
movq %r14, %rdi
callq 0x64a0
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::get_remapped_declared_block_name[abi:cxx11](unsigned int) const
std::string Compiler::get_remapped_declared_block_name(uint32_t id) const
{
	auto itr = declared_block_names.find(id);
	if (itr != end(declared_block_names))
		return itr->second;
	else
	{
		auto &var = get<SPIRVariable>(id);
		auto &type = get<SPIRType>(var.basetype);
		auto &block_name = ir.meta[type.self].decoration.alias;
		return block_name.empty() ? get_block_fallback_name(id) : block_name;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x4(%rsp), %rsi
movl %edx, (%rsi)
leaq 0x3d8(%r14), %rdi
callq 0x23ea8
testq %rax, %rax
je 0x13f71
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
jmp 0x13fad
movl 0x4(%rsp), %esi
movq %r14, %rdi
callq 0x1b45e
movl 0xc(%rax), %esi
movq %r14, %rdi
callq 0x1b382
movl 0x8(%rax), %ecx
movq 0x38(%r14), %rax
imulq $0x148, %rcx, %rcx      # imm = 0x148
movq 0x8(%rax,%rcx), %rdx
testq %rdx, %rdx
je 0x13fc3
addq %rcx, %rax
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xe456
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl 0x4(%rsp), %edx
movq (%r14), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *0x20(%rax)
jmp 0x13fb8
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::type_is_block_like(spirv_cross::SPIRType const&) const
bool Compiler::type_is_block_like(const SPIRType &type) const
{
	if (type.basetype != SPIRType::Struct)
		return false;

	if (has_decoration(type.self, DecorationBlock) || has_decoration(type.self, DecorationBufferBlock))
	{
		return true;
	}

	// Block-like types may have Offset decorations.
	for (uint32_t i = 0; i < uint32_t(type.member_types.size()); i++)
		if (has_member_decoration(type.self, i, DecorationOffset))
			return true;

	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpl $0xc, 0xc(%rsi)
jne 0x1405a
movq %rsi, %rbx
movq %rdi, %r14
movl 0x8(%rsi), %esi
addq $0x8, %r14
movq %r14, %rdi
movl $0x2, %edx
callq 0x2492a
movb $0x1, %bpl
testb %al, %al
jne 0x1405c
movl 0x8(%rbx), %esi
movq %r14, %rdi
movl $0x3, %edx
callq 0x2492a
testb %al, %al
jne 0x1405c
movq 0x70(%rbx), %rax
subq 0x68(%rbx), %rax
shrq $0x2, %rax
xorl %r15d, %r15d
testl %eax, %eax
je 0x1405a
movl 0x8(%rbx), %esi
movq %r14, %rdi
movl %r15d, %edx
movl $0x23, %ecx
callq 0x24c22
movl %eax, %ebp
testb %al, %al
jne 0x1405c
incl %r15d
movq 0x70(%rbx), %rax
subq 0x68(%rbx), %rax
shrq $0x2, %rax
cmpl %eax, %r15d
jb 0x1402b
jmp 0x1405c
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::get_non_pointer_type_id(unsigned int) const
uint32_t Compiler::get_non_pointer_type_id(uint32_t type_id) const
{
	auto *p_type = &get<SPIRType>(type_id);
	while (p_type->pointer)
	{
		assert(p_type->parent_type);
		type_id = p_type->parent_type;
		p_type = &get<SPIRType>(type_id);
	}
	return type_id;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
callq 0x1b382
cmpb $0x1, 0x60(%rax)
jne 0x14a97
movl 0x9c(%rax), %ebp
testl %ebp, %ebp
je 0x14aa0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1b382
cmpb $0x0, 0x60(%rax)
jne 0x14a7d
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0xa024b(%rip), %rdi     # 0xb4cf2
leaq 0xa0258(%rip), %rsi     # 0xb4d06
leaq 0xa026d(%rip), %rcx     # 0xb4d22
movl $0x3c3, %edx            # imm = 0x3C3
callq 0x61b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::get_non_pointer_type(spirv_cross::SPIRType const&) const
const SPIRType &Compiler::get_non_pointer_type(const SPIRType &type) const
{
	auto *p_type = &type;
	while (p_type->pointer)
	{
		assert(p_type->parent_type);
		p_type = &get<SPIRType>(p_type->parent_type);
	}
	return *p_type;
}

// Assembly:
pushq %rbx
movq %rsi, %rax
cmpb $0x1, 0x60(%rsi)
jne 0x14ae5
movq %rdi, %rbx
movl 0x9c(%rax), %esi
testl %esi, %esi
je 0x14ae7
movq %rbx, %rdi
callq 0x1b382
cmpb $0x0, 0x60(%rax)
jne 0x14acd
popq %rbx
retq
leaq 0xa0204(%rip), %rdi     # 0xb4cf2
leaq 0xa0211(%rip), %rsi     # 0xb4d06
leaq 0xa026e(%rip), %rcx     # 0xb4d6a
movl $0x3cf, %edx            # imm = 0x3CF
callq 0x61b0
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::get_member_qualified_name[abi:cxx11](unsigned int, unsigned int) const
const std::string &Compiler::get_member_qualified_name(uint32_t type_id, uint32_t index) const
{
	const static string empty;

	auto &m = ir.meta.at(type_id);
	if (index < m.members.size())
		return m.members[index].qualified_alias;
	else
		return empty;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movb 0xe888d(%rip), %al      # 0xfd4e0
testb %al, %al
je 0x14cc8
movl %ebp, %esi
movq 0x38(%r14), %rax
movq 0x40(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x7063e7063e7063e7, %rdx # imm = 0x8F9C18F9C18F9C19
imulq %rcx, %rdx
cmpq %rsi, %rdx
jbe 0x14ccf
movl %ebx, %ecx
imulq $0x148, %rsi, %rdx      # imm = 0x148
movq 0xd0(%rax,%rdx), %rsi
movq 0xd8(%rax,%rdx), %rax
subq %rsi, %rax
sarq $0x4, %rax
movabsq $0x4ec4ec4ec4ec4ec5, %rdx # imm = 0x4EC4EC4EC4EC4EC5
imulq %rax, %rdx
imulq $0xd0, %rcx, %rax
cmpq %rcx, %rdx
leaq 0x20(%rsi,%rax), %rcx
leaq 0xe8801(%rip), %rax     # 0xfd4c0
cmovaq %rcx, %rax
popq %rbx
popq %r14
popq %rbp
retq
callq 0x68a2
jmp 0x14c57
leaq 0x9f443(%rip), %rdi     # 0xb4119
xorl %eax, %eax
callq 0x63d0
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::get_block_fallback_name[abi:cxx11](unsigned int) const
const std::string Compiler::get_block_fallback_name(uint32_t id) const
{
	auto &var = get<SPIRVariable>(id);
	if (get_name(id).empty())
		return join("_", get<SPIRType>(var.basetype).self, "_", id);
	else
		return get_name(id);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl %edx, 0xc(%rsp)
movq %rsi, %rdi
movl %edx, %esi
callq 0x1b45e
movl %ebp, %esi
movq 0x38(%r14), %rcx
movq 0x40(%r14), %rdi
subq %rcx, %rdi
sarq $0x3, %rdi
movabsq $-0x7063e7063e7063e7, %rdx # imm = 0x8F9C18F9C18F9C19
imulq %rdi, %rdx
cmpq %rsi, %rdx
jbe 0x14e31
imulq $0x148, %rsi, %rsi      # imm = 0x148
movq 0x8(%rcx,%rsi), %rdx
testq %rdx, %rdx
je 0x14dff
addq %rsi, %rcx
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq (%rcx), %rsi
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xe456
jmp 0x14e25
movl 0xc(%rax), %esi
movq %r14, %rdi
callq 0x1b382
leaq 0x8(%rax), %rdx
leaq 0xa91a2(%rip), %rcx     # 0xbdfb7
leaq 0xc(%rsp), %r8
movq %rbx, %rdi
movq %rcx, %rsi
callq 0x1b96f
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x9f2e1(%rip), %rdi     # 0xb4119
xorl %eax, %eax
callq 0x63d0
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::get_binary_offset_for_decoration(unsigned int, spv::Decoration, unsigned int&) const
bool Compiler::get_binary_offset_for_decoration(uint32_t id, spv::Decoration decoration, uint32_t &word_offset) const
{
	auto &word_offsets = ir.meta.at(id).decoration_word_offset;
	auto itr = word_offsets.find(decoration);
	if (itr == end(word_offsets))
		return false;

	word_offset = itr->second;
	return true;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
movl %esi, %esi
movq 0x38(%rdi), %rcx
movq 0x40(%rdi), %rdi
subq %rcx, %rdi
sarq $0x3, %rdi
movabsq $-0x7063e7063e7063e7, %rax # imm = 0x8F9C18F9C18F9C19
imulq %rdi, %rax
cmpq %rsi, %rax
jbe 0x14ee2
imulq $0x148, %rsi, %rax      # imm = 0x148
leaq (%rcx,%rax), %rdi
addq $0xe8, %rdi
leaq 0xc(%rsp), %rsi
movl %edx, (%rsi)
callq 0x210c6
testq %rax, %rax
je 0x14ed6
movl 0xc(%rax), %ecx
movl %ecx, (%rbx)
testq %rax, %rax
setne %al
addq $0x10, %rsp
popq %rbx
retq
leaq 0x9f230(%rip), %rdi     # 0xb4119
movq %rax, %rdx
xorl %eax, %eax
callq 0x63d0
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::block_is_outside_flow_control_from_block(spirv_cross::SPIRBlock const&, spirv_cross::SPIRBlock const&)
bool Compiler::block_is_outside_flow_control_from_block(const SPIRBlock &from, const SPIRBlock &to)
{
	auto *start = &from;

	if (start->self == to.self)
		return true;

	// Break cycles.
	if (is_continue(start->self))
		return false;

	// If our select block doesn't merge, we must break or continue in these blocks,
	// so if continues occur branchless within these blocks, consider them branchless as well.
	// This is typically used for loop control.
	if (start->terminator == SPIRBlock::Select && start->merge == SPIRBlock::MergeNone &&
	    (block_is_outside_flow_control_from_block(get<SPIRBlock>(start->true_block), to) ||
	     block_is_outside_flow_control_from_block(get<SPIRBlock>(start->false_block), to)))
	{
		return true;
	}
	else if (start->merge_block && block_is_outside_flow_control_from_block(get<SPIRBlock>(start->merge_block), to))
	{
		return true;
	}
	else if (start->next_block && block_is_outside_flow_control_from_block(get<SPIRBlock>(start->next_block), to))
	{
		return true;
	}
	else
		return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl 0x8(%rsi), %eax
movb $0x1, %bl
cmpl 0x8(%rdx), %eax
je 0x151b0
movq %rdi, %r15
movq 0x80(%rdi), %rcx
testb $0x2, (%rcx,%rax)
jne 0x151ae
movq %rdx, %r14
movq %rsi, %r12
cmpl $0x2, 0xc(%rsi)
jne 0x15168
cmpl $0x0, 0x10(%r12)
jne 0x15168
movl 0x2c(%r12), %esi
movq %r15, %rdi
callq 0x7870
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x150ec
testb %al, %al
jne 0x151b0
movl 0x30(%r12), %esi
movq %r15, %rdi
callq 0x7870
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x150ec
testb %al, %al
jne 0x151b0
movl 0x1c(%r12), %esi
testl %esi, %esi
je 0x1518b
movq %r15, %rdi
callq 0x7870
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x150ec
testb %al, %al
jne 0x151b0
movl 0x18(%r12), %esi
testl %esi, %esi
je 0x151ae
movq %r15, %rdi
callq 0x7870
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x150ec
testb %al, %al
jne 0x151b0
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::execution_is_noop(spirv_cross::SPIRBlock const&, spirv_cross::SPIRBlock const&) const
bool Compiler::execution_is_noop(const SPIRBlock &from, const SPIRBlock &to) const
{
	if (!execution_is_branchless(from, to))
		return false;

	auto *start = &from;
	for (;;)
	{
		if (start->self == to.self)
			return true;

		if (!start->ops.empty())
			return false;

		auto &next = get<SPIRBlock>(start->next_block);
		// Flushing phi variables does not count as noop.
		for (auto &phi : next.phi_variables)
			if (phi.parent == start->self)
				return false;

		start = &next;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
callq 0x15244
testb %al, %al
je 0x15236
movl 0x8(%r15), %eax
movb $0x1, %bpl
cmpl 0x8(%rbx), %eax
je 0x15238
leaq 0x8(%r15), %r12
movq 0x38(%r15), %rax
cmpq 0x40(%r15), %rax
sete %bpl
jne 0x15236
movl 0x18(%r15), %esi
movq %r14, %rdi
callq 0x78a4
movq %rax, %r15
movq 0x50(%rax), %rax
movq 0x58(%r15), %rcx
cmpq %rcx, %rax
je 0x15224
movl (%r12), %edx
cmpl %edx, 0x4(%rax)
je 0x15236
addq $0xc, %rax
cmpq %rcx, %rax
jne 0x15216
movq %r15, %r12
addq $0x8, %r12
movl 0x8(%r15), %eax
cmpl 0x8(%rbx), %eax
jne 0x151e8
jmp 0x15238
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::execution_is_branchless(spirv_cross::SPIRBlock const&, spirv_cross::SPIRBlock const&) const
bool Compiler::execution_is_branchless(const SPIRBlock &from, const SPIRBlock &to) const
{
	auto *start = &from;
	for (;;)
	{
		if (start->self == to.self)
			return true;

		if (start->terminator == SPIRBlock::Direct && start->merge == SPIRBlock::MergeNone)
			start = &get<SPIRBlock>(start->next_block);
		else
			return false;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl 0x8(%rsi), %ecx
movb $0x1, %bl
cmpl 0x8(%rdx), %ecx
je 0x15280
movq %rdx, %r14
movq %rsi, %rax
movq %rdi, %r15
cmpl $0x1, 0xc(%rax)
jne 0x1527e
cmpl $0x0, 0x10(%rax)
jne 0x1527e
movl 0x18(%rax), %esi
movq %r15, %rdi
callq 0x78a4
movl 0x8(%rax), %ecx
cmpl 0x8(%r14), %ecx
jne 0x1525c
jmp 0x15280
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::continue_block_type(spirv_cross::SPIRBlock const&) const
SPIRBlock::ContinueBlockType Compiler::continue_block_type(const SPIRBlock &block) const
{
	// The block was deemed too complex during code emit, pick conservative fallback paths.
	if (block.complex_continue)
		return SPIRBlock::ComplexLoop;

	// In older glslang output continue block can be equal to the loop header.
	// In this case, execution is clearly branchless, so just assume a while loop header here.
	if (block.merge == SPIRBlock::MergeLoop)
		return SPIRBlock::WhileLoop;

	auto &dominator = get<SPIRBlock>(block.loop_dominator);

	if (execution_is_noop(block, dominator))
		return SPIRBlock::WhileLoop;
	else if (execution_is_branchless(block, dominator))
		return SPIRBlock::ForLoop;
	else
	{
		if (block.merge == SPIRBlock::MergeNone && block.terminator == SPIRBlock::Select &&
		    block.true_block == dominator.self && block.false_block == dominator.merge_block)
		{
			return SPIRBlock::DoWhileLoop;
		}
		else
			return SPIRBlock::ComplexLoop;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl $0x4, %ebp
cmpb $0x0, 0xb1(%rsi)
jne 0x1530d
movq %rsi, %rbx
movl $0x2, %ebp
cmpl $0x1, 0x10(%rsi)
je 0x1530d
movq %rdi, %r15
movl 0xb4(%rbx), %esi
callq 0x78a4
movq %rax, %r14
movq %r15, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x151be
testb %al, %al
jne 0x1530d
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x15244
movl $0x1, %ebp
testb %al, %al
jne 0x1530d
cmpl $0x0, 0x10(%rbx)
jne 0x15308
cmpl $0x2, 0xc(%rbx)
jne 0x15308
movl 0x2c(%rbx), %eax
cmpl 0x8(%r14), %eax
jne 0x15308
movl 0x30(%rbx), %eax
movl $0x3, %ebp
cmpl 0x1c(%r14), %eax
je 0x1530d
movl $0x4, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::traverse_all_reachable_opcodes(spirv_cross::SPIRBlock const&, spirv_cross::Compiler::OpcodeHandler&) const
bool Compiler::traverse_all_reachable_opcodes(const SPIRBlock &block, OpcodeHandler &handler) const
{
	handler.set_current_block(block);

	// Ideally, perhaps traverse the CFG instead of all blocks in order to eliminate dead blocks,
	// but this shouldn't be a problem in practice unless the SPIR-V is doing insane things like recursing
	// inside dead blocks ...
	for (auto &i : block.ops)
	{
		auto ops = stream(i);
		auto op = static_cast<Op>(i.op);

		if (!handler.handle(op, ops, i.length))
			return false;

		if (op == OpFunctionCall)
		{
			auto &func = get<SPIRFunction>(ops[2]);
			if (handler.follow_function_call(func))
			{
				if (!handler.begin_function_scope(ops, i.length))
					return false;
				if (!traverse_all_reachable_opcodes(get<SPIRFunction>(ops[2]), handler))
					return false;
				if (!handler.end_function_scope(ops, i.length))
					return false;
			}
		}
	}

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdx), %rax
movq %rdx, %rdi
callq *0x20(%rax)
movq 0x38(%rbx), %r12
movq 0x40(%rbx), %rbp
movb $0x1, %al
cmpq %rbp, %r12
je 0x153f2
movq %r15, %rdi
movq %r12, %rsi
callq 0x1b2ac
movq %rax, %r13
movzwl (%r12), %ebx
movzwl %bx, %esi
movl 0x8(%r12), %ecx
movq (%r14), %rax
movq %r14, %rdi
movq %r13, %rdx
callq *0x10(%rax)
testb %al, %al
je 0x153f0
cmpw $0x39, %bx
jne 0x153df
movl 0x8(%r13), %esi
movq %r15, %rdi
callq 0x1b638
movq (%r14), %rcx
movq %r14, %rdi
movq %rax, %rsi
callq *0x18(%rcx)
testb %al, %al
je 0x153df
movl 0x8(%r12), %edx
movq (%r14), %rax
movq %r14, %rdi
movq %r13, %rsi
callq *0x28(%rax)
testb %al, %al
je 0x153f0
movl 0x8(%r13), %esi
movq %r15, %rdi
callq 0x1b638
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x13dbc
testb %al, %al
je 0x153f0
movl 0x8(%r12), %edx
movq (%r14), %rax
movq %r14, %rdi
movq %r13, %rsi
callq *0x30(%rax)
testb %al, %al
je 0x153f0
addq $0xc, %r12
cmpq %rbp, %r12
jne 0x1534a
movb $0x1, %al
jmp 0x153f2
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::type_struct_member_offset(spirv_cross::SPIRType const&, unsigned int) const
uint32_t Compiler::type_struct_member_offset(const SPIRType &type, uint32_t index) const
{
	// Decoration must be set in valid SPIR-V, otherwise throw.
	auto &dec = ir.meta[type.self].members.at(index);
	if (dec.decoration_flags.get(DecorationOffset))
		return dec.offset;
	else
		SPIRV_CROSS_THROW("Struct member does not have Offset set.");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl 0x8(%rsi), %eax
movq 0x38(%rdi), %rcx
imulq $0x148, %rax, %rdi      # imm = 0x148
movl %edx, %esi
movq 0xd0(%rcx,%rdi), %rax
movq 0xd8(%rcx,%rdi), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
movabsq $0x4ec4ec4ec4ec4ec5, %rdx # imm = 0x4EC4EC4EC4EC4EC5
imulq %rcx, %rdx
cmpq %rsi, %rdx
jbe 0x15468
imulq $0xd0, %rsi, %rcx
testb $0x8, 0x64(%rax,%rcx)
je 0x15476
addq %rcx, %rax
movl 0xb4(%rax), %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9ecaa(%rip), %rdi     # 0xb4119
xorl %eax, %eax
callq 0x63d0
movl $0x10, %edi
callq 0x6140
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x9f92b(%rip), %rsi     # 0xb4dbe
leaq 0x9f94b(%rip), %rdx     # 0xb4de5
leaq 0x8(%rsp), %rdi
callq 0x7be0
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0xe690d(%rip), %rax     # 0xfbdc8
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0xe68e5(%rip), %rsi     # 0xfbdb0
movq 0xe7b06(%rip), %rdx     # 0xfcfd8
movq %rbx, %rdi
callq 0x6470
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x154f4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
testb %bpl, %bpl
jne 0x154fe
jmp 0x15506
movq %rax, %r14
movq %rbx, %rdi
callq 0x6200
movq %r14, %rdi
callq 0x64a0
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::type_struct_member_array_stride(spirv_cross::SPIRType const&, unsigned int) const
uint32_t Compiler::type_struct_member_array_stride(const SPIRType &type, uint32_t index) const
{
	// Decoration must be set in valid SPIR-V, otherwise throw.
	// ArrayStride is part of the array type not OpMemberDecorate.
	auto &dec = ir.meta[type.member_types[index]].decoration;
	if (dec.decoration_flags.get(DecorationArrayStride))
		return dec.array_stride;
	else
		SPIRV_CROSS_THROW("Struct member does not have ArrayStride set.");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %edx, %eax
movq 0x68(%rsi), %rcx
movl (%rcx,%rax,4), %ecx
movq 0x38(%rdi), %rax
imulq $0x148, %rcx, %rcx      # imm = 0x148
testb $0x40, 0x60(%rax,%rcx)
je 0x15547
addq %rcx, %rax
movl 0xb8(%rax), %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x6140
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x9f882(%rip), %rsi     # 0xb4de6
leaq 0x9f8a7(%rip), %rdx     # 0xb4e12
leaq 0x8(%rsp), %rdi
callq 0x7be0
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0xe683c(%rip), %rax     # 0xfbdc8
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0xe6814(%rip), %rsi     # 0xfbdb0
movq 0xe7a35(%rip), %rdx     # 0xfcfd8
movq %rbx, %rdi
callq 0x6470
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x155c5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
testb %bpl, %bpl
jne 0x155cf
jmp 0x155d7
movq %rax, %r14
movq %rbx, %rdi
callq 0x6200
movq %r14, %rdi
callq 0x64a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::type_struct_member_matrix_stride(spirv_cross::SPIRType const&, unsigned int) const
uint32_t Compiler::type_struct_member_matrix_stride(const SPIRType &type, uint32_t index) const
{
	// Decoration must be set in valid SPIR-V, otherwise throw.
	// MatrixStride is part of OpMemberDecorate.
	auto &dec = ir.meta[type.self].members[index];
	if (dec.decoration_flags.get(DecorationMatrixStride))
		return dec.matrix_stride;
	else
		SPIRV_CROSS_THROW("Struct member does not have MatrixStride set.");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl 0x8(%rsi), %eax
movq 0x38(%rdi), %rcx
imulq $0x148, %rax, %rax      # imm = 0x148
movl %edx, %edx
movq 0xd0(%rcx,%rax), %rax
imulq $0xd0, %rdx, %rcx
testb $-0x80, 0x60(%rax,%rcx)
je 0x15624
addq %rcx, %rax
movl 0xbc(%rax), %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x6140
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x9f7d2(%rip), %rsi     # 0xb4e13
leaq 0x9f7f8(%rip), %rdx     # 0xb4e40
leaq 0x8(%rsp), %rdi
callq 0x7be0
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0xe675f(%rip), %rax     # 0xfbdc8
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0xe6737(%rip), %rsi     # 0xfbdb0
movq 0xe7958(%rip), %rdx     # 0xfcfd8
movq %rbx, %rdi
callq 0x6470
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x156a2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
testb %bpl, %bpl
jne 0x156ac
jmp 0x156b4
movq %rax, %r14
movq %rbx, %rdi
callq 0x6200
movq %r14, %rdi
callq 0x64a0
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::BufferAccessHandler::handle(spv::Op, unsigned int const*, unsigned int)
bool Compiler::BufferAccessHandler::handle(Op opcode, const uint32_t *args, uint32_t length)
{
	if (opcode != OpAccessChain && opcode != OpInBoundsAccessChain)
		return true;

	// Invalid SPIR-V.
	if (length < 4)
		return false;

	if (args[2] != id)
		return true;

	// Don't bother traversing the entire access chain tree yet.
	// If we access a struct member, assume we access the entire member.
	uint32_t index = compiler.get<SPIRConstant>(args[3]).scalar();

	// Seen this index already.
	if (seen.find(index) != end(seen))
		return true;
	seen.insert(index);

	auto &type = compiler.expression_type(id);
	uint32_t offset = compiler.type_struct_member_offset(type, index);

	size_t range;
	// If we have another member in the struct, deduce the range by looking at the next member.
	// This is okay since structs in SPIR-V can have padding, but Offset decoration must be
	// monotonically increasing.
	// Of course, this doesn't take into account if the SPIR-V for some reason decided to add
	// very large amounts of padding, but that's not really a big deal.
	if (index + 1 < type.member_types.size())
	{
		range = compiler.type_struct_member_offset(type, index + 1) - offset;
	}
	else
	{
		// No padding, so just deduce it from the size of the member directly.
		range = compiler.get_declared_struct_member_size(type, index);
	}

	ranges.push_back({ index, offset, range });
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
addl $-0x43, %esi
movb $0x1, %bl
cmpl $-0x2, %esi
jb 0x15c84
cmpl $0x4, %ecx
jae 0x15b8c
xorl %ebx, %ebx
jmp 0x15c84
movq %rdi, %r14
movl 0x8(%rdx), %eax
cmpl 0x18(%rdi), %eax
jne 0x15c84
movq 0x8(%r14), %rdi
movl 0xc(%rdx), %esi
callq 0x1b4c6
movl 0x10(%rax), %eax
leaq 0x4(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x20(%r14), %r15
movq %r15, %rdi
callq 0x21122
testq %rax, %rax
jne 0x15c84
leaq 0x8(%rsp), %rdx
movq %r15, (%rdx)
leaq 0x4(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x1f510
movq 0x8(%r14), %r15
movl 0x18(%r14), %esi
movq %r15, %rdi
callq 0x130d0
movq %r15, %rdi
movl %eax, %esi
callq 0x1b382
movq %rax, %r15
movq 0x8(%r14), %rdi
movl (%r12), %edx
movq %rax, %rsi
callq 0x15402
movl %eax, %ebp
movl (%r12), %edx
movq 0x70(%r15), %rcx
subq 0x68(%r15), %rcx
leal 0x1(%rdx), %eax
sarq $0x2, %rcx
movq 0x8(%r14), %rdi
cmpq %rax, %rcx
jbe 0x15c37
movq %r15, %rsi
movl %eax, %edx
callq 0x15402
subl %ebp, %eax
jmp 0x15c40
movq (%rdi), %rax
movq %r15, %rsi
callq *0x30(%rax)
movq 0x10(%r14), %rdi
movl 0x4(%rsp), %ecx
movl %ecx, 0x8(%rsp)
movl %ebp, %ecx
movq %rcx, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x15c7a
movq 0x18(%rsp), %rax
movq %rax, 0x10(%rsi)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x18, 0x8(%rdi)
jmp 0x15c84
leaq 0x8(%rsp), %rdx
callq 0x2117e
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::get_active_buffer_ranges(unsigned int) const
std::vector<BufferRange> Compiler::get_active_buffer_ranges(uint32_t id) const
{
	std::vector<BufferRange> ranges;
	BufferAccessHandler handler(*this, ranges, id);
	traverse_all_reachable_opcodes(get<SPIRFunction>(ir.default_entry_point), handler);
	return ranges;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0xe641e(%rip), %r12     # 0xfc0d8
addq $0x10, %r12
leaq 0x20(%rsp), %r14
movq %r12, -0x20(%r14)
movq %rsi, -0x18(%r14)
movq %rdi, -0x10(%r14)
movl %edx, -0x8(%r14)
leaq 0x50(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
movl 0x108(%rsi), %esi
movq %r15, %rdi
callq 0x1b638
movq %rsp, %rdx
movq %r15, %rdi
movq %rax, %rsi
callq 0x13dbc
movq %r12, (%rsp)
movq %r14, %rdi
callq 0xd570
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r15
movq %r12, (%rsp)
movq %r14, %rdi
callq 0xd570
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x15d4d
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x6260
movq %r15, %rdi
callq 0x64a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::types_are_logically_equivalent(spirv_cross::SPIRType const&, spirv_cross::SPIRType const&) const
bool Compiler::types_are_logically_equivalent(const SPIRType &a, const SPIRType &b) const
{
	if (a.basetype != b.basetype)
		return false;
	if (a.width != b.width)
		return false;
	if (a.vecsize != b.vecsize)
		return false;
	if (a.columns != b.columns)
		return false;
	if (a.array.size() != b.array.size())
		return false;

	size_t array_count = a.array.size();
	if (array_count && memcmp(a.array.data(), b.array.data(), array_count * sizeof(uint32_t)) != 0)
		return false;

	if (a.basetype == SPIRType::Image || a.basetype == SPIRType::SampledImage)
	{
		if (memcmp(&a.image, &b.image, sizeof(SPIRType::Image)) != 0)
			return false;
	}

	if (a.member_types.size() != b.member_types.size())
		return false;

	size_t member_types = a.member_types.size();
	for (size_t i = 0; i < member_types; i++)
	{
		if (!types_are_logically_equivalent(get<SPIRType>(a.member_types[i]), get<SPIRType>(b.member_types[i])))
			return false;
	}

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0xc(%rsi), %ebp
cmpl 0xc(%rdx), %ebp
jne 0x15e56
movq %rdx, %rbx
movq %rsi, %r14
movl 0x10(%rsi), %eax
cmpl 0x10(%rdx), %eax
jne 0x15e56
movl 0x14(%r14), %eax
cmpl 0x14(%rbx), %eax
jne 0x15e56
movl 0x18(%r14), %eax
cmpl 0x18(%rbx), %eax
jne 0x15e56
movq %rdi, %r15
movq 0x20(%r14), %rdi
movq 0x28(%r14), %rax
movq %rax, %rdx
subq %rdi, %rdx
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rcx
subq %rsi, %rcx
cmpq %rcx, %rdx
jne 0x15e56
cmpq %rdi, %rax
je 0x15dd0
callq 0x6280
testl %eax, %eax
jne 0x15e56
addl $-0xd, %ebp
cmpl $0x1, %ebp
ja 0x15de7
movl 0x80(%r14), %eax
cmpl 0x80(%rbx), %eax
jne 0x15e56
movq 0x68(%r14), %rax
movq 0x70(%r14), %rcx
movq %rcx, %r13
subq %rax, %r13
movq 0x70(%rbx), %rdx
subq 0x68(%rbx), %rdx
cmpq %rdx, %r13
jne 0x15e56
cmpq %rax, %rcx
je 0x15e67
sarq $0x2, %r13
cmpq $0x1, %r13
adcq $-0x1, %r13
xorl %ebp, %ebp
movq 0x68(%r14), %rax
movl (%rax,%rbp,4), %esi
movq %r15, %rdi
callq 0x1b382
movq %rax, %r12
movq 0x68(%rbx), %rax
movl (%rax,%rbp,4), %esi
movq %r15, %rdi
callq 0x1b382
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x15d56
testb %al, %al
je 0x15e58
leaq 0x1(%rbp), %rcx
cmpq %rbp, %r13
movq %rcx, %rbp
jne 0x15e15
jmp 0x15e58
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %al
jmp 0x15e58
nop
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::set_execution_mode(spv::ExecutionMode, unsigned int, unsigned int, unsigned int)
void Compiler::set_execution_mode(ExecutionMode mode, uint32_t arg0, uint32_t arg1, uint32_t arg2)
{
	auto &execution = get_entry_point();

	execution.flags.set(mode);
	switch (mode)
	{
	case ExecutionModeLocalSize:
		execution.workgroup_size.x = arg0;
		execution.workgroup_size.y = arg1;
		execution.workgroup_size.z = arg2;
		break;

	case ExecutionModeInvocations:
		execution.invocations = arg0;
		break;

	case ExecutionModeOutputVertices:
		execution.output_vertices = arg0;
		break;

	default:
		break;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %r8d, %ebx
movl %ecx, %r14d
movl %edx, %ebp
movl %esi, %r15d
leaq 0xd0(%rdi), %rax
leaq 0x108(%rdi), %rsi
movq %rax, %rdi
callq 0x21c9e
movq %rax, %r12
movl %r15d, 0x4(%rsp)
cmpl $0x3f, %r15d
ja 0x15f13
movl $0x1, %eax
movl %r15d, %ecx
shlq %cl, %rax
orq %rax, 0x70(%r12)
jmp 0x15f2c
movq %r12, %rdi
addq $0x78, %rdi
leaq 0x8(%rsp), %rdx
movq %rdi, (%rdx)
leaq 0x4(%rsp), %rsi
callq 0x1f510
testl %r15d, %r15d
je 0x15f61
cmpl $0x1a, %r15d
je 0x15f57
cmpl $0x11, %r15d
jne 0x15f69
movl %ebp, 0xb0(%r12)
movl %r14d, 0xb4(%r12)
movl %ebx, 0xb8(%r12)
jmp 0x15f69
movl %ebp, 0xc4(%r12)
jmp 0x15f69
movl %ebp, 0xc0(%r12)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::get_work_group_size_specialization_constants(spirv_cross::SpecializationConstant&, spirv_cross::SpecializationConstant&, spirv_cross::SpecializationConstant&) const
uint32_t Compiler::get_work_group_size_specialization_constants(SpecializationConstant &x, SpecializationConstant &y,
                                                                SpecializationConstant &z) const
{
	auto &execution = get_entry_point();
	x = { 0, 0 };
	y = { 0, 0 };
	z = { 0, 0 };

	if (execution.workgroup_size.constant != 0)
	{
		auto &c = get<SPIRConstant>(execution.workgroup_size.constant);

		if (c.m.c[0].id[0] != 0)
		{
			x.id = c.m.c[0].id[0];
			x.constant_id = get_decoration(c.m.c[0].id[0], DecorationSpecId);
		}

		if (c.m.c[0].id[1] != 0)
		{
			y.id = c.m.c[0].id[1];
			y.constant_id = get_decoration(c.m.c[0].id[1], DecorationSpecId);
		}

		if (c.m.c[0].id[2] != 0)
		{
			z.id = c.m.c[0].id[2];
			z.constant_id = get_decoration(c.m.c[0].id[2], DecorationSpecId);
		}
	}

	return execution.workgroup_size.constant;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
addq $0xd0, %rdi
leaq 0x108(%r15), %rsi
callq 0x21c42
movq %rax, %r14
xorl %eax, %eax
movq %rax, (%r13)
movq %rax, (%r12)
movq %rax, (%rbx)
movl 0xbc(%r14), %esi
testl %esi, %esi
je 0x16095
movq %r15, %rdi
callq 0x1b4c6
movq %rax, %rbp
movl 0x30(%rax), %eax
testl %eax, %eax
je 0x16054
movl %eax, (%r13)
movl 0x30(%rbp), %esi
leaq 0x8(%r15), %rdi
movl $0x1, %edx
callq 0x24982
movl %eax, 0x4(%r13)
movl 0x34(%rbp), %eax
testl %eax, %eax
je 0x16075
movl %eax, (%r12)
movl 0x34(%rbp), %esi
leaq 0x8(%r15), %rdi
movl $0x1, %edx
callq 0x24982
movl %eax, 0x4(%r12)
movl 0x38(%rbp), %eax
testl %eax, %eax
je 0x16095
movl %eax, (%rbx)
movl 0x38(%rbp), %esi
addq $0x8, %r15
movq %r15, %rdi
movl $0x1, %edx
callq 0x24982
movl %eax, 0x4(%rbx)
movl 0xbc(%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop