@name Chair Retraction Chip
@inputs Inner Outer
@outputs Length
@persist Inner1
Out = 126
In = 36
if (Inner & ~Inner) {Inner1 = !Inner1}
if ((Inner1 & Outer) | (!Inner1 & !Outer)) {Length = Out}
elseif (Inner1 | Outer) {Length = In}
