// // sub_1004864C0 from 0x1004864c0 to 0x100486574 (180 bytes) // // 1 xrefs: // > sub_1004863FC @ 0x100486468 // // 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:05:49 +0000 // __int64 __fastcall sub_1004864C0(__int64 a1) { __int64 result; // x0 __int64 v3; // x20 __int64 v4; // x0 __int64 v5; // x20 _DWORD *v6; // x0 char *v7; // x0 std::string __str; // [xsp+8h] [xbp-28h] BYREF result = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(result + 176) == 1 ) { *(_BYTE *)(a1 + 416) = 0; byte_100A109D8 = 0; } else { *(_DWORD *)(GameManager::sharedState() + 708) = 9; v3 = *(_QWORD *)(a1 + 424); v4 = LocalLevelManager::sharedState(); LocalLevelManager::getMainLevelString( v4, *(_DWORD *)(*(_QWORD *)(a1 + 424) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 424) + 332LL), &__str); std::string::operator=((std::string *)(v3 + 392), &__str); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); v5 = cocos2d::CCDirector::sharedDirector(); v6 = PlayLayer::scene(*(_QWORD *)(a1 + 424), 0); v7 = cocos2d::CCTransitionFade::create_1((__int64)v6, 0.5); return cocos2d::CCDirector::replaceScene(v5, v7); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source