//
// std::__ndk1::__rotate_right> from 0x76be04 to 0x76be28 (36 bytes)
//
// 2 xrefs:
// > sub_76BEAC @ 0x76c0ea
// > sub_76C400 @ 0x76c63e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:59:11 +0000
//
void *__fastcall std::__rotate_right>(char *a1, char *a2)
{
void *v2; // r3
int v3; // r5
v2 = a2;
v3 = *((_DWORD *)a2 - 1);
if ( (unsigned int)(a2 - 4 - a1) >> 2 )
v2 = memmove(a1 + 4, a1, a2 - 4 - a1);
*(_DWORD *)a1 = v3;
return v2;
}