{"type": "func", "start": 9398864, "end": 9399540, "name": "FriendsProfilePage::setupUsersBrowser", "pseudocode": "// \n// FriendsProfilePage::setupUsersBrowser from 0x8f6a50 to 0x8f6cf4 (676 bytes)\n// \n// 4 xrefs:\n// > FriendsProfilePage::init @ 0x8f7388\n// > FriendsProfilePage::getUserListFinished @ 0x8f76d8\n// > FriendsProfilePage::forceReloadList @ 0x8f7830\n// > <???> @ 0x529c8\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::setupUsersBrowser(FriendsProfilePage *a1, cocos2d::CCArray *a2, UserListType a3)\n{\n  cocos2d::CCDirector *v6; // x0\n  cocos2d::CCTouchDispatcher *v7; // x0\n  cocos2d::CCDirector *v8; // x0\n  CustomListView *v9; // x0\n  GJCommentListLayer *v10; // x0\n  cocos2d::CCLayer *m_mainLayer; // x2\n  GJCommentListLayer *m_listLayer; // x24\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22\n  cocos2d::CCLabelBMFont *m_totalFriends; // x19\n  void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x22\n  unsigned int v16; // w0\n  cocos2d::CCString *v17; // x0\n  const char *CString; // x0\n  GameManager *v19; // x0\n  int v20; // w19\n  GameManager *v21; // x0\n  GameManager *v22; // x0\n  GameManager *v23; // x0\n  float v24; // [xsp+68h] [xbp+68h]\n  float v25; // [xsp+6Ch] [xbp+6Ch]\n  cocos2d::CCPoint v26; // [xsp+70h] [xbp+70h] BYREF\n\n  if ( a1->m_listLayer )\n  {\n    v6 = cocos2d::CCDirector::sharedDirector();\n    v7 = v6->getTouchDispatcher(v6);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, a1->m_listLayer);\n    a1->m_listLayer->removeMeAndCleanup(a1->m_listLayer);\n    a1->m_listLayer = nullptr;\n  }\n  v8 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v8);\n  if ( a2 )\n    v9 = CustomListView::create(a2, (BoomListType)0, 196.0, 340.0);\n  else\n    v9 = nullptr;\n  v10 = GJCommentListLayer::create(v9, nullptr, (cocos2d::ccColor4B)-12684609, 340.0, 196.0, 0);\n  m_mainLayer = a1->m_mainLayer;\n  a1->m_listLayer = v10;\n  m_mainLayer->addChild(m_mainLayer, v10);\n  m_listLayer = a1->m_listLayer;\n  setPosition = m_listLayer->setPosition;\n  cocos2d::CCPoint::CCPoint(\n    &v26,\n    (float)(v24 - 340.0) * 0.5,\n    (float)((float)((float)(v25 - 196.0) * 0.5) + -10.0) + 5.0);\n  setPosition(m_listLayer, &v26);\n  if ( a2 && !a3 )\n  {\n    if ( (unsigned int)cocos2d::CCArray::count(a2) )\n    {\n      m_totalFriends = a1->m_totalFriends;\n      setString = m_totalFriends->setString;\n      v16 = cocos2d::CCArray::count(a2);\n      v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                   (cocos2d::CCString *)\"Total friends: %i\",\n                                   (const char *)v16);\n      CString = cocos2d::CCString::getCString(v17);\n      setString(m_totalFriends, (const unsigned __int8 *)CString);\n    }\n    else\n    {\n      a1->m_totalFriends->setString(a1->m_totalFriends, (const unsigned __int8 *)\" \");\n    }\n    if ( (unsigned int)cocos2d::CCArray::count(a2) )\n    {\n      v19 = GameManager::sharedState();\n      GameManager::reportAchievementWithID(v19, \"geometry.ach.friends01\", 100, 0);\n      v20 = cocos2d::CCArray::count(a2);\n      if ( v20 > 9 )\n      {\n        v21 = GameManager::sharedState();\n        GameManager::reportAchievementWithID(v21, \"geometry.ach.friends02\", 100, 0);\n        if ( v20 > 24 )\n        {\n          v22 = GameManager::sharedState();\n          GameManager::reportAchievementWithID(v22, \"geometry.ach.friends03\", 100, 0);\n          if ( v20 > 49 )\n          {\n            v23 = GameManager::sharedState();\n            GameManager::reportAchievementWithID(v23, \"geometry.ach.friends04\", 100, 0);\n          }\n        }\n      }\n    }\n  }\n  else\n  {\n    a1->m_totalFriends->setString(a1->m_totalFriends, (const unsigned __int8 *)\" \");\n  }\n}", "assembly": "; \n; FriendsProfilePage::setupUsersBrowser from 0x8f6a50 to 0x8f6cf4 (676 bytes)\n; \n; 4 xrefs:\n; > FriendsProfilePage::init @ 0x8f7388\n; > FriendsProfilePage::getUserListFinished @ 0x8f76d8\n; > FriendsProfilePage::forceReloadList @ 0x8f7830\n; > <???> @ 0x529c8\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\nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0x8f6a50\nMOV             X29, SP                                                ; +0x4, 0x8f6a54\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x8, 0x8f6a58\nSTP             D8, D9, [SP,#0x80+var_40]                              ; +0xc, 0x8f6a5c\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x8f6a60\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x14, 0x8f6a64\nMOV             X20, X1                                                ; +0x18, 0x8f6a68\nMOV             X19, X0                                                ; +0x1c, 0x8f6a6c\nLDR             X1, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x8f6a70\nLDR             X0, [X0,#0x2B0]; this                                  ; +0x24, 0x8f6a74\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0x28, 0x8f6a78\nLDR             X1, [X1]                                               ; +0x2c, 0x8f6a7c\nMOV             W23, W2                                                ; +0x30, 0x8f6a80\nSTR             X1, [X29,#0x80+var_8]                                  ; +0x34, 0x8f6a84\nCBZ             X0, loc_8F6ABC                                         ; +0x38, 0x8f6a88\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x3c, 0x8f6a8c\nLDR             X1, [X0]                                               ; +0x40, 0x8f6a90\nLDR             X1, [X1,#0xA0]                                         ; +0x44, 0x8f6a94\nBLR             X1                                                     ; +0x48, 0x8f6a98\nLDR             X1, [X19,#0x2B0]; cocos2d::CCObject *                  ; +0x4c, 0x8f6a9c\nBL              _ZN7cocos2d17CCTouchDispatcher19unregisterForcePrioEPNS_8CCObjectE; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x50, 0x8f6aa0\nLDR             X1, [X19,#0x2B0]                                       ; +0x54, 0x8f6aa4\nMOV             X0, X1                                                 ; +0x58, 0x8f6aa8\nLDR             X1, [X1]                                               ; +0x5c, 0x8f6aac\nLDR             X1, [X1,#0x208]                                        ; +0x60, 0x8f6ab0\nBLR             X1                                                     ; +0x64, 0x8f6ab4\nSTR             XZR, [X19,#0x2B0]                                      ; +0x68, 0x8f6ab8\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x6c, 0x8f6abc\nADD             X8, X29, #0x80+var_18                                  ; +0x70, 0x8f6ac0\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x74, 0x8f6ac4\nLDR             S9, =0x43440000                                        ; +0x78, 0x8f6ac8\nCBZ             X20, loc_8F6CE4                                        ; +0x7c, 0x8f6acc\nLDR             S8, =0x43AA0000                                        ; +0x80, 0x8f6ad0\nCMP             W23, WZR                                               ; +0x84, 0x8f6ad4\nFMOV            S2, WZR                                                ; +0x88, 0x8f6ad8\nMOV             W3, #0x11                                              ; +0x8c, 0x8f6adc\nFMOV            S0, S9                                                 ; +0x90, 0x8f6ae0\nMOV             W4, #2                                                 ; +0x94, 0x8f6ae4\nFMOV            S1, S8                                                 ; +0x98, 0x8f6ae8\nMOV             X0, X20                                                ; +0x9c, 0x8f6aec\nMOV             X1, #0                                                 ; +0xa0, 0x8f6af0\nMOV             W2, #0                                                 ; +0xa4, 0x8f6af4\nCSEL            W3, W4, W3, EQ                                         ; +0xa8, 0x8f6af8\nBL              _ZN14CustomListView6createEPN7cocos2d7CCArrayEP21TableViewCellDelegateffi12BoomListTypef; CustomListView::create(cocos2d::CCArray *,TableViewCellDelegate *,float,float,int,BoomListType,float) ; +0xac, 0x8f6afc\nMOV             W1, #0xFFFFFFBF                                        ; +0xb0, 0x8f6b00\nMOV             W2, #0                                                 ; +0xb4, 0x8f6b04\nBFXIL           W2, W1, #0, #8                                         ; +0xb8, 0x8f6b08\nMOV             W1, #0x72 ; 'r'                                        ; +0xbc, 0x8f6b0c\nFMOV            S0, S8                                                 ; +0xc0, 0x8f6b10\nBFI             W2, W1, #8, #8                                         ; +0xc4, 0x8f6b14\nFMOV            S1, S9                                                 ; +0xc8, 0x8f6b18\nMOV             W1, #0x3E ; '>'                                        ; +0xcc, 0x8f6b1c\nBFI             W2, W1, #0x10, #8                                      ; +0xd0, 0x8f6b20\nMOV             W3, #0                                                 ; +0xd4, 0x8f6b24\nORR             W2, W2, #0xFF000000                                    ; +0xd8, 0x8f6b28\nMOV             X1, #0                                                 ; +0xdc, 0x8f6b2c\nADD             X22, X29, #0x80+var_10                                 ; +0xe0, 0x8f6b30\nBL              _ZN18GJCommentListLayer6createEP12BoomListViewPKcN7cocos2d10_ccColor4BEffb; GJCommentListLayer::create(BoomListView *,char const*,cocos2d::_ccColor4B,float,float,bool) ; +0xe4, 0x8f6b34\nMOV             X1, X0                                                 ; +0xe8, 0x8f6b38\nLDR             X2, [X19,#0x240]                                       ; +0xec, 0x8f6b3c\nSTR             X0, [X19,#0x2B0]                                       ; +0xf0, 0x8f6b40\nMOV             X0, X2                                                 ; +0xf4, 0x8f6b44\nLDR             X2, [X2]                                               ; +0xf8, 0x8f6b48\nLDR             X2, [X2,#0x1B8]                                        ; +0xfc, 0x8f6b4c\nBLR             X2                                                     ; +0x100, 0x8f6b50\nLDR             X24, [X19,#0x2B0]                                      ; +0x104, 0x8f6b54\nLDR             S1, [X29,#0x80+var_14]                                 ; +0x108, 0x8f6b58\nMOV             X0, X22; this                                          ; +0x10c, 0x8f6b5c\nFMOV            S0, #0.5                                               ; +0x110, 0x8f6b60\nSTR             X22, [X29,#0x80+var_28]                                ; +0x114, 0x8f6b64\nFSUB            S1, S1, S9                                             ; +0x118, 0x8f6b68\nLDR             X2, [X24]                                              ; +0x11c, 0x8f6b6c\nFMOV            S2, #-10.0                                             ; +0x120, 0x8f6b70\nLDR             X22, [X2,#0xB8]                                        ; +0x124, 0x8f6b74\nFMADD           S1, S1, S0, S2                                         ; +0x128, 0x8f6b78\nLDR             S2, [X29,#0x80+var_18]                                 ; +0x12c, 0x8f6b7c\nFSUB            S2, S2, S8                                             ; +0x130, 0x8f6b80\nFMUL            S0, S2, S0; float                                      ; +0x134, 0x8f6b84\nFMOV            S2, #5.0                                               ; +0x138, 0x8f6b88\nFADD            S1, S1, S2; float                                      ; +0x13c, 0x8f6b8c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x140, 0x8f6b90\nLDR             X1, [X29,#0x80+var_28]                                 ; +0x144, 0x8f6b94\nMOV             X0, X24                                                ; +0x148, 0x8f6b98\nBLR             X22                                                    ; +0x14c, 0x8f6b9c\nCBZ             X20, loc_8F6BA8                                        ; +0x150, 0x8f6ba0\nCBZ             W23, loc_8F6BF0                                        ; +0x154, 0x8f6ba4\nLDR             X2, [X19,#0x2A8]                                       ; +0x158, 0x8f6ba8\nADRL            X1, (aWarning_0+8); \" \"                                ; +0x15c, 0x8f6bac\nMOV             X0, X2                                                 ; +0x164, 0x8f6bb4\nLDR             X2, [X2]                                               ; +0x168, 0x8f6bb8\nLDR             X2, [X2,#0x390]                                        ; +0x16c, 0x8f6bbc\nBLR             X2                                                     ; +0x170, 0x8f6bc0\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x174, 0x8f6bc4\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x178, 0x8f6bc8\nLDR             X0, [X21]                                              ; +0x17c, 0x8f6bcc\nCMP             X1, X0                                                 ; +0x180, 0x8f6bd0\nB.NE            loc_8F6CF0                                             ; +0x184, 0x8f6bd4\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x188, 0x8f6bd8\nLDP             D8, D9, [SP,#0x80+var_40]                              ; +0x18c, 0x8f6bdc\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x190, 0x8f6be0\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0x194, 0x8f6be4\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x198, 0x8f6be8\nRET                                                                    ; +0x19c, 0x8f6bec\nMOV             X0, X20; this                                          ; +0x1a0, 0x8f6bf0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1a4, 0x8f6bf4\nCBZ             W0, loc_8F6CC4                                         ; +0x1a8, 0x8f6bf8\nLDR             X19, [X19,#0x2A8]                                      ; +0x1ac, 0x8f6bfc\nMOV             X0, X20; this                                          ; +0x1b0, 0x8f6c00\nLDR             X1, [X19]                                              ; +0x1b4, 0x8f6c04\nLDR             X22, [X1,#0x390]                                       ; +0x1b8, 0x8f6c08\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1bc, 0x8f6c0c\nMOV             W1, W0; char *                                         ; +0x1c0, 0x8f6c10\nADRL            X0, aTotalFriendsI; \"Total friends: %i\"                ; +0x1c4, 0x8f6c14\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x1cc, 0x8f6c1c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x1d0, 0x8f6c20\nMOV             X1, X0                                                 ; +0x1d4, 0x8f6c24\nMOV             X0, X19                                                ; +0x1d8, 0x8f6c28\nBLR             X22                                                    ; +0x1dc, 0x8f6c2c\nMOV             X0, X20; this                                          ; +0x1e0, 0x8f6c30\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1e4, 0x8f6c34\nCBZ             W0, loc_8F6BC4                                         ; +0x1e8, 0x8f6c38\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1ec, 0x8f6c3c\nADRP            X1, #aGeometryAchFri@PAGE; \"geometry.ach.friends01\"    ; +0x1f0, 0x8f6c40\nMOV             W2, #0x64 ; 'd'; int                                   ; +0x1f4, 0x8f6c44\nADD             X1, X1, #aGeometryAchFri@PAGEOFF; \"geometry.ach.friends01\" ; +0x1f8, 0x8f6c48\nMOV             W3, #0; bool                                           ; +0x1fc, 0x8f6c4c\nBL              _ZN11GameManager23reportAchievementWithIDEPKcib; GameManager::reportAchievementWithID(char const*,int,bool) ; +0x200, 0x8f6c50\nMOV             X0, X20; this                                          ; +0x204, 0x8f6c54\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x208, 0x8f6c58\nCMP             W0, #9                                                 ; +0x20c, 0x8f6c5c\nMOV             W19, W0                                                ; +0x210, 0x8f6c60\nB.LE            loc_8F6BC4                                             ; +0x214, 0x8f6c64\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x218, 0x8f6c68\nADRP            X1, #aGeometryAchFri_0@PAGE; \"geometry.ach.friends02\"  ; +0x21c, 0x8f6c6c\nMOV             W2, #0x64 ; 'd'; int                                   ; +0x220, 0x8f6c70\nADD             X1, X1, #aGeometryAchFri_0@PAGEOFF; \"geometry.ach.friends02\" ; +0x224, 0x8f6c74\nMOV             W3, #0; bool                                           ; +0x228, 0x8f6c78\nBL              _ZN11GameManager23reportAchievementWithIDEPKcib; GameManager::reportAchievementWithID(char const*,int,bool) ; +0x22c, 0x8f6c7c\nCMP             W19, #0x18                                             ; +0x230, 0x8f6c80\nB.LE            loc_8F6BC4                                             ; +0x234, 0x8f6c84\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x238, 0x8f6c88\nADRP            X1, #aGeometryAchFri_1@PAGE; \"geometry.ach.friends03\"  ; +0x23c, 0x8f6c8c\nMOV             W2, #0x64 ; 'd'; int                                   ; +0x240, 0x8f6c90\nADD             X1, X1, #aGeometryAchFri_1@PAGEOFF; \"geometry.ach.friends03\" ; +0x244, 0x8f6c94\nMOV             W3, #0; bool                                           ; +0x248, 0x8f6c98\nBL              _ZN11GameManager23reportAchievementWithIDEPKcib; GameManager::reportAchievementWithID(char const*,int,bool) ; +0x24c, 0x8f6c9c\nCMP             W19, #0x31 ; '1'                                       ; +0x250, 0x8f6ca0\nB.LE            loc_8F6BC4                                             ; +0x254, 0x8f6ca4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x258, 0x8f6ca8\nADRP            X1, #aGeometryAchFri_2@PAGE; \"geometry.ach.friends04\"  ; +0x25c, 0x8f6cac\nMOV             W2, #0x64 ; 'd'; int                                   ; +0x260, 0x8f6cb0\nADD             X1, X1, #aGeometryAchFri_2@PAGEOFF; \"geometry.ach.friends04\" ; +0x264, 0x8f6cb4\nMOV             W3, #0; bool                                           ; +0x268, 0x8f6cb8\nBL              _ZN11GameManager23reportAchievementWithIDEPKcib; GameManager::reportAchievementWithID(char const*,int,bool) ; +0x26c, 0x8f6cbc\nB               loc_8F6BC4                                             ; +0x270, 0x8f6cc0\nLDR             X2, [X19,#0x2A8]                                       ; +0x274, 0x8f6cc4\nADRL            X1, (aWarning_0+8); \" \"                                ; +0x278, 0x8f6cc8\nMOV             X0, X2                                                 ; +0x280, 0x8f6cd0\nLDR             X2, [X2]                                               ; +0x284, 0x8f6cd4\nLDR             X2, [X2,#0x390]                                        ; +0x288, 0x8f6cd8\nBLR             X2                                                     ; +0x28c, 0x8f6cdc\nB               loc_8F6C30                                             ; +0x290, 0x8f6ce0\nMOV             X0, #0                                                 ; +0x294, 0x8f6ce4\nLDR             S8, =0x43AA0000                                        ; +0x298, 0x8f6ce8\nB               loc_8F6B00                                             ; +0x29c, 0x8f6cec\nBL              .__stack_chk_fail                                      ; +0x2a0, 0x8f6cf0", "xrefs": ["FriendsProfilePage::init @ 0x8f7388", "FriendsProfilePage::getUserListFinished @ 0x8f76d8", "FriendsProfilePage::forceReloadList @ 0x8f7830", "<???> @ 0x529c8"], "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"}