[AArch64] Improve prologue handling (and fix PR26310)