Functorize funptr in preparation for stub gen