// File: /workspace/github_cpp_makefile_star2_O1/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 0xe4f1d(%rip), %rax     # 0xfd1c8
addq $0x10, %rax
leaq 0x110(%rsp), %r15
movq %rax, (%r15)
movq %rdi, 0x8(%r15)
movb $0x0, 0x10(%r15)
movl 0x108(%rdi), %esi
callq 0xb9ca
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x13ece
xorl %ebx, %ebx
cmpb $0x1, 0x10(%r15)
jne 0x18539
leaq 0x8(%r14), %r15
movq %r15, %rdi
movl $0x3, %esi
callq 0x2561c
movl %eax, %ebx
leal 0x1(%rbx), %eax
movl %eax, 0xc(%rsp)
xorl %eax, %eax
leaq 0x108(%rsp), %rcx
movl %eax, -0xc8(%rcx)
leaq 0xe5096(%rip), %rbp     # 0xfd3b0
addq $0x10, %rbp
movq %rbp, -0xd0(%rcx)
movaps 0x9d8d4(%rip), %xmm0    # 0xb5c00
movups %xmm0, -0xc4(%rcx)
movq %rax, -0x88(%rcx)
movl %eax, -0x80(%rcx)
movq %rax, -0x78(%rcx)
movb $0x0, -0x70(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, -0xb0(%rcx)
movups %xmm0, -0xa0(%rcx)
movl %eax, -0x90(%rcx)
movl $0x8, -0x6c(%rcx)
movups %xmm0, -0x68(%rcx)
movq %rax, -0x58(%rcx)
movq %rax, -0x38(%rcx)
movq %rcx, -0x30(%rcx)
movq $0x1, -0x28(%rcx)
movups %xmm0, -0x20(%rcx)
movl $0x3f800000, -0x10(%rcx) # imm = 0x3F800000
movups %xmm0, -0x8(%rcx)
movq %r14, %rdi
movl %ebx, %esi
callq 0x1c15a
movq %rax, %r12
movl $0xf, 0xc(%rax)
movl 0xc(%rsp), %esi
movq %r14, %rdi
callq 0x1c15a
movq %rax, %r13
leaq 0xc(%r12), %rax
movl 0x8(%r12), %ecx
movl %ecx, 0x8(%r13)
movups (%rax), %xmm0
movups %xmm0, 0xc(%r13)
leaq 0x20(%r13), %rdi
leaq 0x20(%r12), %rsi
callq 0x1c2c2
leaq 0x38(%r13), %rdi
leaq 0x38(%r12), %rsi
callq 0x1c398
movq 0x60(%r12), %rax
movq %rax, 0x60(%r13)
leaq 0x68(%r13), %rdi
leaq 0x68(%r12), %rsi
callq 0x1c2c2
movups 0x80(%r12), %xmm0
movups 0x90(%r12), %xmm1
movups %xmm1, 0x90(%r13)
movups %xmm0, 0x80(%r13)
cmpq %r13, %r12
je 0x18433
movl $0xa0, %eax
movq %r13, %rdi
addq %rax, %rdi
addq %rax, %r12
movq %r12, %rsi
callq 0xd5d6
movl %ebx, %eax
addl $0x2, %ebx
movl %eax, 0x8(%r13)
xorl %eax, %eax
movl %eax, 0x64(%r13)
movb $0x1, 0x60(%r13)
leaq 0x10(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x34(%rsp), %r8
movl %eax, (%r8)
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
movl %ebx, %esi
callq 0x1c196
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x9dbdd(%rip), %rsi     # 0xb6053
leaq 0x9dbee(%rip), %rdx     # 0xb606b
leaq 0x10(%rsp), %rdi
callq 0x7c64
leaq 0x10(%rsp), %rdx
movq %r15, %rdi
movl %ebx, %esi
callq 0x2464c
leaq 0xd8(%rsp), %r15
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x184b5
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6260
movl %ebx, 0x39c(%r14)
movq %rbp, 0x38(%rsp)
movq %r15, %rdi
callq 0xdeb6
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x184e6
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x6260
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x18522
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 0x18539
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 %r12, %rdi
je 0x18572
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x18572
jmp 0x1856f
jmp 0x1856f
jmp 0x1856f
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x1c438
movq %rbx, %rdi
callq 0x64a0