// // PlayLayer::loadFromCheckpoint from 0x70f188 to 0x70fb20 (2456 bytes) // // 3 xrefs: // > PlayLayer::loadLastCheckpoint @ 0x70fb54 // > PlayLayer::resetLevel @ 0x711c58 // > @ 0x6a810 // // 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:12 +0000 // __int64 __fastcall PlayLayer::loadFromCheckpoint(PlayLayer *this, CheckpointObject *a2) { __int64 v4; // x21 __int64 *v5; // x21 __int64 *i; // x24 __int64 v7; // x20 __int64 v8; // x19 __int64 v9; // x19 char isJumpHeldForPlayer; // w0 unsigned int v11; // w19 cocos2d::CCArray *v12; // x20 unsigned int v13; // w1 GradientTriggerObject *v14; // x0 __int64 v15; // x0 unsigned int *v16; // x1 int **v17; // x19 int **j; // x21 int *v19; // x20 int k; // w19 __int64 Group; // x0 unsigned int *v22; // x0 GameObject **v23; // x20 GameObject **v24; // x21 GameObject *v25; // x0 int ActiveMode; // w0 cocos2d::CCDirector *v27; // x0 __int64 v28; // x0 FMODAudioEngine *v30; // x0 __int64 v31; // x0 FMODAudioEngine *v32; // x0 float v33; // s0 __int64 v34; // x0 FMODAudioEngine *v35; // x0 __int64 v36; // x0 FMODAudioEngine *v37; // x0 FMODAudioEngine *isAnyPersistentPlaying; // x0 FMOD::ChannelControl **v39; // x0 __int64 v40; // x19 char v41; // w0 int v42; // [xsp+64h] [xbp+64h] BYREF if ( !a2 ) return _stack_chk_guard; GJGameState::operator=((__int64)this + 424, (__int64)a2 + 320); v4 = *((_QWORD *)this + 1552); if ( v4 ) { if ( (CheckpointObject *)(v4 + 408) != (CheckpointObject *)((char *)a2 + 1832) ) { *(_DWORD *)(v4 + 440) = *((_DWORD *)a2 + 466); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__assign_multi,void *> *>>( (_QWORD *)(v4 + 408), *((__int64 **)a2 + 231), nullptr); } if ( (CheckpointObject *)(v4 + 448) != (CheckpointObject *)((char *)a2 + 1872) ) { *(_DWORD *)(v4 + 480) = *((_DWORD *)a2 + 476); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__assign_multi,void *> *>>( (_QWORD *)(v4 + 448), *((__int64 **)a2 + 236), nullptr); } *(_QWORD *)(v4 + 488) = *((_QWORD *)a2 + 239); *(_QWORD *)(v4 + 496) = *((_QWORD *)a2 + 240); *(_QWORD *)(v4 + 504) = *((_QWORD *)a2 + 241); *(_DWORD *)(v4 + 512) = *((_DWORD *)a2 + 484); *(_DWORD *)(v4 + 516) = *((_DWORD *)a2 + 485); *(_WORD *)(v4 + 520) = *((_WORD *)a2 + 972); *(_BYTE *)(v4 + 522) = *((_BYTE *)a2 + 1946); *(_DWORD *)(v4 + 524) = *((_DWORD *)a2 + 487); *(_DWORD *)(v4 + 528) = *((_DWORD *)a2 + 488); *(_BYTE *)(v4 + 532) = *((_BYTE *)a2 + 1956); *(_DWORD *)(v4 + 536) = *((_DWORD *)a2 + 490); *(_DWORD *)(v4 + 540) = *((_DWORD *)a2 + 491); *(_DWORD *)(v4 + 544) = *((_DWORD *)a2 + 492); *(_DWORD *)(v4 + 548) = *((_DWORD *)a2 + 493); *(_DWORD *)(v4 + 552) = *((_DWORD *)a2 + 494); *(_DWORD *)(v4 + 556) = *((_DWORD *)a2 + 495); *(_DWORD *)(v4 + 560) = *((_DWORD *)a2 + 496); *(_DWORD *)(v4 + 564) = *((_DWORD *)a2 + 497); *(_DWORD *)(v4 + 568) = *((_DWORD *)a2 + 498); *(_BYTE *)(v4 + 572) = *((_BYTE *)a2 + 1996); *(_DWORD *)(v4 + 576) = *((_DWORD *)a2 + 500); *(_DWORD *)(v4 + 580) = *((_DWORD *)a2 + 501); *(_DWORD *)(v4 + 584) = *((_DWORD *)a2 + 502); *(_BYTE *)(v4 + 588) = *((_BYTE *)a2 + 2012); *(_BYTE *)(v4 + 589) = *((_BYTE *)a2 + 2013); *(_BYTE *)(v4 + 590) = *((_BYTE *)a2 + 2014); *(_DWORD *)(v4 + 592) = *((_DWORD *)a2 + 504); cocos2d::CCPoint::operator=(v4 + 596, (char *)a2 + 2020); *(_BYTE *)(v4 + 604) = *((_BYTE *)a2 + 2028); cocos2d::CCPoint::operator=(v4 + 608, (char *)a2 + 2032); *(_QWORD *)(v4 + 616) = *((_QWORD *)a2 + 255); *(_DWORD *)(v4 + 624) = *((_DWORD *)a2 + 512); *(_DWORD *)(v4 + 628) = *((_DWORD *)a2 + 513); *(_DWORD *)(v4 + 632) = *((_DWORD *)a2 + 514); *(_BYTE *)(v4 + 636) = *((_BYTE *)a2 + 2060); *(_BYTE *)(v4 + 637) = *((_BYTE *)a2 + 2061); *(_BYTE *)(v4 + 638) = *((_BYTE *)a2 + 2062); *(_BYTE *)(v4 + 639) = *((_BYTE *)a2 + 2063); *(_DWORD *)(v4 + 640) = *((_DWORD *)a2 + 516); *(_DWORD *)(v4 + 644) = *((_DWORD *)a2 + 517); *(_DWORD *)(v4 + 648) = *((_DWORD *)a2 + 518); *(_DWORD *)(v4 + 652) = *((_DWORD *)a2 + 519); *(_DWORD *)(v4 + 656) = *((_DWORD *)a2 + 520); *(_DWORD *)(v4 + 660) = *((_DWORD *)a2 + 521); *(_DWORD *)(v4 + 664) = *((_DWORD *)a2 + 522); *(_BYTE *)(v4 + 668) = *((_BYTE *)a2 + 2092); *(_BYTE *)(v4 + 669) = *((_BYTE *)a2 + 2093); *(_BYTE *)(v4 + 670) = *((_BYTE *)a2 + 2094); *(_DWORD *)(v4 + 672) = *((_DWORD *)a2 + 524); cocos2d::CCPoint::operator=(v4 + 676, (char *)a2 + 2100); *(_BYTE *)(v4 + 684) = *((_BYTE *)a2 + 2108); cocos2d::CCPoint::operator=(v4 + 688, (char *)a2 + 2112); *(_DWORD *)(v4 + 696) = *((_DWORD *)a2 + 530); *(_DWORD *)(v4 + 700) = *((_DWORD *)a2 + 531); *(_DWORD *)(v4 + 704) = *((_DWORD *)a2 + 532); *(_DWORD *)(v4 + 708) = *((_DWORD *)a2 + 533); *(_DWORD *)(v4 + 712) = *((_DWORD *)a2 + 534); *(_DWORD *)(v4 + 716) = *((_DWORD *)a2 + 535); *(_BYTE *)(v4 + 720) = *((_BYTE *)a2 + 2144); *(_DWORD *)(v4 + 724) = *((_DWORD *)a2 + 537); *(_DWORD *)(v4 + 728) = *((_DWORD *)a2 + 538); *(_BYTE *)(v4 + 732) = *((_BYTE *)a2 + 2156); *(_DWORD *)(v4 + 736) = *((_DWORD *)a2 + 540); *(_DWORD *)(v4 + 740) = *((_DWORD *)a2 + 541); *(_DWORD *)(v4 + 744) = *((_DWORD *)a2 + 542); *(_DWORD *)(v4 + 748) = *((_DWORD *)a2 + 543); *(_DWORD *)(v4 + 752) = *((_DWORD *)a2 + 544); *(_DWORD *)(v4 + 756) = *((_DWORD *)a2 + 545); *(_DWORD *)(v4 + 760) = *((_DWORD *)a2 + 546); *(_DWORD *)(v4 + 764) = *((_DWORD *)a2 + 547); *(_BYTE *)(v4 + 768) = *((_BYTE *)a2 + 2192); *(_BYTE *)(v4 + 769) = *((_BYTE *)a2 + 2193); *(_BYTE *)(v4 + 770) = *((_BYTE *)a2 + 2194); *(_BYTE *)(v4 + 771) = *((_BYTE *)a2 + 2195); *(_DWORD *)(v4 + 772) = *((_DWORD *)a2 + 549); *(_DWORD *)(v4 + 776) = *((_DWORD *)a2 + 550); *(_BYTE *)(v4 + 780) = *((_BYTE *)a2 + 2204); *(_BYTE *)(v4 + 781) = *((_BYTE *)a2 + 2205); *(_BYTE *)(v4 + 782) = *((_BYTE *)a2 + 2206); *(_BYTE *)(v4 + 783) = *((_BYTE *)a2 + 2207); *(_DWORD *)(v4 + 784) = *((_DWORD *)a2 + 552); *(_DWORD *)(v4 + 788) = *((_DWORD *)a2 + 553); *(_DWORD *)(v4 + 792) = *((_DWORD *)a2 + 554); *(_DWORD *)(v4 + 796) = *((_DWORD *)a2 + 555); *(_DWORD *)(v4 + 800) = *((_DWORD *)a2 + 556); *(_BYTE *)(v4 + 804) = *((_BYTE *)a2 + 2228); *(_BYTE *)(v4 + 805) = *((_BYTE *)a2 + 2229); *(_WORD *)(v4 + 806) = *((_WORD *)a2 + 1115); *(_BYTE *)(v4 + 808) = *((_BYTE *)a2 + 2232); cocos2d::CCPoint::operator=(v4 + 812, (char *)a2 + 2236); cocos2d::CCPoint::operator=(v4 + 820, (char *)a2 + 2244); *(_DWORD *)(v4 + 828) = *((_DWORD *)a2 + 563); *(_DWORD *)(v4 + 832) = *((_DWORD *)a2 + 564); *(_BYTE *)(v4 + 836) = *((_BYTE *)a2 + 2260); *(_DWORD *)(v4 + 840) = *((_DWORD *)a2 + 566); cocos2d::CCPoint::operator=(v4 + 844, (char *)a2 + 2268); cocos2d::CCPoint::operator=(v4 + 852, (char *)a2 + 2276); *(_DWORD *)(v4 + 860) = *((_DWORD *)a2 + 571); *(_DWORD *)(v4 + 864) = *((_DWORD *)a2 + 572); *(_DWORD *)(v4 + 868) = *((_DWORD *)a2 + 573); *(_DWORD *)(v4 + 872) = *((_DWORD *)a2 + 574); *(_DWORD *)(v4 + 876) = *((_DWORD *)a2 + 575); *(_DWORD *)(v4 + 880) = *((_DWORD *)a2 + 576); *(_DWORD *)(v4 + 884) = *((_DWORD *)a2 + 577); *(_DWORD *)(v4 + 888) = *((_DWORD *)a2 + 578); *(_BYTE *)(v4 + 892) = *((_BYTE *)a2 + 2316); *(_BYTE *)(v4 + 893) = *((_BYTE *)a2 + 2317); *(_DWORD *)(v4 + 896) = *((_DWORD *)a2 + 580); *(_BYTE *)(v4 + 900) = *((_BYTE *)a2 + 2324); *(_DWORD *)(v4 + 904) = *((_DWORD *)a2 + 582); *(_DWORD *)(v4 + 908) = *((_DWORD *)a2 + 583); cocos2d::CCPoint::operator=(v4 + 912, (char *)a2 + 2336); cocos2d::CCPoint::operator=(v4 + 920, (char *)a2 + 2344); *(_DWORD *)(v4 + 928) = *((_DWORD *)a2 + 588); *(_DWORD *)(v4 + 932) = *((_DWORD *)a2 + 589); *(_BYTE *)(v4 + 936) = *((_BYTE *)a2 + 2360); *(_BYTE *)(v4 + 937) = *((_BYTE *)a2 + 2361); *(_DWORD *)(v4 + 940) = *((_DWORD *)a2 + 591); *(_DWORD *)(v4 + 944) = *((_DWORD *)a2 + 592); cocos2d::CCPoint::operator=(v4 + 948, (char *)a2 + 2372); cocos2d::CCPoint::operator=(v4 + 956, (char *)a2 + 2380); *(_BYTE *)(v4 + 964) = *((_BYTE *)a2 + 2388); *(_DWORD *)(v4 + 968) = *((_DWORD *)a2 + 598); cocos2d::CCPoint::operator=(v4 + 972, (char *)a2 + 2396); *(_DWORD *)(v4 + 980) = *((_DWORD *)a2 + 601); *(_BYTE *)(v4 + 984) = *((_BYTE *)a2 + 2408); *(_DWORD *)(v4 + 988) = *((_DWORD *)a2 + 603); *(_WORD *)(v4 + 992) = *((_WORD *)a2 + 1208); *(_BYTE *)(v4 + 994) = *((_BYTE *)a2 + 2418); *(_DWORD *)(v4 + 996) = *((_DWORD *)a2 + 605); *(_DWORD *)(v4 + 1000) = *((_DWORD *)a2 + 606); *(_DWORD *)(v4 + 1004) = *((_DWORD *)a2 + 607); *(_DWORD *)(v4 + 1008) = *((_DWORD *)a2 + 608); *(_DWORD *)(v4 + 1012) = *((_DWORD *)a2 + 609); *(_BYTE *)(v4 + 1016) = *((_BYTE *)a2 + 2440); *(_DWORD *)(v4 + 1020) = *((_DWORD *)a2 + 611); *(_DWORD *)(v4 + 1024) = *((_DWORD *)a2 + 612); *(_DWORD *)(v4 + 1028) = *((_DWORD *)a2 + 613); *(_DWORD *)(v4 + 1032) = *((_DWORD *)a2 + 614); *(_DWORD *)(v4 + 1036) = *((_DWORD *)a2 + 615); *(_DWORD *)(v4 + 1040) = *((_DWORD *)a2 + 616); *(_DWORD *)(v4 + 1044) = *((_DWORD *)a2 + 617); *(_QWORD *)(v4 + 1048) = *((_QWORD *)a2 + 309); *(_QWORD *)(v4 + 1056) = *((_QWORD *)a2 + 310); *(_BYTE *)(v4 + 1064) = *((_BYTE *)a2 + 2488); *(_DWORD *)(v4 + 1068) = *((_DWORD *)a2 + 623); *(_DWORD *)(v4 + 1072) = *((_DWORD *)a2 + 624); *(_BYTE *)(v4 + 1076) = *((_BYTE *)a2 + 2500); *(_BYTE *)(v4 + 1077) = *((_BYTE *)a2 + 2501); *(_BYTE *)(v4 + 1078) = *((_BYTE *)a2 + 2502); } if ( !*((_BYTE *)this + 12544) || *((_BYTE *)this + 12545) ) { if ( *((_BYTE *)this + 12238) ) { v34 = FMODAudioEngine::sharedEngine((FMODAudioEngine *)*((unsigned __int8 *)this + 12238)); v35 = (FMODAudioEngine *)FMODAudioEngine::pauseAllMusic(v34, 0); v36 = FMODAudioEngine::sharedEngine(v35); FMODAudioEngine::loadAudioState(v36, (__int64)a2 + 2504); v32 = (FMODAudioEngine *)*((unsigned __int8 *)this + 12238); if ( !*((_BYTE *)this + 12238) ) goto LABEL_44; } else { v30 = (FMODAudioEngine *)GJBaseGameLayer::pauseAudio(this); v31 = FMODAudioEngine::sharedEngine(v30); FMODAudioEngine::loadAudioState(v31, (__int64)a2 + 2504); v32 = (FMODAudioEngine *)*((unsigned __int8 *)this + 12238); if ( !*((_BYTE *)this + 12238) ) { LABEL_44: v33 = *((double *)this + 116); GJBaseGameLayer::processActivatedAudioTriggers(this, v33); *((_BYTE *)this + 14880) = 0; *((_BYTE *)this + 13806) = 1; goto LABEL_10; } } v37 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v32); isAnyPersistentPlaying = (FMODAudioEngine *)(unsigned __int8)FMODAudioEngine::isAnyPersistentPlaying(v37); if ( !(_BYTE)isAnyPersistentPlaying ) { v39 = (FMOD::ChannelControl **)FMODAudioEngine::sharedEngine(isAnyPersistentPlaying); FMODAudioEngine::fadeInBackgroundMusic(v39, 0.1); } goto LABEL_44; } LABEL_10: v5 = *((__int64 **)this + 1565); for ( i = *((__int64 **)this + 1566); i != v5; ++v5 ) { v7 = *v5; v42 = *(_DWORD *)(*v5 + 916); v8 = std::unordered_map::operator[]((__int64)a2 + 3832, &v42); if ( v7 + 1864 != v8 ) { *(_DWORD *)(v7 + 1896) = *(_DWORD *)(v8 + 32); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__assign_multi,void *> *>>( (_QWORD *)(v7 + 1864), *(__int64 **)(v8 + 16), nullptr); } if ( v7 + 1904 != v8 + 40 ) { *(_DWORD *)(v7 + 1936) = *(_DWORD *)(v8 + 72); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__assign_multi,void *> *>>( (_QWORD *)(v7 + 1904), *(__int64 **)(v8 + 56), nullptr); } } if ( *((_BYTE *)this + 1010) ) { *((_BYTE *)this + 1010) = 0; GJBaseGameLayer::toggleDualMode(this, nullptr, 1, nullptr, 1); } v9 = *((_QWORD *)a2 + 390); isJumpHeldForPlayer = PlayLayer::isJumpHeldForPlayer(this, 1u); if ( isJumpHeldForPlayer ) isJumpHeldForPlayer = *(_BYTE *)(*((_QWORD *)a2 + 390) + 1049LL) ^ 1; *(_BYTE *)(v9 + 384) = isJumpHeldForPlayer; PlayerObject::loadFromCheckpoint(*((PlayerObject **)this + 407), *((PlayerCheckpoint **)a2 + 390)); if ( *((_BYTE *)this + 1010) ) { v40 = *((_QWORD *)a2 + 391); v41 = PlayLayer::isJumpHeldForPlayer(this, 0); if ( v41 ) v41 = *(_BYTE *)(*((_QWORD *)a2 + 391) + 1049LL) ^ 1; *(_BYTE *)(v40 + 384) = v41; PlayerObject::loadFromCheckpoint(*((PlayerObject **)this + 408), *((PlayerCheckpoint **)a2 + 391)); if ( !(unsigned __int8)PlayerObject::isFlying(*((PlayerObject **)this + 407)) && !*(_BYTE *)(*((_QWORD *)this + 407) + 2419LL) ) { GJBaseGameLayer::enterDualMode(this, *((GameObject **)this + 122), 1); } } v11 = 0; GJEffectManager::loadFromState(*((_QWORD *)this + 269), (char *)a2 + 3224); v12 = *((cocos2d::CCArray **)a2 + 478); if ( v12 ) { while ( v11 < (unsigned int)cocos2d::CCArray::count(v12) ) { v13 = v11++; v14 = (GradientTriggerObject *)cocos2d::CCArray::objectAtIndex(v12, v13); GJBaseGameLayer::triggerGradientCommand(this, v14); } } PlayLayer::processLoadedMoveActions(this); PlayLayer::loadDynamicSaveObjects((__int64)this, (__int64 ***)a2 + 394); PlayLayer::loadActiveSaveObjects((__int64)this, (__int64 *)a2 + 397, (unsigned int **)a2 + 400); (*(void (__fastcall **)(PlayLayer *, _QWORD))(*(_QWORD *)this + 1384LL))(this, *((unsigned __int8 *)a2 + 3136) ^ 1u); GJBaseGameLayer::togglePlayerStreakBlend(this, *((_BYTE *)this + 812), 1); v15 = *((_QWORD *)this + 1788); if ( v15 ) { v16 = *(unsigned int **)(v15 + 56); if ( *v16 ) { v17 = *((int ***)v16 + 2); for ( j = &v17[*v16 - 1]; j >= v17; ++v17 ) { v19 = *v17; if ( !*v17 ) break; if ( (unsigned __int8)GJEffectManager::hasBeenTriggered(*((GJEffectManager **)this + 269), v19[229], 0) ) { GameObject::disableObject((GameObject *)v19); if ( (*(unsigned int (__fastcall **)(int *))(*(_QWORD *)v19 + 1800LL))(v19) == 31 ) { GJBaseGameLayer::logPickupItem(this, (EffectGameObject *)v19); if ( !(unsigned __int8)GJBaseGameLayer::hasUniqueCoin(this, (EffectGameObject *)v19) ) GJBaseGameLayer::pickupItem(this, (EffectGameObject *)v19); } } } } } for ( k = 0; k != 10000; ++k ) { LABEL_33: if ( !(unsigned __int8)GJEffectManager::isGroupEnabled(*((GJEffectManager **)this + 269), k) ) { Group = GJBaseGameLayer::getGroup(this, k); if ( Group ) { v22 = *(unsigned int **)(Group + 56); if ( *v22 ) { v23 = *((GameObject ***)v22 + 2); v24 = &v23[*v22 - 1]; if ( v23 <= v24 ) { while ( 1 ) { v25 = *v23; if ( !*v23 ) break; ++v23; GameObject::groupWasDisabled(v25); if ( v24 < v23 ) { if ( ++k != 10000 ) goto LABEL_33; goto LABEL_40; } } } } } } } LABEL_40: ActiveMode = PlayerObject::getActiveMode(*((PlayerObject **)this + 407)); GJBaseGameLayer::updateDualGround(this, *((PlayerObject **)this + 407), ActiveMode, 1, 0.0); v27 = (cocos2d::CCDirector *)*((unsigned int *)this + 204); *((_DWORD *)this + 206) = (_DWORD)v27; v28 = cocos2d::CCDirector::sharedDirector(v27); *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v28 + 128LL))(v28) + 56) = *((_DWORD *)this + 206); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source