// // FriendPickerPopup::buildRows from 0xc80fd0 to 0xc81324 (852 bytes) // // 7 xrefs: // > FriendPickerPopup::getUserListFinished @ 0xc813b0 // > FriendPickerPopup::getUserListFinished @ 0xc813f0 // > FriendPickerPopup::getUserListFailed @ 0xc8149c // > FriendPickerPopup::onToggleSelectedView @ 0xc815dc // > FriendPickerPopup::delayedRebuild @ 0xc815e0 // > FriendPickerPopup::textChanged @ 0xc81670 // > @ 0x5a6e8 // // 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:39 +0000 // __int64 __fastcall FriendPickerPopup::buildRows(FriendPickerPopup *this) { cocos2d::CCObject *v2; // x0 cocos2d::CCObject *v3; // x0 __int64 v4; // x0 cocos2d::CCArray *v5; // x22 signed int v6; // w19 GJAccountManager *v7; // x0 int v8; // w23 GJAccountManager *v9; // x21 __int64 v10; // x0 int v11; // w23 __int64 v12; // x1 char v13; // w0 __int64 v14; // x0 __int64 v15; // x1 int v16; // w1 char *v17; // x7 unsigned __int64 v18; // x0 unsigned __int8 *v19; // x2 unsigned __int64 v20; // x3 __int64 v21; // x1 char *v22; // x1 char *v24; // x26 __int64 v25; // x0 __int64 v26; // x0 char *v27; // [xsp+68h] [xbp+68h] __int64 v28; // [xsp+78h] [xbp+78h] BYREF __int64 v29; // [xsp+80h] [xbp+80h] void *v30; // [xsp+88h] [xbp+88h] __int64 v31[2]; // [xsp+90h] [xbp+90h] BYREF char *v32; // [xsp+A0h] [xbp+A0h] PagedListPopup::clearStatus((__int64)this); FriendPickerPopup::updateCountLabel((__int64)this); v2 = *((cocos2d::CCObject **)this + 102); if ( v2 ) { v2 = (cocos2d::CCObject *)cocos2d::CCObject::release(v2); *((_QWORD *)this + 102) = 0; } v3 = (cocos2d::CCObject *)cocos2d::CCArray::create(v2); *((_QWORD *)this + 102) = v3; cocos2d::CCObject::retain(v3); if ( *((_BYTE *)this + 856) ) { v4 = *((_QWORD *)this + 99); if ( v4 ) { v5 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 24LL))(v4); goto LABEL_6; } } if ( !*((_BYTE *)this + 824) ) { v5 = *((cocos2d::CCArray **)this + 100); LABEL_6: if ( !v5 ) goto LABEL_37; goto LABEL_7; } v5 = *((cocos2d::CCArray **)this + 101); if ( !v5 ) { LABEL_37: ScrollableContentLayer::reloadVirtualRows(*((ScrollableContentLayer **)this + 86), 0.0); if ( *((_BYTE *)this + 856) ) { v22 = "No users selected"; } else if ( *((_BYTE *)this + 824) ) { v22 = "No users found"; } else { v22 = "No friends yet. Use the search to find users."; } LABEL_33: PagedListPopup::showStatus(this, (cocos2d::CCLabelBMFont *)v22); return _stack_chk_guard; } LABEL_7: if ( !(unsigned int)cocos2d::CCArray::count(v5) ) goto LABEL_37; v6 = 0; if ( (int)cocos2d::CCArray::count(v5) > 0 ) { while ( 1 ) { v7 = (GJAccountManager *)cocos2d::CCArray::objectAtIndex(v5, v6); v8 = *((_DWORD *)v7 + 94); v9 = v7; v10 = GJAccountManager::sharedState(v7); if ( v8 == *(_DWORD *)(v10 + 352) - *(_DWORD *)(v10 + 356) ) goto LABEL_25; v11 = *((unsigned __int8 *)this + 824); if ( !*((_BYTE *)this + 824) ) { v12 = *((_BYTE *)this + 832) >> 1; if ( (*((_BYTE *)this + 832) & 1) != 0 ) v12 = *((_QWORD *)this + 105); if ( v12 ) break; } LABEL_46: if ( !*((_BYTE *)this + 856) || (v26 = *((_QWORD *)this + 99)) == 0 || (*(unsigned __int8 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v26 + 8LL))(v26, *((unsigned int *)v9 + 94)) ) { ++v6; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 102), v9); goto LABEL_26; } LABEL_25: ++v6; LABEL_26: if ( v6 >= (int)cocos2d::CCArray::count(v5) ) goto LABEL_27; } v13 = *((_BYTE *)v9 + 320); v28 = 0; v29 = 0; v30 = nullptr; if ( (v13 & 1) != 0 ) { std::string::__init(&v28, *((void **)v9 + 42), *((_QWORD *)v9 + 41)); } else { v14 = *((_QWORD *)v9 + 40); v15 = *((_QWORD *)v9 + 41); v30 = *((void **)v9 + 42); v28 = v14; v29 = v15; } sub_C6DE48((__int64)&v28, v31); v16 = v31[0] & 1; if ( (v31[0] & 1) != 0 ) { v17 = v32; v18 = v31[1]; } else { v18 = LOBYTE(v31[0]) >> 1; v17 = (char *)v31 + 1; } if ( (*((_BYTE *)this + 832) & 1) != 0 ) { v19 = *((unsigned __int8 **)this + 106); v20 = *((_QWORD *)this + 105); } else { v19 = (unsigned __int8 *)this + 833; v20 = *((_BYTE *)this + 832) >> 1; } if ( v18 >= v20 ) { if ( !v20 ) goto LABEL_22; v24 = &v17[v18]; v27 = v17; v25 = std::__search( (__int64)v17, (__int64)&v17[v18], v19, &v19[v20], (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v24 != (char *)v25 ) { v11 = v25 - (_QWORD)v27 == -1; if ( (v31[0] & 1) == 0 ) goto LABEL_23; goto LABEL_44; } v16 = v31[0] & 1; } v11 = 1; LABEL_22: if ( !v16 ) goto LABEL_23; LABEL_44: operator delete(v32); LABEL_23: if ( (v28 & 1) != 0 ) { operator delete(v30); if ( v11 ) goto LABEL_25; } else if ( v11 ) { goto LABEL_25; } goto LABEL_46; } LABEL_27: ScrollableContentLayer::reloadVirtualRows(*((ScrollableContentLayer **)this + 86), 0.0); if ( !(unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 102)) ) { if ( *((_BYTE *)this + 824) ) goto LABEL_32; v21 = *((_BYTE *)this + 832) >> 1; if ( (*((_BYTE *)this + 832) & 1) != 0 ) v21 = *((_QWORD *)this + 105); if ( v21 ) v22 = "No friends match\nTap search to check all users"; else LABEL_32: v22 = "Nothing found"; goto LABEL_33; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source