{"type": "func", "start": 5372084272, "end": 5372084669, "name": "MessagesProfilePage::setupCommentsBrowser", "pseudocode": "// \n// MessagesProfilePage::setupCommentsBrowser from 0x140338030 to 0x1403381bd (397 bytes)\n// \n// 3 xrefs:\n// > MessagesProfilePage::loadPage @ 0x140337f6b\n// > MessagesProfilePage::loadMessagesFinished @ 0x1403381f6\n// > <???> @ 0x1406d52c4\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 MessagesProfilePage::setupCommentsBrowser(MessagesProfilePage *a1, cocos2d::CCArray *a2)\n{\n  CustomListView *v2; // rbx\n  __int64 v5; // rax\n  cocos2d::CCTouchDispatcher *v6; // rax\n  cocos2d::CCDirector *v7; // rax\n  const char *v8; // rdx\n  GJCommentListLayer *v9; // rax\n  cocos2d::CCLayer *m_mainLayer; // rcx\n  float v11; // xmm0_4\n  GJCommentListLayer_vtbl *v12; // rbx\n  const cocos2d::CCPoint *v13; // rax\n  BoomListView *m_list; // rcx\n  cocos2d::CCMenu_vtbl *v15; // rbx\n  int v16; // eax\n  int v17; // [rsp+20h] [rbp-38h]\n  float v18; // [rsp+60h] [rbp+8h]\n\n  v2 = nullptr;\n  if ( a1->m_listLayer )\n  {\n    v5 = cocos2d::CCDirector::sharedDirector(a1);\n    v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1->m_listLayer);\n    a1->m_listLayer->removeMeAndCleanup(a1->m_listLayer);\n    a1->m_listLayer = nullptr;\n  }\n  v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v7);\n  if ( a2 )\n    v2 = CustomListView::create(a2, nullptr, 196.0, 340.0, v17, Message, 0.0);\n  v9 = GJCommentListLayer::create(v2, v8, (cocos2d::ccColor4B)-12684609, 340.0, 196.0, 0);\n  m_mainLayer = a1->m_mainLayer;\n  a1->m_listLayer = v9;\n  v11 = ((float (__fastcall *)(cocos2d::CCLayer *, GJCommentListLayer *))m_mainLayer->addChild_1)(m_mainLayer, v9);\n  v12 = a1->m_listLayer->__vftable;\n  cocos2d::CCPoint::CCPoint(v11, (float)(v18 - 340.0) * 0.5);\n  v12->setPosition_0(a1->m_listLayer, v13);\n  m_list = a1->m_listLayer->m_list;\n  if ( m_list )\n  {\n    v15 = a1->m_buttonMenu->FLAlertLayer::__vftable;\n    v16 = m_list->getTouchPriority(m_list);\n    v15->setTouchPriority(a1->m_buttonMenu, v16 - 2);\n  }\n}", "assembly": "; \n; MessagesProfilePage::setupCommentsBrowser from 0x140338030 to 0x1403381bd (397 bytes)\n; \n; 3 xrefs:\n; > MessagesProfilePage::loadPage @ 0x140337f6b\n; > MessagesProfilePage::loadMessagesFinished @ 0x1403381f6\n; > <???> @ 0x1406d52c4\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140338030\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140338035\npush    rdi                                                            ; +0xa, 0x14033803a\nsub     rsp, 50h                                                       ; +0xb, 0x14033803b\nxor     ebx, ebx                                                       ; +0xf, 0x14033803f\nmovaps  [rsp+58h+var_18], xmm7                                         ; +0x11, 0x140338041\nmov     rsi, rdx                                                       ; +0x16, 0x140338046\nmov     rdi, rcx                                                       ; +0x19, 0x140338049\ncmp     [rcx+2D0h], rbx                                                ; +0x1c, 0x14033804c\njz      short loc_14033808F                                            ; +0x23, 0x140338053\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x25, 0x140338055\nmov     rcx, rax                                                       ; +0x2b, 0x14033805b\nmov     r8, [rax]                                                      ; +0x2e, 0x14033805e\ncall    qword ptr [r8+90h]                                             ; +0x31, 0x140338061\nmov     rdx, [rdi+2D0h]                                                ; +0x38, 0x140338068\nmov     rcx, rax                                                       ; +0x3f, 0x14033806f\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x42, 0x140338072\nmov     rcx, [rdi+2D0h]                                                ; +0x48, 0x140338078\nmov     rax, [rcx]                                                     ; +0x4f, 0x14033807f\ncall    qword ptr [rax+200h]                                           ; +0x52, 0x140338082\nmov     [rdi+2D0h], rbx                                                ; +0x58, 0x140338088\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x5f, 0x14033808f\nmov     rcx, rax                                                       ; +0x65, 0x140338095\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x68, 0x140338098\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x6d, 0x14033809d\nmovss   xmm7, cs:dword_1406233CC                                       ; +0x73, 0x1403380a3\ntest    rsi, rsi                                                       ; +0x7b, 0x1403380ab\njz      short loc_1403380D9                                            ; +0x7e, 0x1403380ae\nmovss   xmm3, cs:dword_140623460                                       ; +0x80, 0x1403380b0\nxorps   xmm0, xmm0                                                     ; +0x88, 0x1403380b8\nmovss   [rsp+58h+var_28], xmm0                                         ; +0x8b, 0x1403380bb\nmovaps  xmm2, xmm7                                                     ; +0x91, 0x1403380c1\nxor     edx, edx                                                       ; +0x94, 0x1403380c4\nmov     [rsp+58h+var_30], 13h                                          ; +0x96, 0x1403380c6\nmov     rcx, rsi                                                       ; +0x9e, 0x1403380ce\ncall    CustomListView__create                                         ; +0xa1, 0x1403380d1\nmov     rbx, rax                                                       ; +0xa6, 0x1403380d6\nmovss   xmm3, cs:dword_140623460                                       ; +0xa9, 0x1403380d9\nmov     r8d, 0FF3E72BFh                                                ; +0xb1, 0x1403380e1\nmov     byte ptr [rsp+58h+var_30], 0                                   ; +0xb7, 0x1403380e7\nmov     rcx, rbx                                                       ; +0xbc, 0x1403380ec\nmovss   [rsp+58h+var_38], xmm7                                         ; +0xbf, 0x1403380ef\ncall    GJCommentListLayer__create                                     ; +0xc5, 0x1403380f5\nmov     rcx, [rdi+240h]                                                ; +0xca, 0x1403380fa\nmov     rdx, rax                                                       ; +0xd1, 0x140338101\nmov     [rdi+2D0h], rax                                                ; +0xd4, 0x140338104\nmov     r8, [rcx]                                                      ; +0xdb, 0x14033810b\ncall    qword ptr [r8+1C0h]                                            ; +0xde, 0x14033810e\nmovss   xmm2, [rsp+58h+arg_4]                                          ; +0xe5, 0x140338115\nlea     rcx, [rsp+58h+arg_8]                                           ; +0xeb, 0x14033811b\nmovss   xmm1, [rsp+58h+arg_0]                                          ; +0xf0, 0x140338120\nsubss   xmm2, xmm7                                                     ; +0xf6, 0x140338126\nsubss   xmm1, cs:dword_140623460                                       ; +0xfa, 0x14033812a\nmov     rax, [rdi+2D0h]                                                ; +0x102, 0x140338132\nmulss   xmm2, cs:dword_140622B08                                       ; +0x109, 0x140338139\nmov     rbx, [rax]                                                     ; +0x111, 0x140338141\nmulss   xmm1, cs:dword_140622B08                                       ; +0x114, 0x140338144\nsubss   xmm2, cs:flt_14062307C                                         ; +0x11c, 0x14033814c\naddss   xmm2, cs:flt_140623010                                         ; +0x124, 0x140338154\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x12c, 0x14033815c\nmov     rcx, [rdi+2D0h]                                                ; +0x132, 0x140338162\nmov     rdx, rax                                                       ; +0x139, 0x140338169\ncall    qword ptr [rbx+0B8h]                                           ; +0x13c, 0x14033816c\nmov     rax, [rdi+2D0h]                                                ; +0x142, 0x140338172\nmov     rcx, [rax+220h]                                                ; +0x149, 0x140338179\ntest    rcx, rcx                                                       ; +0x150, 0x140338180\njz      short loc_1403381A8                                            ; +0x153, 0x140338183\nmov     rax, [rdi+220h]                                                ; +0x155, 0x140338185\nmov     rbx, [rax]                                                     ; +0x15c, 0x14033818c\nmov     rax, [rcx]                                                     ; +0x15f, 0x14033818f\ncall    qword ptr [rax+3A8h]                                           ; +0x162, 0x140338192\nmov     rcx, [rdi+220h]                                                ; +0x168, 0x140338198\nlea     edx, [rax-2]                                                   ; +0x16f, 0x14033819f\ncall    qword ptr [rbx+3A0h]                                           ; +0x172, 0x1403381a2\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x178, 0x1403381a8\nmov     rsi, [rsp+58h+arg_18]                                          ; +0x17d, 0x1403381ad\nmovaps  xmm7, [rsp+58h+var_18]                                         ; +0x182, 0x1403381b2\nadd     rsp, 50h                                                       ; +0x187, 0x1403381b7\npop     rdi                                                            ; +0x18b, 0x1403381bb\nretn                                                                   ; +0x18c, 0x1403381bc", "xrefs": ["MessagesProfilePage::loadPage @ 0x140337f6b", "MessagesProfilePage::loadMessagesFinished @ 0x1403381f6", "<???> @ 0x1406d52c4"], "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"}