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

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq 0x10(%rbp), %rax
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, -0xc0(%rbp)
movl -0x14(%rbp), %esi
callq 0x78810
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xb1(%rbp)
jne 0x79908
jmp 0x7993d
movq -0xc0(%rbp), %rdi
movl -0x18(%rbp), %esi
callq 0x78810
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xb1(%rbp)
jne 0x79928
jmp 0x7993d
movq -0xc0(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x78810
movb %al, -0xb1(%rbp)
movq -0xc0(%rbp), %rsi
movb -0xb1(%rbp), %al
andb $0x1, %al
movb %al, -0x1d(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0xc8(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0xc4(%rbp)
movl -0x14(%rbp), %edx
leaq -0x60(%rbp), %rdi
callq 0x726b0
movq -0xc0(%rbp), %rsi
movl -0x18(%rbp), %edx
leaq -0x80(%rbp), %rdi
callq 0x726b0
jmp 0x79982
movq -0xc0(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq -0xb0(%rbp), %rdi
callq 0x726b0
jmp 0x7999a
leaq 0xcb558(%rip), %rcx     # 0x144ef9
movq %rsp, %rax
movq %rcx, 0x10(%rax)
leaq -0xb0(%rbp), %rcx
movq %rcx, 0x8(%rax)
leaq 0xcabd5(%rip), %r8      # 0x14458f
movq %r8, (%rax)
leaq 0xd3969(%rip), %rdx     # 0x14d32d
leaq -0x40(%rbp), %rdi
leaq 0x10(%rbp), %rsi
leaq -0x60(%rbp), %rcx
leaq -0x80(%rbp), %r9
callq 0xa2cb0
jmp 0x799db
movl -0xc4(%rbp), %edx
movl -0xc8(%rbp), %esi
movq -0xc0(%rbp), %rdi
movzbl -0x1d(%rbp), %r8d
andl $0x1, %r8d
leaq -0x40(%rbp), %rcx
xorl %r9d, %r9d
callq 0x784f0
jmp 0x79a05
leaq -0x40(%rbp), %rdi
callq 0x7708
leaq -0xb0(%rbp), %rdi
callq 0x7708
leaq -0x80(%rbp), %rdi
callq 0x7708
leaq -0x60(%rbp), %rdi
callq 0x7708
movq -0xc0(%rbp), %rdi
movl -0x10(%rbp), %esi
movl -0x14(%rbp), %edx
callq 0x25500
movq -0xc0(%rbp), %rdi
movl -0x10(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0x25500
movq -0xc0(%rbp), %rdi
movl -0x10(%rbp), %esi
movl -0x1c(%rbp), %edx
callq 0x25500
addq $0xe0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x79ad7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x79ace
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x79ac2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0x40(%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
nopl (%rax)