crt: Use aarch64 assembly for mingw_getsp implementation on ARM64EC.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
diff --git a/mingw-w64-crt/misc/mingw_getsp.S b/mingw-w64-crt/misc/mingw_getsp.S
index 1e83b73..08dfc37 100644
--- a/mingw-w64-crt/misc/mingw_getsp.S
+++ b/mingw-w64-crt/misc/mingw_getsp.S
@@ -15,7 +15,10 @@
 	.globl __MINGW_USYMBOL(mingw_getsp)
 	.def	__MINGW_USYMBOL(mingw_getsp);	.scl	2;	.type	32;	.endef
 __MINGW_USYMBOL(mingw_getsp):
-#if defined(_AMD64_) || defined(__x86_64__)
+#if defined(_ARM64_) || defined(__aarch64__) || defined(__arm64ec__)
+	mov	x0, sp
+	ret
+#elif defined(_AMD64_) || defined(__x86_64__)
 	leaq  8(%rsp),%rax
 	ret
 #elif defined(_X86_) || defined(__i386__)
@@ -24,7 +27,4 @@
 #elif defined(_ARM_) || defined(__arm__)
 	mov	r0, sp
 	bx	lr
-#elif defined(_ARM64_) || defined(__aarch64__)
-	mov	x0, sp
-	ret
 #endif