// File: rossy[P]crossc/SPIRV-Cross/spirv_hlsl.cpp
// Function: spirv_cross::CompilerHLSL::replace_illegal_names()
void CompilerHLSL::replace_illegal_names()
{
	static const unordered_set<string> keywords = {
		// Additional HLSL specific keywords.
		"line", "linear", "matrix", "point", "row_major", "sampler",
	};

	for (auto &id : ir.ids)
	{
		if (id.get_type() == TypeVariable)
		{
			auto &var = id.get<SPIRVariable>();
			if (!is_hidden_variable(var))
			{
				auto &m = ir.meta[var.self].decoration;
				if (keywords.find(m.alias) != end(keywords))
					m.alias = join("_", m.alias);
			}
		}
	}

	CompilerGLSL::replace_illegal_names();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x220, %rsp            # imm = 0x220
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x168(%rbp)
cmpb $0x0, 0xf07ef(%rip)     # 0x1af790
jne 0xbf27a
leaq 0xf07e2(%rip), %rdi     # 0x1af790
callq 0x7670
cmpl $0x0, %eax
je 0xbf27a
movb $0x1, -0xfa(%rbp)
leaq -0xd8(%rbp), %rax
movq %rax, -0x178(%rbp)
movq %rax, -0xe0(%rbp)
leaq -0xe1(%rbp), %rdi
movq %rdi, -0x170(%rbp)
callq 0x7650
movq -0x178(%rbp), %rdi
movq -0x170(%rbp), %rdx
leaq 0x82f29(%rip), %rsi     # 0x141f29
callq 0x7520
jmp 0xbf007
leaq -0xb8(%rbp), %rax
movq %rax, -0x188(%rbp)
movq %rax, -0xe0(%rbp)
leaq -0xf5(%rbp), %rdi
movq %rdi, -0x180(%rbp)
callq 0x7650
movq -0x188(%rbp), %rdi
movq -0x180(%rbp), %rdx
leaq 0x8b807(%rip), %rsi     # 0x14a84b
callq 0x7520
jmp 0xbf04b
leaq -0x98(%rbp), %rax
movq %rax, -0x198(%rbp)
movq %rax, -0xe0(%rbp)
leaq -0xf6(%rbp), %rdi
movq %rdi, -0x190(%rbp)
callq 0x7650
movq -0x198(%rbp), %rdi
movq -0x190(%rbp), %rdx
leaq 0x8707b(%rip), %rsi     # 0x146103
callq 0x7520
jmp 0xbf08f
leaq -0x78(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq %rax, -0xe0(%rbp)
leaq -0xf7(%rbp), %rdi
movq %rdi, -0x1a0(%rbp)
callq 0x7650
movq -0x1a8(%rbp), %rdi
movq -0x1a0(%rbp), %rdx
leaq 0x87041(%rip), %rsi     # 0x14610a
callq 0x7520
jmp 0xbf0d0
leaq -0x58(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq %rax, -0xe0(%rbp)
leaq -0xf8(%rbp), %rdi
movq %rdi, -0x1b0(%rbp)
callq 0x7650
movq -0x1b8(%rbp), %rdi
movq -0x1b0(%rbp), %rdx
leaq 0x81ea0(%rip), %rsi     # 0x140faa
callq 0x7520
jmp 0xbf111
leaq -0x38(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq %rax, -0xe0(%rbp)
leaq -0xf9(%rbp), %rdi
movq %rdi, -0x1c0(%rbp)
callq 0x7650
movq -0x1c8(%rbp), %rdi
movq -0x1c0(%rbp), %rdx
leaq 0x88edc(%rip), %rsi     # 0x148027
callq 0x7520
jmp 0xbf152
movb $0x0, -0xfa(%rbp)
leaq -0xd8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq $0x6, -0x10(%rbp)
leaq -0xfd(%rbp), %rdi
movq %rdi, -0x1d0(%rbp)
callq 0x3d1e0
movq -0x1d0(%rbp), %rcx
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq %rsp, %rax
movq %rcx, (%rax)
leaq 0xf05bd(%rip), %rdi     # 0x1af758
xorl %eax, %eax
movl %eax, %ecx
leaq -0xfb(%rbp), %r8
leaq -0xfc(%rbp), %r9
callq 0xa05d0
jmp 0xbf1b4
leaq -0xfd(%rbp), %rdi
callq 0x15040
leaq -0xd8(%rbp), %rax
movq %rax, -0x1e0(%rbp)
addq $0xc0, %rax
movq %rax, -0x1d8(%rbp)
movq -0x1d8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x1e8(%rbp)
callq 0x7708
movq -0x1e0(%rbp), %rcx
movq -0x1e8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x1d8(%rbp)
jne 0xbf1db
leaq -0xf9(%rbp), %rdi
callq 0x73d0
leaq -0xf8(%rbp), %rdi
callq 0x73d0
leaq -0xf7(%rbp), %rdi
callq 0x73d0
leaq -0xf6(%rbp), %rdi
callq 0x73d0
leaq -0xf5(%rbp), %rdi
callq 0x73d0
leaq -0xe1(%rbp), %rdi
callq 0x73d0
leaq -0xaa12b(%rip), %rdi    # 0x15130
leaq 0xf04f6(%rip), %rsi     # 0x1af758
leaq 0xf0117(%rip), %rdx     # 0x1af380
callq 0x7300
leaq 0xf051b(%rip), %rdi     # 0x1af790
callq 0x7250
movq -0x168(%rbp), %rax
addq $0x8, %rax
addq $0x18, %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rdi
callq 0xf940
movq %rax, -0x110(%rbp)
movq -0x108(%rbp), %rdi
callq 0xf970
movq %rax, -0x118(%rbp)
leaq -0x110(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0xf9a0
testb $0x1, %al
jne 0xbf2d2
jmp 0xbf590
leaq -0x110(%rbp), %rdi
callq 0xf9e0
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rdi
callq 0xfa00
cmpl $0x2, %eax
jne 0xbf57d
movq -0x120(%rbp), %rdi
callq 0xfd10
movq -0x168(%rbp), %rdi
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rsi
xorl %edx, %edx
callq 0x20460
testb $0x1, %al
jne 0xbf57b
movq -0x168(%rbp), %rdi
addq $0x8, %rdi
addq $0x30, %rdi
movq -0x128(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, %esi
callq 0xead0
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rsi
leaq 0xf03f9(%rip), %rdi     # 0x1af758
callq 0xa0630
movq %rax, -0x138(%rbp)
leaq 0xf03e6(%rip), %rdi     # 0x1af758
callq 0xa0660
movq %rax, -0x140(%rbp)
leaq -0x138(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x2f970
testb $0x1, %al
jne 0xbf39a
jmp 0xbf579
movq -0x130(%rbp), %rdx
leaq -0x160(%rbp), %rdi
leaq 0x8916f(%rip), %rsi     # 0x14851e
callq 0xa0690
movq -0x130(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x7430
leaq -0x160(%rbp), %rdi
callq 0x7708
jmp 0xbf579
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
jmp 0xbf507
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
jmp 0xbf4fb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
jmp 0xbf4ef
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
jmp 0xbf4e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
jmp 0xbf4d7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
jmp 0xbf4cb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
leaq -0xfd(%rbp), %rdi
callq 0x15040
leaq -0xd8(%rbp), %rax
movq %rax, -0x1f8(%rbp)
addq $0xc0, %rax
movq %rax, -0x1f0(%rbp)
movq -0x1f0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x200(%rbp)
callq 0x7708
movq -0x1f8(%rbp), %rcx
movq -0x200(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x1f0(%rbp)
jne 0xbf498
jmp 0xbf4cb
leaq -0xf9(%rbp), %rdi
callq 0x73d0
leaq -0xf8(%rbp), %rdi
callq 0x73d0
leaq -0xf7(%rbp), %rdi
callq 0x73d0
leaq -0xf6(%rbp), %rdi
callq 0x73d0
leaq -0xf5(%rbp), %rdi
callq 0x73d0
leaq -0xe1(%rbp), %rdi
callq 0x73d0
testb $0x1, -0xfa(%rbp)
jne 0xbf51e
jmp 0xbf56b
movq -0xe0(%rbp), %rax
leaq -0xd8(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x208(%rbp)
je 0xbf569
movq -0x208(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x210(%rbp)
callq 0x7708
movq -0x210(%rbp), %rax
leaq -0xd8(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x208(%rbp)
jne 0xbf538
jmp 0xbf56b
leaq 0xf021e(%rip), %rdi     # 0x1af790
callq 0x7240
jmp 0xbf5a5
jmp 0xbf57b
jmp 0xbf57d
jmp 0xbf57f
leaq -0x110(%rbp), %rdi
callq 0xfbd0
jmp 0xbf2b6
movq -0x168(%rbp), %rdi
callq 0x652b0
addq $0x220, %rsp            # imm = 0x220
popq %rbp
retq
movq -0xf0(%rbp), %rdi
callq 0x7640
nopw %cs:(%rax,%rax)