{"type": "func", "start": 5372667072, "end": 5372667429, "name": "ProfilePage::setupCommentsBrowser", "pseudocode": "// \n// ProfilePage::setupCommentsBrowser from 0x1403c64c0 to 0x1403c6625 (357 bytes)\n// \n// 9 xrefs:\n// > ProfilePage::init @ 0x1403bf609\n// > ProfilePage::init @ 0x1403bf71b\n// > ProfilePage::init @ 0x1403bf760\n// > ProfilePage::onUpdate @ 0x1403bfe0b\n// > ProfilePage::updateUserScoreFinished @ 0x1403c5309\n// > ProfilePage::userInfoChanged @ 0x1403c605e\n// > ProfilePage::loadPage @ 0x1403c643a\n// > ProfilePage::loadCommentsFinished @ 0x1403c6662\n// > <???> @ 0x1406d78d4\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 ProfilePage::setupCommentsBrowser(ProfilePage *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  int v14; // [rsp+20h] [rbp-38h]\n  float v15; // [rsp+60h] [rbp+8h]\n\n  v2 = nullptr;\n  if ( a1->m_list )\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_list);\n    a1->m_list->removeMeAndCleanup(a1->m_list);\n    a1->m_list = nullptr;\n  }\n  v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v7);\n  if ( a2 )\n    v2 = CustomListView::create(a2, nullptr, 100.0, 340.0, v14, Comment4, 0.0);\n  v9 = GJCommentListLayer::create(v2, v8, (cocos2d::ccColor4B)-12684609, 340.0, 100.0, 0);\n  m_mainLayer = a1->m_mainLayer;\n  a1->m_list = v9;\n  v11 = ((float (__fastcall *)(cocos2d::CCLayer *, GJCommentListLayer *))m_mainLayer->addChild_1)(m_mainLayer, v9);\n  v12 = a1->m_list->__vftable;\n  cocos2d::CCPoint::CCPoint(v11, (float)(v15 - 340.0) * 0.5);\n  v12->setPosition_0(a1->m_list, v13);\n  if ( a1->m_ownProfile )\n    cocos2d::CCMenu::giveMenuTouchPriority(a1->m_buttonMenu);\n}", "assembly": "; \n; ProfilePage::setupCommentsBrowser from 0x1403c64c0 to 0x1403c6625 (357 bytes)\n; \n; 9 xrefs:\n; > ProfilePage::init @ 0x1403bf609\n; > ProfilePage::init @ 0x1403bf71b\n; > ProfilePage::init @ 0x1403bf760\n; > ProfilePage::onUpdate @ 0x1403bfe0b\n; > ProfilePage::updateUserScoreFinished @ 0x1403c5309\n; > ProfilePage::userInfoChanged @ 0x1403c605e\n; > ProfilePage::loadPage @ 0x1403c643a\n; > ProfilePage::loadCommentsFinished @ 0x1403c6662\n; > <???> @ 0x1406d78d4\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, 0x1403c64c0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1403c64c5\npush    rdi                                                            ; +0xa, 0x1403c64ca\nsub     rsp, 50h                                                       ; +0xb, 0x1403c64cb\nxor     ebx, ebx                                                       ; +0xf, 0x1403c64cf\nmovaps  [rsp+58h+var_18], xmm7                                         ; +0x11, 0x1403c64d1\nmov     rsi, rdx                                                       ; +0x16, 0x1403c64d6\nmov     rdi, rcx                                                       ; +0x19, 0x1403c64d9\ncmp     [rcx+2F0h], rbx                                                ; +0x1c, 0x1403c64dc\njz      short loc_1403C651F                                            ; +0x23, 0x1403c64e3\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x25, 0x1403c64e5\nmov     rcx, rax                                                       ; +0x2b, 0x1403c64eb\nmov     r8, [rax]                                                      ; +0x2e, 0x1403c64ee\ncall    qword ptr [r8+90h]                                             ; +0x31, 0x1403c64f1\nmov     rdx, [rdi+2F0h]                                                ; +0x38, 0x1403c64f8\nmov     rcx, rax                                                       ; +0x3f, 0x1403c64ff\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x42, 0x1403c6502\nmov     rcx, [rdi+2F0h]                                                ; +0x48, 0x1403c6508\nmov     rax, [rcx]                                                     ; +0x4f, 0x1403c650f\ncall    qword ptr [rax+200h]                                           ; +0x52, 0x1403c6512\nmov     [rdi+2F0h], rbx                                                ; +0x58, 0x1403c6518\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x5f, 0x1403c651f\nmov     rcx, rax                                                       ; +0x65, 0x1403c6525\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x68, 0x1403c6528\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x6d, 0x1403c652d\nmovss   xmm7, cs:dword_1406232BC                                       ; +0x73, 0x1403c6533\ntest    rsi, rsi                                                       ; +0x7b, 0x1403c653b\njz      short loc_1403C6569                                            ; +0x7e, 0x1403c653e\nmovss   xmm3, cs:dword_140623460                                       ; +0x80, 0x1403c6540\nxorps   xmm0, xmm0                                                     ; +0x88, 0x1403c6548\nmovss   [rsp+58h+var_28], xmm0                                         ; +0x8b, 0x1403c654b\nmovaps  xmm2, xmm7                                                     ; +0x91, 0x1403c6551\nxor     edx, edx                                                       ; +0x94, 0x1403c6554\nmov     [rsp+58h+var_30], 10h                                          ; +0x96, 0x1403c6556\nmov     rcx, rsi                                                       ; +0x9e, 0x1403c655e\ncall    CustomListView__create                                         ; +0xa1, 0x1403c6561\nmov     rbx, rax                                                       ; +0xa6, 0x1403c6566\nmovss   xmm3, cs:dword_140623460                                       ; +0xa9, 0x1403c6569\nmov     r8d, 0FF3E72BFh                                                ; +0xb1, 0x1403c6571\nmov     byte ptr [rsp+58h+var_30], 0                                   ; +0xb7, 0x1403c6577\nmov     rcx, rbx                                                       ; +0xbc, 0x1403c657c\nmovss   [rsp+58h+var_38], xmm7                                         ; +0xbf, 0x1403c657f\ncall    GJCommentListLayer__create                                     ; +0xc5, 0x1403c6585\nmov     rcx, [rdi+240h]                                                ; +0xca, 0x1403c658a\nmov     rdx, rax                                                       ; +0xd1, 0x1403c6591\nmov     [rdi+2F0h], rax                                                ; +0xd4, 0x1403c6594\nmov     r8, [rcx]                                                      ; +0xdb, 0x1403c659b\ncall    qword ptr [r8+1C0h]                                            ; +0xde, 0x1403c659e\nmovss   xmm2, [rsp+58h+arg_4]                                          ; +0xe5, 0x1403c65a5\nlea     rcx, [rsp+58h+arg_8]                                           ; +0xeb, 0x1403c65ab\nmovss   xmm1, [rsp+58h+arg_0]                                          ; +0xf0, 0x1403c65b0\nsubss   xmm2, xmm7                                                     ; +0xf6, 0x1403c65b6\nsubss   xmm1, cs:dword_140623460                                       ; +0xfa, 0x1403c65ba\nmov     rax, [rdi+2F0h]                                                ; +0x102, 0x1403c65c2\nmulss   xmm2, cs:dword_140622B08                                       ; +0x109, 0x1403c65c9\nmov     rbx, [rax]                                                     ; +0x111, 0x1403c65d1\nmulss   xmm1, cs:dword_140622B08                                       ; +0x114, 0x1403c65d4\nsubss   xmm2, cs:dword_1406231F0                                       ; +0x11c, 0x1403c65dc\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x124, 0x1403c65e4\nmov     rcx, [rdi+2F0h]                                                ; +0x12a, 0x1403c65ea\nmov     rdx, rax                                                       ; +0x131, 0x1403c65f1\ncall    qword ptr [rbx+0B8h]                                           ; +0x134, 0x1403c65f4\ncmp     byte ptr [rdi+2BCh], 0                                         ; +0x13a, 0x1403c65fa\njz      short loc_1403C6610                                            ; +0x141, 0x1403c6601\nmov     rcx, [rdi+220h]                                                ; +0x143, 0x1403c6603\ncall    cs:?giveMenuTouchPriority@CCMenu@cocos2d@@QEAAXXZ; cocos2d::CCMenu::giveMenuTouchPriority(void) ; +0x14a, 0x1403c660a\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x150, 0x1403c6610\nmov     rsi, [rsp+58h+arg_18]                                          ; +0x155, 0x1403c6615\nmovaps  xmm7, [rsp+58h+var_18]                                         ; +0x15a, 0x1403c661a\nadd     rsp, 50h                                                       ; +0x15f, 0x1403c661f\npop     rdi                                                            ; +0x163, 0x1403c6623\nretn                                                                   ; +0x164, 0x1403c6624", "xrefs": ["ProfilePage::init @ 0x1403bf609", "ProfilePage::init @ 0x1403bf71b", "ProfilePage::init @ 0x1403bf760", "ProfilePage::onUpdate @ 0x1403bfe0b", "ProfilePage::updateUserScoreFinished @ 0x1403c5309", "ProfilePage::userInfoChanged @ 0x1403c605e", "ProfilePage::loadPage @ 0x1403c643a", "ProfilePage::loadCommentsFinished @ 0x1403c6662", "<???> @ 0x1406d78d4"], "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"}