// File: /workspace/github_cpp_makefile_star2_O3/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 0x97e2a(%rip), %al      # 0xfd620
testb %al, %al
je 0x658bc
movq 0x20(%rbx), %r14
movq 0x28(%rbx), %r12
cmpq %r12, %r14
je 0x658a2
leaq 0x97dd2(%rip), %r15     # 0xfd5e8
leaq 0x18(%rsp), %r13
cmpl $0x2, 0x8(%r14)
jne 0x65895
movq %r14, %rdi
callq 0xb2a4
movq %rax, %rbp
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x13202
testb %al, %al
jne 0x65895
movl 0x8(%rbp), %eax
imulq $0x148, %rax, %rbp      # imm = 0x148
addq 0x38(%rbx), %rbp
movq %r15, %rdi
movq %rbp, %rsi
callq 0x5beae
testq %rax, %rax
je 0x65895
movq %r13, %rdi
leaq 0x58751(%rip), %rsi     # 0xbdfb7
movq %rbp, %rdx
callq 0x52623
movq %rbp, %rdi
movq %r13, %rsi
callq 0x6310
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x65895
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x6260
addq $0x10, %r14
cmpq %r12, %r14
jne 0x6581b
movq %rbx, %rdi
callq 0x2e338
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x97d5d(%rip), %rdi     # 0xfd620
callq 0x64c0
testl %eax, %eax
je 0x657fe
leaq 0x28(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x52165(%rip), %rsi     # 0xb7a45
leaq 0x52162(%rip), %rdx     # 0xb7a49
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x7be0
leaq 0x38(%rsp), %r15
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x5a886(%rip), %rsi     # 0xc018f
leaq 0x5a885(%rip), %rdx     # 0xc0195
movq %r15, %rdi
callq 0x7be0
leaq 0x58(%rsp), %r15
leaq 0x68(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x5626f(%rip), %rsi     # 0xbbb9c
leaq 0x5626e(%rip), %rdx     # 0xbbba2
movq %r15, %rdi
callq 0x7be0
leaq 0x78(%rsp), %r15
leaq 0x88(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x5624f(%rip), %rsi     # 0xbbba3
leaq 0x5624d(%rip), %rdx     # 0xbbba8
movq %r15, %rdi
callq 0x7be0
leaq 0x98(%rsp), %r15
leaq 0xa8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x51148(%rip), %rsi     # 0xb6ac6
leaq 0x5114a(%rip), %rdx     # 0xb6acf
movq %r15, %rdi
callq 0x7be0
leaq 0xb8(%rsp), %r15
leaq 0xc8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x58117(%rip), %rsi     # 0xbdac0
leaq 0x58117(%rip), %rdx     # 0xbdac7
movq %r15, %rdi
callq 0x7be0
leaq 0xd8(%rsp), %r14
leaq 0x15(%rsp), %rax
movq %rax, (%rsp)
leaq 0x97c18(%rip), %rdi     # 0xfd5e8
leaq 0x18(%rsp), %rsi
leaq 0x17(%rsp), %r8
leaq 0x16(%rsp), %r9
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x5bdae
movq $-0xc0, %r14
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x65a06
movq (%r12), %rsi
incq %rsi
callq 0x6260
addq $-0x20, %r12
addq $0x20, %r14
jne 0x659f0
leaq -0x133f9(%rip), %rdi    # 0x5261e
leaq 0x97bca(%rip), %rsi     # 0xfd5e8
leaq 0x9786b(%rip), %rdx     # 0xfd290
callq 0x6240
leaq 0x97bef(%rip), %rdi     # 0xfd620
callq 0x61a0
jmp 0x657fe
movq %rax, %rbx
leaq 0x18(%rsp), %rsi
movq %r14, %rdi
callq 0x6dd1
jmp 0x65a80
jmp 0x65a55
jmp 0x65a55
jmp 0x65a55
jmp 0x65a55
movq %rax, %rbx
addq $-0x10, %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x65a70
movq (%r15), %rsi
incq %rsi
callq 0x6260
leaq -0x20(%r15), %rax
addq $-0x10, %r15
cmpq %r14, %r15
movq %rax, %r15
jne 0x65a5c
leaq 0x97b99(%rip), %rdi     # 0xfd620
callq 0x6190
movq %rbx, %rdi
callq 0x64a0
movq %rax, %rbx
jmp 0x65a80
nop