Generalized branch sprite handling