{"type": "func", "start": 4296766580, "end": 4296766952, "name": "FRequestProfilePage::setupCommentsBrowser", "pseudocode": "// \n// FRequestProfilePage::setupCommentsBrowser from 0x1001b7474 to 0x1001b75e8 (372 bytes)\n// \n// 2 xrefs:\n// > FRequestProfilePage::loadPage @ 0x1001b6f0c\n// > FRequestProfilePage::loadFRequestsFinished @ 0x1001b7610\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 __fastcall FRequestProfilePage::setupCommentsBrowser(FRequestProfilePage *a1, cocos2d::CCArray *a2)\n{\n  cocos2d::CCDirector *v4; // x0\n  cocos2d::CCTouchDispatcher *v5; // x0\n  cocos2d::CCDirector *v6; // x0\n  BoomListType v7; // w3\n  CustomListView *v8; // x0\n  GJCommentListLayer *v9; // x0\n  __n128 v10; // q0\n  GJCommentListLayer *m_listLayer; // x20\n  __n128 v12; // q1\n  BoomListView *m_list; // x0\n  cocos2d::CCMenu *m_buttonMenu; // x19\n  int v15; // w0\n  _DWORD v16[4]; // [xsp+0h] [xbp-20h] BYREF\n\n  if ( a1->m_listLayer )\n  {\n    v4 = cocos2d::CCDirector::sharedDirector();\n    v5 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v4->getTouchDispatcher)(v4);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1->m_listLayer);\n    ((void (__fastcall *)(GJCommentListLayer *))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  {\n    if ( a1->m_sent )\n      v7 = User;\n    else\n      v7 = Request;\n    v8 = CustomListView::create(a2, nullptr, 196.0, 340.0, 0, v7, 0.0);\n  }\n  else\n  {\n    v8 = nullptr;\n  }\n  v9 = GJCommentListLayer::create(v8, \"Friend Requests\", (cocos2d::ccColor4B)-12684609, 340.0, 196.0, 0);\n  a1->m_listLayer = v9;\n  v10 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, GJCommentListLayer *))a1->m_mainLayer->addChild)(\n          a1->m_mainLayer,\n          v9);\n  v10.n128_f32[0] = (float)(*(float *)&v16[2] + -340.0) * 0.5;\n  m_listLayer = a1->m_listLayer;\n  v12.n128_f32[0] = (float)((float)((float)(*(float *)&v16[3] + -196.0) * 0.5) + -10.0) + 5.0;\n  sub_100022980(v10, v12, v16);\n  ((void (__fastcall *)(GJCommentListLayer *, _DWORD *))m_listLayer->setPosition)(m_listLayer, v16);\n  m_list = a1->m_listLayer->m_list;\n  if ( m_list )\n  {\n    m_buttonMenu = a1->m_buttonMenu;\n    v15 = ((__int64 (__fastcall *)(BoomListView *))m_list->getTouchPriority)(m_list);\n    ((void (__fastcall *)(cocos2d::CCMenu *, _QWORD))m_buttonMenu->setTouchPriority)(\n      m_buttonMenu,\n      (unsigned int)(v15 - 2));\n  }\n}", "assembly": "; \n; FRequestProfilePage::setupCommentsBrowser from 0x1001b7474 to 0x1001b75e8 (372 bytes)\n; \n; 2 xrefs:\n; > FRequestProfilePage::loadPage @ 0x1001b6f0c\n; > FRequestProfilePage::loadFRequestsFinished @ 0x1001b7610\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1001b7474\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001b7478\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001b747c\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001b7480\nMOV             X20, X1                                                ; +0x10, 0x1001b7484\nMOV             X19, X0                                                ; +0x14, 0x1001b7488\nLDR             X8, [X0,#0x2C8]                                        ; +0x18, 0x1001b748c\nCBZ             X8, loc_1001B74C0                                      ; +0x1c, 0x1001b7490\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x20, 0x1001b7494\nLDR             X8, [X0]                                               ; +0x24, 0x1001b7498\nLDR             X8, [X8,#0xA0]                                         ; +0x28, 0x1001b749c\nBLR             X8                                                     ; +0x2c, 0x1001b74a0\nLDR             X1, [X19,#0x2C8]                                       ; +0x30, 0x1001b74a4\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x34, 0x1001b74a8\nLDR             X0, [X19,#0x2C8]                                       ; +0x38, 0x1001b74ac\nLDR             X8, [X0]                                               ; +0x3c, 0x1001b74b0\nLDR             X8, [X8,#0x208]                                        ; +0x40, 0x1001b74b4\nBLR             X8                                                     ; +0x44, 0x1001b74b8\nSTR             XZR, [X19,#0x2C8]                                      ; +0x48, 0x1001b74bc\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x4c, 0x1001b74c0\nADD             X8, SP, #0x20+var_18                                   ; +0x50, 0x1001b74c4\nBL              cocos2d__CCDirector__getWinSize                        ; +0x54, 0x1001b74c8\nCBZ             X20, loc_1001B750C                                     ; +0x58, 0x1001b74cc\nLDRB            W8, [X19,#0x298]                                       ; +0x5c, 0x1001b74d0\nCMP             W8, #0                                                 ; +0x60, 0x1001b74d4\nMOV             W8, #0x12                                              ; +0x64, 0x1001b74d8\nMOV             W9, #2                                                 ; +0x68, 0x1001b74dc\nCSEL            W3, W9, W8, NE                                         ; +0x6c, 0x1001b74e0\nMOV             W8, #0x43440000                                        ; +0x70, 0x1001b74e4\nFMOV            S0, W8                                                 ; +0x74, 0x1001b74e8\nMOV             W8, #0x43AA0000                                        ; +0x78, 0x1001b74ec\nFMOV            S1, W8                                                 ; +0x7c, 0x1001b74f0\nFMOV            S2, WZR                                                ; +0x80, 0x1001b74f4\nMOV             X0, X20                                                ; +0x84, 0x1001b74f8\nMOV             X1, #0                                                 ; +0x88, 0x1001b74fc\nMOV             W2, #0                                                 ; +0x8c, 0x1001b7500\nBL              CustomListView__create                                 ; +0x90, 0x1001b7504\nB               loc_1001B7510                                          ; +0x94, 0x1001b7508\nMOV             X0, #0                                                 ; +0x98, 0x1001b750c\nADRL            X1, aFriendRequests; \"Friend Requests\"                 ; +0x9c, 0x1001b7510\nMOV             W8, #0x43AA0000                                        ; +0xa4, 0x1001b7518\nFMOV            S0, W8                                                 ; +0xa8, 0x1001b751c\nMOV             W8, #0x43440000                                        ; +0xac, 0x1001b7520\nFMOV            S1, W8                                                 ; +0xb0, 0x1001b7524\nMOV             W2, #0xFF3E72BF                                        ; +0xb4, 0x1001b7528\nMOV             W3, #0                                                 ; +0xbc, 0x1001b7530\nBL              GJCommentListLayer__create                             ; +0xc0, 0x1001b7534\nMOV             X1, X0                                                 ; +0xc4, 0x1001b7538\nSTR             X0, [X19,#0x2C8]                                       ; +0xc8, 0x1001b753c\nLDR             X0, [X19,#0x240]                                       ; +0xcc, 0x1001b7540\nLDR             X8, [X0]                                               ; +0xd0, 0x1001b7544\nLDR             X8, [X8,#0x1B8]                                        ; +0xd4, 0x1001b7548\nBLR             X8                                                     ; +0xd8, 0x1001b754c\nMOV             W8, #0xC3AA0000                                        ; +0xdc, 0x1001b7550\nFMOV            S0, W8                                                 ; +0xe0, 0x1001b7554\nLDP             S1, S2, [SP,#0x20+var_18]                              ; +0xe4, 0x1001b7558\nFADD            S0, S1, S0                                             ; +0xe8, 0x1001b755c\nFMOV            S1, #0.5                                               ; +0xec, 0x1001b7560\nFMUL            S0, S0, S1                                             ; +0xf0, 0x1001b7564\nMOV             W8, #0xC3440000                                        ; +0xf4, 0x1001b7568\nFMOV            S3, W8                                                 ; +0xf8, 0x1001b756c\nFADD            S2, S2, S3                                             ; +0xfc, 0x1001b7570\nFMUL            S1, S2, S1                                             ; +0x100, 0x1001b7574\nFMOV            S2, #-10.0                                             ; +0x104, 0x1001b7578\nFADD            S1, S1, S2                                             ; +0x108, 0x1001b757c\nLDR             X20, [X19,#0x2C8]                                      ; +0x10c, 0x1001b7580\nFMOV            S2, #5.0                                               ; +0x110, 0x1001b7584\nFADD            S1, S1, S2                                             ; +0x114, 0x1001b7588\nMOV             X0, SP                                                 ; +0x118, 0x1001b758c\nBL              sub_100022980                                          ; +0x11c, 0x1001b7590\nLDR             X8, [X20]                                              ; +0x120, 0x1001b7594\nLDR             X8, [X8,#0xB8]                                         ; +0x124, 0x1001b7598\nMOV             X1, SP                                                 ; +0x128, 0x1001b759c\nMOV             X0, X20                                                ; +0x12c, 0x1001b75a0\nBLR             X8                                                     ; +0x130, 0x1001b75a4\nLDR             X8, [X19,#0x2C8]                                       ; +0x134, 0x1001b75a8\nLDR             X0, [X8,#0x220]                                        ; +0x138, 0x1001b75ac\nCBZ             X0, loc_1001B75D8                                      ; +0x13c, 0x1001b75b0\nLDR             X19, [X19,#0x220]                                      ; +0x140, 0x1001b75b4\nLDR             X8, [X0]                                               ; +0x144, 0x1001b75b8\nLDR             X8, [X8,#0x3F8]                                        ; +0x148, 0x1001b75bc\nBLR             X8                                                     ; +0x14c, 0x1001b75c0\nSUB             W1, W0, #2                                             ; +0x150, 0x1001b75c4\nLDR             X8, [X19]                                              ; +0x154, 0x1001b75c8\nLDR             X8, [X8,#0x3F0]                                        ; +0x158, 0x1001b75cc\nMOV             X0, X19                                                ; +0x15c, 0x1001b75d0\nBLR             X8                                                     ; +0x160, 0x1001b75d4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x164, 0x1001b75d8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x168, 0x1001b75dc\nADD             SP, SP, #0x30 ; '0'                                    ; +0x16c, 0x1001b75e0\nRET                                                                    ; +0x170, 0x1001b75e4", "xrefs": ["FRequestProfilePage::loadPage @ 0x1001b6f0c", "FRequestProfilePage::loadFRequestsFinished @ 0x1001b7610"], "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"}