// File: rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::CompilerMSL(std::vector<unsigned int, std::allocator<unsigned int>>, std::vector<spirv_cross::MSLVertexAttr, std::allocator<spirv_cross::MSLVertexAttr>>*, std::vector<spirv_cross::MSLResourceBinding, std::allocator<spirv_cross::MSLResourceBinding>>*)
CompilerMSL::CompilerMSL(vector<uint32_t> spirv_, vector<MSLVertexAttr> *p_vtx_attrs,
                         vector<MSLResourceBinding> *p_res_bindings)
    : CompilerGLSL(move(spirv_))
{
	if (p_vtx_attrs)
		for (auto &va : *p_vtx_attrs)
			vtx_attrs_by_location[va.location] = &va;

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq -0x38(%rbp), %rdi
movq %rdi, -0x98(%rbp)
callq 0xaac0
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
callq 0x1125f0
jmp 0xefa9b
leaq -0x38(%rbp), %rdi
callq 0x8430
movq -0xa0(%rbp), %rdi
leaq 0xbeed6(%rip), %rax     # 0x1ae988
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x788, %rdi            # imm = 0x788
movq %rdi, -0xa8(%rbp)
callq 0x112910
movq -0xa0(%rbp), %rdi
movl $0x0, 0x7c0(%rdi)
movl $0x0, 0x7c4(%rdi)
movl $0x0, 0x7c8(%rdi)
addq $0x7cc, %rdi            # imm = 0x7CC
callq 0x112930
jmp 0xefaff
movq -0xa0(%rbp), %rdi
addq $0x7e0, %rdi            # imm = 0x7E0
movq %rdi, -0xf8(%rbp)
callq 0x112990
movq -0xa0(%rbp), %rdi
addq $0x810, %rdi            # imm = 0x810
movq %rdi, -0xf0(%rbp)
callq 0x1129b0
movq -0xa0(%rbp), %rdi
addq $0x848, %rdi            # imm = 0x848
movq %rdi, -0xe8(%rbp)
callq 0x1129d0
movq -0xa0(%rbp), %rdi
addq $0x880, %rdi            # imm = 0x880
movq %rdi, -0xe0(%rbp)
callq 0x1129f0
movq -0xa0(%rbp), %rdi
addq $0x8b0, %rdi            # imm = 0x8B0
movq %rdi, -0xd8(%rbp)
callq 0x1129f0
movq -0xa0(%rbp), %rdi
addq $0x8e0, %rdi            # imm = 0x8E0
movq %rdi, -0xd0(%rbp)
callq 0x8210
movq -0xa0(%rbp), %rdi
addq $0x8f8, %rdi            # imm = 0x8F8
movq %rdi, -0xc8(%rbp)
callq 0x112a10
movq -0xa0(%rbp), %rdi
addq $0x910, %rdi            # imm = 0x910
callq 0x112a30
movq -0xa0(%rbp), %rdi
movl $0x0, 0x92c(%rdi)
movl $0x0, 0x930(%rdi)
movb $0x0, 0x934(%rdi)
movb $0x0, 0x935(%rdi)
movb $0x0, 0x936(%rdi)
movb $0x0, 0x937(%rdi)
movb $0x0, 0x938(%rdi)
addq $0x940, %rdi            # imm = 0x940
movq %rdi, -0xc0(%rbp)
callq 0x7530
movq -0xa0(%rbp), %rax
addq $0x960, %rax            # imm = 0x960
movq %rax, -0xb8(%rbp)
leaq -0x45(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0x7650
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rdx
leaq 0x5de54(%rip), %rsi     # 0x14daa6
callq 0x7520
jmp 0xefc59
leaq -0x45(%rbp), %rdi
callq 0x73d0
movq -0xa0(%rbp), %rax
addq $0x980, %rax            # imm = 0x980
movq %rax, -0x108(%rbp)
leaq -0x46(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0x7650
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rdx
leaq 0x52785(%rip), %rsi     # 0x142420
callq 0x7520
jmp 0xefca2
leaq -0x46(%rbp), %rdi
callq 0x73d0
movq -0xa0(%rbp), %rax
addq $0x9a0, %rax            # imm = 0x9A0
movq %rax, -0x118(%rbp)
leaq -0x47(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0x7650
movq -0x118(%rbp), %rdi
movq -0x110(%rbp), %rdx
leaq 0x5ab14(%rip), %rsi     # 0x14a7f8
callq 0x7520
jmp 0xefceb
leaq -0x47(%rbp), %rdi
callq 0x73d0
movq -0xa0(%rbp), %rdi
movl $0x0, 0x9c0(%rdi)
addq $0x9c8, %rdi            # imm = 0x9C8
movq %rdi, -0x128(%rbp)
callq 0x112a70
movq -0xa0(%rbp), %rdi
addq $0xa00, %rdi            # imm = 0xA00
movq %rdi, -0x120(%rbp)
callq 0x8210
cmpq $0x0, -0x18(%rbp)
je 0xefe75
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0x112a90
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rdi
callq 0x112ac0
movq %rax, -0x60(%rbp)
leaq -0x58(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x112af0
testb $0x1, %al
jne 0xefd75
jmp 0xefe73
leaq -0x58(%rbp), %rdi
callq 0x112b30
movq -0xa0(%rbp), %rdi
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rsi
movq %rsi, -0x138(%rbp)
addq $0x810, %rdi            # imm = 0x810
callq 0x112b50
movq %rax, -0x130(%rbp)
jmp 0xefda9
movq -0x130(%rbp), %rax
movq -0x138(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x58(%rbp), %rdi
callq 0x112b80
jmp 0xefd5f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x8430
jmp 0xeff93
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xeff7b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x45(%rbp), %rdi
callq 0x73d0
jmp 0xeff1b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x46(%rbp), %rdi
callq 0x73d0
jmp 0xeff0f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x47(%rbp), %rdi
callq 0x73d0
jmp 0xeff03
movq -0x120(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x8430
movq -0x128(%rbp), %rdi
callq 0x112cb0
movq -0x118(%rbp), %rdi
callq 0x7708
jmp 0xeff03
jmp 0xefe75
cmpq $0x0, -0x20(%rbp)
je 0xefefa
movq -0x20(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rdi
callq 0x112ba0
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rdi
callq 0x112bd0
movq %rax, -0x80(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x112c00
testb $0x1, %al
jne 0xefeb1
jmp 0xefef8
leaq -0x78(%rbp), %rdi
callq 0x112c40
movq -0xa0(%rbp), %rdi
movq %rax, -0x88(%rbp)
addq $0x8f8, %rdi            # imm = 0x8F8
movq -0x88(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x90(%rbp), %rsi
callq 0x112c60
jmp 0xefeeb
jmp 0xefeed
leaq -0x78(%rbp), %rdi
callq 0x112c90
jmp 0xefe9e
jmp 0xefefa
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
movq -0x108(%rbp), %rdi
callq 0x7708
movq -0xb8(%rbp), %rdi
callq 0x7708
movq -0xc0(%rbp), %rdi
callq 0x7708
movq -0xc8(%rbp), %rdi
callq 0x112cd0
movq -0xd0(%rbp), %rdi
callq 0x8430
movq -0xd8(%rbp), %rdi
callq 0x112d30
movq -0xe0(%rbp), %rdi
callq 0x112d30
movq -0xe8(%rbp), %rdi
callq 0x112d50
movq -0xf0(%rbp), %rdi
callq 0x112d70
movq -0xf8(%rbp), %rdi
callq 0x112d90
movq -0xa8(%rbp), %rdi
callq 0x112db0
movq -0xa0(%rbp), %rdi
callq 0x14d30
movq -0x40(%rbp), %rdi
callq 0x7640
nopl (%rax)