// // PlayerObject::toggleSwingMode from 0x100404310 to 0x100404749 (1081 bytes) // // 12 xrefs: // > GJBaseGameLayer::setupLevelStart @ 0x10010163b // > GJBaseGameLayer::setupLevelStart @ 0x100101730 // > GJBaseGameLayer::switchToFlyMode @ 0x100101c9d // > PlayerObject::switchedToMode @ 0x1003ffe84 // > PlayerObject::toggleFlyMode @ 0x100403213 // > PlayerObject::toggleBirdMode @ 0x100403d16 // > PlayerObject::toggleDartMode @ 0x100404e20 // > PlayerObject::toggleRollMode @ 0x1004053e3 // > PlayerObject::toggleRobotMode @ 0x1004058bc // > PlayerObject::toggleSpiderMode @ 0x100405d34 // > PlayerObject::copyAttributes @ 0x100408500 // > MenuGameLayer::resetPlayer @ 0x1004f9993 // // 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:30:04 +0000 // void __fastcall PlayerObject::toggleSwingMode(__int64 a1, char a2, char a3, double a4, double a5, double a6, __m128 a7) { double v10; // xmm0_8 __int64 v11; // rsi __int64 v12; // xmm0_8 __int64 v13; // rdi __int64 v14; // r12 __int64 v15; // rax __int64 v16; // r15 _OWORD *v17; // r12 _OWORD *v18; // rax __int64 v19; // rax _DWORD *v20; // rsi __int64 v21; // xmm0_8 if ( *(_BYTE *)(a1 + 2428) == a2 ) return; v10 = *(double *)(a1 + 2624); *(double *)(a1 + 1960) = v10; *(_BYTE *)(a1 + 2428) = a2; if ( a2 ) { PlayerObject::toggleFlyMode(a1, 0, 0); PlayerObject::toggleBirdMode(a1, 0, 0, v10, a5, a6, a7); if ( *(_BYTE *)(a1 + 2419) ) { *(_QWORD *)(a1 + 1960) = *(_QWORD *)(a1 + 2624); *(_BYTE *)(a1 + 2419) = 0; if ( *(float *)(a1 + 2472) == 1.0 || (v11 = 0, !*(_BYTE *)(a1 + 2648)) ) v11 = *(unsigned int *)(a1 + 1560); PlayerObject::updatePlayerFrame(a1, v11); if ( *(_BYTE *)(a1 + 2423) ) v12 = 1127481344; else v12 = 0; (*(void (__fastcall **)(__int64, double))(*(_QWORD *)a1 + 360LL))(a1, *(double *)&v12); *(_WORD *)(a1 + 1784) = 0; *(_BYTE *)(a1 + 1640) = 0; *(_DWORD *)(a1 + 1776) = 0; } PlayerObject::toggleDartMode(a1, 0, 0); PlayerObject::toggleRobotMode(a1, 0, 0); PlayerObject::toggleSpiderMode(a1, 0, 0); } *(_WORD *)(a1 + 1784) = 0; *(_BYTE *)(a1 + 1640) = 0; *(_DWORD *)(a1 + 1776) = 0; *(double *)(a1 + 2392) = *(double *)(a1 + 2392) * 0.5; (*(void (__fastcall **)(__int64, double))(*(_QWORD *)a1 + 360LL))(a1, 0.0); *(_BYTE *)(a1 + 2500) = 0; *(_BYTE *)(a1 + 2425) = 0; *(_BYTE *)(a1 + 1971) = 0; v13 = *(_QWORD *)(a1 + 2120); if ( v13 ) { v14 = sub_1005DDE90(v13); GameObject::removeGlow(v14); (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 536LL))(v14); cocos2d::CCObject::release(*(_QWORD *)(a1 + 2120)); *(_QWORD *)(a1 + 2120) = 0; } if ( *(_BYTE *)(a1 + 2428) != 1 ) { PlayerObject::resetPlayerIcon(a1); PlayerObject::updatePlayerFrame(a1, *(unsigned int *)(a1 + 1560)); if ( *(_BYTE *)(a1 + 2423) ) v21 = 1127481344; else v21 = 0; (*(void (__fastcall **)(__int64, double))(*(_QWORD *)a1 + 360LL))(a1, *(double *)&v21); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1872) + 344LL))(*(_QWORD *)(a1 + 1872), 0); cocos2d::CCNode::stopAllActions(*(_QWORD *)(a1 + 1872)); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1880) + 344LL))(*(_QWORD *)(a1 + 1880), 0); cocos2d::CCNode::stopAllActions(*(_QWORD *)(a1 + 1880)); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1888) + 344LL))(*(_QWORD *)(a1 + 1888), 0); cocos2d::CCNode::stopAllActions(*(_QWORD *)(a1 + 1888)); cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(a1 + 2216)); cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(a1 + 2224)); if ( !a2 ) return; LABEL_27: PlayerObject::updatePlayerArt(a1); PlayerObject::updateDashArt(a1); return; } v15 = GameManager::sharedState(); PlayerObject::updatePlayerSwingFrame(a1, (unsigned int)(*(_DWORD *)(v15 + 800) - *(_DWORD *)(v15 + 804))); if ( !a3 ) PlayerObject::spawnPortalCircle(a1, 51455, 50.0); if ( !*(_BYTE *)(a1 + 1787) ) { cocos2d::CCParticleSystem::resetSystem(*(_QWORD *)(a1 + 2168)); cocos2d::CCParticleSystem::resetSystem(*(_QWORD *)(a1 + 2176)); } cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(a1 + 2176)); *(_BYTE *)(a1 + 1975) = 0; if ( *(_BYTE *)(a1 + 1974) == 1 ) cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(a1 + 2160)); *(_BYTE *)(a1 + 1974) = 0; PlayerObject::activateStreak(a1); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1872) + 344LL))(*(_QWORD *)(a1 + 1872), 1); v16 = *(_QWORD *)(a1 + 1872); cocos2d::CCNode::stopAllActions(v16); v17 = cocos2d::CCScaleTo::create((__m128)0x3D75C28Fu, 1.2 * *(float *)(v16 + 596), *(float *)(v16 + 596)); v18 = cocos2d::CCScaleTo::create((__m128)0x3D75C28Fu, 0.60000002 * *(float *)(v16 + 596), *(float *)(v16 + 596) * 1.5); v19 = sub_10039EB60((__int64)v17, v18, 0); v20 = cocos2d::CCRepeatForever::create(v19); cocos2d::CCNode::runAction(v16, (__int64)v20); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 1880) + 160LL))(*(_QWORD *)(a1 + 1880), 0.0099999998); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 1888) + 160LL))(*(_QWORD *)(a1 + 1888), 0.0099999998); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1880) + 344LL))(*(_QWORD *)(a1 + 1880), 1); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1888) + 344LL))(*(_QWORD *)(a1 + 1888), 1); cocos2d::CCParticleSystem::resetSystem(*(_QWORD *)(a1 + 2216)); cocos2d::CCParticleSystem::resetSystem(*(_QWORD *)(a1 + 2224)); cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(a1 + 2216)); cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(a1 + 2224)); PlayerObject::updateSwingFire(a1); if ( a2 ) goto LABEL_27; }
GD Web Decomp Icon

GD Web Decomp

Raw Source