// // FriendsProfilePage::getUserListFinished from 0x5f4df4 to 0x5f4fa6 (434 bytes) // // 1 xrefs: // > `non-virtual thunk to'FriendsProfilePage::getUserListFinished @ 0x5f4fbc // // 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:54:30 +0000 // GameManager *__fastcall FriendsProfilePage::getUserListFinished(GameManager *result, cocos2d::CCObject *this, int a3) { int v3; // r4 int v5; // r3 cocos2d::CCObject *v6; // r0 cocos2d::CCObject *v7; // r0 int v8; // r0 int v9; // r5 int *v10; // r3 int *v11; // r2 int *v12; // r3 int v13; // t1 int v14; // r0 int v15; // r3 int v16; // r3 GameManager *v17; // r0 GameManager *v18; // r0 int v19; // r6 GameManager *v20; // r0 GameManager *v21; // r0 GameManager *v22; // r0 int v23; // r3 GJAccountManager *v24; // r4 int v25; // r0 int *v26; // r2 int v27; // r3 int *v28; // r2 int *v29; // r3 int v30; // r1 int v31; // t1 v3 = (int)result; v5 = *((_DWORD *)result + 154); if ( a3 == 2 ) { if ( v5 != 1 ) { v6 = *((cocos2d::CCObject **)result + 161); if ( v6 ) cocos2d::CCObject::release(v6); *(_DWORD *)(v3 + 644) = this; cocos2d::CCObject::retain(this); *(_BYTE *)(v3 + 668) = 1; FriendsProfilePage::rebuildList((cocos2d::CCArray **)v3); PagedListPopup::fadeLoading((PagedListPopup *)v3); PagedListPopup::clearStatus((PagedListPopup *)v3); return (GameManager *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(v3 + 660) + 172))( *(_DWORD *)(v3 + 660), 1); } } else if ( v5 == a3 ) { v7 = *((cocos2d::CCObject **)result + 159); if ( v7 ) cocos2d::CCObject::release(v7); *(_DWORD *)(v3 + 636) = this; cocos2d::CCObject::retain(this); FriendsProfilePage::sortUsers((FriendsProfilePage *)v3); v8 = *(_DWORD *)(v3 + 672); if ( v8 ) { v9 = *(_DWORD *)(v3 + 636); if ( v9 ) { v10 = *(int **)(v9 + 52); v9 = *v10; if ( *v10 ) { v11 = (int *)v10[3]; v12 = &v11[v9 - 1]; do { if ( v11 > v12 ) { v9 = 0; goto LABEL_19; } v13 = *v11++; v9 = v13; if ( !v13 ) goto LABEL_19; } while ( *(int *)(v9 + 376) <= 0 ); v9 = 1; } } LABEL_19: (*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 172))(v8, v9); v14 = *(_DWORD *)(v3 + 684); if ( v14 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v14 + 172))(v14, v9); } v15 = *(unsigned __int8 *)(v3 + 648); if ( (v15 & 1) != 0 ) v16 = *(_DWORD *)(v3 + 652); else v16 = v15 >> 1; if ( v16 ) FriendsProfilePage::filterUsersWithQuery(v3, (unsigned __int8 *)(v3 + 648)); FriendsProfilePage::rebuildList((cocos2d::CCArray **)v3); PagedListPopup::fadeLoading((PagedListPopup *)v3); PagedListPopup::clearStatus((PagedListPopup *)v3); result = (GameManager *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(v3 + 660) + 172))( *(_DWORD *)(v3 + 660), 1); if ( !*(_DWORD *)(v3 + 616) ) { v17 = (GameManager *)GameManager::sharedState(result); GameManager::reportAchievementWithID(v17, "geometry.ach.friends01", (const char *)&dword_64, 0); v18 = (GameManager *)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v3 + 636)); v19 = (int)v18; if ( (int)v18 > 9 ) { v20 = (GameManager *)GameManager::sharedState(v18); v18 = (GameManager *)GameManager::reportAchievementWithID( v20, "geometry.ach.friends02", (const char *)&dword_64, 0); if ( v19 > 24 ) { v21 = (GameManager *)GameManager::sharedState(v18); v18 = (GameManager *)GameManager::reportAchievementWithID( v21, "geometry.ach.friends03", (const char *)&dword_64, 0); if ( v19 > 49 ) { v22 = (GameManager *)GameManager::sharedState(v18); v18 = (GameManager *)GameManager::reportAchievementWithID( v22, "geometry.ach.friends04", (const char *)&dword_64, 0); } } } v23 = *(_DWORD *)(v3 + 636); if ( v23 ) { v26 = *(int **)(v23 + 52); v27 = *v26; if ( *v26 ) { v28 = (int *)v26[3]; v18 = nullptr; v29 = &v28[v27 - 1]; while ( v28 <= v29 ) { v31 = *v28++; v30 = v31; if ( !v31 ) break; *(_BYTE *)(v30 + 556) = 0; } } } v24 = (GJAccountManager *)GameLevelManager::sharedState(v18); v25 = GJAccountManager::sharedState(v24); result = (GameManager *)GameLevelManager::userInfoForAccountID( (cocos2d::CCDictionary **)v24, *(_DWORD *)(v25 + 280) - *(_DWORD *)(v25 + 284)); if ( result ) *((_DWORD *)result + 133) = 0; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source