// // SetupSmartBlockLayer::onAllowFlipping from 0x1004e1d60 to 0x1004e1dd6 (118 bytes) // // 2 xrefs: // > SetupSmartBlockLayer::init @ 0x1004e0ef4 // > SetupSmartBlockLayer::init @ 0x1004e0ff7 // // This function is hookable on this platform (idp: pc, 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:31:18 +0000 // char __fastcall SetupSmartBlockLayer::onAllowFlipping(__int64 a1, __int64 a2, double a3) { char result; // al __int64 v4; // rax __int64 ActiveSmartTemplate; // r14 if ( a2 ) { v4 = GameLevelManager::sharedState(a3); ActiveSmartTemplate = GameLevelManager::getActiveSmartTemplate(v4); if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 3 ) { result = *(_BYTE *)(a1 + 674) ^ 1; *(_BYTE *)(a1 + 674) = result; if ( ActiveSmartTemplate ) *(_BYTE *)(ActiveSmartTemplate + 136) = result; } else { result = *(_BYTE *)(a1 + 675) ^ 1; *(_BYTE *)(a1 + 675) = result; if ( ActiveSmartTemplate ) *(_BYTE *)(ActiveSmartTemplate + 137) = result; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source