// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
movb 0x9854e(%rip), %al      # 0xfe620
testb %al, %al
je 0x66198
movq 0x20(%rbx), %r14
movq 0x28(%rbx), %r12
cmpq %r12, %r14
je 0x6617e
leaq 0x984f6(%rip), %r15     # 0xfe5e8
leaq 0x18(%rsp), %r13
cmpl $0x2, 0x8(%r14)
jne 0x66171
movq %r14, %rdi
callq 0xb2e2
movq %rax, %rbp
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x1324c
testb %al, %al
jne 0x66171
movl 0x8(%rbp), %eax
imulq $0x148, %rax, %rbp      # imm = 0x148
addq 0x38(%rbx), %rbp
movq %r15, %rdi
movq %rbp, %rsi
callq 0x5c6da
testq %rax, %rax
je 0x66171
movq %r13, %rdi
leaq 0x58e6d(%rip), %rsi     # 0xbefaf
movq %rbp, %rdx
callq 0x52e1b
movq %rbp, %rdi
movq %r13, %rsi
callq 0x6310
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x66171
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x6260
addq $0x10, %r14
cmpq %r12, %r14
jne 0x660f7
movq %rbx, %rdi
callq 0x2e9c8
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x98481(%rip), %rdi     # 0xfe620
callq 0x64c0
testl %eax, %eax
je 0x660da
leaq 0x28(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x52899(%rip), %rsi     # 0xb8a55
leaq 0x52896(%rip), %rdx     # 0xb8a59
leaq 0x18(%rsp), %r15
movq %r15, %rdi
callq 0x7c64
leaq 0x38(%rsp), %r14
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x5afda(%rip), %rsi     # 0xc11bf
leaq 0x5afd9(%rip), %rdx     # 0xc11c5
movq %r14, %rdi
callq 0x7c64
leaq 0x58(%rsp), %r14
leaq 0x68(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x5698b(%rip), %rsi     # 0xbcb94
leaq 0x5698a(%rip), %rdx     # 0xbcb9a
movq %r14, %rdi
callq 0x7c64
leaq 0x78(%rsp), %r14
leaq 0x88(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x5696b(%rip), %rsi     # 0xbcb9b
leaq 0x56969(%rip), %rdx     # 0xbcba0
movq %r14, %rdi
callq 0x7c64
leaq 0x98(%rsp), %r14
leaq 0xa8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x5187c(%rip), %rsi     # 0xb7ad6
leaq 0x5187e(%rip), %rdx     # 0xb7adf
movq %r14, %rdi
callq 0x7c64
leaq 0xb8(%rsp), %r14
leaq 0xc8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x58834(%rip), %rsi     # 0xbeab8
leaq 0x58834(%rip), %rdx     # 0xbeabf
movq %r14, %rdi
callq 0x7c64
leaq 0xd8(%rsp), %r12
leaq 0x15(%rsp), %rax
movq %rax, (%rsp)
leaq 0x9833d(%rip), %rdi     # 0xfe5e8
leaq 0x18(%rsp), %rsi
leaq 0x17(%rsp), %r8
leaq 0x16(%rsp), %r9
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x5c5da
movq $-0xc0, %r14
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0x662e0
movq (%r13), %rsi
incq %rsi
callq 0x6260
addq $-0x20, %r13
addq $0x20, %r14
jne 0x662cb
leaq -0x134db(%rip), %rdi    # 0x52e16
leaq 0x982f0(%rip), %rsi     # 0xfe5e8
leaq 0x97f91(%rip), %rdx     # 0xfe290
callq 0x6240
leaq 0x98315(%rip), %rdi     # 0xfe620
callq 0x61a0
jmp 0x660da
movq %rax, %rbx
leaq 0x18(%rsp), %rsi
movq %r12, %rdi
callq 0x6e0b
movb $0x1, %al
jmp 0x66336
jmp 0x66331
jmp 0x66331
jmp 0x66331
jmp 0x66331
movq %rax, %rbx
xorl %eax, %eax
cmpq %r14, %r15
sete %cl
orb %al, %cl
jne 0x6636d
addq $-0x10, %r14
leaq 0x18(%rsp), %r15
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x6635d
movq (%r14), %rsi
incq %rsi
callq 0x6260
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %r15, %r14
movq %rax, %r14
jne 0x66349
leaq 0x982ac(%rip), %rdi     # 0xfe620
callq 0x6190
movq %rbx, %rdi
callq 0x64a0
movq %rax, %rbx
xorl %eax, %eax
movq %r15, %r14
jmp 0x66336
nop