// // LevelInfoLayer::onRate from 0x7e6e68 to 0x7e6fa0 (312 bytes) // // 2 xrefs: // > LevelInfoLayer::FLAlert_Clicked @ 0x7e84b4 // > @ 0xc1a38 // // 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:54:29 +0000 // __int64 __fastcall LevelInfoLayer::onRate(LevelInfoLayer *this, cocos2d::CCObject *a2) { GameManager *v3; // x0 GameManager *v5; // x0 __int64 v6; // x20 __int64 *v7; // x0 __int64 v8; // x2 __int64 v9[2]; // [xsp+30h] [xbp+30h] BYREF void *v10; // [xsp+40h] [xbp+40h] v3 = (GameManager *)*((unsigned __int8 *)this + 488); if ( !(_DWORD)v3 ) { v5 = (GameManager *)*(unsigned __int8 *)(GameManager::sharedState(v3) + 932); if ( (_DWORD)v5 ) { v7 = (__int64 *)RateLevelLayer::create( (RateLevelLayer *)(unsigned int)(*(_DWORD *)(*((_QWORD *)this + 63) + 328LL) - *(_DWORD *)(*((_QWORD *)this + 63) + 332LL)), *((_QWORD *)this + 63)); v8 = *v7; v7[86] = (__int64)this + 424; (*(void (**)(void))(v8 + 1312))(); } else { *(_BYTE *)(GameManager::sharedState(v5) + 932) = 1; v9[0] = 0; v9[1] = 0; v10 = nullptr; std::string::__init( v9, "Please rate the difficulty as fairly as possible. \n" "(Demon and Auto levels are manually verified before accepted)", 0x88u); v6 = FLAlertLayer::create( (__int64)this + 440, (cocos2d::CCLabelBMFont *)"Rate Difficulty", (char *)v9, (ButtonSprite *)"OK", nullptr, 300.0); if ( (v9[0] & 1) != 0 ) operator delete(v10); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 72LL))(v6, 7); (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source