// File: /workspace/github_cpp_makefile_star2_O2/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 0x95ef4(%rip), %al      # 0xe8630
testb %al, %al
je 0x527e3
movq 0x20(%rbx), %r14
movq 0x28(%rbx), %r12
leaq 0x95ea5(%rip), %r15     # 0xe85f8
leaq 0x18(%rsp), %r13
cmpq %r12, %r14
je 0x527c9
cmpl $0x2, 0x8(%r14)
jne 0x527c3
movq %r14, %rdi
callq 0x9b30
movq %rax, %rbp
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x10b56
testb %al, %al
jne 0x527c3
movl 0x8(%rbp), %eax
imulq $0x148, %rax, %rbp      # imm = 0x148
addq 0x38(%rbx), %rbp
movq %r15, %rdi
movq %rbp, %rsi
callq 0x49a84
testq %rax, %rax
je 0x527c3
movq %r13, %rdi
leaq 0x4679f(%rip), %rsi     # 0x98f47
movq %rbp, %rdx
callq 0x425e7
movq %rbp, %rdi
movq %r13, %rsi
callq 0x6320
movq %r13, %rdi
callq 0x6548
addq $0x10, %r14
jmp 0x52758
movq %rbx, %rdi
callq 0x274fa
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x95e46(%rip), %rdi     # 0xe8630
callq 0x64c0
testl %eax, %eax
je 0x52744
leaq 0x40227(%rip), %rsi     # 0x92a25
leaq 0x18(%rsp), %r14
leaq 0x17(%rsp), %rdx
movq %r14, %rdi
callq 0x6100
leaq 0x38(%rsp), %r15
leaq 0x4892b(%rip), %rsi     # 0x9b147
leaq 0x16(%rsp), %rdx
movq %r15, %rdi
callq 0x6100
leaq 0x58(%rsp), %r15
leaq 0x442f7(%rip), %rsi     # 0x96b2c
leaq 0x15(%rsp), %rdx
movq %r15, %rdi
callq 0x6100
leaq 0x78(%rsp), %r15
leaq 0x442e5(%rip), %rsi     # 0x96b33
leaq 0x14(%rsp), %rdx
movq %r15, %rdi
callq 0x6100
leaq 0x98(%rsp), %r15
leaq 0x3f23c(%rip), %rsi     # 0x91aa6
leaq 0x13(%rsp), %rdx
movq %r15, %rdi
callq 0x6100
leaq 0xb8(%rsp), %r15
leaq 0x461ca(%rip), %rsi     # 0x98a50
leaq 0x12(%rsp), %rdx
movq %r15, %rdi
callq 0x6100
leaq 0xd8(%rsp), %rdx
leaq 0xf(%rsp), %rax
movq %rax, (%rsp)
leaq 0x95d4d(%rip), %rdi     # 0xe85f8
leaq 0x18(%rsp), %rsi
leaq 0x11(%rsp), %r8
leaq 0x10(%rsp), %r9
xorl %ecx, %ecx
callq 0x499c8
movl $0xa0, %r14d
leaq (%rsp,%r14), %rdi
addq $0x18, %rdi
callq 0x6548
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x528c7
leaq -0x10303(%rip), %rdi    # 0x425e2
leaq 0x95d0c(%rip), %rsi     # 0xe85f8
leaq 0x959ad(%rip), %rdx     # 0xe82a0
callq 0x6240
leaq 0x95d31(%rip), %rdi     # 0xe8630
callq 0x61b0
jmp 0x52744
movq %rax, %rbx
movl $0xa0, %r12d
leaq (%rsp,%r12), %rdi
addq $0x18, %rdi
callq 0x6548
addq $-0x20, %r12
cmpq $-0x20, %r12
jne 0x52912
movb $0x1, %al
jmp 0x5293a
jmp 0x52935
jmp 0x52935
jmp 0x52935
jmp 0x52935
movq %rax, %rbx
xorl %eax, %eax
cmpq %r15, %r14
sete %cl
testb %al, %al
jne 0x5295e
testb %cl, %cl
jne 0x5295e
addq $-0x20, %r15
movq %r15, %rdi
callq 0x6548
cmpq %r14, %r15
jne 0x52948
jmp 0x5295e
movq %rax, %rbx
leaq 0x95ccb(%rip), %rdi     # 0xe8630
callq 0x61a0
movq %rbx, %rdi
callq 0x64b0