diff -bur openocd-0.12.0-o/src/helper/replacements.h openocd-0.12.0/src/helper/replacements.h
--- openocd-0.12.0-o/src/helper/replacements.h	2025-04-17 20:15:14.086226500 -0600
+++ openocd-0.12.0/src/helper/replacements.h	2025-04-17 20:39:35.602843900 -0600
@@ -142,6 +142,8 @@
 #endif
 
 #if IS_MINGW == 1
+
+#ifndef __aarch64__
 static inline unsigned char inb(unsigned short int port)
 {
 	unsigned char _v;
@@ -153,6 +155,7 @@
 {
 	__asm__ __volatile__ ("outb %b0,%w1" : : "a" (value), "Nd" (port));
 }
+#endif // __aarch64__
 
 /* mingw does not have ffs, so use gcc builtin types */
 #define ffs __builtin_ffs
