split the sd_resume_async patch into two