// // std::__ndk1::__rotate_gcd> from 0x76be28 to 0x76beaa (130 bytes) // // 2 xrefs: // > sub_76BEAC @ 0x76c0f4 // > sub_76C400 @ 0x76c648 // // 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 // char *__fastcall std::__rotate_gcd>(char *result, char *a2, int a3) { int v3; // r8 int v4; // r5 char *v5; // r6 int v6; // r7 int v8; // r4 char *v9; // r3 int v10; // r2 int v11; // r0 int v12; // r1 char *v13; // r3 int v14; // lr int v15; // t1 char *v16; // r1 char *v17; // r4 int v18; // r2 char *v19; // r0 v3 = a2 - result; v4 = a3 - (_DWORD)a2; v5 = result; v6 = (a2 - result) >> 2; v8 = (a3 - (int)a2) >> 2; if ( v6 == v8 ) { v9 = a2; while ( result != a2 ) { v10 = *(_DWORD *)result; *(_DWORD *)result = *(_DWORD *)v9; result += 4; *(_DWORD *)v9 = v10; v9 += 4; } } else { v11 = (a2 - result) >> 2; while ( 1 ) { v12 = v11 % v8; v11 = v8; if ( !v12 ) break; v8 = v12; } v13 = &v5[4 * v8]; while ( v13 != v5 ) { v15 = *((_DWORD *)v13 - 1); v13 -= 4; v14 = v15; v16 = &v13[v3]; v17 = v13; while ( 1 ) { *(_DWORD *)v17 = *(_DWORD *)v16; v18 = (a3 - (int)v16) >> 2; v19 = &v5[4 * (v6 - v18)]; if ( v6 < v18 ) v19 = &v16[v3]; v17 = v16; if ( v19 == v13 ) break; v16 = v19; } *(_DWORD *)v16 = v14; } return &v13[v4]; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source