The last change 07aa21f
changes the strncmp to a length that does not include the NUL byte. This effectively changes the comparison to a "startswith" rather than a comparison.
I believe this is not intentional, because I believe you can never get the arm_aarch64 codepath now.
const char* archname = "arm_aarch64";
printf("%d\n", g_ascii_strncasecmp("arm", archname, 3)); // prints 0