{"type": "func", "start": 4996698, "end": 4996876, "name": "FriendsProfilePage::getUserListFinished", "pseudocode": "// \n// FriendsProfilePage::getUserListFinished from 0x4c3e5a to 0x4c3f0c (178 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'FriendsProfilePage::getUserListFinished @ 0x4c3f10\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid FriendsProfilePage::getUserListFinished(FriendsProfilePage *a1, cocos2d::CCArray *a2, UserListType a3)\n{\n  UserListType m_type; // r5\n  cocos2d::CCArray *m_users; // r0\n  cocos2d::CCArray *v7; // r3\n  GameLevelManager *v8; // r4\n  GJAccountManager *v9; // r0\n  GJUserScore *v10; // r0\n  cocos2d::ccArray *data; // r3\n  int v12; // r4\n  cocos2d::CCObject **arr; // r3\n  cocos2d::CCObject **v14; // r4\n  int v15; // r1\n  int v16; // t1\n\n  m_type = a1->m_type;\n  if ( m_type == a3 )\n  {\n    m_users = a1->m_users;\n    if ( m_users )\n      cocos2d::CCObject::release(m_users);\n    a1->m_users = a2;\n    cocos2d::CCObject::retain(a2);\n    FriendsProfilePage::setupUsersBrowser(a1, a1->m_users, m_type);\n    a1->m_circle->setVisible(a1->m_circle, 0);\n    a1->m_refreshBtn->setVisible(a1->m_refreshBtn, 1);\n    a1->m_noInternet->setVisible(a1->m_noInternet, 0);\n    if ( !a1->m_type )\n    {\n      v7 = a1->m_users;\n      if ( v7 )\n      {\n        data = v7->data;\n        if ( data->num )\n        {\n          v12 = data->num + 0x40000000;\n          arr = data->arr;\n          v14 = &arr[v12 - 1];\n          while ( arr <= v14 )\n          {\n            v16 = (int)*arr++;\n            v15 = v16;\n            if ( !v16 )\n              break;\n            *(_BYTE *)(v15 + 452) = 0;\n          }\n        }\n      }\n      v8 = GameLevelManager::sharedState();\n      v9 = GJAccountManager::sharedState();\n      v10 = GameLevelManager::userInfoForAccountID(v8, v9->m_accountID - v9->m_unkInt1);\n      if ( v10 )\n        v10->m_newFriendCount = 0;\n    }\n  }\n}", "assembly": "; \n; FriendsProfilePage::getUserListFinished from 0x4c3e5a to 0x4c3f0c (178 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'FriendsProfilePage::getUserListFinished @ 0x4c3f10\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x4c3e5a\nMOV             R4, R0                                                 ; +0x2, 0x4c3e5c\nLDR.W           R5, [R0,#0x200]                                        ; +0x4, 0x4c3e5e\nMOV             R6, R1                                                 ; +0x8, 0x4c3e62\nCMP             R5, R2                                                 ; +0xa, 0x4c3e64\nBNE             locret_4C3F0A                                          ; +0xc, 0x4c3e66\nLDR.W           R0, [R0,#0x218]; this                                  ; +0xe, 0x4c3e68\nCBZ             R0, loc_4C3E72                                         ; +0x12, 0x4c3e6c\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x14, 0x4c3e6e\nMOV             R0, R6; this                                           ; +0x18, 0x4c3e72\nSTR.W           R6, [R4,#0x218]                                        ; +0x1a, 0x4c3e74\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x1e, 0x4c3e78\nMOV             R2, R5                                                 ; +0x22, 0x4c3e7c\nMOV             R0, R4                                                 ; +0x24, 0x4c3e7e\nLDR.W           R1, [R4,#0x218]                                        ; +0x26, 0x4c3e80\nBL              _ZN18FriendsProfilePage17setupUsersBrowserEPN7cocos2d7CCArrayE12UserListType; FriendsProfilePage::setupUsersBrowser(cocos2d::CCArray *,UserListType) ; +0x2a, 0x4c3e84\nLDR.W           R0, [R4,#0x210]                                        ; +0x2e, 0x4c3e88\nMOVS            R1, #0                                                 ; +0x32, 0x4c3e8c\nLDR             R3, [R0]                                               ; +0x34, 0x4c3e8e\nLDR.W           R3, [R3,#0xA4]                                         ; +0x36, 0x4c3e90\nBLX             R3                                                     ; +0x3a, 0x4c3e94\nLDR.W           R0, [R4,#0x21C]                                        ; +0x3c, 0x4c3e96\nMOVS            R1, #1                                                 ; +0x40, 0x4c3e9a\nLDR             R3, [R0]                                               ; +0x42, 0x4c3e9c\nLDR.W           R3, [R3,#0xA4]                                         ; +0x44, 0x4c3e9e\nBLX             R3                                                     ; +0x48, 0x4c3ea2\nLDR.W           R0, [R4,#0x204]                                        ; +0x4a, 0x4c3ea4\nMOVS            R1, #0                                                 ; +0x4e, 0x4c3ea8\nLDR             R3, [R0]                                               ; +0x50, 0x4c3eaa\nLDR.W           R3, [R3,#0xA4]                                         ; +0x52, 0x4c3eac\nBLX             R3                                                     ; +0x56, 0x4c3eb0\nLDR.W           R2, [R4,#0x200]                                        ; +0x58, 0x4c3eb2\nCBNZ            R2, locret_4C3F0A                                      ; +0x5c, 0x4c3eb6\nLDR.W           R3, [R4,#0x218]                                        ; +0x5e, 0x4c3eb8\nCBNZ            R3, loc_4C3EDC                                         ; +0x62, 0x4c3ebc\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x64, 0x4c3ebe\nMOV             R4, R0                                                 ; +0x68, 0x4c3ec2\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x6a, 0x4c3ec4\nLDR.W           R1, [R0,#0x110]                                        ; +0x6e, 0x4c3ec8\nLDR.W           R3, [R0,#0x114]                                        ; +0x72, 0x4c3ecc\nMOV             R0, R4; this                                           ; +0x76, 0x4c3ed0\nSUBS            R1, R1, R3; int                                        ; +0x78, 0x4c3ed2\nBL              _ZN16GameLevelManager20userInfoForAccountIDEi; GameLevelManager::userInfoForAccountID(int) ; +0x7a, 0x4c3ed4\nCBNZ            R0, loc_4C3F02                                         ; +0x7e, 0x4c3ed8\nPOP             {R4-R6,PC}                                             ; +0x80, 0x4c3eda\nLDR             R3, [R3,#0x34]                                         ; +0x82, 0x4c3edc\nLDR             R4, [R3]                                               ; +0x84, 0x4c3ede\nCMP             R4, #0                                                 ; +0x86, 0x4c3ee0\nBEQ             loc_4C3EBE                                             ; +0x88, 0x4c3ee2\nADD.W           R4, R4, #0x40000000                                    ; +0x8a, 0x4c3ee4\nLDR             R3, [R3,#0xC]                                          ; +0x8e, 0x4c3ee8\nSUBS            R4, #1                                                 ; +0x90, 0x4c3eea\nADD.W           R4, R3, R4,LSL#2                                       ; +0x92, 0x4c3eec\nCMP             R3, R4                                                 ; +0x96, 0x4c3ef0\nBHI             loc_4C3EBE                                             ; +0x98, 0x4c3ef2\nLDR.W           R1, [R3],#4                                            ; +0x9a, 0x4c3ef4\nCMP             R1, #0                                                 ; +0x9e, 0x4c3ef8\nBEQ             loc_4C3EBE                                             ; +0xa0, 0x4c3efa\nSTRB.W          R2, [R1,#0x1C4]                                        ; +0xa2, 0x4c3efc\nB               loc_4C3EF0                                             ; +0xa6, 0x4c3f00\nMOVS            R3, #0                                                 ; +0xa8, 0x4c3f02\nSTR.W           R3, [R0,#0x1C0]                                        ; +0xaa, 0x4c3f04\nPOP             {R4-R6,PC}                                             ; +0xae, 0x4c3f08\nPOP             {R4-R6,PC}                                             ; +0xb0, 0x4c3f0a", "xrefs": ["`non-virtual thunk to'FriendsProfilePage::getUserListFinished @ 0x4c3f10"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}