Understanding this comparator circuit
Since there is hysteresis, we must analyze the behavior in a specific direction. If you provide the values and specify the comparator, I can update the description (if needed).


Input = 0 V


Both comparators will output the the highest possible voltage (pull-ups). The feedbacks will be open due to the diodes, and the thresholds will depend only on R8, R9 and R10, if the input current can be disregarded.


Input > V1


The comparator below will saturate its output, its feedback diode will conduct and both thresholds will be reduced.


Input > V2 (reduced)


The comparator above will saturate its output, its feedback diode will conduct and the thresholds will be reduced again.


  What's the purpose of the diodes in the positive feedback?


The feedback networks will only be conducting when the comparators are saturated (low voltage output). When both Out1 and Out2 are high, the thresholds will depend only on R8, R9 and R10.