{"type": "func", "start": 4990044, "end": 4990362, "name": "FRequestProfilePage::setupCommentsBrowser", "pseudocode": "// \n// FRequestProfilePage::setupCommentsBrowser from 0x4c245c to 0x4c259a (318 bytes)\n// \n// 2 xrefs:\n// > FRequestProfilePage::loadFRequestsFinished @ 0x4c25c6\n// > FRequestProfilePage::loadPage @ 0x4c2720\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; // r0\n  cocos2d::CCTouchDispatcher *v5; // r0\n  cocos2d::CCDirector *v6; // r0\n  CustomListView *v7; // r0\n  GJCommentListLayer *v8; // r0\n  GJCommentListLayer *m_listLayer; // r7\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8\n  BoomListView *m_list; // r0\n  cocos2d::CCMenu *m_buttonMenu; // r4\n  void (__fastcall *setTouchPriority)(cocos2d::CCLayer *__hidden, int); // r5\n  int v14; // r0\n  cocos2d::CCSize v15; // [sp+14h] [bp-14h] BYREF\n  cocos2d::CCPoint v16; // [sp+1Ch] [bp-Ch] 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(&v15, 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  a1->m_listLayer = v8;\n  a1->m_mainLayer->addChild(a1->m_mainLayer, v8);\n  m_listLayer = a1->m_listLayer;\n  setPosition = m_listLayer->setPosition;\n  cocos2d::CCPoint::CCPoint(\n    &v16,\n    (float)(v15.width - 340.0) * 0.5,\n    (float)((float)((float)(v15.height - 196.0) * 0.5) - 10.0) + 5.0);\n  setPosition(m_listLayer, &v16);\n  m_list = a1->m_listLayer->m_list;\n  if ( m_list )\n  {\n    m_buttonMenu = a1->m_buttonMenu;\n    setTouchPriority = m_buttonMenu->setTouchPriority;\n    v14 = m_list->getTouchPriority(m_list);\n    setTouchPriority(m_buttonMenu, v14 - 2);\n  }\n}", "assembly": "; \n; FRequestProfilePage::setupCommentsBrowser from 0x4c245c to 0x4c259a (318 bytes)\n; \n; 2 xrefs:\n; > FRequestProfilePage::loadFRequestsFinished @ 0x4c25c6\n; > FRequestProfilePage::loadPage @ 0x4c2720\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x4C2466)                ; +0x0, 0x4c245c\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x4c245e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x4c2462\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x4c2464\nVPUSH           {D8}                                                   ; +0xa, 0x4c2466\nMOV             R4, R0                                                 ; +0xe, 0x4c246a\nLDR             R2, [R3]                                               ; +0x10, 0x4c246c\nMOV             R5, R1                                                 ; +0x12, 0x4c246e\nMOV             R6, R3                                                 ; +0x14, 0x4c2470\nSUB             SP, SP, #0x28; float                                   ; +0x16, 0x4c2472\nSTR             R2, [SP,#0x28+var_4]                                   ; +0x18, 0x4c2474\nLDR.W           R2, [R0,#0x210]                                        ; +0x1a, 0x4c2476\nCBZ             R2, loc_4C24A0                                         ; +0x1e, 0x4c247a\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x20, 0x4c247c\nLDR             R3, [R0]                                               ; +0x24, 0x4c2480\nLDR             R3, [R3,#0x50]                                         ; +0x26, 0x4c2482\nBLX             R3                                                     ; +0x28, 0x4c2484\nLDR.W           R1, [R4,#0x210]; cocos2d::CCObject *                   ; +0x2a, 0x4c2486\nBL              _ZN7cocos2d17CCTouchDispatcher19unregisterForcePrioEPNS_8CCObjectE; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x2e, 0x4c248a\nLDR.W           R0, [R4,#0x210]                                        ; +0x32, 0x4c248e\nLDR             R3, [R0]                                               ; +0x36, 0x4c2492\nLDR.W           R3, [R3,#0x104]                                        ; +0x38, 0x4c2494\nBLX             R3                                                     ; +0x3c, 0x4c2498\nMOVS            R3, #0                                                 ; +0x3e, 0x4c249a\nSTR.W           R3, [R4,#0x210]                                        ; +0x40, 0x4c249c\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x44, 0x4c24a0\nMOV             R1, R0                                                 ; +0x48, 0x4c24a4\nADD             R0, SP, #0x28+var_14; this                             ; +0x4a, 0x4c24a6\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x4c, 0x4c24a8\nCBZ             R5, loc_4C24D0                                         ; +0x50, 0x4c24ac\nLDRB.W          R3, [R4,#0x200]                                        ; +0x52, 0x4c24ae\nMOVS            R1, #0                                                 ; +0x56, 0x4c24b2\nMOV             R0, R5                                                 ; +0x58, 0x4c24b4\nLDR             R2, =0x43440000                                        ; +0x5a, 0x4c24b6\nCMP             R3, #0                                                 ; +0x5c, 0x4c24b8\nITE EQ                                                                 ; +0x5e, 0x4c24ba\nMOVEQ           R3, #0x12                                              ; +0x60, 0x4c24bc\nMOVNE           R3, #2                                                 ; +0x62, 0x4c24be\nSTMEA.W         SP, {R1,R3}                                            ; +0x64, 0x4c24c0\nMOVS            R3, #0                                                 ; +0x68, 0x4c24c4\nSTR             R3, [SP,#0x28+var_20]                                  ; +0x6a, 0x4c24c6\nLDR             R3, =0x43AA0000                                        ; +0x6c, 0x4c24c8\nBL              _ZN14CustomListView6createEPN7cocos2d7CCArrayEP21TableViewCellDelegateffi12BoomListTypef; CustomListView::create(cocos2d::CCArray *,TableViewCellDelegate *,float,float,int,BoomListType,float) ; +0x6e, 0x4c24ca\nB               loc_4C24D2                                             ; +0x72, 0x4c24ce\nMOV             R0, R5; int                                            ; +0x74, 0x4c24d0\nVLDR            S17, =340.0                                            ; +0x76, 0x4c24d2\nMOVS            R3, #0xBF                                              ; +0x7a, 0x4c24d6\nLDR             R1, =(aFriendRequests - 0x4C24EA); \"Friend Requests\"   ; +0x7c, 0x4c24d8\nADD             R5, SP, #0x28+var_C                                    ; +0x7e, 0x4c24da\nSTRB.W          R3, [SP,#0x28+var_18]                                  ; +0x80, 0x4c24dc\nMOVS            R3, #0x72 ; 'r'                                        ; +0x84, 0x4c24e0\nVLDR            S16, =196.0                                            ; +0x86, 0x4c24e2\nADD             R1, PC; \"Friend Requests\"                              ; +0x8a, 0x4c24e6\nSTRB.W          R3, [SP,#0x28+var_18+1]                                ; +0x8c, 0x4c24e8\nMOVS            R3, #0x3E ; '>'                                        ; +0x90, 0x4c24ec\nSTRB.W          R3, [SP,#0x28+var_18+2]                                ; +0x92, 0x4c24ee\nMOVS            R3, #0xFF                                              ; +0x96, 0x4c24f2\nSTRB.W          R3, [SP,#0x28+var_18+3]                                ; +0x98, 0x4c24f4\nMOVS            R3, #0                                                 ; +0x9c, 0x4c24f8\nLDR             R2, [SP,#0x28+var_18]; int                             ; +0x9e, 0x4c24fa\nSTR             R3, [SP,#0x28+var_24]; char                            ; +0xa0, 0x4c24fc\nVSTR            S16, [SP,#0x28+var_28]                                 ; +0xa2, 0x4c24fe\nVMOV            R3, S17; int                                           ; +0xa6, 0x4c2502\nBL              _ZN18GJCommentListLayer6createEP12BoomListViewPKcN7cocos2d10_ccColor4BEffb; GJCommentListLayer::create(BoomListView *,char const*,cocos2d::_ccColor4B,float,float,bool) ; +0xaa, 0x4c2506\nMOV             R1, R0                                                 ; +0xae, 0x4c250a\nSTR.W           R0, [R4,#0x210]                                        ; +0xb0, 0x4c250c\nLDR.W           R0, [R4,#0x1C8]                                        ; +0xb4, 0x4c2510\nLDR             R3, [R0]                                               ; +0xb8, 0x4c2514\nLDR.W           R3, [R3,#0xDC]                                         ; +0xba, 0x4c2516\nBLX             R3                                                     ; +0xbe, 0x4c251a\nVLDR            S14, [SP,#0x28+var_14]                                 ; +0xc0, 0x4c251c\nLDR.W           R7, [R4,#0x210]                                        ; +0xc4, 0x4c2520\nMOV             R0, R5; this                                           ; +0xc8, 0x4c2524\nVLDR            S13, [SP,#0x28+var_10]                                 ; +0xca, 0x4c2526\nLDR             R3, [R7]                                               ; +0xce, 0x4c252a\nVMOV.F32        S12, #0.5                                              ; +0xd0, 0x4c252c\nLDR.W           R8, [R3,#0x5C]                                         ; +0xd4, 0x4c2530\nVSUB.F32        S14, S14, S17                                          ; +0xd8, 0x4c2534\nVSUB.F32        S13, S13, S16                                          ; +0xdc, 0x4c2538\nVMOV.F32        S15, #10.0                                             ; +0xe0, 0x4c253c\nVMUL.F32        S14, S14, S12                                          ; +0xe4, 0x4c2540\nVNMLS.F32       S15, S13, S12                                          ; +0xe8, 0x4c2544\nVMOV            R1, S14; float                                         ; +0xec, 0x4c2548\nVMOV.F32        S14, #5.0                                              ; +0xf0, 0x4c254c\nVADD.F32        S15, S15, S14                                          ; +0xf4, 0x4c2550\nVMOV            R2, S15; float                                         ; +0xf8, 0x4c2554\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xfc, 0x4c2558\nMOV             R0, R7                                                 ; +0x100, 0x4c255c\nMOV             R1, R5                                                 ; +0x102, 0x4c255e\nBLX             R8                                                     ; +0x104, 0x4c2560\nLDR.W           R3, [R4,#0x210]                                        ; +0x106, 0x4c2562\nLDR.W           R0, [R3,#0x1B8]                                        ; +0x10a, 0x4c2566\nCBZ             R0, loc_4C2584                                         ; +0x10e, 0x4c256a\nLDR.W           R4, [R4,#0x1B8]                                        ; +0x110, 0x4c256c\nLDR             R3, [R4]                                               ; +0x114, 0x4c2570\nLDR.W           R5, [R3,#0x1F8]                                        ; +0x116, 0x4c2572\nLDR             R3, [R0]                                               ; +0x11a, 0x4c2576\nLDR.W           R3, [R3,#0x1FC]                                        ; +0x11c, 0x4c2578\nBLX             R3                                                     ; +0x120, 0x4c257c\nSUBS            R1, R0, #2                                             ; +0x122, 0x4c257e\nMOV             R0, R4                                                 ; +0x124, 0x4c2580\nBLX             R5                                                     ; +0x126, 0x4c2582\nLDR             R2, [SP,#0x28+var_4]                                   ; +0x128, 0x4c2584\nLDR             R3, [R6]                                               ; +0x12a, 0x4c2586\nCMP             R2, R3                                                 ; +0x12c, 0x4c2588\nBEQ             loc_4C2590                                             ; +0x12e, 0x4c258a\nBLX             __stack_chk_fail                                       ; +0x130, 0x4c258c\nADD             SP, SP, #0x28 ; '('                                    ; +0x134, 0x4c2590\nVPOP            {D8}                                                   ; +0x136, 0x4c2592\nPOP.W           {R4-R8,PC}                                             ; +0x13a, 0x4c2596", "xrefs": ["FRequestProfilePage::loadFRequestsFinished @ 0x4c25c6", "FRequestProfilePage::loadPage @ 0x4c2720"], "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"}