I guess that could be

```
d = a2*b1 - a1*b2
if (c1 or c2) and d:
    return ..., d
```