// // FriendPickerPopup::init from 0xc6936c to 0xc69b38 (1996 bytes) // // 2 xrefs: // > FriendPickerPopup::create @ 0xc69dd4 // > @ 0xf02f8 // // 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:26 +0000 // __int64 __fastcall FriendPickerPopup::init( FriendPickerPopup *this, FriendPickerDelegate *a2, unsigned __int8 a3, unsigned __int8 a4, char a5, char a6) { int v6; // w26 int v9; // w24 unsigned __int8 inited; // w0 int v12; // w1 unsigned int v13; // w22 __int64 v14; // x23 void (__fastcall *v15)(__int64, _BYTE *); // x24 float v16; // s8 __int64 v17; // x23 void (__fastcall *v18)(__int64, _BYTE *); // x24 void (__fastcall *v19)(__int64, _BYTE *); // x2 void (__fastcall *v20)(__int64, _BYTE *); // x24 int v21; // w2 __int64 v22; // x3 const char *v23; // x4 __int64 InputNode; // x23 void (__fastcall *v25)(__int64, _BYTE *); // x24 const char *v26; // x1 __int64 v27; // x23 __int64 v28; // x23 void (__fastcall *v29)(__int64, _BYTE *); // x24 const char *v30; // x2 GameLevelManager *v31; // x0 __int64 v32; // x0 __int64 StoredUserList; // x1 const char *v35; // x6 char *v36; // x0 __int64 v37; // x0 __int64 v38; // x24 void (__fastcall *v39)(__int64, _BYTE *); // x28 float v40; // s0 const char *v41; // x6 __int64 v42; // x0 __int64 v43; // x24 void (__fastcall *v44)(__int64, _BYTE *); // x26 __int64 v45; // x23 void (__fastcall *v46)(__int64, _BYTE *); // x24 __int64 v47; // x23 void (__fastcall *v48)(__int64, _BYTE *); // x24 const char *v49; // x1 __int64 v50; // x0 __int64 v51; // x23 __int64 (__fastcall *v52)(__int64, _BYTE *); // x24 GameLevelManager *v53; // x0 GameLevelManager *v54; // x0 __int64 v55; // x0 GameLevelManager *v56; // x0 GameLevelManager *v57; // x0 int v58; // [xsp+90h] [xbp+90h] _BYTE v60[16]; // [xsp+A8h] [xbp+A8h] BYREF __int64 v61[2]; // [xsp+B8h] [xbp+B8h] BYREF void *v62; // [xsp+C8h] [xbp+C8h] __int64 v63; // [xsp+D0h] [xbp+D0h] BYREF __int64 v64; // [xsp+D8h] [xbp+D8h] void *v65; // [xsp+E0h] [xbp+E0h] v6 = a4; v9 = a3; v63 = 0; v64 = 0; v65 = nullptr; std::string::__init(&v63, &byte_11B8890, 0); inited = PagedListPopup::initPaged( (__int64)this, (cocos2d::CCLabelBMFont *)"Select Users", (unsigned __int8 *)&v63, 340.0, 260.0); v12 = inited; v13 = inited; if ( (v63 & 1) != 0 ) { v58 = inited; operator delete(v65); v12 = v58; } if ( v12 ) { *((_QWORD *)this + 99) = a2; *((_BYTE *)this + 825) = v9; *((_BYTE *)this + 826) = v6; *((_BYTE *)this + 827) = a5; *((_BYTE *)this + 828) = a6; if ( v9 || v6 ) { PagedListPopup::createScrollArea(this, 74.0, 44.0); if ( *((_BYTE *)this + 828) ) v36 = "Add"; else v36 = "Done"; v37 = ButtonSprite::create( (ButtonSprite *)v36, (const char *)&dword_30 + 2, 0, 1, 0.5, "bigFont.fnt", "GJ_button_01.png", v35, 25.0); v38 = CCMenuItemSpriteExtra::create(v37, 0, (__int64)this, (__int64)FriendPickerPopup::onDone, 0); CCMenuItemSpriteExtra::setSizeMult(v38, 1.2); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v38); v39 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v38 + 184LL); if ( *((_BYTE *)this + 827) ) v40 = *((float *)this + 165) - 36.0; else v40 = *((float *)this + 165); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v60, v40, (float)(*((float *)this + 166) - (float)(*((float *)this + 168) * 0.5)) + 24.0); v39(v38, v60); if ( *((_BYTE *)this + 827) ) { v42 = ButtonSprite::create( (ButtonSprite *)"Clear", (const char *)&dword_30 + 2, 0, 1, 0.5, "bigFont.fnt", "GJ_button_04.png", v41, 25.0); v43 = CCMenuItemSpriteExtra::create(v42, 0, (__int64)this, (__int64)FriendPickerPopup::onClearAll, 0); CCMenuItemSpriteExtra::setSizeMult(v43, 1.2); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v43); v44 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v43 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v60, *((float *)this + 165) + 36.0, (float)(*((float *)this + 166) - (float)(*((float *)this + 168) * 0.5)) + 24.0); v44(v43, v60); } } else { PagedListPopup::createScrollArea(this, 74.0, 16.0); } v61[0] = 0; v61[1] = 0; v62 = nullptr; std::string::__init(v61, "Select Users", 0xCu); v63 = 0; v64 = 0; v65 = nullptr; std::string::__init( &v63, "Users without a checkbox are not your friend, or have turned off messages or invites in their " "Account Settings.\n" "Advisors and Moderators open to all take message requests from anyone.", 0xDEu); v14 = InfoAlertButton::create((char *)v61, (char *)&v63, 0.8); if ( (v63 & 1) != 0 ) operator delete(v65); if ( (v61[0] & 1) != 0 ) operator delete(v62); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v14); v15 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v14 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v60, (float)(*((float *)this + 165) + (float)(*((float *)this + 167) * 0.5)) - 18.0, (float)(*((float *)this + 166) + (float)(*((float *)this + 168) * 0.5)) - 18.0); v15(v14, v60); ScrollableContentLayer::setVirtualRows(*((_QWORD *)this + 86), (__int64)this + 776, 64.0, 0.0, 6.0); v16 = (float)(*((float *)this + 166) + (float)(*((float *)this + 168) * 0.5)) - 52.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v60, 0.0, 0.0, 40.0, 40.0); v17 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v60); v18 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v17 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v60, 200.0, 24.0); v18(v17, v60); v19 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v17 + 960LL); qmemcpy(v60, "]4", 2); v60[2] = 31; v19(v17, v60); v20 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v17 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, *((float *)this + 165), v16); v20(v17, v60); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v17, 0); InputNode = GameToolbox::createInputNode( (GameToolbox *)"Search", 188.0, 24.0, (const char *)&dword_14, v21, v22, v23); *((_QWORD *)this + 108) = InputNode; v25 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)InputNode + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, *((float *)this + 165), v16); v25(InputNode, v60); CCTextInputNode::setLabelPlaceholderScale(*((CCTextInputNode **)this + 108), 0.6); *(_QWORD *)(*((_QWORD *)this + 108) + 584LL) = (char *)this + 544; (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 108), 5); v27 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_findBtn_001.png", v26); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v27 + 160LL))(v27, 0.6); v28 = CCMenuItemSpriteExtra::create(v27, 0, (__int64)this, (__int64)FriendPickerPopup::onGlobalSearch, 0); CCMenuItemSpriteExtra::setSizeMult(v28, 1.3); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v28); v29 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v28 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, *((float *)this + 165) + 122.0, v16); v29(v28, v60); if ( *((_BYTE *)this + 826) ) { v45 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11B8890, "goldFont.fnt", v30); *((_QWORD *)this + 109) = v45; v46 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v45 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, 0.0, 0.5); v46(v45, v60); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 109) + 160LL))(*((_QWORD *)this + 109), 0.5); v47 = *((_QWORD *)this + 109); v48 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v47 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v60, (float)(*((float *)this + 165) - (float)(*((float *)this + 167) * 0.5)) + 40.0, (float)(*((float *)this + 166) - (float)(*((float *)this + 168) * 0.5)) + 24.0); v48(v47, v60); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 109), 5); FriendPickerPopup::updateCountLabel((__int64)this); v50 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v49); *((_QWORD *)this + 110) = v50; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 160LL))(v50, 0.7); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 912LL))( *((_QWORD *)this + 110), 4294967180LL); v51 = CCMenuItemSpriteExtra::create( *((_QWORD *)this + 110), 0, (__int64)this, (__int64)FriendPickerPopup::onToggleSelectedView, 0); CCMenuItemSpriteExtra::setSizeMult(v51, 1.3); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v51); v52 = *(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v51 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v60, (float)(*((float *)this + 165) - (float)(*((float *)this + 167) * 0.5)) + 22.0, (float)(*((float *)this + 166) - (float)(*((float *)this + 168) * 0.5)) + 24.0); v53 = (GameLevelManager *)v52(v51, v60); v54 = (GameLevelManager *)GameLevelManager::sharedState(v53); *((_QWORD *)v54 + 171) = (char *)this + 784; v55 = GameLevelManager::sharedState(v54); StoredUserList = GameLevelManager::getStoredUserList(v55, 0); if ( StoredUserList ) goto LABEL_13; } else { v31 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)*((unsigned __int8 *)this + 826)); *((_QWORD *)v31 + 171) = (char *)this + 784; v32 = GameLevelManager::sharedState(v31); StoredUserList = GameLevelManager::getStoredUserList(v32, 0); if ( StoredUserList ) { LABEL_13: (*(void (__fastcall **)(FriendPickerPopup *, __int64, _QWORD))(*(_QWORD *)this + 1392LL))( this, StoredUserList, 0); return v13; } } v56 = (GameLevelManager *)PagedListPopup::showLoading(this); v57 = (GameLevelManager *)GameLevelManager::sharedState(v56); GameLevelManager::getUserList(v57, 0); } return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source