// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_cross.cpp
// Function: spirv_cross::Compiler::build_dummy_sampler_for_combined_images()
uint32_t Compiler::build_dummy_sampler_for_combined_images()
{
	DummySamplerForCombinedImageHandler handler(*this);
	traverse_all_reachable_opcodes(get<SPIRFunction>(ir.default_entry_point), handler);
	if (handler.need_dummy_sampler)
	{
		uint32_t offset = ir.increase_bound_by(3);
		auto type_id = offset + 0;
		auto ptr_type_id = offset + 1;
		auto var_id = offset + 2;

		SPIRType sampler_type;
		auto &sampler = set<SPIRType>(type_id);
		sampler.basetype = SPIRType::Sampler;

		auto &ptr_sampler = set<SPIRType>(ptr_type_id);
		ptr_sampler = sampler;
		ptr_sampler.self = type_id;
		ptr_sampler.storage = StorageClassUniformConstant;
		ptr_sampler.pointer = true;

		set<SPIRVariable>(var_id, ptr_type_id, StorageClassUniformConstant, 0);
		set_name(var_id, "SPIRV_Cross_DummySampler");
		dummy_sampler_id = var_id;
		return var_id;
	}
	else
		return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdi, %r14
leaq 0xe43fd(%rip), %rax     # 0xfc1f8
addq $0x10, %rax
leaq 0x110(%rsp), %r15
movq %rax, (%r15)
movq %rdi, 0x8(%r15)
movb $0x0, 0x10(%r15)
movl 0x108(%rdi), %esi
callq 0xb98a
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x13dbc
xorl %ebx, %ebx
cmpb $0x1, 0x10(%r15)
jne 0x18091
leaq 0x8(%r14), %rdi
movq %rdi, 0x8(%rsp)
movl $0x3, %esi
callq 0x24f8a
movl %eax, %ebx
leal 0x1(%rbx), %ebp
movl %ebp, 0x4(%rsp)
leaq 0xe4584(%rip), %r15     # 0xfc3e0
addq $0x10, %r15
leaq 0x108(%rsp), %rax
movq %r15, -0xd0(%rax)
movaps 0x9ca4a(%rip), %xmm0    # 0xb48c0
movups %xmm0, -0xc8(%rax)
movl $0x1, -0xb8(%rax)
xorl %ecx, %ecx
movq %rcx, -0x88(%rax)
movl %ecx, -0x80(%rax)
movq %rcx, -0x78(%rax)
movb $0x0, -0x70(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0xb0(%rax)
movups %xmm0, -0xa0(%rax)
movl %ecx, -0x90(%rax)
movl $0x8, -0x6c(%rax)
movups %xmm0, -0x68(%rax)
movq %rcx, -0x58(%rax)
movq %rcx, -0x38(%rax)
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
movq %r14, %rdi
movl %ebx, %esi
callq 0x1bafc
movq %rax, %r13
movl $0xf, 0xc(%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x1bafc
movq %rax, %r12
leaq 0xc(%r13), %rax
movl 0x8(%r13), %ecx
movl %ecx, 0x8(%r12)
movups (%rax), %xmm0
movups %xmm0, 0xc(%r12)
leaq 0x20(%r12), %rdi
leaq 0x20(%r13), %rsi
callq 0x1bc64
leaq 0x38(%r12), %rdi
leaq 0x38(%r13), %rsi
callq 0x1bd48
movq 0x60(%r13), %rax
movq %rax, 0x60(%r12)
leaq 0x68(%r12), %rdi
leaq 0x68(%r13), %rsi
callq 0x1bc64
movups 0x80(%r13), %xmm0
movups 0x90(%r13), %xmm1
movups %xmm1, 0x90(%r12)
movups %xmm0, 0x80(%r12)
cmpq %r12, %r13
je 0x17f87
movl $0xa0, %eax
movq %r12, %rdi
addq %rax, %rdi
addq %rax, %r13
movq %r13, %rsi
callq 0xd596
movl %ebx, %eax
addl $0x2, %ebx
movl %eax, 0x8(%r12)
xorl %eax, %eax
movl %eax, 0x64(%r12)
movb $0x1, 0x60(%r12)
leaq 0x10(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x34(%rsp), %r8
movl %eax, (%r8)
leaq 0x4(%rsp), %rdx
movq %r14, %rdi
movl %ebx, %esi
callq 0x1bb38
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x9d084(%rip), %rsi     # 0xb5050
leaq 0x9d095(%rip), %rdx     # 0xb5068
leaq 0x10(%rsp), %rdi
callq 0x7be0
leaq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rdi
movl %ebx, %esi
callq 0x23fbc
leaq 0xd8(%rsp), %r12
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x1800d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6260
movl %ebx, 0x39c(%r14)
movq %r15, 0x38(%rsp)
movq %r12, %rdi
callq 0xde80
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x1803e
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x6260
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x1807a
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x6260
xorl %eax, %eax
movq %rax, 0x70(%rsp)
movl %eax, 0x78(%rsp)
movq %rax, 0x80(%rsp)
movl %eax, 0x88(%rsp)
movq %rax, 0x90(%rsp)
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x18091
movq 0x68(%rsp), %rsi
subq %rdi, %rsi
callq 0x6260
movl %ebx, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x180ca
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x180ca
jmp 0x180c7
jmp 0x180c7
jmp 0x180c7
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x1be02
movq %rbx, %rdi
callq 0x64a0