The darwin kernel may have authentication bits on fields like $pc or $sp when the register state is thread_get_state'd with macOS Sonoma. debugserver clears these bits before handing the values to lldb arm64 corefiles created by gcore on MacOS Sonoma (macOS 14) will include these signed value as-is.
This patch changes RegisterContextUnwind to clear the unaddressable bits from sp/pc/fp/lr -- these must point to stack or code in memory.
We already clear the bits from spilled lr's because that's frequently signed with an ABI using ARMv8.3 ptrauth. This patch extends that same behavior to sp and fp.