// File: 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 %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rsi
movq %rsi, -0xf0(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x113ab0
movq -0xf0(%rbp), %rdi
movl 0x108(%rdi), %esi
callq 0x106d0
movq %rax, -0xe8(%rbp)
jmp 0xf3f8e
movq -0xe8(%rbp), %rsi
movq -0xf0(%rbp), %rdi
leaq -0x58(%rbp), %rdx
callq 0x21b20
jmp 0xf3fa7
testb $0x1, -0x10(%rbp)
je 0xf4057
leaq -0x89(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x7650
movq -0xf8(%rbp), %rdx
leaq 0x56a4d(%rip), %rsi     # 0x14aa1f
leaq -0x88(%rbp), %rdi
callq 0x7520
jmp 0xf3fe0
movq -0xf0(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0xf9250
jmp 0xf3ff5
leaq -0x88(%rbp), %rdi
callq 0x7708
leaq -0x89(%rbp), %rdi
callq 0x73d0
jmp 0xf4057
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xf41a9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xf4046
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x7708
leaq -0x89(%rbp), %rdi
callq 0x73d0
jmp 0xf41a9
testb $0x1, -0xf(%rbp)
je 0xf4183
leaq -0xb1(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0x7650
movq -0x100(%rbp), %rdx
leaq 0x569d5(%rip), %rsi     # 0x14aa57
leaq -0xb0(%rbp), %rdi
callq 0x7520
jmp 0xf4090
movq -0xf0(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x97450
jmp 0xf40a5
leaq -0xb0(%rbp), %rdi
callq 0x7708
leaq -0xb1(%rbp), %rdi
callq 0x73d0
leaq -0xd9(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x7650
movq -0x108(%rbp), %rdx
leaq 0x56991(%rip), %rsi     # 0x14aa6f
leaq -0xd8(%rbp), %rdi
callq 0x7520
jmp 0xf40ec
movq -0xf0(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0xf9250
jmp 0xf4101
leaq -0xd8(%rbp), %rdi
callq 0x7708
leaq -0xd9(%rbp), %rdi
callq 0x73d0
jmp 0xf4183
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xf4141
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x7708
leaq -0xb1(%rbp), %rdi
callq 0x73d0
jmp 0xf41a9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xf4175
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x7708
leaq -0xd9(%rbp), %rdi
callq 0x73d0
jmp 0xf41a9
testb $0x1, -0xe(%rbp)
je 0xf4197
movq -0xf0(%rbp), %rax
movb $0x1, 0x937(%rax)
leaq -0x58(%rbp), %rdi
callq 0x113b10
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
leaq -0x58(%rbp), %rdi
callq 0x113b10
movq -0x60(%rbp), %rdi
callq 0x7640
nopl (%rax,%rax)