// File: 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
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
movq %r9, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
movl -0xc(%rbp), %esi
callq 0xea90
movq -0xa8(%rbp), %rsi
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdx
leaq -0x48(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
callq 0x72bf0
movq -0xa0(%rbp), %rdi
movl $0x28, %esi
callq 0x7220
jmp 0x78c45
movl $0x0, -0x58(%rbp)
movl -0x58(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x14(%rcx), %eax
jae 0x78d6f
movq -0xa8(%rbp), %rsi
movl -0x14(%rbp), %edx
movl -0x58(%rbp), %ecx
leaq -0x78(%rbp), %rdi
callq 0x728b0
jmp 0x78c74
leaq -0x48(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x7470
jmp 0x78c83
leaq -0x78(%rbp), %rdi
callq 0x7708
leaq -0x48(%rbp), %rdi
movl $0x20, %esi
callq 0x7220
jmp 0x78c9c
movq -0x20(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x7340
jmp 0x78cab
leaq -0x48(%rbp), %rdi
movl $0x20, %esi
callq 0x7220
jmp 0x78cbb
movq -0xa8(%rbp), %rsi
movl -0x18(%rbp), %edx
movl -0x58(%rbp), %ecx
leaq -0x98(%rbp), %rdi
callq 0x728b0
jmp 0x78cd6
leaq -0x48(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x7470
jmp 0x78ce8
leaq -0x98(%rbp), %rdi
callq 0x7708
movl -0x58(%rbp), %eax
addl $0x1, %eax
movq -0x28(%rbp), %rcx
cmpl 0x14(%rcx), %eax
jae 0x78d5f
leaq 0xcb885(%rip), %rsi     # 0x14458f
leaq -0x48(%rbp), %rdi
callq 0x7340
jmp 0x78d15
jmp 0x78d5f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x78e4b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x7708
jmp 0x78e4b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x7708
jmp 0x78e4b
jmp 0x78d61
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x78c4c
leaq -0x48(%rbp), %rdi
movl $0x29, %esi
callq 0x7220
jmp 0x78d7f
movq -0xa8(%rbp), %rdi
movl -0xc(%rbp), %eax
movl %eax, -0xb4(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0xb0(%rbp)
movl -0x14(%rbp), %esi
callq 0x78810
movb %al, -0xa9(%rbp)
jmp 0x78da8
movb -0xa9(%rbp), %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xb5(%rbp)
jne 0x78dbd
jmp 0x78de2
movq -0xa8(%rbp), %rdi
movl -0x18(%rbp), %esi
callq 0x78810
movb %al, -0xb6(%rbp)
jmp 0x78dd4
movb -0xb6(%rbp), %al
movb %al, -0xb5(%rbp)
jmp 0x78de2
movl -0xb0(%rbp), %edx
movl -0xb4(%rbp), %esi
movq -0xa8(%rbp), %rdi
movb -0xb5(%rbp), %al
movzbl %al, %r8d
andl $0x1, %r8d
leaq -0x48(%rbp), %rcx
xorl %r9d, %r9d
callq 0x784f0
jmp 0x78e11
movq -0xa8(%rbp), %rdi
movl -0x10(%rbp), %esi
movl -0x14(%rbp), %edx
callq 0x25500
jmp 0x78e25
movq -0xa8(%rbp), %rdi
movl -0x10(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0x25500
jmp 0x78e39
leaq -0x48(%rbp), %rdi
callq 0x7708
addq $0xc0, %rsp
popq %rbp
retq
leaq -0x48(%rbp), %rdi
callq 0x7708
movq -0x50(%rbp), %rdi
callq 0x7640
nopl (%rax)