// // PlayerObject::loadFromCheckpoint from 0x76b5f0 to 0x76be58 (2152 bytes) // // 3 xrefs: // > PlayLayer::loadFromCheckpoint @ 0x70f7d4 // > PlayLayer::loadFromCheckpoint @ 0x70fac8 // > @ 0xf6058 // // 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:53:11 +0000 // __int64 __fastcall PlayerObject::loadFromCheckpoint(PlayerObject *this, PlayerCheckpoint *a2) { __int64 v4; // x0 unsigned int *v5; // x1 GameManager *v6; // x0 GJBaseGameLayer *v7; // x21 __int64 v8; // x0 cocos2d::CCObject **v9; // x21 __int64 v10; // x0 char *v11; // x22 cocos2d::CCObject *v12; // x1 GameManager *v13; // x0 GJBaseGameLayer *v14; // x21 __int64 v15; // x0 int v16; // w0 __int64 result; // x0 GameManager *v18; // x0 GJBaseGameLayer *v19; // x21 __int64 v20; // x0 GameManager *v21; // x0 GJBaseGameLayer *v22; // x21 __int64 v23; // x0 GameManager *v24; // x0 GJBaseGameLayer *v25; // x21 __int64 v26; // x0 GameManager *v27; // x0 GJBaseGameLayer *v28; // x21 __int64 v29; // x0 GameManager *v30; // x0 GJBaseGameLayer *v31; // x21 __int64 v32; // x0 *((_BYTE *)this + 1969) = 1; (*(void (__fastcall **)(PlayerObject *, float))(*(_QWORD *)this + 360LL))(this, *((float *)a2 + 131)); *((_BYTE *)this + 1368) = *((_BYTE *)a2 + 528); *((_BYTE *)this + 1369) = *((_BYTE *)a2 + 529); *((_BYTE *)this + 1370) = *((_BYTE *)a2 + 530); *((_QWORD *)this + 172) = *((_QWORD *)a2 + 67); *((_QWORD *)this + 178) = *((_QWORD *)a2 + 68); *((_BYTE *)this + 1432) = *((_BYTE *)a2 + 552); *((_BYTE *)this + 2777) = *((_BYTE *)a2 + 553); *((_DWORD *)this + 370) = *((_DWORD *)a2 + 139); *((_DWORD *)this + 371) = *((_DWORD *)a2 + 140); *((_DWORD *)this + 372) = *((_DWORD *)a2 + 141); *((_DWORD *)this + 373) = *((_DWORD *)a2 + 142); *((_DWORD *)this + 374) = *((_DWORD *)a2 + 143); *((_DWORD *)this + 375) = *((_DWORD *)a2 + 144); *((_QWORD *)this + 188) = *((_QWORD *)a2 + 73); *((_QWORD *)this + 189) = *((_QWORD *)a2 + 74); *((_DWORD *)this + 380) = *((_DWORD *)a2 + 150); *((_BYTE *)this + 1524) = *((_BYTE *)a2 + 604); *((_BYTE *)this + 1525) = *((_BYTE *)a2 + 605); *((_QWORD *)this + 191) = *((_QWORD *)a2 + 76); *((_QWORD *)this + 192) = *((_QWORD *)a2 + 77); *((_QWORD *)this + 193) = *((_QWORD *)a2 + 78); *((_QWORD *)this + 194) = *((_QWORD *)a2 + 79); *((_QWORD *)this + 196) = *((_QWORD *)a2 + 80); *((_QWORD *)this + 197) = *((_QWORD *)a2 + 81); *((_QWORD *)this + 198) = *((_QWORD *)a2 + 82); *((_QWORD *)this + 199) = *((_QWORD *)a2 + 83); *((_BYTE *)this + 1600) = *((_BYTE *)a2 + 672); *((_QWORD *)this + 201) = *((_QWORD *)a2 + 85); *((_QWORD *)this + 202) = *((_QWORD *)a2 + 86); *((_BYTE *)this + 1624) = *((_BYTE *)a2 + 696); *((_BYTE *)this + 1640) = *((_BYTE *)a2 + 697); *((_BYTE *)this + 1641) = *((_BYTE *)a2 + 698); *((_QWORD *)this + 206) = *((_QWORD *)a2 + 88); *((_QWORD *)this + 207) = *((_QWORD *)a2 + 89); *((_QWORD *)this + 208) = *((_QWORD *)a2 + 90); *((_DWORD *)this + 418) = *((_DWORD *)a2 + 182); *((_BYTE *)this + 1676) = *((_BYTE *)a2 + 732); *((_DWORD *)this + 422) = *((_DWORD *)a2 + 184); *((_DWORD *)this + 444) = *((_DWORD *)a2 + 185); *((_DWORD *)this + 445) = *((_DWORD *)a2 + 186); *((_BYTE *)this + 1784) = *((_BYTE *)a2 + 748); *((_BYTE *)this + 1785) = *((_BYTE *)a2 + 749); *((_QWORD *)this + 241) = *((_QWORD *)a2 + 94); *((_QWORD *)this + 242) = *((_QWORD *)a2 + 95); *((_QWORD *)this + 243) = *((_QWORD *)a2 + 96); *((_DWORD *)this + 488) = *((_DWORD *)a2 + 194); *((_QWORD *)this + 245) = *((_QWORD *)a2 + 98); *((_BYTE *)this + 1968) = *((_BYTE *)a2 + 792); *((_BYTE *)this + 1970) = *((_BYTE *)a2 + 793); *((_BYTE *)this + 1971) = *((_BYTE *)a2 + 794); *((_BYTE *)this + 1972) = *((_BYTE *)a2 + 795); *((_BYTE *)this + 1976) = *((_BYTE *)a2 + 796); *((_QWORD *)this + 254) = *((_QWORD *)a2 + 100); *((_BYTE *)this + 2040) = *((_BYTE *)a2 + 808); *((_BYTE *)this + 2064) = *((_BYTE *)a2 + 809); std::__hash_table,std::equal_to,std::allocator>::operator=( (__int64)this + 2072, (__int64)a2 + 816); *((_BYTE *)this + 2152) = *((_BYTE *)a2 + 856); *((_DWORD *)this + 564) = *((_DWORD *)a2 + 215); *((_DWORD *)this + 565) = *((_DWORD *)a2 + 216); *((_QWORD *)this + 285) = *((_QWORD *)a2 + 109); *((_QWORD *)this + 286) = *((_QWORD *)a2 + 110); *((_QWORD *)this + 287) = *((_QWORD *)a2 + 111); *((_QWORD *)this + 288) = *((_QWORD *)a2 + 112); *((_BYTE *)this + 2312) = *((_BYTE *)a2 + 904); *((_BYTE *)this + 2313) = *((_BYTE *)a2 + 905); *((_BYTE *)this + 2314) = *((_BYTE *)a2 + 906); *((_BYTE *)this + 2315) = *((_BYTE *)a2 + 907); *((_QWORD *)this + 290) = *((_QWORD *)a2 + 114); *((_QWORD *)this + 291) = *((_QWORD *)a2 + 115); *((_QWORD *)this + 292) = *((_QWORD *)a2 + 116); *((_QWORD *)this + 293) = *((_QWORD *)a2 + 117); *((_BYTE *)this + 2367) = *((_BYTE *)a2 + 944); *((_BYTE *)this + 2368) = *((_BYTE *)a2 + 945); *((_BYTE *)this + 2369) = *((_BYTE *)a2 + 946); *((_BYTE *)this + 2370) = *((_BYTE *)a2 + 947); *((_BYTE *)this + 2371) = *((_BYTE *)a2 + 948); *((_BYTE *)this + 2372) = *((_BYTE *)a2 + 949); *((_BYTE *)this + 2373) = *((_BYTE *)a2 + 950); *((_BYTE *)this + 2374) = *((_BYTE *)a2 + 951); *((_BYTE *)this + 2388) = *((_BYTE *)a2 + 952); *((_QWORD *)this + 299) = *((_QWORD *)a2 + 120); *((_QWORD *)this + 300) = *((_QWORD *)a2 + 121); *((_BYTE *)this + 2416) = *((_BYTE *)a2 + 976); *((_DWORD *)this + 608) = *((_DWORD *)a2 + 245); *((_QWORD *)this + 306) = *((_QWORD *)a2 + 123); *((_DWORD *)this + 614) = *((_DWORD *)a2 + 248); cocos2d::CCPoint::operator=((char *)this + 2480, (char *)a2 + 996); cocos2d::CCPoint::operator=((char *)this + 2488, (char *)a2 + 1004); *((_DWORD *)this + 624) = *((_DWORD *)a2 + 253); *((_BYTE *)this + 2500) = *((_BYTE *)a2 + 1016); *((_QWORD *)this + 313) = *((_QWORD *)a2 + 128); *((_DWORD *)this + 628) = *((_DWORD *)a2 + 258); *((_BYTE *)this + 2516) = *((_BYTE *)a2 + 1036); *((_QWORD *)this + 315) = *((_QWORD *)a2 + 130); *((_BYTE *)this + 2530) = *((_BYTE *)a2 + 1048); *((_BYTE *)this + 2531) = *((_BYTE *)a2 + 1049); cocos2d::CCPoint::operator=((char *)this + 2532, (char *)a2 + 1052); cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)this + 318)); v4 = *((_QWORD *)a2 + 133); if ( v4 ) { v5 = *(unsigned int **)(v4 + 56); if ( *v5 ) { v9 = *((cocos2d::CCObject ***)v5 + 2); v10 = 8LL * *v5 - 8; v11 = (char *)v9 + v10; if ( v9 <= (cocos2d::CCObject **)((char *)v9 + v10) ) { do { v12 = *v9; if ( !*v9 ) break; ++v9; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 318), v12); } while ( v11 >= (char *)v9 ); } } } std::__hash_table,std::equal_to,std::allocator>::operator=( (__int64)this + 2552, (__int64)a2 + 1072); *((_QWORD *)this + 324) = *((_QWORD *)a2 + 139); *((_QWORD *)this + 328) = *((_QWORD *)a2 + 140); *((_DWORD *)this + 661) = *((_DWORD *)a2 + 282); *((_BYTE *)this + 2648) = *((_BYTE *)a2 + 1132); *((_BYTE *)this + 2649) = *((_BYTE *)a2 + 1133); *((_BYTE *)this + 2650) = *((_BYTE *)a2 + 1134); *((_DWORD *)this + 671) = *((_DWORD *)a2 + 284); *((_DWORD *)this + 672) = *((_DWORD *)a2 + 285); *((_DWORD *)this + 673) = *((_DWORD *)a2 + 286); *((_DWORD *)this + 674) = *((_DWORD *)a2 + 287); *((_DWORD *)this + 675) = *((_DWORD *)a2 + 288); *((_DWORD *)this + 676) = *((_DWORD *)a2 + 289); *((_QWORD *)this + 339) = *((_QWORD *)a2 + 145); *((_BYTE *)this + 2720) = *((_BYTE *)a2 + 1168); *((_BYTE *)this + 2721) = *((_BYTE *)a2 + 1169); *((_BYTE *)this + 2722) = *((_BYTE *)a2 + 1170); *((_QWORD *)this + 341) = *((_QWORD *)a2 + 147); *((_BYTE *)this + 2736) = *((_BYTE *)a2 + 1184); *((_DWORD *)this + 685) = *((_DWORD *)a2 + 297); *((_BYTE *)this + 2744) = *((_BYTE *)a2 + 1192); *((_BYTE *)this + 2745) = *((_BYTE *)a2 + 1193); *((_QWORD *)this + 344) = *((_QWORD *)a2 + 150); *((_BYTE *)this + 2760) = *((_BYTE *)a2 + 1208); *((_QWORD *)this + 346) = *((_QWORD *)a2 + 152); *((_BYTE *)this + 2776) = *((_BYTE *)a2 + 1224); *((_DWORD *)this + 695) = *((_DWORD *)a2 + 307); *((_QWORD *)this + 348) = *((_QWORD *)a2 + 154); *((_QWORD *)this + 349) = *((_QWORD *)a2 + 155); *((_QWORD *)this + 350) = *((_QWORD *)a2 + 156); *((_BYTE *)this + 2808) = *((_BYTE *)a2 + 1256); *((_BYTE *)this + 2809) = *((_BYTE *)a2 + 1257); *((_BYTE *)this + 2810) = *((_BYTE *)a2 + 1258); *((_BYTE *)this + 2811) = *((_BYTE *)a2 + 1259); *((_QWORD *)this + 352) = *((_QWORD *)a2 + 158); *((_QWORD *)this + 353) = *((_QWORD *)a2 + 159); *((_DWORD *)this + 709) = *((_DWORD *)a2 + 320); *((_DWORD *)this + 710) = *((_DWORD *)a2 + 321); *((_DWORD *)this + 711) = *((_DWORD *)a2 + 322); *((_DWORD *)this + 712) = *((_DWORD *)a2 + 323); *((_DWORD *)this + 714) = *((_DWORD *)a2 + 324); cocos2d::CCPoint::operator=((char *)this + 2860, (char *)a2 + 1300); *((_BYTE *)this + 2868) = *((_BYTE *)a2 + 1308); if ( (char *)this + 2872 != (char *)a2 + 1312 ) std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__assign_multi,std::__tree_node,void *> *,long>>( (_QWORD **)this + 359, *((_QWORD **)a2 + 164), (_QWORD *)a2 + 165); *((_DWORD *)this + 761) = *((_DWORD *)a2 + 334); PlayerObject::toggleVisibility((__int64)this, *((_BYTE *)a2 + 368) ^ 1); (*(void (__fastcall **)(PlayerObject *, char *))(*(_QWORD *)this + 184LL))(this, (char *)a2 + 316); PlayerObject::flipGravity((__int64)this, *((_BYTE *)a2 + 344), 0); PlayerObject::rotateGameplayOnly(this, *((_BYTE *)a2 + 345)); *((_DWORD *)this + 713) = *((_DWORD *)a2 + 112); PlayerObject::toggleGhostEffect((__int64)this, *((_DWORD *)a2 + 89)); PlayerObject::togglePlayerScale(this, *((_BYTE *)a2 + 360), 0); *((_QWORD *)this + 305) = *((_QWORD *)a2 + 47); cocos2d::CCPoint::operator=((char *)this + 1224, (char *)a2 + 324); *((_QWORD *)this + 264) = *((_QWORD *)a2 + 57); *((_QWORD *)this + 257) = *((_QWORD *)a2 + 58); *((_QWORD *)this + 256) = *((_QWORD *)a2 + 59); *((_DWORD *)this + 670) = *((_DWORD *)a2 + 128); *((_DWORD *)this + 663) = *((_DWORD *)a2 + 121); if ( (char *)this + 2656 != (char *)a2 + 488 ) std::vector::assign((__int64 *)this + 332, *((char **)a2 + 61), *((_QWORD *)a2 + 62)); *((_BYTE *)this + 2409) = *((_BYTE *)a2 + 517); *((_BYTE *)this + 2408) = *((_BYTE *)a2 + 516); *((_DWORD *)this + 603) = *((_DWORD *)a2 + 130); if ( *((_BYTE *)a2 + 369) ) PlayerObject::doReversePlayer(this, 1u); PlayerObject::updateTimeMod(this, *((float *)a2 + 91), 0); if ( *((_BYTE *)a2 + 346) ) { v13 = (GameManager *)GameManager::sharedState((GameManager *)*((unsigned __int8 *)a2 + 346)); v14 = *((GJBaseGameLayer **)v13 + 68); v15 = GameManager::sharedState(v13); GJBaseGameLayer::switchToFlyMode(v14, this, *(GameObject **)(*(_QWORD *)(v15 + 544) + 976LL), 1, 5); } else if ( *((_BYTE *)a2 + 347) ) { v18 = (GameManager *)GameManager::sharedState((GameManager *)*((unsigned __int8 *)a2 + 347)); v19 = *((GJBaseGameLayer **)v18 + 68); v20 = GameManager::sharedState(v18); GJBaseGameLayer::switchToRollMode(v19, this, *(GameObject **)(*(_QWORD *)(v20 + 544) + 976LL), 1); } else if ( *((_BYTE *)a2 + 348) ) { v21 = (GameManager *)GameManager::sharedState((GameManager *)*((unsigned __int8 *)a2 + 348)); v22 = *((GJBaseGameLayer **)v21 + 68); v23 = GameManager::sharedState(v21); GJBaseGameLayer::switchToFlyMode(v22, this, *(GameObject **)(*(_QWORD *)(v23 + 544) + 976LL), 1, 19); } else if ( *((_BYTE *)a2 + 349) ) { v27 = (GameManager *)GameManager::sharedState((GameManager *)*((unsigned __int8 *)a2 + 349)); v28 = *((GJBaseGameLayer **)v27 + 68); v29 = GameManager::sharedState(v27); GJBaseGameLayer::switchToFlyMode(v28, this, *(GameObject **)(*(_QWORD *)(v29 + 544) + 976LL), 1, 41); } else if ( *((_BYTE *)a2 + 350) ) { v24 = (GameManager *)GameManager::sharedState((GameManager *)*((unsigned __int8 *)a2 + 350)); v25 = *((GJBaseGameLayer **)v24 + 68); v26 = GameManager::sharedState(v24); GJBaseGameLayer::switchToFlyMode(v25, this, *(GameObject **)(*(_QWORD *)(v26 + 544) + 976LL), 1, 26); } else if ( *((_BYTE *)a2 + 351) ) { v30 = (GameManager *)GameManager::sharedState((GameManager *)*((unsigned __int8 *)a2 + 351)); v31 = *((GJBaseGameLayer **)v30 + 68); v32 = GameManager::sharedState(v30); GJBaseGameLayer::switchToRobotMode(v31, this, *(GameObject **)(*(_QWORD *)(v32 + 544) + 976LL), 1); } else if ( *((_BYTE *)a2 + 352) ) { v6 = (GameManager *)GameManager::sharedState((GameManager *)*((unsigned __int8 *)a2 + 352)); v7 = *((GJBaseGameLayer **)v6 + 68); v8 = GameManager::sharedState(v6); GJBaseGameLayer::switchToSpiderMode(v7, this, *(GameObject **)(*(_QWORD *)(v8 + 544) + 976LL), 1); } PlayerObject::resetStreak((cocos2d::CCMotionStreak **)this); v16 = *((unsigned __int8 *)a2 + 384); *((_BYTE *)this + 2365) = v16; if ( v16 && *((_BYTE *)a2 + 385) ) { *((_QWORD *)this + 173) = *((_QWORD *)a2 + 49); *((_QWORD *)this + 174) = *((_QWORD *)a2 + 50); *((_QWORD *)this + 175) = *((_QWORD *)a2 + 51); *((_QWORD *)this + 177) = *((_QWORD *)a2 + 53); *((_QWORD *)this + 176) = *((_QWORD *)a2 + 52); PlayerObject::startDashing(this, nullptr); } PlayerObject::setYVelocity((__int64)this, *((double *)a2 + 42)); *((_BYTE *)this + 2425) = *((_BYTE *)a2 + 353); *((_QWORD *)this + 250) = *((_QWORD *)a2 + 55); *((_BYTE *)this + 2528) = *((_BYTE *)a2 + 480); if ( *((_BYTE *)a2 + 432) ) { PlayerObject::releaseAllButtons(this); PlayerObject::setYVelocity((__int64)this, 0.0); *((_BYTE *)this + 2425) = 0; *((_QWORD *)this + 339) = 0; } (*(void (__fastcall **)(PlayerObject *, float))(*(_QWORD *)this + 360LL))(this, *((float *)a2 + 131)); *((_BYTE *)this + 1969) = 0; result = *((unsigned __int8 *)this + 2832); if ( *((_BYTE *)this + 2832) ) return PlayerObject::releaseAllButtons(this); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source