// // GJBaseGameLayer::resetActiveEnterEffects from 0x9afdc4 to 0x9aff10 (332 bytes) // // 4 xrefs: // > PlayLayer::resetLevel @ 0x711280 // > PlayLayer::init @ 0x71221c // > GJBaseGameLayer::resetLevelVariables @ 0x9e7398 // > @ 0x7da88 // // 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:58:14 +0000 // __int64 __fastcall GJBaseGameLayer::resetActiveEnterEffects(GJBaseGameLayer *this) { _DWORD *v2; // x2 __int64 v3; // x0 __int64 v4; // x6 unsigned __int64 v5; // x1 __int64 v6; // x3 __int128 v7; // q0 _OWORD *v8; // x5 unsigned __int64 v9; // x4 _DWORD *v10; // x2 __int64 v11; // x0 __int64 v12; // x6 unsigned __int64 v13; // x1 __int64 v14; // x3 __int128 v15; // q0 _OWORD *v16; // x5 unsigned __int64 v17; // x4 __int64 result; // x0 v2 = *((_DWORD **)this + 179); v3 = (__int64)(*((_QWORD *)this + 180) - (_QWORD)v2) >> 2; if ( v3 > 0 ) { v4 = v3; v5 = ((unsigned __int64)(v3 - 4) >> 2) + 1; v6 = 4 * v5; if ( v3 <= 3 ) goto LABEL_23; *(_QWORD *)&v7 = 0x100000001LL; *((_QWORD *)&v7 + 1) = 0x100000001LL; v8 = v2; v9 = 0; do { *v8++ = v7; ++v9; } while ( v9 < v5 ); v2 += 4 * v5; v3 -= v6; if ( v4 != v6 ) { LABEL_23: *v2 = -2; if ( v3 - 1 > 0 ) { v2[1] = -2; if ( v3 != 2 ) v2[2] = -2; } } } v10 = *((_DWORD **)this + 182); v11 = (__int64)(*((_QWORD *)this + 183) - (_QWORD)v10) >> 2; if ( v11 > 0 ) { v12 = (__int64)(*((_QWORD *)this + 183) - (_QWORD)v10) >> 2; v13 = ((unsigned __int64)(v11 - 4) >> 2) + 1; v14 = 4 * v13; if ( v11 <= 3 ) goto LABEL_24; *(_QWORD *)&v15 = 0x100000001LL; *((_QWORD *)&v15 + 1) = 0x100000001LL; v16 = *((_OWORD **)this + 182); v17 = 0; do { *v16++ = v15; ++v17; } while ( v13 > v17 ); v10 += 4 * v13; v11 -= v14; if ( v14 != v12 ) { LABEL_24: *v10 = -2; if ( v11 - 1 > 0 ) { v10[1] = -2; if ( v11 != 2 ) v10[2] = -2; } } } if ( *((_QWORD *)this + 172) ) sub_9AFCC0((_QWORD *)this + 169); result = *((_QWORD *)this + 177); if ( result ) return sub_9AFCC0((_QWORD *)this + 174); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source