// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::CompilerMSL(spirv_cross::ParsedIR const&, spirv_cross::MSLVertexAttr*, unsigned long, spirv_cross::MSLResourceBinding*, unsigned long)
CompilerMSL::CompilerMSL(const ParsedIR &ir_, MSLVertexAttr *p_vtx_attrs, size_t vtx_attrs_count,
                         MSLResourceBinding *p_res_bindings, size_t res_bindings_count)
    : CompilerGLSL(ir_)
{
	if (p_vtx_attrs)
		for (size_t i = 0; i < vtx_attrs_count; i++)
			vtx_attrs_by_location[p_vtx_attrs[i].location] = &p_vtx_attrs[i];

	if (p_res_bindings)
		for (size_t i = 0; i < res_bindings_count; i++)
			resource_bindings.push_back(&p_res_bindings[i]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %r15
movq %r8, %r12
movq %rcx, %rbp
movq %rdx, %r14
movq %rdi, %rbx
callq 0x7f1d2
leaq 0x7a141(%rip), %rax     # 0xe7980
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x7b8(%rbx), %rax
movq %rax, 0x788(%rbx)
movq $0x1, 0x790(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x798(%rbx)
movl $0x3f800000, 0x7a8(%rbx) # imm = 0x3F800000
leaq 0x7cc(%rbx), %rdi
movups %xmm0, 0x7b0(%rbx)
movups %xmm0, 0x7bc(%rbx)
callq 0x7ee7e
leaq 0x7e8(%rbx), %rax
andl $0x0, 0x7e8(%rbx)
andq $0x0, 0x7f0(%rbx)
movq %rax, 0x7f8(%rbx)
movq %rax, 0x800(%rbx)
andq $0x0, 0x808(%rbx)
leaq 0x840(%rbx), %rax
movq %rax, 0x810(%rbx)
pushq $0x1
popq %rax
movq %rax, 0x818(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x820(%rbx)
movl $0x3f800000, %ecx       # imm = 0x3F800000
movl %ecx, 0x830(%rbx)
movups %xmm0, 0x838(%rbx)
leaq 0x878(%rbx), %rdx
movq %rdx, 0x848(%rbx)
movq %rax, 0x850(%rbx)
movups %xmm0, 0x858(%rbx)
movl %ecx, 0x868(%rbx)
movups %xmm0, 0x870(%rbx)
leaq 0x888(%rbx), %rax
andl $0x0, 0x888(%rbx)
andq $0x0, 0x890(%rbx)
movq %rax, 0x898(%rbx)
movq %rax, 0x8a0(%rbx)
andq $0x0, 0x8a8(%rbx)
andl $0x0, 0x8b8(%rbx)
andq $0x0, 0x8c0(%rbx)
leaq 0x8b8(%rbx), %rax
movq %rax, 0x8c8(%rbx)
movq %rax, 0x8d0(%rbx)
movups %xmm0, 0x914(%rbx)
andq $0x0, 0x921(%rbx)
movups %xmm0, 0x8f8(%rbx)
movups %xmm0, 0x8e8(%rbx)
andq $0x0, 0x908(%rbx)
movups %xmm0, 0x8d8(%rbx)
andq $0x0, 0x931(%rbx)
leaq 0x950(%rbx), %rax
andq $0x0, 0x92c(%rbx)
movq %rax, 0x940(%rbx)
andq $0x0, 0x948(%rbx)
leaq 0x810(%rbx), %rax
movq %rax, 0x18(%rsp)
leaq 0x8f8(%rbx), %r13
movb $0x0, 0x950(%rbx)
leaq 0x960(%rbx), %rdi
leaq 0x309c2(%rip), %rsi     # 0x9e3a2
leaq 0x7(%rsp), %rdx
movq %rdi, 0x10(%rsp)
callq 0x6100
leaq 0x980(%rbx), %rdi
leaq 0x2551f(%rip), %rsi     # 0x92f1c
leaq 0x6(%rsp), %rdx
movq %rdi, 0x28(%rsp)
callq 0x6100
leaq 0x9a0(%rbx), %rdi
leaq 0x2d6da(%rip), %rsi     # 0x9b0f4
leaq 0x5(%rsp), %rdx
movq %rdi, 0x20(%rsp)
callq 0x6100
andl $0x0, 0x9c0(%rbx)
leaq 0x9f8(%rbx), %rax
movq %rax, 0x9c8(%rbx)
movq $0x1, 0x9d0(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x9d8(%rbx)
movl $0x3f800000, 0x9e8(%rbx) # imm = 0x3F800000
andq $0x0, 0xa10(%rbx)
movups %xmm0, 0x9f0(%rbx)
movups %xmm0, 0xa00(%rbx)
testq %r14, %r14
je 0x6da94
subq $0x1, %rbp
jb 0x6da94
movq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x82c92
movq %r14, (%rax)
addq $0x14, %r14
jmp 0x6da78
testq %r12, %r12
je 0x6daba
leaq 0x30(%rsp), %r14
subq $0x1, %r15
jb 0x6daba
movq %r12, 0x30(%rsp)
movq %r13, %rdi
movq %r14, %rsi
callq 0x82fd6
addq $0x1c, %r12
jmp 0x6da9e
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, 0x8(%rsp)
jmp 0x6db14
movq %rax, 0x8(%rsp)
jmp 0x6db1e
movq %rax, 0x8(%rsp)
jmp 0x6db28
movq %rax, 0x8(%rsp)
jmp 0x6db98
jmp 0x6daea
movq %rax, 0x8(%rsp)
leaq 0x9c8(%rbx), %r15
leaq 0xa00(%rbx), %rdi
callq 0x6cf8
movq %r15, %rdi
callq 0x82394
movq 0x20(%rsp), %rdi
callq 0x6548
movq 0x28(%rsp), %rdi
callq 0x6548
movq 0x10(%rsp), %rdi
callq 0x6548
leaq 0x7e0(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x848(%rbx), %r12
leaq 0x880(%rbx), %rbp
leaq 0x8b0(%rbx), %r14
leaq 0x8e0(%rbx), %r15
leaq 0x940(%rbx), %rdi
callq 0x6548
movq %r13, %rdi
callq 0x82c5e
movq %r15, %rdi
callq 0x6cf8
movq %r14, %rdi
callq 0x8243c
movq %rbp, %rdi
callq 0x8243c
movq %r12, %rdi
callq 0x824a0
movq 0x18(%rsp), %rdi
callq 0x82548
movq 0x10(%rsp), %rdi
callq 0x825f0
leaq 0x788(%rbx), %rdi
callq 0x82648
movq %rbx, %rdi
callq 0xb9ac
movq 0x8(%rsp), %rdi
callq 0x64b0