// // ThreadOptionsPopup::FLAlert_Clicked from 0xc6bf94 to 0xc6c38c (1016 bytes) // // 3 xrefs: // > `non-virtual thunk to'ThreadOptionsPopup::FLAlert_Clicked @ 0xc6c390 // > @ 0x8bca8 // > @ 0x14f0520 // // 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 13:05:28 +0000 // __int64 __fastcall ThreadOptionsPopup::FLAlert_Clicked(ThreadOptionsPopup *this, FLAlertLayer *a2, char a3) { GameLevelManager *v5; // x0 GameLevelManager *v6; // x0 GameLevelManager *v7; // x0 GameLevelManager *v8; // x0 cocos2d::CCObject *v9; // x23 __int64 v10; // x2 unsigned int v11; // w22 cocos2d::CCString *v12; // x0 const char *CString; // x0 size_t v14; // x0 GameLevelManager *v15; // x0 int v16; // w21 unsigned __int8 *v17; // x0 int v18; // w22 cocos2d::CCObject *v19; // x24 int v20; // w22 unsigned int v21; // w23 const char *v22; // x1 size_t v23; // x0 GameLevelManager *v24; // x0 int v25; // w21 int v26; // w0 cocos2d::CCObject *v27; // x23 unsigned int v28; // w22 GameLevelManager *updated; // x0 int v30; // w21 cocos2d::CCObject *v31; // x22 unsigned int v32; // w21 GameLevelManager *v33; // x0 int v34; // w21 cocos2d::CCObject *v35; // x22 unsigned int v36; // w21 GameLevelManager *v37; // x0 int v38; // w21 char *v39; // [xsp+40h] [xbp+40h] char *v41; // [xsp+48h] [xbp+48h] __int64 v42; // [xsp+50h] [xbp+50h] BYREF __int64 v43; // [xsp+58h] [xbp+58h] void *v44; // [xsp+60h] [xbp+60h] if ( a3 ) { v5 = (GameLevelManager *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2); if ( (_DWORD)v5 == 1 ) { v27 = (cocos2d::CCObject *)GameLevelManager::sharedState(v5); v28 = *(_DWORD *)(*((_QWORD *)this + 129) + 56LL); v42 = 0; v43 = 0; v44 = nullptr; std::string::__init(&v42, &byte_11B8890, 0); updated = (GameLevelManager *)GameLevelManager::updateThread(v27, (char *)v28, 1, (char *)&v42); v30 = (unsigned __int8)updated; if ( (v42 & 1) != 0 ) { operator delete(v44); if ( !v30 ) return _stack_chk_guard; } else if ( !(_BYTE)updated ) { return _stack_chk_guard; } *(_QWORD *)(GameLevelManager::sharedState(updated) + 1264) = (char *)this + 1016; *((_DWORD *)this + 262) = 1; return _stack_chk_guard; } v6 = (GameLevelManager *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2); if ( (_DWORD)v6 == 13 ) { v31 = (cocos2d::CCObject *)GameLevelManager::sharedState(v6); v32 = *(_DWORD *)(*((_QWORD *)this + 129) + 56LL); v42 = 0; v43 = 0; v44 = nullptr; std::string::__init(&v42, &byte_11B8890, 0); v33 = (GameLevelManager *)GameLevelManager::updateThread(v31, (char *)v32, 18, (char *)&v42); v34 = (unsigned __int8)v33; if ( (v42 & 1) != 0 ) { operator delete(v44); if ( !v34 ) return _stack_chk_guard; } else if ( !(_BYTE)v33 ) { return _stack_chk_guard; } *(_QWORD *)(GameLevelManager::sharedState(v33) + 1264) = (char *)this + 1016; *((_DWORD *)this + 262) = 18; return _stack_chk_guard; } if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 11 ) { v17 = *((unsigned __int8 **)this + 129); v18 = v17[272]; v19 = (cocos2d::CCObject *)GameLevelManager::sharedState((GameLevelManager *)v17); v20 = v18 ^ 1; v21 = *(_DWORD *)(*((_QWORD *)this + 129) + 56LL); if ( v20 ) v22 = "lock"; else v22 = "unlock"; v41 = (char *)v22; v42 = 0; v43 = 0; v44 = nullptr; v23 = strlen(v22); std::string::__init(&v42, v41, v23); v24 = (GameLevelManager *)GameLevelManager::adminThreadAction(v19, (char *)v21, (unsigned __int8 *)&v42, 0); v25 = (unsigned __int8)v24; if ( (v42 & 1) != 0 ) operator delete(v44); if ( v25 ) { *(_QWORD *)(GameLevelManager::sharedState(v24) + 1264) = (char *)this + 1016; if ( v20 ) v26 = 101; else v26 = 102; *((_DWORD *)this + 262) = v26; } } else { v7 = (GameLevelManager *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2); if ( (_DWORD)v7 == 3 ) { v35 = (cocos2d::CCObject *)GameLevelManager::sharedState(v7); v36 = *(_DWORD *)(*((_QWORD *)this + 129) + 56LL); v42 = 0; v43 = 0; v44 = nullptr; std::string::__init(&v42, &byte_11B8890, 0); v37 = (GameLevelManager *)GameLevelManager::updateThread(v35, (char *)v36, 5, (char *)&v42); v38 = (unsigned __int8)v37; if ( (v42 & 1) != 0 ) operator delete(v44); if ( v38 ) { *(_QWORD *)(GameLevelManager::sharedState(v37) + 1264) = (char *)this + 1016; *((_DWORD *)this + 262) = 5; } } else { v8 = (GameLevelManager *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2); if ( (_DWORD)v8 == 9 ) { v9 = (cocos2d::CCObject *)GameLevelManager::sharedState(v8); v10 = *((_QWORD *)this + 129); v11 = *(_DWORD *)(v10 + 56); v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)*(unsigned int *)(v10 + 60)); CString = (const char *)cocos2d::CCString::getCString(v12); v42 = 0; v39 = (char *)CString; v43 = 0; v44 = nullptr; v14 = strlen(CString); std::string::__init(&v42, v39, v14); v15 = (GameLevelManager *)GameLevelManager::updateThread(v9, (char *)v11, 11, (char *)&v42); v16 = (unsigned __int8)v15; if ( (v42 & 1) != 0 ) operator delete(v44); if ( v16 ) { *(_QWORD *)(GameLevelManager::sharedState(v15) + 1264) = (char *)this + 1016; *((_DWORD *)this + 262) = 11; } } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source