LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_hlsl.cpp
// Function: spirv_cross::CompilerHLSL::emit_interface_block_globally(spirv_cross::SPIRVariable const&)
void CompilerHLSL::emit_interface_block_globally(const SPIRVariable &var)
{
	add_resource_name(var.self);

	// The global copies of I/O variables should not contain interpolation qualifiers.
	// These are emitted inside the interface structs.
	auto &flags = ir.meta[var.self].decoration.decoration_flags;
	auto old_flags = flags;
	flags.reset();
	statement("static ", variable_decl(var), ";");
	flags = old_flags;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r12
movq %rdi, %r15
movl 0x8(%rsi), %esi
callq 0x287ea
movl 0x8(%r12), %eax
movq 0x38(%r15), %rcx
imulq $0x148, %rax, %rbp      # imm = 0x148
movq %rcx, (%rsp)
leaq (%rcx,%rbp), %r14
addq $0x68, %r14
movq -0x8(%r14), %rax
leaq 0x30(%rsp), %rbx
movq %rax, -0x8(%rbx)
xorl %r13d, %r13d
movq %r13, (%rbx)
movq 0x8(%r14), %rax
movq %rax, 0x8(%rbx)
movq %r13, 0x10(%rbx)
movq 0x18(%r14), %rax
movq %rax, 0x18(%rbx)
movups 0x20(%r14), %xmm0
movups %xmm0, 0x20(%rbx)
movq %r13, 0x30(%rbx)
leaq 0x8(%rsp), %rdx
movq %rbx, (%rdx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xd402
movq %r13, -0x8(%r14)
movq %r14, %rdi
callq 0xd540
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x2ce16
leaq 0x58615(%rip), %rsi     # 0xbca3f
leaq 0x5b6b8(%rip), %rcx     # 0xbfae9
leaq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x59b6c
movq (%rsp), %rax
leaq (%rax,%rbp), %r15
addq $0x60, %r15
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x64465
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
leaq 0x28(%rsp), %rax
movq (%rax), %rcx
movq %rcx, (%r15)
cmpq %r15, %rax
je 0x64480
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1dcd0
movq %rbx, %rdi
callq 0xd5b0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x644b9
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x644bc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x644bc
movq %rax, %r14
movq %rbx, %rdi
callq 0xd5b0
movq %r14, %rdi
callq 0x64a0
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_hlsl.cpp
// Function: spirv_cross::CompilerHLSL::type_to_consumed_locations(spirv_cross::SPIRType const&) const
uint32_t CompilerHLSL::type_to_consumed_locations(const SPIRType &type) const
{
	// TODO: Need to verify correctness.
	uint32_t elements = 0;

	if (type.basetype == SPIRType::Struct)
	{
		for (uint32_t i = 0; i < uint32_t(type.member_types.size()); i++)
			elements += type_to_consumed_locations(get<SPIRType>(type.member_types[i]));
	}
	else
	{
		uint32_t array_multiplier = 1;
		for (uint32_t i = 0; i < uint32_t(type.array.size()); i++)
		{
			if (type.array_size_literal[i])
				array_multiplier *= type.array[i];
			else
				array_multiplier *= get<SPIRConstant>(type.array[i]).scalar();
		}
		elements += array_multiplier * type.columns;
	}
	return elements;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movabsq $0x3fffffffc, %rcx      # imm = 0x3FFFFFFFC
cmpl $0xc, 0xc(%rsi)
jne 0x64815
movq 0x68(%rbx), %rax
movq 0x70(%rbx), %rdx
subq %rax, %rdx
testq %rcx, %rdx
je 0x6487c
xorl %r15d, %r15d
xorl %ebp, %ebp
movl (%rax,%r15,4), %esi
movq %r14, %rdi
callq 0x1b9de
movq %r14, %rdi
movq %rax, %rsi
callq 0x647aa
addl %eax, %ebp
incq %r15
movq 0x68(%rbx), %rax
movq 0x70(%rbx), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movl %ecx, %ecx
cmpq %rcx, %r15
jb 0x647e1
jmp 0x6487e
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rdx
subq %rax, %rdx
movl $0x1, %ebp
testq %rcx, %rdx
je 0x64876
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x38(%rbx), %rcx
movq %r12, %rdx
shrq $0x6, %rdx
movq (%rcx,%rdx,8), %rcx
addq %r15, %rax
btq %r12, %rcx
jb 0x64856
movl (%rax), %esi
movq %r14, %rdi
callq 0x1bb22
addq $0x10, %rax
imull (%rax), %ebp
incq %r12
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movl %ecx, %ecx
addq $0x4, %r15
cmpq %rcx, %r12
jb 0x64830
imull 0x18(%rbx), %ebp
jmp 0x6487e
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_hlsl.cpp
// Function: spirv_cross::CompilerHLSL::to_interpolation_qualifiers[abi:cxx11](spirv_cross::Bitset const&)
string CompilerHLSL::to_interpolation_qualifiers(const Bitset &flags)
{
	string res;
	//if (flags & (1ull << DecorationSmooth))
	//    res += "linear ";
	if (flags.get(DecorationFlat))
		res += "nointerpolation ";
	if (flags.get(DecorationNoPerspective))
		res += "noperspective ";
	if (flags.get(DecorationCentroid))
		res += "centroid ";
	if (flags.get(DecorationPatch))
		res += "patch "; // Seems to be different in actual HLSL.
	if (flags.get(DecorationSample))
		res += "sample ";
	if (flags.get(DecorationInvariant))
		res += "invariant "; // Not supported?

	return res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
testb $0x40, 0x1(%rdx)
je 0x648bd
leaq 0x58192(%rip), %rsi     # 0xbca47
movq %rbx, %rdi
callq 0x64e0
testb $0x20, 0x1(%r14)
je 0x648d3
leaq 0x531c3(%rip), %rsi     # 0xb7a8e
movq %rbx, %rdi
callq 0x64e0
testb $0x1, 0x2(%r14)
je 0x648e9
leaq 0x531bc(%rip), %rsi     # 0xb7a9d
movq %rbx, %rdi
callq 0x64e0
testb $-0x80, 0x1(%r14)
je 0x648ff
leaq 0x531b0(%rip), %rsi     # 0xb7aa7
movq %rbx, %rdi
callq 0x64e0
testb $0x2, 0x2(%r14)
je 0x64915
leaq 0x531a1(%rip), %rsi     # 0xb7aae
movq %rbx, %rdi
callq 0x64e0
testb $0x4, 0x2(%r14)
je 0x6492b
leaq 0x53193(%rip), %rsi     # 0xb7ab6
movq %rbx, %rdi
callq 0x64e0
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x6494a
movq (%r15), %rsi
incq %rsi
callq 0x6260
movq %r14, %rdi
callq 0x64a0
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_hlsl.cpp
// Function: spirv_cross::CompilerHLSL::to_semantic[abi:cxx11](unsigned int)
std::string CompilerHLSL::to_semantic(uint32_t vertex_location)
{
	for (auto &attribute : remap_vertex_attributes)
		if (attribute.location == vertex_location)
			return attribute.semantic;

	return join("TEXCOORD", vertex_location);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %edx, 0x4(%rsp)
movq 0x7b0(%rsi), %rax
movq 0x7b8(%rsi), %rcx
cmpq %rcx, %rax
sete %bpl
je 0x649b5
cmpl %edx, (%rax)
je 0x64996
addq $0x28, %rax
cmpq %rcx, %rax
sete %bpl
je 0x649b5
leaq 0x28(%rax), %rsi
cmpl %edx, (%rax)
movq %rsi, %rax
jne 0x6497b
addq $-0x28, %rsi
movq %rsi, %rax
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xe480
testb %bpl, %bpl
je 0x649c9
leaq 0x5809c(%rip), %rsi     # 0xbca58
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
callq 0x521a8
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_hlsl.cpp
// Function: spirv_cross::CompilerHLSL::layout_for_member[abi:cxx11](spirv_cross::SPIRType const&, unsigned int)
string CompilerHLSL::layout_for_member(const SPIRType &type, uint32_t index)
{
	auto &flags = get_member_decoration_bitset(type.self, index);

	// HLSL can emit row_major or column_major decoration in any struct.
	// Do not try to merge combined decorations for children like in GLSL.

	// Flip the convention. HLSL is a bit odd in that the memory layout is column major ... but the language API is "row-major".
	// The way to deal with this is to multiply everything in inverse order, and reverse the memory layout.
	if (flags.get(DecorationColMajor))
		return "row_major ";
	else if (flags.get(DecorationRowMajor))
		return "column_major ";

	return "";
}

// Assembly:
pushq %rbx
movq %rsi, %rax
movq %rdi, %rbx
movl 0x8(%rdx), %esi
movq %rax, %rdi
movl %ecx, %edx
callq 0x14e86
movq (%rax), %rax
testb $0x20, %al
jne 0x67dfd
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
testb $0x10, %al
jne 0x67e14
leaq 0x4daba(%rip), %rdx     # 0xb58af
movq %rbx, %rdi
movq %rdx, %rsi
jmp 0x67e25
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x56af5(%rip), %rsi     # 0xbe900
leaq 0x56af8(%rip), %rdx     # 0xbe90a
jmp 0x67e22
leaq 0x56af0(%rip), %rsi     # 0xbe90b
leaq 0x56af6(%rip), %rdx     # 0xbe918
movq %rbx, %rdi
callq 0x7c64
movq %rbx, %rax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_hlsl.cpp
// Function: spirv_cross::CompilerHLSL::to_sampler_expression[abi:cxx11](unsigned int)
string CompilerHLSL::to_sampler_expression(uint32_t id)
{
	auto expr = join("_", to_expression(id));
	auto index = expr.find_first_of('[');
	if (index == string::npos)
	{
		return expr + "_sampler";
	}
	else
	{
		// We have an expression like _ident[array], so we cannot tack on _sampler, insert it inside the string instead.
		return expr.insert(index, "_sampler");
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x345e6
leaq 0x55a3b(%rip), %rsi     # 0xbefaf
movq %rsp, %rdi
movq %r14, %rdx
callq 0x585b8
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6959a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x6260
movq %rsp, %rdi
movl $0x5b, %esi
xorl %edx, %edx
callq 0x6340
cmpq $-0x1, %rax
je 0x695e4
leaq 0x55501(%rip), %rcx     # 0xbeab7
movq %rsp, %rdi
movl $0x8, %r8d
movq %rax, %rsi
xorl %edx, %edx
callq 0x62c0
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xe480
jmp 0x6960e
leaq 0x10(%rbx), %r15
movq %r15, (%rbx)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xe480
leaq 0x554b1(%rip), %rsi     # 0xbeab7
movq %rbx, %rdi
callq 0x64e0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x69629
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x69669
movq (%r15), %rsi
incq %rsi
callq 0x6260
jmp 0x69669
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x69684
movq 0x30(%rsp), %rsi
jmp 0x6967c
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x69684
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
movq %r14, %rdi
callq 0x64a0
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_hlsl.cpp
// Function: spirv_cross::CompilerHLSL::to_func_call_arg[abi:cxx11](unsigned int)
string CompilerHLSL::to_func_call_arg(uint32_t id)
{
	string arg_str = CompilerGLSL::to_func_call_arg(id);

	if (hlsl_options.shader_model <= 30)
		return arg_str;

	// Manufacture automatic sampler arg if the arg is a SampledImage texture and we're in modern HLSL.
	auto &type = expression_type(id);

	// We don't have to consider combined image samplers here via OpSampledImage because
	// those variables cannot be passed as arguments to functions.
	// Only global SampledImage variables may be used as arguments.
	if (type.basetype == SPIRType::SampledImage && type.image.dim != DimBuffer)
		arg_str += ", " + to_sampler_expression(id);

	return arg_str;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x345ae
cmpl $0x1f, 0x788(%r14)
jb 0x697b6
movq %r14, %rdi
movl %ebp, %esi
callq 0x12aba
cmpl $0xe, 0xc(%rax)
jne 0x697b6
cmpl $0x5, 0x84(%rax)
je 0x697b6
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x69554
leaq 0x519a3(%rip), %rcx     # 0xbb0bb
leaq 0x28(%rsp), %rdi
movl $0x2, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x62c0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x69753
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x6975a
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x60b0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6979b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x697b6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6260
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x697e3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x697e3
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x69805
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x69805
jmp 0x69802
movq %rax, %r14
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0x6981c
movq (%rbx), %rsi
incq %rsi
callq 0x6260
movq %r14, %rdi
callq 0x64a0
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_hlsl.cpp
// Function: spirv_cross::CompilerHLSL::emit_fixup()
void CompilerHLSL::emit_fixup()
{
	if (get_entry_point().model == ExecutionModelVertex)
	{
		// Do various mangling on the gl_Position.
		if (hlsl_options.shader_model <= 30)
		{
			statement("gl_Position.x = gl_Position.x - gl_HalfPixel.x * "
			          "gl_Position.w;");
			statement("gl_Position.y = gl_Position.y + gl_HalfPixel.y * "
			          "gl_Position.w;");
		}

		if (options.vertex.flip_vert_y)
			statement("gl_Position.y = -gl_Position.y;");
		if (options.vertex.fixup_clipspace)
			statement("gl_Position.z = (gl_Position.z + gl_Position.w) * 0.5;");
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x16254
cmpl $0x0, 0xb8(%rax)
jne 0x6abe4
cmpl $0x1e, 0x788(%rbx)
ja 0x6abb3
leaq 0x54080(%rip), %rsi     # 0xbec1c
movq %rbx, %rdi
callq 0x7ab60
leaq 0x540b1(%rip), %rsi     # 0xbec5c
movq %rbx, %rdi
callq 0x7ab60
cmpb $0x1, 0x443(%rbx)
jne 0x6abcb
leaq 0x50db5(%rip), %rsi     # 0xbb978
movq %rbx, %rdi
callq 0x58fec
cmpb $0x1, 0x442(%rbx)
jne 0x6abe4
leaq 0x540c1(%rip), %rsi     # 0xbec9c
movq %rbx, %rdi
popq %rbx
jmp 0x7ac66
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_hlsl.cpp
// Function: spirv_cross::CompilerHLSL::to_resource_binding_sampler[abi:cxx11](spirv_cross::SPIRVariable const&)
string CompilerHLSL::to_resource_binding_sampler(const SPIRVariable &var)
{
	// For combined image samplers.
	if (!has_decoration(var.self, DecorationBinding))
		return "";

	return to_resource_register('s', get_decoration(var.self, DecorationBinding),
	                            get_decoration(var.self, DecorationDescriptorSet));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movl 0x8(%rdx), %esi
movq %r14, %rdi
movl $0x21, %edx
callq 0x1299a
testb %al, %al
je 0x6cd03
movl 0x8(%r15), %esi
movq %r14, %rdi
movl $0x21, %edx
callq 0x14ff6
movl %eax, %ebp
movl 0x8(%r15), %esi
movq %r14, %rdi
movl $0x22, %edx
callq 0x14ff6
movq %rbx, %rdi
movq %r14, %rsi
movl $0x73, %edx
movl %ebp, %ecx
movl %eax, %r8d
callq 0x694da
jmp 0x6cd1c
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x48b9e(%rip), %rdx     # 0xb58af
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x7c64
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_hlsl.cpp
// Function: spirv_cross::CompilerHLSL::emit_legacy_uniform(spirv_cross::SPIRVariable const&)
void CompilerHLSL::emit_legacy_uniform(const SPIRVariable &var)
{
	auto &type = get<SPIRType>(var.basetype);
	switch (type.basetype)
	{
	case SPIRType::Sampler:
	case SPIRType::Image:
		SPIRV_CROSS_THROW("Separate image and samplers not supported in legacy HLSL.");

	default:
		statement(variable_decl(var), ";");
		break;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl 0xc(%rsi), %esi
callq 0xa426
movl 0xc(%rax), %eax
orl $0x2, %eax
cmpl $0xf, %eax
je 0x6d26c
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2ce16
leaq 0x528ae(%rip), %rdx     # 0xbfae9
movq %rbx, %rdi
movq %r15, %rsi
callq 0xaa50
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6d261
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
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 0x51d43(%rip), %rsi     # 0xbefcc
leaq 0x51d75(%rip), %rdx     # 0xbf005
leaq 0x8(%rsp), %rdi
callq 0x7c64
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0x8fae7(%rip), %rax     # 0xfcd98
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0x8fabf(%rip), %rsi     # 0xfcd80
movq 0x90d10(%rip), %rdx     # 0xfdfd8
movq %rbx, %rdi
callq 0x6470
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6d31f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x6d31f
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6d312
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x6d312
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x6d31f
movq %rbx, %rdi
callq 0x6200
movq %r14, %rdi
callq 0x64a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_hlsl.cpp
// Function: spirv_cross::CompilerHLSL::emit_uniform(spirv_cross::SPIRVariable const&)
void CompilerHLSL::emit_uniform(const SPIRVariable &var)
{
	add_resource_name(var.self);
	if (hlsl_options.shader_model >= 40)
		emit_modern_uniform(var);
	else
		emit_legacy_uniform(var);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x8(%rsi), %esi
callq 0x287ea
cmpl $0x28, 0x788(%r14)
jb 0x6d356
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x6cd2a
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x6d1fe
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_hlsl.cpp
// Function: spirv_cross::CompilerHLSL::emit_load(spirv_cross::Instruction const&)
void CompilerHLSL::emit_load(const Instruction &instruction)
{
	auto ops = stream(instruction);

	auto *chain = maybe_get<SPIRAccessChain>(ops[2]);
	if (chain)
	{
		uint32_t result_type = ops[0];
		uint32_t id = ops[1];
		uint32_t ptr = ops[2];

		auto load_expr = read_access_chain(*chain);

		bool forward = should_forward(ptr) && forced_temporaries.find(id) == end(forced_temporaries);

		// Do not forward complex load sequences like matrices, structs and arrays.
		auto &type = get<SPIRType>(result_type);
		if (type.columns > 1 || !type.array.empty() || type.basetype == SPIRType::Struct)
			forward = false;

		auto &e = emit_op(result_type, id, load_expr, forward, true);
		e.need_transpose = false;
		register_read(id, ptr, forward);
	}
	else
		CompilerGLSL::emit_instruction(instruction);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x1b906
movq %rax, %r12
movl 0x8(%rax), %esi
movq %rbx, %rdi
callq 0x1ba4c
testq %rax, %rax
je 0x6e6ab
movl (%r12), %r15d
movl 0x4(%r12), %r14d
movl 0x8(%r12), %ebp
movq %rsp, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x6db2c
movq %rbx, %rdi
movl %ebp, %esi
callq 0x39e96
testb %al, %al
je 0x6e6c2
movq 0x228(%rbx), %rsi
movq 0x230(%rbx), %rdi
xorl %r9d, %r9d
movq %r14, %rax
xorl %edx, %edx
divq %rdi
movq (%rsi,%rdx,8), %rax
testq %rax, %rax
je 0x6e6ca
movq (%rax), %r8
movq %rax, %r9
cmpl 0x8(%r8), %r14d
je 0x6e6ca
movq %rdx, %rcx
movq %r8, %r10
movq (%r8), %r8
testq %r8, %r8
je 0x6e6c7
movl 0x8(%r8), %esi
movq %rsi, %rax
xorl %edx, %edx
divq %rdi
movl $0x0, %r9d
cmpq %rcx, %rdx
jne 0x6e6ca
movq %r10, %r9
cmpl %esi, %r14d
jne 0x6e67f
jmp 0x6e6ca
movq %rbx, %rdi
movq %r14, %rsi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x44b34
xorl %r12d, %r12d
jmp 0x6e6dc
xorl %r9d, %r9d
testq %r9, %r9
je 0x6e6d9
cmpq $0x0, (%r9)
sete %r12b
jmp 0x6e6dc
movb $0x1, %r12b
movq %rbx, %rdi
movl %r15d, %esi
callq 0xa426
cmpl $0x1, 0x18(%rax)
jbe 0x6e6f2
xorl %r12d, %r12d
jmp 0x6e702
movq 0x20(%rax), %rcx
cmpq 0x28(%rax), %rcx
jne 0x6e6ed
cmpl $0xc, 0xc(%rax)
je 0x6e6ed
movzbl %r12b, %r12d
movq %rsp, %rcx
movq %rbx, %rdi
movl %r15d, %esi
movl %r14d, %edx
movl %r12d, %r8d
movl $0x1, %r9d
callq 0x39bea
movb $0x0, 0x39(%rax)
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
movl %r12d, %ecx
callq 0x12d38
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e74f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6e760
jmp 0x6e760
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e77e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
movq %rbx, %rdi
callq 0x64a0
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_hlsl.cpp
// Function: spirv_cross::CompilerHLSL::emit_store(spirv_cross::Instruction const&)
void CompilerHLSL::emit_store(const Instruction &instruction)
{
	auto ops = stream(instruction);
	auto *chain = maybe_get<SPIRAccessChain>(ops[0]);
	if (chain)
		write_access_chain(*chain, ops[1]);
	else
		CompilerGLSL::emit_instruction(instruction);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
callq 0x1b906
movq %rax, %r15
movl (%rax), %esi
movq %rbx, %rdi
callq 0x1ba4c
testq %rax, %rax
je 0x6f39a
movl 0x4(%r15), %edx
movq %rbx, %rdi
movq %rax, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x6e786
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x44b34
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: create_sampler_address[abi:cxx11](char const*, spirv_cross::MSLSamplerAddress)
static string create_sampler_address(const char *prefix, MSLSamplerAddress addr)
{
	switch (addr)
	{
	case MSL_SAMPLER_ADDRESS_CLAMP_TO_EDGE:
		return join(prefix, "address::clamp_to_edge");
	case MSL_SAMPLER_ADDRESS_CLAMP_TO_ZERO:
		return join(prefix, "address::clamp_to_zero");
	case MSL_SAMPLER_ADDRESS_CLAMP_TO_BORDER:
		return join(prefix, "address::clamp_to_border");
	case MSL_SAMPLER_ADDRESS_REPEAT:
		return join(prefix, "address::repeat");
	case MSL_SAMPLER_ADDRESS_MIRRORED_REPEAT:
		return join(prefix, "address::mirrored_repeat");
	default:
		SPIRV_CROSS_THROW("Invalid sampler addressing mode.");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, (%rsp)
cmpl $0x4, %edx
ja 0x89f5c
movq %rdi, %rbx
movl %edx, %eax
leaq 0x36967(%rip), %rcx     # 0xc0860
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x3a616(%rip), %rdx     # 0xc451f
jmp 0x89f43
leaq 0x3a64d(%rip), %rdx     # 0xc455f
jmp 0x89f1b
leaq 0x3a61b(%rip), %rdx     # 0xc4536
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xa7dd3
jmp 0x89f4e
leaq 0x3a620(%rip), %rdx     # 0xc454f
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xa7e5f
jmp 0x89f4e
leaq 0x3a5c5(%rip), %rdx     # 0xc4508
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xa7d47
movq %rbx, %rax
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 0x3a5ff(%rip), %rsi     # 0xc4578
leaq 0x3a618(%rip), %rdx     # 0xc4598
leaq 0x8(%rsp), %rdi
callq 0x7c64
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0x72df7(%rip), %rax     # 0xfcd98
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0x72dcf(%rip), %rsi     # 0xfcd80
movq 0x74020(%rip), %rdx     # 0xfdfd8
movq %rbx, %rdi
callq 0x6470
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x89fe2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x89fe2
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x89fef
movq %rbx, %rdi
callq 0x6200
movq %r14, %rdi
callq 0x64a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::get_argument_address_space[abi:cxx11](spirv_cross::SPIRVariable const&)
string CompilerMSL::get_argument_address_space(const SPIRVariable &argument)
{
	const auto &type = get<SPIRType>(argument.basetype);

	switch (type.storage)
	{
	case StorageClassWorkgroup:
		return "threadgroup";

	case StorageClassStorageBuffer:
	{
		bool readonly = ir.get_buffer_block_flags(argument).get(DecorationNonWritable);
		return readonly ? "const device" : "device";
	}

	case StorageClassUniform:
	case StorageClassUniformConstant:
	case StorageClassPushConstant:
		if (type.basetype == SPIRType::Struct)
		{
			bool ssbo = has_decoration(type.self, DecorationBufferBlock);
			if (ssbo)
			{
				bool readonly = ir.get_buffer_block_flags(argument).get(DecorationNonWritable);
				return readonly ? "const device" : "device";
			}
			else
				return "constant";
		}
		break;

	case StorageClassFunction:
	case StorageClassGeneric:
		// No address space for plain values.
		return type.pointer ? "thread" : "";

	default:
		break;
	}

	return "thread";
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl 0xc(%rdx), %esi
movq %r15, %rdi
callq 0xa426
movl 0x64(%rax), %ecx
cmpq $0xc, %rcx
ja 0x8a307
leaq 0x365f1(%rip), %rdx     # 0xc0874
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpl $0xc, 0xc(%rax)
jne 0x8a307
movl 0x8(%rax), %esi
movq %r15, %rdi
movl $0x3, %edx
callq 0x1299a
testb %al, %al
je 0x8a35f
addq $0x8, %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x24ca0
movl (%r12), %eax
btl $0x18, %eax
leaq 0x39b7e(%rip), %rcx     # 0xc3e4e
leaq 0x39b71(%rip), %r14     # 0xc3e48
cmovaeq %rcx, %r14
leaq 0xc(%r14), %r15
leaq 0x6(%r14), %rcx
btl $0x18, %eax
leaq 0x10(%rsp), %rdi
cmovaeq %rcx, %r15
callq 0xd5b0
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
jmp 0x8a377
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x39b40(%rip), %rsi     # 0xc3e55
leaq 0x39b3f(%rip), %rdx     # 0xc3e5b
jmp 0x8a374
movb 0x60(%rax), %al
testb %al, %al
leaq 0x39b2b(%rip), %rcx     # 0xc3e55
leaq 0x2b57e(%rip), %rsi     # 0xb58af
cmovneq %rcx, %rsi
leaq 0x6(%rsi), %rdx
testb %al, %al
cmoveq %rsi, %rdx
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
jmp 0x8a374
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3926b(%rip), %rsi     # 0xc35c1
leaq 0x3926f(%rip), %rdx     # 0xc35cc
jmp 0x8a374
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2da84(%rip), %rsi     # 0xb7df1
leaq 0x2da85(%rip), %rdx     # 0xb7df9
movq %rbx, %rdi
callq 0x7c64
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::preprocess_op_codes()
void CompilerMSL::preprocess_op_codes()
{
	OpCodePreprocessor preproc(*this);
	traverse_all_reachable_opcodes(get<SPIRFunction>(ir.default_entry_point), preproc);

	if (preproc.suppress_missing_prototypes)
		add_pragma_line("#pragma clang diagnostic ignored \"-Wmissing-prototypes\"");

	if (preproc.uses_atomics)
	{
		add_header_line("#include <metal_atomic>");
		add_pragma_line("#pragma clang diagnostic ignored \"-Wunused-variable\"");
	}

	// Metal vertex functions that write to resources must disable rasterization and return void.
	if (preproc.uses_resource_write)
		is_rasterization_disabled = true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %r14
leaq 0x73329(%rip), %r15     # 0xfdb18
addq $0x10, %r15
leaq 0x38(%rsp), %rbx
movq %r15, -0x10(%rbx)
movq %rdi, -0x8(%rbx)
leaq 0x68(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
movl $0x0, 0x7(%rax)
movl 0x108(%rdi), %esi
callq 0xb9ca
leaq 0x28(%rsp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x13ece
cmpb $0x1, 0x70(%rsp)
jne 0x8a8a3
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x36b36(%rip), %rsi     # 0xc1393
leaq 0x36b66(%rip), %rdx     # 0xc13ca
leaq 0x8(%rsp), %rdi
callq 0x7c64
leaq 0x880(%r14), %rdi
leaq 0x8(%rsp), %rsi
callq 0xaa960
testb $0x1, %dl
je 0x8a88c
movb $0x1, 0x1d0(%r14)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x8a8a3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
cmpb $0x1, 0x71(%rsp)
jne 0x8a944
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x36b0c(%rip), %rsi     # 0xc13cb
leaq 0x36b1c(%rip), %rdx     # 0xc13e2
leaq 0x8(%rsp), %rdi
callq 0x7c64
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x4d294
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x8a8f4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x36ae0(%rip), %rsi     # 0xc13e3
leaq 0x36b0d(%rip), %rdx     # 0xc1417
callq 0x7c64
leaq 0x880(%r14), %rdi
leaq 0x8(%rsp), %rsi
callq 0xaa960
testb $0x1, %dl
je 0x8a92d
movb $0x1, 0x1d0(%r14)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x8a944
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
cmpb $0x1, 0x72(%rsp)
jne 0x8a953
movb $0x1, 0x937(%r14)
movq %r15, 0x28(%rsp)
movq %rbx, %rdi
callq 0xdd10
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x8a974
jmp 0x8a992
jmp 0x8a974
jmp 0x8a992
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x8a995
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x8a995
jmp 0x8a992
movq %rax, %r14
movq %r15, 0x28(%rsp)
movq %rbx, %rdi
callq 0xdd10
movq %r14, %rdi
callq 0x64a0
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::localize_global_variables()
void CompilerMSL::localize_global_variables()
{
	auto &entry_func = get<SPIRFunction>(ir.default_entry_point);
	auto iter = global_variables.begin();
	while (iter != global_variables.end())
	{
		uint32_t v_id = *iter;
		auto &var = get<SPIRVariable>(v_id);
		if (var.storage == StorageClassPrivate || var.storage == StorageClassWorkgroup)
		{
			entry_func.add_local_variable(v_id);
			iter = global_variables.erase(iter);
		}
		else
			iter++;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x108(%rdi), %esi
callq 0xb9ca
movq 0x118(%rbx), %r15
cmpq 0x120(%rbx), %r15
je 0x8ceda
movq %rax, %r14
movq %rax, %r12
addq $0x48, %r12
leaq 0x4(%rsp), %r13
movl (%r15), %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0xb40a
movl 0x10(%rax), %eax
orl $0x2, %eax
cmpl $0x6, %eax
jne 0x8ce9a
movl %ebp, 0x4(%rsp)
movq 0x50(%r14), %rsi
cmpq 0x58(%r14), %rsi
je 0x8cea0
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x50(%r14)
jmp 0x8ceab
addq $0x4, %r15
jmp 0x8ced1
movq %r12, %rdi
movq %r13, %rdx
callq 0x7a00
movq %r15, %rsi
addq $0x4, %rsi
movq 0x120(%rbx), %rdx
cmpq %rdx, %rsi
je 0x8cec9
subq %rsi, %rdx
movq %r15, %rdi
callq 0x6430
addq $-0x4, 0x120(%rbx)
cmpq 0x120(%rbx), %r15
jne 0x8ce68
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::extract_global_variables_from_functions()
void CompilerMSL::extract_global_variables_from_functions()
{
	// Uniforms
	unordered_set<uint32_t> global_var_ids;
	for (auto &id : ir.ids)
	{
		if (id.get_type() == TypeVariable)
		{
			auto &var = id.get<SPIRVariable>();
			if (var.storage == StorageClassInput || var.storage == StorageClassOutput ||
			    var.storage == StorageClassUniform || var.storage == StorageClassUniformConstant ||
			    var.storage == StorageClassPushConstant || var.storage == StorageClassStorageBuffer)
			{
				global_var_ids.insert(var.self);
			}
		}
	}

	// Local vars that are declared in the main function and accessed directly by a function
	auto &entry_func = get<SPIRFunction>(ir.default_entry_point);
	for (auto &var : entry_func.local_variables)
		if (get<SPIRVariable>(var).storage != StorageClassFunction)
			global_var_ids.insert(var);

	std::set<uint32_t> added_arg_ids;
	unordered_set<uint32_t> processed_func_ids;
	extract_global_variables_from_function(ir.default_entry_point, added_arg_ids, global_var_ids, processed_func_ids);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %rbx
leaq 0x70(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
movq 0x20(%rdi), %r14
movq 0x28(%rdi), %r13
cmpq %r13, %r14
je 0x8cf79
movl $0x120f, %ebp           # imm = 0x120F
leaq 0x40(%rsp), %r15
leaq 0x8(%rsp), %r12
cmpl $0x2, 0x8(%r14)
jne 0x8cf70
movq %r14, %rdi
callq 0xb2e2
movl 0x10(%rax), %ecx
cmpl $0xc, %ecx
ja 0x8cf70
btl %ecx, %ebp
jae 0x8cf70
addq $0x8, %rax
movq %r15, 0x8(%rsp)
movq %r15, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x1fc02
addq $0x10, %r14
cmpq %r13, %r14
jne 0x8cf3d
movl 0x108(%rbx), %esi
movq %rbx, %rdi
callq 0xb9ca
movq 0x48(%rax), %r14
movq 0x50(%rax), %r13
cmpq %r13, %r14
je 0x8cfcb
leaq 0x40(%rsp), %r15
leaq 0x8(%rsp), %r12
movl (%r14), %esi
movq %rbx, %rdi
callq 0xb40a
cmpl $0x7, 0x10(%rax)
je 0x8cfc2
movq %r15, 0x8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x1fc02
addq $0x4, %r14
cmpq %r13, %r14
jne 0x8cf9e
leaq 0x80(%rsp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq 0x38(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
movl 0x108(%rbx), %esi
leaq 0x78(%rsp), %rdx
leaq 0x40(%rsp), %rcx
leaq 0x8(%rsp), %r8
movq %rbx, %rdi
callq 0x8ee0a
leaq 0x8(%rsp), %rdi
callq 0xd5b0
leaq 0x78(%rsp), %rdi
callq 0xa8006
leaq 0x40(%rsp), %rdi
callq 0xd5b0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xd5b0
leaq 0x78(%rsp), %rdi
callq 0xa8006
jmp 0x8d07b
jmp 0x8d078
jmp 0x8d078
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xd5b0
movq %rbx, %rdi
callq 0x64a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::compile[abi:cxx11](std::vector<spirv_cross::MSLVertexAttr, std::allocator<spirv_cross::MSLVertexAttr>>*, std::vector<spirv_cross::MSLResourceBinding, std::allocator<spirv_cross::MSLResourceBinding>>*)
string CompilerMSL::compile(vector<MSLVertexAttr> *p_vtx_attrs, vector<MSLResourceBinding> *p_res_bindings)
{
	if (p_vtx_attrs)
	{
		vtx_attrs_by_location.clear();
		for (auto &va : *p_vtx_attrs)
			vtx_attrs_by_location[va.location] = &va;
	}

	if (p_res_bindings)
	{
		resource_bindings.clear();
		for (auto &rb : *p_res_bindings)
			resource_bindings.push_back(&rb);
	}

	return compile();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rsi, %r14
movq %rdi, %rbx
testq %rdx, %rdx
je 0x8ed3e
movq %rdx, %rbp
leaq 0x810(%r14), %r12
movq %r12, %rdi
callq 0xa7c14
movq (%rbp), %r13
movq 0x8(%rbp), %rbp
cmpq %rbp, %r13
je 0x8ed3e
movq %r12, %rdi
movq %r13, %rsi
callq 0xa82de
movq %r13, (%rax)
addq $0x14, %r13
jmp 0x8ed25
testq %r15, %r15
je 0x8eda5
movq 0x8f8(%r14), %rax
cmpq %rax, 0x900(%r14)
je 0x8ed5a
movq %rax, 0x900(%r14)
movq (%r15), %r13
movq 0x8(%r15), %rbp
cmpq %rbp, %r13
je 0x8eda5
leaq 0x8f8(%r14), %r15
movq %rsp, %r12
movq %r13, (%rsp)
movq 0x900(%r14), %rsi
cmpq 0x908(%r14), %rsi
je 0x8ed91
movq %r13, (%rsi)
addq $0x8, 0x900(%r14)
jmp 0x8ed9c
movq %r15, %rdi
movq %r12, %rdx
callq 0xa85a0
addq $0x1c, %r13
cmpq %rbp, %r13
jne 0x8ed70
movq (%r14), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *0x10(%rax)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::mark_as_packable(spirv_cross::SPIRType&)
void CompilerMSL::mark_as_packable(SPIRType &type)
{
	// If this is not the base type (eg. it's a pointer or array), tunnel down
	if (type.parent_type)
	{
		mark_as_packable(get<SPIRType>(type.parent_type));
		return;
	}

	if (type.basetype == SPIRType::Struct)
	{
		set_decoration(type.self, DecorationCPacked);

		// Recurse
		size_t mbr_cnt = type.member_types.size();
		for (uint32_t mbr_idx = 0; mbr_idx < mbr_cnt; mbr_idx++)
		{
			uint32_t mbr_type_id = type.member_types[mbr_idx];
			auto &mbr_type = get<SPIRType>(mbr_type_id);
			mark_as_packable(mbr_type);
			if (mbr_type.type_alias)
			{
				auto &mbr_type_alias = get<SPIRType>(mbr_type.type_alias);
				mark_as_packable(mbr_type_alias);
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl 0x9c(%r14), %esi
testl %esi, %esi
je 0x8f868
movq %rbx, %rdi
callq 0xa426
movq %rax, %r14
jmp 0x8f850
cmpl $0xc, 0xc(%r14)
jne 0x8f8de
movl 0x8(%r14), %esi
movq %rbx, %rdi
movl $0xa, %edx
xorl %ecx, %ecx
callq 0x14ea4
movq 0x70(%r14), %r12
movq 0x68(%r14), %rax
subq %rax, %r12
je 0x8f8de
sarq $0x2, %r12
movl $0x1, %ebp
xorl %eax, %eax
movq 0x68(%r14), %rcx
movl (%rcx,%rax,4), %esi
movq %rbx, %rdi
callq 0xa426
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8f842
movl 0x98(%r15), %esi
testl %esi, %esi
je 0x8f8d5
movq %rbx, %rdi
callq 0xa426
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8f842
movl %ebp, %eax
incl %ebp
cmpq %rax, %r12
ja 0x8f89a
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::mark_location_as_used_by_shader(unsigned int, spv::StorageClass)
void CompilerMSL::mark_location_as_used_by_shader(uint32_t location, StorageClass storage)
{
	MSLVertexAttr *p_va;
	if ((get_entry_point().model == ExecutionModelVertex) && (storage == StorageClassInput) &&
	    (p_va = vtx_attrs_by_location[location]))
		p_va->used_by_shader = true;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rdi, %rbx
movl %esi, 0x4(%rsp)
callq 0x16254
cmpl $0x1, %ebp
jne 0x8f927
cmpl $0x0, 0xb8(%rax)
jne 0x8f927
addq $0x810, %rbx            # imm = 0x810
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0xa82de
movq (%rax), %rax
testq %rax, %rax
je 0x8f927
movb $0x1, 0x11(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::ensure_correct_builtin_type(unsigned int, spv::BuiltIn)
uint32_t CompilerMSL::ensure_correct_builtin_type(uint32_t type_id, BuiltIn builtin)
{
	auto &type = get<SPIRType>(type_id);

	if ((builtin == BuiltInSampleMask && is_array(type)) ||
	    ((builtin == BuiltInLayer || builtin == BuiltInViewportIndex) && type.basetype != SPIRType::UInt))
	{
		uint32_t next_id = ir.increase_bound_by(type.pointer ? 2 : 1);
		uint32_t base_type_id = next_id++;
		auto &base_type = set<SPIRType>(base_type_id);
		base_type.basetype = SPIRType::UInt;
		base_type.width = 32;

		if (!type.pointer)
			return base_type_id;

		uint32_t ptr_type_id = next_id++;
		auto &ptr_type = set<SPIRType>(ptr_type_id);
		ptr_type = base_type;
		ptr_type.pointer = true;
		ptr_type.storage = type.storage;
		ptr_type.parent_type = base_type_id;
		return ptr_type_id;
	}

	return type_id;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %r15
callq 0xa426
movq %rax, %rbx
cmpl $0x14, %r14d
jne 0x8f95e
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1350a
testb %al, %al
jne 0x8f976
addl $-0xb, %r14d
cmpl $-0x2, %r14d
jb 0x8fa60
cmpl $0x5, 0xc(%rbx)
je 0x8fa60
leaq 0x8(%r15), %rdi
movzbl 0x60(%rbx), %esi
incl %esi
callq 0x2561c
movl %eax, %r14d
movq %r15, %rdi
movl %eax, %esi
callq 0x1c15a
movq %rax, %r12
movabsq $0x2000000005, %rax     # imm = 0x2000000005
movq %rax, 0xc(%r12)
cmpb $0x1, 0x60(%rbx)
jne 0x8fa5d
leaq 0xc(%r12), %r13
movl %r14d, %ebp
incl %ebp
movq %r15, %rdi
movl %ebp, %esi
callq 0x1c15a
movq %rax, %r15
movl 0x8(%r12), %eax
movl %eax, 0x8(%r15)
movups (%r13), %xmm0
movups %xmm0, 0xc(%r15)
leaq 0x20(%r15), %rdi
leaq 0x20(%r12), %rsi
callq 0x1c2c2
leaq 0x38(%r15), %rdi
leaq 0x38(%r12), %rsi
callq 0x1c398
movq 0x60(%r12), %rax
movq %rax, 0x60(%r15)
leaq 0x68(%r15), %rdi
leaq 0x68(%r12), %rsi
callq 0x1c2c2
movups 0x80(%r12), %xmm0
movups 0x90(%r12), %xmm1
movups %xmm0, 0x80(%r15)
movups %xmm1, 0x90(%r15)
cmpq %r15, %r12
je 0x8fa48
movl $0xa0, %eax
movq %r15, %rdi
addq %rax, %rdi
addq %rax, %r12
movq %r12, %rsi
callq 0xd5d6
movb $0x1, 0x60(%r15)
movl 0x64(%rbx), %eax
movl %eax, 0x64(%r15)
movl %r14d, 0x9c(%r15)
jmp 0x8fa60
movl %r14d, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::to_qualified_member_name[abi:cxx11](spirv_cross::SPIRType const&, unsigned int)
string CompilerMSL::to_qualified_member_name(const SPIRType &type, uint32_t index)
{
	// Don't qualify Builtin names because they are unique and are treated as such when building expressions
	BuiltIn builtin;
	if (is_member_builtin(type, index, &builtin))
		return builtin_to_glsl(builtin, type.storage);

	// Strip any underscore prefix from member name
	string mbr_name = to_member_name(type, index);
	size_t startPos = mbr_name.find_first_not_of("_");
	mbr_name = (startPos != string::npos) ? mbr_name.substr(startPos) : "";
	return join(to_name(type.self), "_", mbr_name);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x4(%rsp), %rcx
movq %rsi, %rdi
movq %rdx, %rsi
movl %ebp, %edx
callq 0x13472
testb %al, %al
je 0x8fabd
movl 0x4(%rsp), %edx
movl 0x64(%r15), %ecx
movq (%r14), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *0xa0(%rax)
jmp 0x8fbaf
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %ebp, %ecx
callq 0x2c69c
leaq 0x2f4d6(%rip), %rsi     # 0xbefaf
movl $0x1, %ecx
movq %r12, %rdi
xorl %edx, %edx
callq 0x6450
leaq 0x18(%rsp), %r13
cmpq $-0x1, %rax
je 0x8fb0e
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %rax, %rdx
movq $-0x1, %rcx
callq 0x6290
jmp 0x8fb25
leaq 0x8(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x25d92(%rip), %rdx     # 0xb58af
movq %rdx, %rsi
callq 0x7c64
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0x6310
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x8fb4d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
movl 0x8(%r15), %edx
movq (%r14), %rax
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq *0x38(%rax)
leaq 0x2f444(%rip), %rdx     # 0xbefaf
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rcx
movq %rbx, %rdi
callq 0x52708
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x8fb94
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8fbaf
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6260
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8fbe1
jmp 0x8fbe1
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x8fbe4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x8fbe4
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8fbff
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6260
movq %rbx, %rdi
callq 0x64a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::get_declared_struct_member_alignment(spirv_cross::SPIRType const&, unsigned int) const
size_t CompilerMSL::get_declared_struct_member_alignment(const SPIRType &struct_type, uint32_t index) const
{
	auto &type = get<SPIRType>(struct_type.member_types[index]);

	switch (type.basetype)
	{
	case SPIRType::Unknown:
	case SPIRType::Void:
	case SPIRType::AtomicCounter:
	case SPIRType::Image:
	case SPIRType::SampledImage:
	case SPIRType::Sampler:
		SPIRV_CROSS_THROW("Querying alignment of opaque object.");

	case SPIRType::Struct:
		return 16; // Per Vulkan spec section 14.5.4

	default:
	{
		// Alignment of packed type is the same as the underlying component or column size.
		// Alignment of unpacked type is the same as the vector size.
		// Alignment of 3-elements vector is the same as 4-elements (including packed using column).
		if (member_is_packed_type(struct_type, index))
			return (type.width / 8) * (type.columns == 3 ? 4 : type.columns);
		else
			return (type.width / 8) * (type.vecsize == 3 ? 4 : type.vecsize);
	}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
movl %edx, %eax
movq 0x68(%rsi), %rcx
movl (%rcx,%rax,4), %esi
callq 0x1b9de
movq %rax, %rbx
movl 0xc(%rax), %ecx
cmpl $0xf, %ecx
ja 0x90293
movl $0x10, %eax
cmpl $0xc, %ecx
je 0x902c0
movl $0xe103, %eax           # imm = 0xE103
btl %ecx, %eax
jb 0x902cd
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x4222c
movl 0x10(%rbx), %ecx
shrl $0x3, %ecx
testb %al, %al
je 0x902af
movl 0x18(%rbx), %edx
jmp 0x902b2
movl 0x14(%rbx), %edx
cmpl $0x3, %edx
movl $0x4, %eax
cmovnel %edx, %eax
imull %ecx, %eax
movl %eax, %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 0x3416d(%rip), %rsi     # 0xc4457
leaq 0x3418a(%rip), %rdx     # 0xc447b
leaq 0x8(%rsp), %rdi
callq 0x7c64
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0x6ca86(%rip), %rax     # 0xfcd98
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0x6ca5e(%rip), %rsi     # 0xfcd80
movq 0x6dcaf(%rip), %rdx     # 0xfdfd8
movq %rbx, %rdi
callq 0x6470
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x90353
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x90353
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x90360
movq %rbx, %rdi
callq 0x6200
movq %r14, %rdi
callq 0x64a0
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::emit_header()
void CompilerMSL::emit_header()
{
	for (auto &pragma : pragma_lines)
		statement(pragma);

	if (!pragma_lines.empty())
		statement("");

	statement("#include <metal_stdlib>");
	statement("#include <simd/simd.h>");

	for (auto &header : header_lines)
		statement(header);

	statement("");
	statement("using namespace metal;");
	statement("");

	for (auto &td : typedef_lines)
		statement(td);

	if (!typedef_lines.empty())
		statement("");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x898(%rdi), %r14
leaq 0x888(%rdi), %r15
cmpq %r15, %r14
je 0x90437
leaq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0xa45fa
movq %r14, %rdi
callq 0x62e0
movq %rax, %r14
cmpq %r15, %rax
jne 0x9041b
cmpq $0x0, 0x8a8(%rbx)
je 0x90450
leaq 0x25467(%rip), %rsi     # 0xb58af
movq %rbx, %rdi
callq 0xa700
leaq 0x31129(%rip), %rsi     # 0xc1580
movq %rbx, %rdi
callq 0xa46f6
leaq 0x31132(%rip), %rsi     # 0xc1598
movq %rbx, %rdi
callq 0xc27a
movq 0x738(%rbx), %r14
movq 0x740(%rbx), %r15
cmpq %r15, %r14
je 0x90492
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb674
addq $0x20, %r14
jmp 0x9047c
leaq 0x25416(%rip), %r14     # 0xb58af
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa700
leaq 0x31104(%rip), %rsi     # 0xc15af
movq %rbx, %rdi
callq 0xc27a
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa700
movq 0x8c8(%rbx), %r14
leaq 0x8b8(%rbx), %r15
cmpq %r15, %r14
je 0x904ed
leaq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0xa45fa
movq %r14, %rdi
callq 0x62e0
movq %rax, %r14
cmpq %r15, %rax
jne 0x904d1
cmpq $0x0, 0x8d8(%rbx)
je 0x9050b
leaq 0x253b1(%rip), %rsi     # 0xb58af
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0xa700
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::emit_interface_block(unsigned int)
void CompilerMSL::emit_interface_block(uint32_t ib_var_id)
{
	if (ib_var_id)
	{
		auto &ib_var = get<SPIRVariable>(ib_var_id);
		auto &ib_type = get<SPIRType>(ib_var.basetype);
		assert(ib_type.basetype == SPIRType::Struct && !ib_type.member_types.empty());
		emit_struct(ib_type);
	}
}

// Assembly:
pushq %rbx
testl %esi, %esi
je 0x90876
movq %rdi, %rbx
callq 0xb40a
movl 0xc(%rax), %esi
movq %rbx, %rdi
callq 0xa426
cmpl $0xc, 0xc(%rax)
jne 0x90878
movq 0x68(%rax), %rcx
cmpq 0x70(%rax), %rcx
je 0x90878
movq %rbx, %rdi
movq %rax, %rsi
popq %rbx
jmp 0x285ee
popq %rbx
retq
leaq 0x330dd(%rip), %rdi     # 0xc395c
leaq 0x30bad(%rip), %rsi     # 0xc1433
leaq 0x33115(%rip), %rcx     # 0xc39a2
movl $0xb16, %edx            # imm = 0xB16
callq 0x61b0
nop