i think we could simplify if we shuffle registers around a bit  for example  stupid but safe moveforrootregisterrefactoring scratch bytecode pop ebx we can pop here and remove all related logic afterwards dispatch with cmpb scratch immediate 