// // sub_100121688 from 0x100121688 to 0x100121764 (220 bytes) // // 1 xrefs: // > PlayLayer::saveDynamicSaveObjects @ 0x100120ae0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall sub_100121688(_QWORD *a1) { char *v1; // x8 char *v2; // x1 __int64 v3; // x9 __int64 v4; // x10 unsigned __int64 v6; // x20 char *v7; // x0 unsigned __int64 v8; // x1 unsigned __int64 v9; // x8 char *v10; // x21 char *v11; // x22 size_t v12; // x2 char *v13; // x20 v1 = (char *)a1[1]; v2 = (char *)*a1; v3 = a1[2] - *a1; v4 = (__int64)&v1[-*a1]; if ( v3 > (unsigned __int64)v4 ) { v6 = 0xAAAAAAAAAAAAAAABLL * (v4 >> 4); if ( v1 == v2 ) { v7 = nullptr; v9 = 0; } else { v7 = (char *)sub_10001C8BC((__int64)a1, 0xAAAAAAAAAAAAAAABLL * (v4 >> 4)); v9 = v8; v2 = (char *)*a1; v3 = a1[2] - *a1; } if ( v9 < 0xAAAAAAAAAAAAAAABLL * (v3 >> 4) ) { v10 = &v7[48 * v6]; v11 = &v7[48 * v9]; v12 = a1[1] - (_QWORD)v2; v13 = &v10[-v12]; memcpy(&v10[-v12], v2, v12); v7 = (char *)*a1; *a1 = v13; a1[1] = v10; a1[2] = v11; } if ( v7 ) operator delete(v7); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source