// // ThreadOptionsPopup::threadUpdateFinished from 0x752e44 to 0x753124 (736 bytes) // // 1 xrefs: // > `non-virtual thunk to'ThreadOptionsPopup::threadUpdateFinished @ 0x753170 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:58:52 +0000 // ThreadViewPopup **__fastcall ThreadOptionsPopup::threadUpdateFinished( ThreadViewPopup **this, int a2, ThreadViewPopup *a3) { ThreadViewPopup **v4; // r4 int v5; // r3 int v6; // r0 ThreadViewPopup *v7; // r3 int v8; // r9 const char *v9; // r7 void (__fastcall *v10)(int, cocos2d::CCNode *, int); // r10 size_t v11; // r0 cocos2d::CCNode *v12; // r0 GameLevelManager *v13; // r0 int v14; // r0 ThreadViewPopup *v15; // r3 const char *v16; // r2 ThreadViewPopup *refreshed; // r0 int v18; // r9 void (__fastcall *v19)(int, cocos2d::CCNode *, int); // r10 const char *v20; // r8 size_t v21; // r0 cocos2d::CCNode *v22; // r0 int v23; // r8 int v24; // r9 void (__fastcall *v25)(int, cocos2d::CCNode *, int); // r10 const char *v26; // r7 size_t v27; // r0 cocos2d::CCNode *v28; // r0 cocos2d::CCNotificationCenter *v29; // r0 int v30; // [sp+Ch] [bp-20h] BYREF int v31; // [sp+10h] [bp-1Ch] int v32; // [sp+14h] [bp-18h] int v33; // [sp+18h] [bp-14h] BYREF int v34; // [sp+1Ch] [bp-10h] int v35; // [sp+20h] [bp-Ch] v4 = this; v5 = (int)*(this + 180); if ( a2 != *(_DWORD *)(v5 + 52) || a3 != *(this + 182) ) { this = (ThreadViewPopup **)*(this + 181); if ( this ) return (ThreadViewPopup **)(*((int (__fastcall **)(ThreadViewPopup **))*this + 182))(this); return this; } *(this + 182) = nullptr; if ( a3 == (ThreadViewPopup *)&byte_9[1] ) { *(_BYTE *)(v5 + 136) ^= 1u; LABEL_9: v6 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this); v7 = v4[180]; v8 = *(_DWORD *)(v6 + 220); if ( a3 == (ThreadViewPopup *)&byte_9[1] ) { if ( *((_BYTE *)v7 + 136) ) v9 = "Conversation muted"; else v9 = "Conversation unmuted"; } else if ( *((_BYTE *)v7 + 178) ) { v9 = "Conversation pinned"; } else { v9 = "Conversation unpinned"; } v10 = *(void (__fastcall **)(int, cocos2d::CCNode *, int))(*(_DWORD *)v8 + 232); v30 = 0; v31 = 0; v32 = 0; v11 = strlen(v9); std::string::__init(&v30, v9, v11); v33 = 0; v34 = 0; v35 = 0; std::string::__init(&v33, &unk_B6B226, 0); v12 = TextAlertPopup::create((int)&v30, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)&v33); v10(v8, v12, 1000); std::string::~string((int)&v33); v13 = (GameLevelManager *)std::string::~string((int)&v30); if ( v4[181] ) { v14 = GameLevelManager::sharedState(v13); v15 = v4[181]; if ( v15 ) v15 = (ThreadViewPopup *)((char *)v15 + 524); *(_DWORD *)(v14 + 840) = v15; return (ThreadViewPopup **)(*((int (__fastcall **)(ThreadViewPopup **, _DWORD))*v4 + 171))(v4, 0); } LABEL_43: v29 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(v13); cocos2d::CCNotificationCenter::postNotification(v29, "ThreadsChangedNotification", nullptr); return (ThreadViewPopup **)(*((int (__fastcall **)(ThreadViewPopup **, _DWORD))*v4 + 171))(v4, 0); } if ( a3 == (ThreadViewPopup *)&byte_9[6] ) { *(_BYTE *)(v5 + 178) ^= 1u; goto LABEL_9; } if ( (unsigned int)a3 - 101 > 1 ) { if ( ((unsigned int)a3 & 0xFFFFFFFB) == 1 || a3 == (ThreadViewPopup *)&byte_9[2] || a3 == (ThreadViewPopup *)&word_12 ) { v23 = (int)*(this + 181); if ( v23 ) { this = (ThreadViewPopup **)ThreadViewPopup::onClose(*(this + 181), nullptr); v4[181] = nullptr; } v24 = *(_DWORD *)(cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this) + 220); v25 = *(void (__fastcall **)(int, cocos2d::CCNode *, int))(*(_DWORD *)v24 + 232); if ( a3 == (ThreadViewPopup *)&byte_9[2] ) { v26 = "Request cancelled"; } else if ( a3 == (ThreadViewPopup *)&byte_5 ) { v26 = "Left group chat"; } else if ( a3 == (ThreadViewPopup *)&word_12 ) { v26 = "Group chat removed"; } else if ( v4[183] ) { v26 = "Messages cleared"; } else { v26 = "Left conversation"; } v30 = 0; v31 = 0; v32 = 0; v27 = strlen(v26); std::string::__init(&v30, v26, v27); v33 = 0; v34 = 0; v35 = 0; std::string::__init(&v33, &unk_B6B226, 0); v28 = TextAlertPopup::create((int)&v30, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)&v33); v25(v24, v28, 1000); std::string::~string((int)&v33); v13 = (GameLevelManager *)std::string::~string((int)&v30); if ( v23 ) return (ThreadViewPopup **)(*((int (__fastcall **)(ThreadViewPopup **, _DWORD))*v4 + 171))(v4, 0); goto LABEL_43; } } else { v16 = (char *)a3 - 101; *(_BYTE *)(v5 + 176) = a3 == (ThreadViewPopup *)((char *)&dword_64 + 1); refreshed = *(this + 181); if ( refreshed ) refreshed = ThreadViewPopup::refreshLockNotice(refreshed, a2, v16); v18 = *(_DWORD *)(cocos2d::CCDirector::sharedDirector(refreshed) + 220); v19 = *(void (__fastcall **)(int, cocos2d::CCNode *, int))(*(_DWORD *)v18 + 232); if ( *((_BYTE *)v4[180] + 176) ) v20 = "Conversation locked"; else v20 = "Conversation unlocked"; v30 = 0; v31 = 0; v32 = 0; v21 = strlen(v20); std::string::__init(&v30, v20, v21); v33 = 0; v34 = 0; v35 = 0; std::string::__init(&v33, &unk_B6B226, 0); v22 = TextAlertPopup::create((int)&v30, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)&v33); v19(v18, v22, 1000); std::string::~string((int)&v33); std::string::~string((int)&v30); return (ThreadViewPopup **)(*((int (__fastcall **)(ThreadViewPopup **, _DWORD))*v4 + 171))(v4, 0); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source