// // PlayerObject::toggleFlyMode from 0x1002c6360 to 0x1002c65f4 (660 bytes) // // 4 xrefs: // > GJBaseGameLayer::switchToFlyMode @ 0x100281dbc // > PlayerObject::switchedToMode @ 0x1002c3cf8 // > PlayerObject::copyAttributes @ 0x1002ca068 // > MenuGameLayer::resetPlayer @ 0x100442600 // // 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 11:02:33 +0000 // void __fastcall PlayerObject::toggleFlyMode(__int64 a1, int a2, char a3) { __int64 v3; // x29 __int64 v4; // x30 __int64 v8; // x0 char v9; // w22 _DWORD *v10; // x0 __int64 v11; // x22 __int64 v12; // x22 float v13; // s1 __n128 v14; // q0 __int64 v15; // x22 __int64 v16; // x0 float v17; // [xsp+8h] [xbp-38h] BYREF __int64 v18; // [xsp+30h] [xbp-10h] __int64 v19; // [xsp+38h] [xbp-8h] if ( *(unsigned __int8 *)(a1 + 2417) != a2 ) { v18 = v3; v19 = v4; *(_QWORD *)(a1 + 1960) = *(_QWORD *)(a1 + 2624); *(_BYTE *)(a1 + 2417) = a2; if ( a2 ) PlayerObject::switchedToMode(a1, 5); *(_WORD *)(a1 + 1784) = 0; *(_BYTE *)(a1 + 1640) = 0; *(_DWORD *)(a1 + 1776) = 0; *(double *)(a1 + 2392) = *(double *)(a1 + 2392) * 0.5; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 360LL))(a1, 0.0); *(_BYTE *)(a1 + 2500) = 0; *(_BYTE *)(a1 + 2425) = 0; *(_BYTE *)(a1 + 1971) = 0; sub_1002C3C70(a1); if ( *(_BYTE *)(a1 + 2417) == 1 ) { v8 = PlayerObject::stopPlatformerJumpAnimation(a1); v9 = *(_BYTE *)(a1 + 2832); v10 = (_DWORD *)GameManager::sharedState(v8); if ( (v9 & 1) != 0 ) { PlayerObject::updatePlayerJetpackFrame(a1, (unsigned int)(v10[221] - v10[222])); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 1800) + 160LL))(*(_QWORD *)(a1 + 1800), 0.6); v11 = *(_QWORD *)(a1 + 1800); sub_1000262BC(&v17, 6.0, 4.0); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v11 + 184LL))(v11, &v17); v12 = *(_QWORD *)(a1 + 1832); v13 = 0.0; } else { PlayerObject::updatePlayerShipFrame(a1, (unsigned int)(v10[182] - v10[183])); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 1800) + 160LL))(*(_QWORD *)(a1 + 1800), 0.55); v15 = *(_QWORD *)(a1 + 1800); sub_1000262BC(&v17, 0.0, 5.0); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v15 + 184LL))(v15, &v17); v12 = *(_QWORD *)(a1 + 1832); v13 = -5.0; } sub_1000262BC(&v17, 0.0, v13); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v12 + 184LL))(v12, &v17); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1832) + 344LL))(*(_QWORD *)(a1 + 1832), 1); PlayerObject::updatePlayerGlow(a1); if ( (*(_BYTE *)(a1 + 1787) & 1) == 0 ) { 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; if ( (a3 & 1) == 0 ) PlayerObject::spawnPortalCircle(a1, 16711935); PlayerObject::activateStreak(a1); GJActionManager::stopInternalAction(*(_QWORD *)(a1 + 3032), 6); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 128LL))(a1, *(float *)(a1 + 2472)); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 144LL))(a1, *(float *)(a1 + 2472)); v16 = *(_QWORD *)(a1 + 1912); if ( v16 && (*(_BYTE *)(a1 + 2832) & 1) == 0 && (*(_BYTE *)(a1 + 1787) & 1) == 0 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 344LL))(v16, 1); } else { PlayerObject::resetPlayerIcon(a1); } if ( a2 ) { PlayerObject::updatePlayerArt(a1, v14); sub_1002C28E0(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source