{"type": "func", "start": 4302903664, "end": 4302904042, "name": "FRequestProfilePage::setupCommentsBrowser", "pseudocode": "// \n// FRequestProfilePage::setupCommentsBrowser from 0x100791970 to 0x100791aea (378 bytes)\n// \n// 3 xrefs:\n// > FRequestProfilePage::loadPage @ 0x100791044\n// > FRequestProfilePage::loadFRequestsFinished @ 0x100791b0f\n// > sub_100791B60 @ 0x100791b8c\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 *v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  CustomListView *v5; // rdi\n  GJCommentListLayer *v6; // rax\n  GJCommentListLayer *m_listLayer; // r14\n  BoomListView *m_list; // rdi\n  cocos2d::CCMenu *m_buttonMenu; // rbx\n  int v10; // eax\n  float v11; // [rsp+8h] [rbp-28h] BYREF\n  float v12[8]; // [rsp+10h] [rbp-20h] BYREF\n\n  if ( a1->m_listLayer )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector();\n    v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1->m_listLayer);\n    ((void (__fastcall *)(GJCommentListLayer *))a1->m_listLayer->removeMeAndCleanup)(a1->m_listLayer);\n    a1->m_listLayer = nullptr;\n  }\n  cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v12);\n  if ( a2 )\n    v5 = CustomListView::create(a2, nullptr, 196.0, 340.0, 0, (BoomListType)((16 * !a1->m_sent) | 2), 0.0);\n  else\n    v5 = nullptr;\n  v6 = GJCommentListLayer::create(v5, \"Friend Requests\", (cocos2d::ccColor4B)-12684609, 340.0, 196.0, 0);\n  a1->m_listLayer = v6;\n  ((void (__fastcall *)(cocos2d::CCLayer *, GJCommentListLayer *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v6);\n  m_listLayer = a1->m_listLayer;\n  sub_10028CBE0(&v11, (float)(v12[0] + -340.0) * 0.5, (float)((float)((float)(v12[1] + -196.0) * 0.5) + -10.0) + 5.0);\n  ((void (__fastcall *)(GJCommentListLayer *, float *))m_listLayer->setPosition)(m_listLayer, &v11);\n  m_list = a1->m_listLayer->m_list;\n  if ( m_list )\n  {\n    m_buttonMenu = a1->m_buttonMenu;\n    v10 = ((__int64 (__fastcall *)(BoomListView *))m_list->getTouchPriority)(m_list);\n    ((void (__fastcall *)(cocos2d::CCMenu *, _QWORD))m_buttonMenu->setTouchPriority)(\n      m_buttonMenu,\n      (unsigned int)(v10 - 2));\n  }\n}", "assembly": "; \n; FRequestProfilePage::setupCommentsBrowser from 0x100791970 to 0x100791aea (378 bytes)\n; \n; 3 xrefs:\n; > FRequestProfilePage::loadPage @ 0x100791044\n; > FRequestProfilePage::loadFRequestsFinished @ 0x100791b0f\n; > sub_100791B60 @ 0x100791b8c\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    rbp                                                            ; +0x0, 0x100791970\nmov     rbp, rsp                                                       ; +0x1, 0x100791971\npush    r15                                                            ; +0x4, 0x100791974\npush    r14                                                            ; +0x6, 0x100791976\npush    rbx                                                            ; +0x8, 0x100791978\nsub     rsp, 18h                                                       ; +0x9, 0x100791979\nmov     r14, rsi                                                       ; +0xd, 0x10079197d\nmov     rbx, rdi                                                       ; +0x10, 0x100791980\ncmp     qword ptr [rdi+2C8h], 0                                        ; +0x13, 0x100791983\njz      short loc_1007919C8                                            ; +0x1b, 0x10079198b\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x1d, 0x10079198d\nmov     rcx, [rax]                                                     ; +0x22, 0x100791992\nmov     rdi, rax                                                       ; +0x25, 0x100791995\ncall    qword ptr [rcx+0A0h]                                           ; +0x28, 0x100791998\nmov     rsi, [rbx+2C8h]                                                ; +0x2e, 0x10079199e\nmov     rdi, rax                                                       ; +0x35, 0x1007919a5\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x38, 0x1007919a8\nmov     rdi, [rbx+2C8h]                                                ; +0x3d, 0x1007919ad\nmov     rax, [rdi]                                                     ; +0x44, 0x1007919b4\ncall    qword ptr [rax+208h]                                           ; +0x47, 0x1007919b7\nmov     qword ptr [rbx+2C8h], 0                                        ; +0x4d, 0x1007919bd\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x58, 0x1007919c8\nlea     rdi, [rbp+var_20]                                              ; +0x5d, 0x1007919cd\nmov     rsi, rax                                                       ; +0x61, 0x1007919d1\ncall    cocos2d__CCDirector__getWinSize                                ; +0x64, 0x1007919d4\ntest    r14, r14                                                       ; +0x69, 0x1007919d9\njz      short loc_100791A12                                            ; +0x6c, 0x1007919dc\nmovzx   ecx, byte ptr [rbx+298h]                                       ; +0x6e, 0x1007919de\nxor     ecx, 1                                                         ; +0x75, 0x1007919e5\nshl     ecx, 4                                                         ; +0x78, 0x1007919e8\nor      ecx, 2                                                         ; +0x7b, 0x1007919eb\nmovss   xmm0, cs:dword_100817E04                                       ; +0x7e, 0x1007919ee\nmovss   xmm1, cs:dword_1008152B0                                       ; +0x86, 0x1007919f6\nxorps   xmm2, xmm2                                                     ; +0x8e, 0x1007919fe\nmov     rdi, r14                                                       ; +0x91, 0x100791a01\nxor     esi, esi                                                       ; +0x94, 0x100791a04\nxor     edx, edx                                                       ; +0x96, 0x100791a06\ncall    CustomListView__create                                         ; +0x98, 0x100791a08\nmov     rdi, rax                                                       ; +0x9d, 0x100791a0d\njmp     short loc_100791A14                                            ; +0xa0, 0x100791a10\nxor     edi, edi                                                       ; +0xa2, 0x100791a12\nlea     rsi, aFriendRequests; \"Friend Requests\"                        ; +0xa4, 0x100791a14\nmovss   xmm0, cs:dword_1008152B0                                       ; +0xab, 0x100791a1b\nmovss   xmm1, cs:dword_100817E04                                       ; +0xb3, 0x100791a23\nmov     edx, 0FF3E72BFh                                                ; +0xbb, 0x100791a2b\nxor     ecx, ecx                                                       ; +0xc0, 0x100791a30\ncall    GJCommentListLayer__create                                     ; +0xc2, 0x100791a32\nmov     [rbx+2C8h], rax                                                ; +0xc7, 0x100791a37\nmov     rdi, [rbx+240h]                                                ; +0xce, 0x100791a3e\nmov     rcx, [rdi]                                                     ; +0xd5, 0x100791a45\nmov     rsi, rax                                                       ; +0xd8, 0x100791a48\ncall    qword ptr [rcx+1B8h]                                           ; +0xdb, 0x100791a4b\nmovss   xmm0, [rbp+var_20]                                             ; +0xe1, 0x100791a51\nmovss   xmm1, [rbp+var_1C]                                             ; +0xe6, 0x100791a56\naddss   xmm0, cs:dword_100817E08                                       ; +0xeb, 0x100791a5b\naddss   xmm1, cs:dword_100817E0C                                       ; +0xf3, 0x100791a63\nmovss   xmm2, cs:dword_100814FA8                                       ; +0xfb, 0x100791a6b\nmulss   xmm1, xmm2                                                     ; +0x103, 0x100791a73\naddss   xmm1, cs:dword_100815064                                       ; +0x107, 0x100791a77\nmulss   xmm0, xmm2                                                     ; +0x10f, 0x100791a7f\nmov     r14, [rbx+2C8h]                                                ; +0x113, 0x100791a83\naddss   xmm1, cs:flt_100815088                                         ; +0x11a, 0x100791a8a\nlea     r15, [rbp+var_28]                                              ; +0x122, 0x100791a92\nmov     rdi, r15                                                       ; +0x126, 0x100791a96\ncall    sub_10028CBE0                                                  ; +0x129, 0x100791a99\nmov     rax, [r14]                                                     ; +0x12e, 0x100791a9e\nmov     rdi, r14                                                       ; +0x131, 0x100791aa1\nmov     rsi, r15                                                       ; +0x134, 0x100791aa4\ncall    qword ptr [rax+0B8h]                                           ; +0x137, 0x100791aa7\nmov     rax, [rbx+2C8h]                                                ; +0x13d, 0x100791aad\nmov     rdi, [rax+220h]                                                ; +0x144, 0x100791ab4\ntest    rdi, rdi                                                       ; +0x14b, 0x100791abb\njz      short loc_100791ADF                                            ; +0x14e, 0x100791abe\nmov     rbx, [rbx+220h]                                                ; +0x150, 0x100791ac0\nmov     rax, [rdi]                                                     ; +0x157, 0x100791ac7\ncall    qword ptr [rax+3F8h]                                           ; +0x15a, 0x100791aca\nlea     esi, [rax-2]                                                   ; +0x160, 0x100791ad0\nmov     rax, [rbx]                                                     ; +0x163, 0x100791ad3\nmov     rdi, rbx                                                       ; +0x166, 0x100791ad6\ncall    qword ptr [rax+3F0h]                                           ; +0x169, 0x100791ad9\nadd     rsp, 18h                                                       ; +0x16f, 0x100791adf\npop     rbx                                                            ; +0x173, 0x100791ae3\npop     r14                                                            ; +0x174, 0x100791ae4\npop     r15                                                            ; +0x176, 0x100791ae6\npop     rbp                                                            ; +0x178, 0x100791ae8\nretn                                                                   ; +0x179, 0x100791ae9", "xrefs": ["FRequestProfilePage::loadPage @ 0x100791044", "FRequestProfilePage::loadFRequestsFinished @ 0x100791b0f", "sub_100791B60 @ 0x100791b8c"], "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"}