(Apple) Move some code to apple_gfx_context.c.inl