// // GJGameLevel::getSessionBest from 0x813e18 to 0x813f9c (388 bytes) // // 2 xrefs: // > PlayLayer::resetLevel @ 0x711674 // > @ 0xb85e8 // // 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 12:54:54 +0000 // __int64 __fastcall GJGameLevel::getSessionBest(GJGameLevel *this) { unsigned __int64 v1; // x1 unsigned __int64 v2; // x2 __int64 v3; // x3 int32x4_t v4; // q0 int32x4_t *v5; // x6 unsigned __int64 v6; // x5 int32x4_t v7; // t1 int v8; // w19 unsigned __int64 v9; // x2 int v10; // w5 unsigned __int64 v11; // x2 int v12; // w2 unsigned __int64 v13; // x3 void *v15; // [xsp+20h] [xbp+20h] BYREF _BYTE *v16; // [xsp+28h] [xbp+28h] __int64 v17; // [xsp+30h] [xbp+30h] v15 = nullptr; v16 = nullptr; v17 = 0; GJGameLevel::dtExpandOrder((__int64)this + 1592, (__int64)&v15); v1 = (v16 - (_BYTE *)v15) >> 2; if ( !v1 ) { v8 = 0; goto LABEL_17; } v2 = ((v1 - 4) >> 2) + 1; v3 = 4 * v2; if ( v1 - 1 <= 3 ) { v3 = 0; v8 = 0; } else { v4 = 0u; v5 = (int32x4_t *)v15; v6 = 0; do { v7 = *v5++; ++v6; v4 = vmaxq_s32(v4, v7); } while ( v6 < v2 ); v8 = vmaxvq_s32(v4); if ( v3 == v1 ) goto LABEL_17; } v9 = v3 + 1; if ( v8 < *((_DWORD *)v15 + v3) ) v8 = *((_DWORD *)v15 + v3); if ( v9 < v1 ) { v10 = *((_DWORD *)v15 + v9); v11 = v3 + 2; if ( v8 < v10 ) v8 = v10; if ( v1 > v11 ) { v12 = *((_DWORD *)v15 + v11); v13 = v3 + 3; if ( v8 < v12 ) v8 = v12; if ( v1 > v13 && v8 < *((_DWORD *)v15 + v13) ) v8 = *((_DWORD *)v15 + v13); } } LABEL_17: if ( v15 ) { if ( v15 != v16 ) v16 += 4 * ~((unsigned __int64)(v16 - 4 - (_BYTE *)v15) >> 2); operator delete(v15); } return (unsigned int)v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source