// // GJBaseGameLayer::shouldExitHackedLevel from 0x58bb48 to 0x58bbe2 (154 bytes) // // 1 xrefs: // > PlayLayer::setupHasCompleted @ 0x40a8aa // // 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:53:02 +0000 // bool __fastcall GJBaseGameLayer::shouldExitHackedLevel(GJBaseGameLayer *this) { int v1; // r1 int v2; // lr int v3; // r5 int v4; // r4 int v5; // r2 int v6; // r0 int v7; // r5 _DWORD *v8; // r12 int v9; // r3 int i; // r6 int v11; // r7 int v12; // r3 v1 = 0; v2 = *((_DWORD *)this + 2844); v3 = *((_DWORD *)this + 2845); v4 = 0; v5 = 0; v6 = 0; v7 = (v3 - v2) >> 2; while ( v1 < v7 ) { v8 = *(_DWORD **)(v2 + 4 * v1); if ( v8 ) v9 = ((v8[1] - *v8) >> 2) - 1; else v9 = -1; for ( i = 0; i <= v9; ++i ) { v11 = *(_DWORD *)(*v8 + 4 * i); if ( v6 < v11 ) v6 = v11; if ( v11 > 0 ) ++v4; else ++v5; } ++v1; } if ( (float)((float)v5 / (float)v4) <= 0.9 ) v12 = 8000; else v12 = 4000; return v6 > v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source