(Apple) Refactor apple_run_core