// File: rossy[P]crossc/SPIRV-Cross/spirv_glsl.cpp
// Function: spirv_cross::CompilerGLSL::emit_quaternary_func_op(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, char const*)
void CompilerGLSL::emit_quaternary_func_op(uint32_t result_type, uint32_t result_id, uint32_t op0, uint32_t op1,
                                           uint32_t op2, uint32_t op3, const char *op)
{
	bool forward = should_forward(op0) && should_forward(op1) && should_forward(op2) && should_forward(op3);
	emit_op(result_type, result_id,
	        join(op, "(", to_unpacked_expression(op0), ", ", to_unpacked_expression(op1), ", ",
	             to_unpacked_expression(op2), ", ", to_unpacked_expression(op3), ")"),
	        forward);

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq 0x18(%rbp), %rax
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
movl %r9d, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xe0(%rbp)
movl -0x14(%rbp), %esi
callq 0x78810
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xd1(%rbp)
jne 0x79b3b
jmp 0x79b90
movq -0xe0(%rbp), %rdi
movl -0x18(%rbp), %esi
callq 0x78810
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xd1(%rbp)
jne 0x79b5b
jmp 0x79b90
movq -0xe0(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x78810
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xd1(%rbp)
jne 0x79b7b
jmp 0x79b90
movq -0xe0(%rbp), %rdi
movl 0x10(%rbp), %esi
callq 0x78810
movb %al, -0xd1(%rbp)
movq -0xe0(%rbp), %rsi
movb -0xd1(%rbp), %al
andb $0x1, %al
movb %al, -0x1d(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0xe8(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0xe4(%rbp)
movl -0x14(%rbp), %edx
leaq -0x60(%rbp), %rdi
callq 0x726b0
movq -0xe0(%rbp), %rsi
movl -0x18(%rbp), %edx
leaq -0x80(%rbp), %rdi
callq 0x726b0
jmp 0x79bd5
movq -0xe0(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq -0xb0(%rbp), %rdi
callq 0x726b0
jmp 0x79bed
movq -0xe0(%rbp), %rsi
movl 0x10(%rbp), %edx
leaq -0xd0(%rbp), %rdi
callq 0x726b0
jmp 0x79c05
leaq 0xcb2ed(%rip), %rcx     # 0x144ef9
movq %rsp, %rax
movq %rcx, 0x20(%rax)
leaq -0xd0(%rbp), %rcx
movq %rcx, 0x18(%rax)
leaq 0xca96a(%rip), %r8      # 0x14458f
movq %r8, 0x10(%rax)
leaq -0xb0(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq %r8, (%rax)
leaq 0xd36ef(%rip), %rdx     # 0x14d32d
leaq -0x40(%rbp), %rdi
leaq 0x18(%rbp), %rsi
leaq -0x60(%rbp), %rcx
leaq -0x80(%rbp), %r9
callq 0xa2da0
jmp 0x79c55
movl -0xe4(%rbp), %edx
movl -0xe8(%rbp), %esi
movq -0xe0(%rbp), %rdi
movzbl -0x1d(%rbp), %r8d
andl $0x1, %r8d
leaq -0x40(%rbp), %rcx
xorl %r9d, %r9d
callq 0x784f0
jmp 0x79c7f
leaq -0x40(%rbp), %rdi
callq 0x7708
leaq -0xd0(%rbp), %rdi
callq 0x7708
leaq -0xb0(%rbp), %rdi
callq 0x7708
leaq -0x80(%rbp), %rdi
callq 0x7708
leaq -0x60(%rbp), %rdi
callq 0x7708
movq -0xe0(%rbp), %rdi
movl -0x10(%rbp), %esi
movl -0x14(%rbp), %edx
callq 0x25500
movq -0xe0(%rbp), %rdi
movl -0x10(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0x25500
movq -0xe0(%rbp), %rdi
movl -0x10(%rbp), %esi
movl -0x1c(%rbp), %edx
callq 0x25500
movq -0xe0(%rbp), %rdi
movl -0x10(%rbp), %esi
movl 0x10(%rbp), %edx
callq 0x25500
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x79d8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x79d86
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x79d7a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x79d6e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x7708
leaq -0xd0(%rbp), %rdi
callq 0x7708
leaq -0xb0(%rbp), %rdi
callq 0x7708
leaq -0x80(%rbp), %rdi
callq 0x7708
leaq -0x60(%rbp), %rdi
callq 0x7708
movq -0x88(%rbp), %rdi
callq 0x7640
nopw %cs:(%rax,%rax)