// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_glsl.cpp
// Function: spirv_cross::CompilerGLSL::emit_unrolled_binary_op(unsigned int, unsigned int, unsigned int, unsigned int, char const*)
void CompilerGLSL::emit_unrolled_binary_op(uint32_t result_type, uint32_t result_id, uint32_t op0, uint32_t op1,
                                           const char *op)
{
	auto &type = get<SPIRType>(result_type);
	auto expr = type_to_glsl_constructor(type);
	expr += '(';
	for (uint32_t i = 0; i < type.vecsize; i++)
	{
		// Make sure to call to_expression multiple times to ensure
		// that these expressions are properly flushed to temporaries if needed.
		expr += to_extract_component_expression(op0, i);
		expr += ' ';
		expr += op;
		expr += ' ';
		expr += to_extract_component_expression(op1, i);

		if (i + 1 < type.vecsize)
			expr += ", ";
	}
	expr += ')';
	emit_op(result_type, result_id, expr, should_forward(op0) && should_forward(op1));

	inherit_expression_dependencies(result_id, op0);
	inherit_expression_dependencies(result_id, op1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, 0x30(%rsp)
movl %r8d, 0x4(%rsp)
movl %ecx, 0x8(%rsp)
movl %edx, (%rsp)
movq %rdi, %r14
movl %esi, 0xc(%rsp)
callq 0xa3ea
movq %rax, %r12
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x34a5c
movq %rbx, %rdi
movl $0x28, %esi
callq 0x6230
cmpl $0x0, 0x14(%r12)
je 0x39ad5
leaq 0x20(%rsp), %r13
xorl %ebp, %ebp
leaq 0x10(%rsp), %rbx
leaq 0x38(%rsp), %r15
movq %rbx, %rdi
movq %r14, %rsi
movl 0x8(%rsp), %edx
movl %ebp, %ecx
callq 0x347f2
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rdi
callq 0x60b0
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x39a4d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6260
movq %r15, %rdi
movl $0x20, %esi
callq 0x6230
movq %r15, %rdi
movq 0x30(%rsp), %rsi
callq 0x64e0
movq %r15, %rdi
movl $0x20, %esi
callq 0x6230
movq %rbx, %rdi
movq %r14, %rsi
movl 0x4(%rsp), %edx
movl %ebp, %ecx
callq 0x347f2
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rdi
callq 0x60b0
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x39aae
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6260
incl %ebp
movl 0x14(%r12), %eax
cmpl %eax, %ebp
jae 0x39acd
movq %r15, %rdi
leaq 0x805e8(%rip), %rsi     # 0xba0ab
callq 0x64e0
movl 0x14(%r12), %eax
cmpl %eax, %ebp
jb 0x39a13
leaq 0x38(%rsp), %rdi
movl $0x29, %esi
callq 0x6230
movq %r14, %rdi
movl 0x8(%rsp), %esi
callq 0x39684
testb %al, %al
je 0x39b02
movq %r14, %rdi
movl 0x4(%rsp), %esi
callq 0x39684
jmp 0x39b04
xorl %eax, %eax
movzbl %al, %r8d
leaq 0x38(%rsp), %rcx
movq %r14, %rdi
movl 0xc(%rsp), %esi
movl (%rsp), %edx
xorl %r9d, %r9d
callq 0x3942c
movq %r14, %rdi
movl (%rsp), %esi
movl 0x8(%rsp), %edx
callq 0x1616c
movq %r14, %rdi
movl (%rsp), %esi
movl 0x4(%rsp), %edx
callq 0x1616c
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x39b58
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x6260
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x39b8b
jmp 0x39b8b
jmp 0x39b6f
jmp 0x39b8b
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x39b8e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x39b8e
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x39ba9
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x6260
movq %rbx, %rdi
callq 0x64a0
nop