// // PlayerObject::toggleVisibility from 0x75443c to 0x754564 (296 bytes) // // 7 xrefs: // > PlayerObject::spawnFromPlayer @ 0x75d5a0 // > PlayerObject::spawnFromPlayer @ 0x75d5e8 // > PlayerObject::resetObject @ 0x75ddc4 // > PlayerObject::loadFromCheckpoint @ 0x76bae4 // > GJBaseGameLayer::togglePlayerVisibility @ 0x9a8308 // > GJBaseGameLayer::togglePlayerVisibility @ 0x9a8310 // > @ 0x1038e8 // // 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:52:56 +0000 // __int64 __fastcall PlayerObject::toggleVisibility(__int64 this, unsigned __int8 a2) { int v2; // w20 __int64 v3; // x19 __int64 v4; // x2 __int64 v5; // x0 v2 = a2 ^ 1; v3 = this; if ( *(unsigned __int8 *)(this + 1787) != v2 ) { if ( a2 ) { v4 = *(_QWORD *)this; *(_BYTE *)(this + 1787) = v2; (*(void (__fastcall **)(__int64, __int64))(v4 + 344))(this, 1); if ( (unsigned __int8)PlayerObject::isFlying((PlayerObject *)v3) ) { PlayerObject::resetStreak((cocos2d::CCMotionStreak **)v3); PlayerObject::activateStreak((cocos2d::CCNode **)v3); cocos2d::CCParticleSystem::resetSystem(*(cocos2d::CCParticleSystem **)(v3 + 2168)); if ( *(_BYTE *)(v3 + 2420) ) { return PlayerObject::placeStreakPoint((PlayerObject *)v3); } else { this = *(unsigned __int8 *)(v3 + 2417); if ( *(_BYTE *)(v3 + 2417) ) { this = *(unsigned __int8 *)(v3 + 2832); if ( !*(_BYTE *)(v3 + 2832) ) { this = *(_QWORD *)(v3 + 1912); if ( this ) return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)this + 344LL))(this, 1); } } } } else { this = *(unsigned __int8 *)(v3 + 2273); if ( *(_BYTE *)(v3 + 2273) ) { PlayerObject::resetStreak((cocos2d::CCMotionStreak **)v3); return PlayerObject::activateStreak((cocos2d::CCNode **)v3); } } } else { cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)this, 11); *(_BYTE *)(v3 + 1787) = v2; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, 0); PlayerObject::deactivateStreak((cocos2d::CCMotionStreak **)v3, 1u); v5 = *(_QWORD *)(v3 + 1912); if ( v5 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0); return PlayerObject::resetAllParticles((cocos2d::CCArray **)v3); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source