// // NewThreadPopup::friendPicked from 0x7572d4 to 0x7573d4 (256 bytes) // // 1 xrefs: // > `non-virtual thunk to'NewThreadPopup::friendPicked @ 0x7573e8 // // 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:56 +0000 // cocos2d::CCArray *__fastcall NewThreadPopup::friendPicked(cocos2d::CCArray *this, GJUserScore *a2) { cocos2d::CCArray *v2; // r4 signed int v4; // r5 bool v5; // cc cocos2d::CCArray *v6; // r0 cocos2d::CCDirector *v7; // r0 int *v8; // r8 int v9; // r3 void (__fastcall *v10)(int *, cocos2d::CCNode *, int); // r9 cocos2d::CCNode *v11; // r0 int v12[3]; // [sp+Ch] [bp-20h] BYREF int v13[3]; // [sp+18h] [bp-14h] BYREF v2 = this; if ( a2 ) { this = *((cocos2d::CCArray **)this + 138); if ( this ) { v4 = *((unsigned __int8 *)v2 + 557); if ( *((_BYTE *)v2 + 557) ) { cocos2d::CCArray::removeAllObjects(this); } else { while ( 1 ) { v5 = v4 < cocos2d::CCArray::count(*((cocos2d::CCArray **)v2 + 138)); v6 = *((cocos2d::CCArray **)v2 + 138); if ( !v5 ) break; if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v6, v4) + 296) == *((_DWORD *)a2 + 74) ) { cocos2d::CCArray::removeObjectAtIndex(*((cocos2d::CCArray **)v2 + 138), v4, 1); return NewThreadPopup::updateRecipientLabel(v2); } ++v4; } v7 = (cocos2d::CCDirector *)cocos2d::CCArray::count(v6); if ( (int)v7 > 8 ) { v8 = *(int **)(cocos2d::CCDirector::sharedDirector(v7) + 220); v9 = *v8; memset(v12, 0, sizeof(v12)); v10 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v9 + 232); std::string::__init(v12, "Member limit reached", 0x14u); memset(v13, 0, sizeof(v13)); std::string::__init(v13, &unk_B6B226, 0); v11 = TextAlertPopup::create((int)v12, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v13); v10(v8, v11, 1000); std::string::~string((int)v13); return (cocos2d::CCArray *)std::string::~string((int)v12); } } cocos2d::CCArray::addObject(*((cocos2d::CCArray **)v2 + 138), a2); return NewThreadPopup::updateRecipientLabel(v2); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source