{"type": "func", "start": 9392176, "end": 9392620, "name": "FRequestProfilePage::setupCommentsBrowser", "pseudocode": "// \n// FRequestProfilePage::setupCommentsBrowser from 0x8f5030 to 0x8f51ec (444 bytes)\n// \n// 3 xrefs:\n// > FRequestProfilePage::loadFRequestsFinished @ 0x8f5220\n// > FRequestProfilePage::loadPage @ 0x8f54c8\n// > <???> @ 0xb2a40\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 FRequestProfilePage::setupCommentsBrowser(FRequestProfilePage *a1, cocos2d::CCArray *a2)\n{\n  cocos2d::CCDirector *v4; // x0\n  cocos2d::CCTouchDispatcher *v5; // x0\n  cocos2d::CCDirector *v6; // x0\n  CustomListView *v7; // x0\n  GJCommentListLayer *v8; // x0\n  cocos2d::CCLayer *m_mainLayer; // x2\n  GJCommentListLayer *m_listLayer; // x22\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21\n  GJCommentListLayer *v12; // x0\n  BoomListView *m_list; // x1\n  cocos2d::CCMenu *m_buttonMenu; // x19\n  void (__fastcall *setTouchPriority)(cocos2d::CCLayer *__hidden, int); // x21\n  int v16; // w0\n  float v17; // [xsp+58h] [xbp+58h]\n  float v18; // [xsp+5Ch] [xbp+5Ch]\n  cocos2d::CCPoint v19; // [xsp+60h] [xbp+60h] BYREF\n\n  if ( a1->m_listLayer )\n  {\n    v4 = cocos2d::CCDirector::sharedDirector();\n    v5 = v4->getTouchDispatcher(v4);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1->m_listLayer);\n    a1->m_listLayer->removeMeAndCleanup(a1->m_listLayer);\n    a1->m_listLayer = nullptr;\n  }\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v6);\n  if ( a2 )\n    v7 = CustomListView::create(a2, (BoomListType)0, 196.0, 340.0);\n  else\n    v7 = nullptr;\n  v8 = GJCommentListLayer::create(v7, \"Friend Requests\", (cocos2d::ccColor4B)-12684609, 340.0, 196.0, 0);\n  m_mainLayer = a1->m_mainLayer;\n  a1->m_listLayer = v8;\n  m_mainLayer->addChild(m_mainLayer, v8);\n  m_listLayer = a1->m_listLayer;\n  setPosition = m_listLayer->setPosition;\n  cocos2d::CCPoint::CCPoint(\n    &v19,\n    (float)(v17 - 340.0) * 0.5,\n    (float)((float)((float)(v18 - 196.0) * 0.5) + -10.0) + 5.0);\n  setPosition(m_listLayer, &v19);\n  v12 = a1->m_listLayer;\n  m_list = v12->m_list;\n  if ( m_list )\n  {\n    m_buttonMenu = a1->m_buttonMenu;\n    setTouchPriority = m_buttonMenu->setTouchPriority;\n    v16 = m_list->getTouchPriority(v12->m_list);\n    setTouchPriority(m_buttonMenu, v16 - 2);\n  }\n}", "assembly": "; \n; FRequestProfilePage::setupCommentsBrowser from 0x8f5030 to 0x8f51ec (444 bytes)\n; \n; 3 xrefs:\n; > FRequestProfilePage::loadFRequestsFinished @ 0x8f5220\n; > FRequestProfilePage::loadPage @ 0x8f54c8\n; > <???> @ 0xb2a40\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_70]!                                ; +0x0, 0x8f5030\nMOV             X29, SP                                                ; +0x4, 0x8f5034\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x8f5038\nSTP             D8, D9, [SP,#0x70+var_40]                              ; +0xc, 0x8f503c\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x8f5040\nMOV             X19, X0                                                ; +0x14, 0x8f5044\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x18, 0x8f5048\nMOV             X21, X1                                                ; +0x1c, 0x8f504c\nLDR             X0, [X0,#0x2B8]; this                                  ; +0x20, 0x8f5050\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x8f5054\nLDR             X1, [X1]                                               ; +0x28, 0x8f5058\nSTR             X1, [X29,#0x70+var_8]                                  ; +0x2c, 0x8f505c\nCBZ             X0, loc_8F5094                                         ; +0x30, 0x8f5060\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x34, 0x8f5064\nLDR             X1, [X0]                                               ; +0x38, 0x8f5068\nLDR             X1, [X1,#0xA0]                                         ; +0x3c, 0x8f506c\nBLR             X1                                                     ; +0x40, 0x8f5070\nLDR             X1, [X19,#0x2B8]; cocos2d::CCObject *                  ; +0x44, 0x8f5074\nBL              _ZN7cocos2d17CCTouchDispatcher19unregisterForcePrioEPNS_8CCObjectE; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x48, 0x8f5078\nLDR             X1, [X19,#0x2B8]                                       ; +0x4c, 0x8f507c\nMOV             X0, X1                                                 ; +0x50, 0x8f5080\nLDR             X1, [X1]                                               ; +0x54, 0x8f5084\nLDR             X1, [X1,#0x208]                                        ; +0x58, 0x8f5088\nBLR             X1                                                     ; +0x5c, 0x8f508c\nSTR             XZR, [X19,#0x2B8]                                      ; +0x60, 0x8f5090\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x64, 0x8f5094\nADD             X8, X29, #0x70+var_18                                  ; +0x68, 0x8f5098\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x6c, 0x8f509c\nLDR             S9, =0x43440000                                        ; +0x70, 0x8f50a0\nCBZ             X21, loc_8F51DC                                        ; +0x74, 0x8f50a4\nLDR             S8, =0x43AA0000                                        ; +0x78, 0x8f50a8\nLDRB            W0, [X19,#0x298]                                       ; +0x7c, 0x8f50ac\nFMOV            S2, WZR                                                ; +0x80, 0x8f50b0\nMOV             W3, #2                                                 ; +0x84, 0x8f50b4\nFMOV            S0, S9                                                 ; +0x88, 0x8f50b8\nCMP             W0, WZR                                                ; +0x8c, 0x8f50bc\nFMOV            S1, S8                                                 ; +0x90, 0x8f50c0\nMOV             W4, #0x12                                              ; +0x94, 0x8f50c4\nMOV             X0, X21                                                ; +0x98, 0x8f50c8\nMOV             X1, #0                                                 ; +0x9c, 0x8f50cc\nMOV             W2, #0                                                 ; +0xa0, 0x8f50d0\nCSEL            W3, W4, W3, EQ                                         ; +0xa4, 0x8f50d4\nBL              _ZN14CustomListView6createEPN7cocos2d7CCArrayEP21TableViewCellDelegateffi12BoomListTypef; CustomListView::create(cocos2d::CCArray *,TableViewCellDelegate *,float,float,int,BoomListType,float) ; +0xa8, 0x8f50d8\nMOV             W1, #0xFFFFFFBF                                        ; +0xac, 0x8f50dc\nMOV             W2, #0                                                 ; +0xb0, 0x8f50e0\nBFXIL           W2, W1, #0, #8                                         ; +0xb4, 0x8f50e4\nMOV             W1, #0x72 ; 'r'                                        ; +0xb8, 0x8f50e8\nFMOV            S0, S8                                                 ; +0xbc, 0x8f50ec\nBFI             W2, W1, #8, #8                                         ; +0xc0, 0x8f50f0\nFMOV            S1, S9                                                 ; +0xc4, 0x8f50f4\nMOV             W1, #0x3E ; '>'                                        ; +0xc8, 0x8f50f8\nBFI             W2, W1, #0x10, #8                                      ; +0xcc, 0x8f50fc\nADRP            X1, #aFriendRequests@PAGE; \"Friend Requests\"           ; +0xd0, 0x8f5100\nMOV             W3, #0                                                 ; +0xd4, 0x8f5104\nORR             W2, W2, #0xFF000000                                    ; +0xd8, 0x8f5108\nADD             X1, X1, #aFriendRequests@PAGEOFF; \"Friend Requests\"    ; +0xdc, 0x8f510c\nADD             X21, X29, #0x70+var_10                                 ; +0xe0, 0x8f5110\nBL              _ZN18GJCommentListLayer6createEP12BoomListViewPKcN7cocos2d10_ccColor4BEffb; GJCommentListLayer::create(BoomListView *,char const*,cocos2d::_ccColor4B,float,float,bool) ; +0xe4, 0x8f5114\nMOV             X1, X0                                                 ; +0xe8, 0x8f5118\nLDR             X2, [X19,#0x240]                                       ; +0xec, 0x8f511c\nSTR             X0, [X19,#0x2B8]                                       ; +0xf0, 0x8f5120\nMOV             X0, X2                                                 ; +0xf4, 0x8f5124\nLDR             X2, [X2]                                               ; +0xf8, 0x8f5128\nLDR             X2, [X2,#0x1B8]                                        ; +0xfc, 0x8f512c\nBLR             X2                                                     ; +0x100, 0x8f5130\nLDR             X22, [X19,#0x2B8]                                      ; +0x104, 0x8f5134\nLDR             S1, [X29,#0x70+var_14]                                 ; +0x108, 0x8f5138\nMOV             X0, X21; this                                          ; +0x10c, 0x8f513c\nFMOV            S0, #0.5                                               ; +0x110, 0x8f5140\nSTR             X21, [X29,#0x70+var_28]                                ; +0x114, 0x8f5144\nFSUB            S1, S1, S9                                             ; +0x118, 0x8f5148\nLDR             X2, [X22]                                              ; +0x11c, 0x8f514c\nFMOV            S2, #-10.0                                             ; +0x120, 0x8f5150\nLDR             X21, [X2,#0xB8]                                        ; +0x124, 0x8f5154\nFMADD           S1, S1, S0, S2                                         ; +0x128, 0x8f5158\nLDR             S2, [X29,#0x70+var_18]                                 ; +0x12c, 0x8f515c\nFSUB            S2, S2, S8                                             ; +0x130, 0x8f5160\nFMUL            S0, S2, S0; float                                      ; +0x134, 0x8f5164\nFMOV            S2, #5.0                                               ; +0x138, 0x8f5168\nFADD            S1, S1, S2; float                                      ; +0x13c, 0x8f516c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x140, 0x8f5170\nLDR             X1, [X29,#0x70+var_28]                                 ; +0x144, 0x8f5174\nMOV             X0, X22                                                ; +0x148, 0x8f5178\nBLR             X21                                                    ; +0x14c, 0x8f517c\nLDR             X0, [X19,#0x2B8]                                       ; +0x150, 0x8f5180\nLDR             X1, [X0,#0x220]                                        ; +0x154, 0x8f5184\nCBZ             X1, loc_8F51B4                                         ; +0x158, 0x8f5188\nLDR             X19, [X19,#0x220]                                      ; +0x15c, 0x8f518c\nMOV             X0, X1                                                 ; +0x160, 0x8f5190\nLDR             X1, [X1]                                               ; +0x164, 0x8f5194\nLDR             X2, [X19]                                              ; +0x168, 0x8f5198\nLDR             X1, [X1,#0x3F8]                                        ; +0x16c, 0x8f519c\nLDR             X21, [X2,#0x3F0]                                       ; +0x170, 0x8f51a0\nBLR             X1                                                     ; +0x174, 0x8f51a4\nSUB             W1, W0, #2                                             ; +0x178, 0x8f51a8\nMOV             X0, X19                                                ; +0x17c, 0x8f51ac\nBLR             X21                                                    ; +0x180, 0x8f51b0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x184, 0x8f51b4\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x188, 0x8f51b8\nLDR             X0, [X20]                                              ; +0x18c, 0x8f51bc\nCMP             X1, X0                                                 ; +0x190, 0x8f51c0\nB.NE            loc_8F51E8                                             ; +0x194, 0x8f51c4\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x198, 0x8f51c8\nLDP             D8, D9, [SP,#0x70+var_40]                              ; +0x19c, 0x8f51cc\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0x1a0, 0x8f51d0\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x1a4, 0x8f51d4\nRET                                                                    ; +0x1a8, 0x8f51d8\nMOV             X0, #0                                                 ; +0x1ac, 0x8f51dc\nLDR             S8, =0x43AA0000                                        ; +0x1b0, 0x8f51e0\nB               loc_8F50DC                                             ; +0x1b4, 0x8f51e4\nBL              .__stack_chk_fail                                      ; +0x1b8, 0x8f51e8", "xrefs": ["FRequestProfilePage::loadFRequestsFinished @ 0x8f5220", "FRequestProfilePage::loadPage @ 0x8f54c8", "<???> @ 0xb2a40"], "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"}