// // LevelCell::onClick from 0x60b520 to 0x60b6d4 (436 bytes) // // 8 xrefs: // > @ 0xc4f08 // > LevelCell::loadLocalLevelCell @ 0x60f3ec // > LevelCell::loadCustomLevelCell @ 0x60ff34 // > LevelCell::loadCustomLevelCell @ 0x611d8c // > LevelCell::loadCustomLevelCell @ 0x611e64 // > LevelCell::loadCustomLevelCell @ 0x611f40 // > LevelCell::loadCustomLevelCell @ 0x612004 // > @ 0x122ed50 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void LevelCell::onClick(LevelCell *a1, cocos2d::CCObject *a2) { FLAlertLayer *v3; // x20 void *v4; // x0 GameLevelManager *v5; // x0 unsigned int v6; // w0 TableViewCellDelegate *m_cellDelegate; // x0 unsigned int *v8; // x2 int v9; // w1 __int64 v11; // [xsp+40h] [xbp+40h] BYREF if ( a1->m_listType == Level4 && a2->getTag(a2) ) { v6 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) - 1; if ( v6 <= 3 ) { if ( dword_EBE190[v6] ) { m_cellDelegate = a1->m_tableView->m_cellDelegate; if ( m_cellDelegate ) ((void (__fastcall *)(TableViewCellDelegate *, LevelCell *, _QWORD))m_cellDelegate->cellPerformedAction)( m_cellDelegate, a1, (unsigned int)a1->m_listType); } } } else if ( a1->m_level->m_gameVersion <= 22 ) { v5 = GameLevelManager::sharedState(); GameLevelManager::gotoLevelPage(v5, a1->m_level); } else { sub_D153B8((int)&v11, "Please update your application to download this level."); v3 = FLAlertLayer::create(0, (__int64)"Unavailable", (__int64)&v11); v4 = (void *)(v11 - 24); if ( (__int64 *)(v11 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)(v11 - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *(_DWORD *)(v11 - 8); *(_DWORD *)(v11 - 8) = v9 - 1; } if ( v9 <= 0 ) operator delete(v4); } v3->show(v3); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source