{"type": "func", "start": 4303033936, "end": 4303034458, "name": "InfoLayer::setupCommentsBrowser", "pseudocode": "// \n// InfoLayer::setupCommentsBrowser from 0x1007b1650 to 0x1007b185a (522 bytes)\n// \n// 4 xrefs:\n// > InfoLayer::init @ 0x1007aff72\n// > InfoLayer::loadPage @ 0x1007b143f\n// > InfoLayer::loadCommentsFinished @ 0x1007b254f\n// > sub_1007B2590 @ 0x1007b25bc\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 InfoLayer::setupCommentsBrowser(InfoLayer *a1, cocos2d::CCArray *a2)\n{\n  cocos2d::CCDirector *v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  GJAccountManager *v5; // rax\n  int m_accountID; // edx\n  bool v7; // al\n  bool v8; // cl\n  cocos2d::ccArray *data; // rdx\n  bool v10; // al\n  cocos2d::CCObject **arr; // rcx\n  unsigned __int64 v12; // rdx\n  GameManager *v13; // rax\n  float v14; // xmm1_4\n  GameManager *v15; // rax\n  bool GameVariable; // al\n  CustomListView *v17; // rax\n  BoomListView *v18; // rdi\n  GJCommentListLayer *v19; // rax\n  GJCommentListLayer *m_list; // rbx\n  float v21; // [rsp+8h] [rbp-28h] BYREF\n  float v22[2]; // [rsp+10h] [rbp-20h] BYREF\n  float v23; // [rsp+18h] [rbp-18h]\n  float v24; // [rsp+1Ch] [rbp-14h]\n\n  if ( a1->m_list )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector();\n    v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1->m_list);\n    ((void (__fastcall *)(GJCommentListLayer *))a1->m_list->removeMeAndCleanup)(a1->m_list);\n    a1->m_list = nullptr;\n  }\n  if ( a1->m_levelList )\n  {\n    v5 = GJAccountManager::sharedState();\n    m_accountID = a1->m_levelList->m_accountID;\n    v7 = v5->m_accountID - v5->m_unkInt1 == m_accountID;\n    v8 = m_accountID > 0;\n    if ( a2 )\n    {\n      data = a2->data;\n      if ( data->num )\n      {\n        v10 = v8 && v7;\n        arr = data->arr;\n        v12 = (unsigned __int64)&arr[data->num - 1];\n        do\n        {\n          if ( !*arr )\n            break;\n          BYTE1((*arr++)[7].m_unknown2) = v10;\n        }\n        while ( (unsigned __int64)arr <= v12 );\n      }\n    }\n  }\n  cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v22);\n  v13 = GameManager::sharedState();\n  if ( !GameManager::getGameVariable(v13, \"0089\") && !a1->m_score )\n  {\n    v14 = 140.0;\n    v23 = -53.0;\n    v24 = 140.0;\n    if ( a2 )\n      goto LABEL_12;\nLABEL_14:\n    v18 = nullptr;\n    goto LABEL_15;\n  }\n  v14 = 234.0;\n  v23 = -4.0;\n  v24 = 234.0;\n  if ( !a2 )\n    goto LABEL_14;\nLABEL_12:\n  v15 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v15, \"0088\");\n  v17 = CustomListView::create(a2, nullptr, v24, 340.0, 0, (BoomListType)(GameVariable + 7), 0.0);\n  v14 = v24;\n  v18 = v17;\nLABEL_15:\n  v19 = GJCommentListLayer::create(v18, \"Comments\", (cocos2d::ccColor4B)-12684609, 340.0, v14, 0);\n  a1->m_list = v19;\n  ((void (__fastcall *)(cocos2d::CCLayer *, GJCommentListLayer *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v19);\n  m_list = a1->m_list;\n  sub_10028CBE0(&v21, (float)(v22[0] + -340.0) * 0.5, v23 + (float)((float)(v22[1] - v24) * 0.5));\n  ((void (__fastcall *)(GJCommentListLayer *, float *))m_list->setPosition)(m_list, &v21);\n}", "assembly": "; \n; InfoLayer::setupCommentsBrowser from 0x1007b1650 to 0x1007b185a (522 bytes)\n; \n; 4 xrefs:\n; > InfoLayer::init @ 0x1007aff72\n; > InfoLayer::loadPage @ 0x1007b143f\n; > InfoLayer::loadCommentsFinished @ 0x1007b254f\n; > sub_1007B2590 @ 0x1007b25bc\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, 0x1007b1650\nmov     rbp, rsp                                                       ; +0x1, 0x1007b1651\npush    r14                                                            ; +0x4, 0x1007b1654\npush    rbx                                                            ; +0x6, 0x1007b1656\nsub     rsp, 20h                                                       ; +0x7, 0x1007b1657\nmov     r14, rsi                                                       ; +0xb, 0x1007b165b\nmov     rbx, rdi                                                       ; +0xe, 0x1007b165e\ncmp     qword ptr [rdi+2D8h], 0                                        ; +0x11, 0x1007b1661\njz      short loc_1007B16A6                                            ; +0x19, 0x1007b1669\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x1b, 0x1007b166b\nmov     rcx, [rax]                                                     ; +0x20, 0x1007b1670\nmov     rdi, rax                                                       ; +0x23, 0x1007b1673\ncall    qword ptr [rcx+0A0h]                                           ; +0x26, 0x1007b1676\nmov     rsi, [rbx+2D8h]                                                ; +0x2c, 0x1007b167c\nmov     rdi, rax                                                       ; +0x33, 0x1007b1683\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x36, 0x1007b1686\nmov     rdi, [rbx+2D8h]                                                ; +0x3b, 0x1007b168b\nmov     rax, [rdi]                                                     ; +0x42, 0x1007b1692\ncall    qword ptr [rax+208h]                                           ; +0x45, 0x1007b1695\nmov     qword ptr [rbx+2D8h], 0                                        ; +0x4b, 0x1007b169b\ncmp     qword ptr [rbx+2A0h], 0                                        ; +0x56, 0x1007b16a6\njz      short loc_1007B1717                                            ; +0x5e, 0x1007b16ae\ncall    GJAccountManager__sharedState                                  ; +0x60, 0x1007b16b0\nmov     ecx, [rax+160h]                                                ; +0x65, 0x1007b16b5\nsub     ecx, [rax+164h]                                                ; +0x6b, 0x1007b16bb\nmov     rax, [rbx+2A0h]                                                ; +0x71, 0x1007b16c1\nmov     edx, [rax+16Ch]                                                ; +0x78, 0x1007b16c8\ncmp     ecx, edx                                                       ; +0x7e, 0x1007b16ce\nsetz    al                                                             ; +0x80, 0x1007b16d0\ntest    edx, edx                                                       ; +0x83, 0x1007b16d3\nsetnle  cl                                                             ; +0x85, 0x1007b16d5\ntest    r14, r14                                                       ; +0x88, 0x1007b16d8\njz      short loc_1007B1717                                            ; +0x8b, 0x1007b16db\nmov     rdx, [r14+38h]                                                 ; +0x8d, 0x1007b16dd\nmov     esi, [rdx]                                                     ; +0x91, 0x1007b16e1\ntest    rsi, rsi                                                       ; +0x93, 0x1007b16e3\njz      short loc_1007B1717                                            ; +0x96, 0x1007b16e6\nand     al, cl                                                         ; +0x98, 0x1007b16e8\nmov     rcx, [rdx+10h]                                                 ; +0x9a, 0x1007b16ea\nlea     rdx, [rcx+rsi*8]                                               ; +0x9e, 0x1007b16ee\nadd     rdx, 0FFFFFFFFFFFFFFF8h                                        ; +0xa2, 0x1007b16f2\nnop     word ptr [rax+rax+00000000h]                                   ; +0xa6, 0x1007b16f6\nmov     rsi, [rcx]                                                     ; +0xb0, 0x1007b1700\ntest    rsi, rsi                                                       ; +0xb3, 0x1007b1703\njz      short loc_1007B1717                                            ; +0xb6, 0x1007b1706\nmov     [rsi+1B1h], al                                                 ; +0xb8, 0x1007b1708\nadd     rcx, 8                                                         ; +0xbe, 0x1007b170e\ncmp     rcx, rdx                                                       ; +0xc2, 0x1007b1712\njbe     short loc_1007B1700                                            ; +0xc5, 0x1007b1715\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xc7, 0x1007b1717\nlea     rdi, [rbp+var_20]                                              ; +0xcc, 0x1007b171c\nmov     rsi, rax                                                       ; +0xd0, 0x1007b1720\ncall    cocos2d__CCDirector__getWinSize                                ; +0xd3, 0x1007b1723\ncall    GameManager__sharedState                                       ; +0xd8, 0x1007b1728\nlea     rsi, a0089; \"0089\"                                             ; +0xdd, 0x1007b172d\nmov     rdi, rax                                                       ; +0xe4, 0x1007b1734\ncall    GameManager__getGameVariable                                   ; +0xe7, 0x1007b1737\ntest    al, al                                                         ; +0xec, 0x1007b173c\njnz     short loc_1007B174A                                            ; +0xee, 0x1007b173e\ncmp     qword ptr [rbx+298h], 0                                        ; +0xf0, 0x1007b1740\njz      short loc_1007B17A9                                            ; +0xf8, 0x1007b1748\nmovss   xmm1, cs:dword_10081D5D8                                       ; +0xfa, 0x1007b174a\nmovss   xmm0, cs:dword_100815290                                       ; +0x102, 0x1007b1752\nmovss   [rbp+var_18], xmm0                                             ; +0x10a, 0x1007b175a\ntest    r14, r14                                                       ; +0x10f, 0x1007b175f\nmovss   [rbp+var_14], xmm1                                             ; +0x112, 0x1007b1762\njz      short loc_1007B17C8                                            ; +0x117, 0x1007b1767\ncall    GameManager__sharedState                                       ; +0x119, 0x1007b1769\nlea     rsi, a0088; \"0088\"                                             ; +0x11e, 0x1007b176e\nmov     rdi, rax                                                       ; +0x125, 0x1007b1775\ncall    GameManager__getGameVariable                                   ; +0x128, 0x1007b1778\nmovzx   ecx, al                                                        ; +0x12d, 0x1007b177d\nadd     ecx, 7                                                         ; +0x130, 0x1007b1780\nmovss   xmm1, cs:dword_1008152B0                                       ; +0x133, 0x1007b1783\nxorps   xmm2, xmm2                                                     ; +0x13b, 0x1007b178b\nmov     rdi, r14                                                       ; +0x13e, 0x1007b178e\nxor     esi, esi                                                       ; +0x141, 0x1007b1791\nmovss   xmm0, [rbp+var_14]                                             ; +0x143, 0x1007b1793\nxor     edx, edx                                                       ; +0x148, 0x1007b1798\ncall    CustomListView__create                                         ; +0x14a, 0x1007b179a\nmovss   xmm1, [rbp+var_14]                                             ; +0x14f, 0x1007b179f\nmov     rdi, rax                                                       ; +0x154, 0x1007b17a4\njmp     short loc_1007B17CA                                            ; +0x157, 0x1007b17a7\nmovss   xmm1, cs:dword_100815734                                       ; +0x159, 0x1007b17a9\nmovss   xmm0, cs:dword_100823908                                       ; +0x161, 0x1007b17b1\nmovss   [rbp+var_18], xmm0                                             ; +0x169, 0x1007b17b9\ntest    r14, r14                                                       ; +0x16e, 0x1007b17be\nmovss   [rbp+var_14], xmm1                                             ; +0x171, 0x1007b17c1\njnz     short loc_1007B1769                                            ; +0x176, 0x1007b17c6\nxor     edi, edi                                                       ; +0x178, 0x1007b17c8\nlea     rsi, aComments; \"Comments\"                                     ; +0x17a, 0x1007b17ca\nmovss   xmm0, cs:dword_1008152B0                                       ; +0x181, 0x1007b17d1\nmov     edx, 0FF3E72BFh                                                ; +0x189, 0x1007b17d9\nxor     ecx, ecx                                                       ; +0x18e, 0x1007b17de\ncall    GJCommentListLayer__create                                     ; +0x190, 0x1007b17e0\nmov     [rbx+2D8h], rax                                                ; +0x195, 0x1007b17e5\nmov     rdi, [rbx+240h]                                                ; +0x19c, 0x1007b17ec\nmov     rcx, [rdi]                                                     ; +0x1a3, 0x1007b17f3\nmov     rsi, rax                                                       ; +0x1a6, 0x1007b17f6\ncall    qword ptr [rcx+1B8h]                                           ; +0x1a9, 0x1007b17f9\nmovss   xmm0, [rbp+var_20]                                             ; +0x1af, 0x1007b17ff\nmovss   xmm3, [rbp+var_1C]                                             ; +0x1b4, 0x1007b1804\naddss   xmm0, cs:dword_100817E08                                       ; +0x1b9, 0x1007b1809\nmovss   xmm2, cs:dword_100814FA8                                       ; +0x1c1, 0x1007b1811\nmulss   xmm0, xmm2                                                     ; +0x1c9, 0x1007b1819\nsubss   xmm3, [rbp+var_14]                                             ; +0x1cd, 0x1007b181d\nmulss   xmm3, xmm2                                                     ; +0x1d2, 0x1007b1822\nmovss   xmm1, [rbp+var_18]                                             ; +0x1d6, 0x1007b1826\naddss   xmm1, xmm3                                                     ; +0x1db, 0x1007b182b\nmov     rbx, [rbx+2D8h]                                                ; +0x1df, 0x1007b182f\nlea     r14, [rbp+var_28]                                              ; +0x1e6, 0x1007b1836\nmov     rdi, r14                                                       ; +0x1ea, 0x1007b183a\ncall    sub_10028CBE0                                                  ; +0x1ed, 0x1007b183d\nmov     rax, [rbx]                                                     ; +0x1f2, 0x1007b1842\nmov     rdi, rbx                                                       ; +0x1f5, 0x1007b1845\nmov     rsi, r14                                                       ; +0x1f8, 0x1007b1848\ncall    qword ptr [rax+0B8h]                                           ; +0x1fb, 0x1007b184b\nadd     rsp, 20h                                                       ; +0x201, 0x1007b1851\npop     rbx                                                            ; +0x205, 0x1007b1855\npop     r14                                                            ; +0x206, 0x1007b1856\npop     rbp                                                            ; +0x208, 0x1007b1858\nretn                                                                   ; +0x209, 0x1007b1859", "xrefs": ["InfoLayer::init @ 0x1007aff72", "InfoLayer::loadPage @ 0x1007b143f", "InfoLayer::loadCommentsFinished @ 0x1007b254f", "sub_1007B2590 @ 0x1007b25bc"], "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"}