// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::CompilerMSL(unsigned int const*, unsigned long, spirv_cross::MSLVertexAttr*, unsigned long, spirv_cross::MSLResourceBinding*, unsigned long)
CompilerMSL::CompilerMSL(const uint32_t *ir_, size_t word_count, MSLVertexAttr *p_vtx_attrs, size_t vtx_attrs_count,
                         MSLResourceBinding *p_res_bindings, size_t res_bindings_count)
    : CompilerGLSL(ir_, word_count)
{
	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, %rbp
movq %rcx, %r13
movq %rdi, %rbx
callq 0x7ee90
leaq 0x7a4e4(%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), %r14
leaq 0x8f8(%rbx), %r12
movb $0x0, 0x950(%rbx)
leaq 0x960(%rbx), %rdi
leaq 0x30d6a(%rip), %rsi     # 0x9e3a2
leaq 0xf(%rsp), %rdx
movq %rdi, 0x20(%rsp)
callq 0x6100
leaq 0x980(%rbx), %rdi
leaq 0x258c7(%rip), %rsi     # 0x92f1c
leaq 0xe(%rsp), %rdx
movq %rdi, 0x18(%rsp)
callq 0x6100
leaq 0x9a0(%rbx), %rdi
leaq 0x2da82(%rip), %rsi     # 0x9b0f4
leaq 0xd(%rsp), %rdx
movq %rdi, 0x28(%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 %r13, %r13
je 0x6d6ea
subq $0x1, %rbp
jb 0x6d6ea
movq %r14, %rdi
movq %r13, %rsi
callq 0x82c92
movq %r13, (%rax)
addq $0x14, %r13
jmp 0x6d6d0
testq %r15, %r15
je 0x6d715
movq 0x70(%rsp), %rbp
leaq 0x30(%rsp), %r13
subq $0x1, %rbp
jb 0x6d715
movq %r15, 0x30(%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x82fd6
addq $0x1c, %r15
jmp 0x6d6f9
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, 0x10(%rsp)
jmp 0x6d76f
movq %rax, 0x10(%rsp)
jmp 0x6d779
movq %rax, 0x10(%rsp)
jmp 0x6d783
movq %rax, 0x10(%rsp)
jmp 0x6d7f8
jmp 0x6d745
movq %rax, 0x10(%rsp)
leaq 0x9c8(%rbx), %r13
leaq 0xa00(%rbx), %rdi
callq 0x6cf8
movq %r13, %rdi
callq 0x82394
movq 0x28(%rsp), %rdi
callq 0x6548
movq 0x18(%rsp), %rdi
callq 0x6548
movq 0x20(%rsp), %rdi
callq 0x6548
leaq 0x7e0(%rbx), %rax
movq %rax, 0x20(%rsp)
leaq 0x848(%rbx), %rax
movq %rax, 0x18(%rsp)
leaq 0x880(%rbx), %r15
leaq 0x8b0(%rbx), %r13
leaq 0x8e0(%rbx), %rbp
leaq 0x940(%rbx), %rdi
callq 0x6548
movq %r12, %rdi
callq 0x82c5e
movq %rbp, %rdi
callq 0x6cf8
movq %r13, %rdi
callq 0x8243c
movq %r15, %rdi
callq 0x8243c
movq 0x18(%rsp), %rdi
callq 0x824a0
movq %r14, %rdi
callq 0x82548
movq 0x20(%rsp), %rdi
callq 0x825f0
leaq 0x788(%rbx), %rdi
callq 0x82648
movq %rbx, %rdi
callq 0xb9ac
movq 0x10(%rsp), %rdi
callq 0x64b0