//
// std::__ndk1::__rotate_right> from 0xca1c9c to 0xca1cec (80 bytes)
//
// 3 xrefs:
// > sub_CA1E8C @ 0xca22a0
// > sub_CA2CB4 @ 0xca30c8
// > ??> @ 0x81f40
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:05:59 +0000
//
void *__fastcall std::__rotate_right>(char *a1, char *a2)
{
void *v2; // x3
int v4; // w20
v2 = a2;
v4 = *((_DWORD *)a2 - 1);
if ( (a2 - 4 - a1) >> 2 )
v2 = memmove(a1 + 4, a1, a2 - 4 - a1);
*(_DWORD *)a1 = v4;
return v2;
}