// // GJBaseGameLayer::removeReleasedButtons from 0x100296ac8 to 0x100296bfc (308 bytes) // // 1 xrefs: // > PlayLayer::resetLevel @ 0x10014be98 // // 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 11:02:06 +0000 // unsigned __int64 __fastcall GJBaseGameLayer::removeReleasedButtons(unsigned __int64 result) { char *v1; // x9 _BYTE *v2; // x8 _QWORD *v3; // x19 unsigned __int64 v4; // x24 unsigned __int64 v5; // x10 _BYTE *v6; // x12 int v7; // w11 unsigned __int64 v8; // x14 __int64 v9; // x13 _BYTE *v10; // x20 char *v11; // x1 __int64 v12; // x21 _BYTE *v13; // x9 _BYTE *v14; // x20 __int64 v15; // x21 v1 = *(char **)(result + 12832); v2 = *(_BYTE **)(result + 12824); if ( v1 != v2 ) { v3 = (_QWORD *)result; v4 = 0; v5 = 0xAAAAAAAAAAAAAAABLL * ((v1 - v2) >> 3); do { v6 = &v2[24 * v4]; v7 = v4 + 1; if ( v6[4] == 1 && v5 > v7 ) { v8 = v7; v9 = 24LL * v7; while ( 1 ) { if ( *(_DWORD *)v6 == *(_DWORD *)&v2[v9] ) { result = (unsigned __int8)v2[v9 + 5]; if ( (unsigned __int8)v6[5] == (_DWORD)result && (v2[v9 + 4] & 1) == 0 ) break; } ++v8; v9 += 24; if ( v5 <= v8 ) goto LABEL_10; } v10 = &v2[v9]; v11 = &v2[v9 + 24]; v12 = v1 - v2 - v9 - 24; if ( v11 != v1 ) { result = (unsigned __int64)memmove(&v2[v9], v11, v1 - v2 - v9 - 24); v2 = (_BYTE *)v3[1603]; } v13 = &v10[v12]; v3[1604] = &v10[v12]; v14 = &v2[24 * v4]; v15 = v13 - (v14 + 24); if ( v13 != v14 + 24 ) { result = (unsigned __int64)memmove(&v2[24 * v4], v14 + 24, v13 - (v14 + 24)); v2 = (_BYTE *)v3[1603]; } v1 = &v14[v15]; v3[1604] = &v14[v15]; } else { LABEL_10: ++v4; } v5 = 0xAAAAAAAAAAAAAAABLL * ((v1 - v2) >> 3); } while ( v4 < v5 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source