{"type": "func", "start": 5371589312, "end": 5371589851, "name": "InfoLayer::reloadWindow", "pseudocode": "// \n// InfoLayer::reloadWindow from 0x1402bf2c0 to 0x1402bf4db (539 bytes)\n// \n// 3 xrefs:\n// > InfoLayer::toggleExtendedMode @ 0x1402bf1bf\n// > InfoLayer::toggleSmallCommentMode @ 0x1402bf2b8\n// > <???> @ 0x1406d28e8\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\n// Hidden C++ exception states: #wind=3\nvoid InfoLayer::reloadWindow(InfoLayer *a1)\n{\n  GJGameLevel *m_level; // rdi\n  GJUserScore *m_score; // rbp\n  GJLevelList *m_levelList; // rsi\n  cocos2d::CCNode *v5; // r14\n  unsigned int v6; // r12d\n  GameManager *v7; // rcx\n  bool GameVariable; // r15\n  GameManager *v9; // rcx\n  __int64 v10; // rcx\n  __int64 v11; // rax\n  cocos2d::CCTouchDispatcher *v12; // rax\n  __int64 v13; // rax\n  cocos2d::CCTouchDispatcher *v14; // rax\n  InfoLayer *v15; // rbx\n  GameManager *v16; // rcx\n  void *v17; // [rsp+50h] [rbp+8h]\n  void *v18; // [rsp+50h] [rbp+8h]\n  void *v19; // [rsp+50h] [rbp+8h]\n\n  m_level = nullptr;\n  m_score = nullptr;\n  m_levelList = nullptr;\n  if ( a1->m_level )\n  {\n    m_level = a1->m_level;\n    cocos2d::CCObject::retain(m_level);\n  }\n  if ( a1->m_score )\n  {\n    m_score = a1->m_score;\n    cocos2d::CCObject::retain(m_score);\n  }\n  if ( a1->m_levelList )\n  {\n    m_levelList = a1->m_levelList;\n    cocos2d::CCObject::retain(m_levelList);\n  }\n  v5 = a1->getParent(a1);\n  v6 = a1->getZOrder(a1);\n  InfoLayer::onClose(a1, nullptr);\n  v7 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v17 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v17);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v7 = (GameManager *)qword_1406C2ED8;\n  }\n  GameVariable = GameManager::getGameVariable(v7, \"0090\");\n  v9 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v18 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v18);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v9 = (GameManager *)qword_1406C2ED8;\n  }\n  GameManager::setGameVariable(v9, \"0090\", 1);\n  if ( a1->m_list )\n  {\n    v11 = cocos2d::CCDirector::sharedDirector(v10);\n    v12 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 144LL))(v11);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v12, a1->m_list);\n  }\n  v13 = cocos2d::CCDirector::sharedDirector(v10);\n  v14 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 144LL))(v13);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v14, a1);\n  v15 = InfoLayer::create(m_level, m_score, m_levelList);\n  v16 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v19 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v19);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v16 = (GameManager *)qword_1406C2ED8;\n  }\n  GameManager::setGameVariable(v16, \"0090\", GameVariable);\n  v5->addChild_0(v5, v15, v6);\n  if ( m_level )\n    cocos2d::CCObject::release(m_level);\n  if ( m_score )\n    cocos2d::CCObject::release(m_score);\n  if ( m_levelList )\n    cocos2d::CCObject::release(m_levelList);\n}", "assembly": "; \n; InfoLayer::reloadWindow from 0x1402bf2c0 to 0x1402bf4db (539 bytes)\n; \n; 3 xrefs:\n; > InfoLayer::toggleExtendedMode @ 0x1402bf1bf\n; > InfoLayer::toggleSmallCommentMode @ 0x1402bf2b8\n; > <???> @ 0x1406d28e8\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_8], rbx                                               ; +0x0, 0x1402bf2c0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1402bf2c5\npush    rsi                                                            ; +0xa, 0x1402bf2ca\npush    rdi                                                            ; +0xb, 0x1402bf2cb\npush    r12                                                            ; +0xc, 0x1402bf2cc\npush    r14                                                            ; +0xe, 0x1402bf2ce\npush    r15                                                            ; +0x10, 0x1402bf2d0\nsub     rsp, 20h                                                       ; +0x12, 0x1402bf2d2\nmov     rbx, rcx                                                       ; +0x16, 0x1402bf2d6\nxor     edi, edi                                                       ; +0x19, 0x1402bf2d9\nmov     ebp, edi                                                       ; +0x1b, 0x1402bf2db\nmov     esi, edi                                                       ; +0x1d, 0x1402bf2dd\nmov     rax, [rcx+290h]                                                ; +0x1f, 0x1402bf2df\ntest    rax, rax                                                       ; +0x26, 0x1402bf2e6\njz      short loc_1402BF2F7                                            ; +0x29, 0x1402bf2e9\nmov     rdi, rax                                                       ; +0x2b, 0x1402bf2eb\nmov     rcx, rax                                                       ; +0x2e, 0x1402bf2ee\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x31, 0x1402bf2f1\nmov     rax, [rbx+298h]                                                ; +0x37, 0x1402bf2f7\ntest    rax, rax                                                       ; +0x3e, 0x1402bf2fe\njz      short loc_1402BF30F                                            ; +0x41, 0x1402bf301\nmov     rbp, rax                                                       ; +0x43, 0x1402bf303\nmov     rcx, rax                                                       ; +0x46, 0x1402bf306\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x49, 0x1402bf309\nmov     rax, [rbx+2A0h]                                                ; +0x4f, 0x1402bf30f\ntest    rax, rax                                                       ; +0x56, 0x1402bf316\njz      short loc_1402BF327                                            ; +0x59, 0x1402bf319\nmov     rsi, rax                                                       ; +0x5b, 0x1402bf31b\nmov     rcx, rax                                                       ; +0x5e, 0x1402bf31e\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x61, 0x1402bf321\nmov     rax, [rbx]                                                     ; +0x67, 0x1402bf327\nmov     rcx, rbx                                                       ; +0x6a, 0x1402bf32a\ncall    qword ptr [rax+1E8h]                                           ; +0x6d, 0x1402bf32d\nmov     r14, rax                                                       ; +0x73, 0x1402bf333\nmov     rdx, [rbx]                                                     ; +0x76, 0x1402bf336\nmov     rcx, rbx                                                       ; +0x79, 0x1402bf339\ncall    qword ptr [rdx+60h]                                            ; +0x7c, 0x1402bf33c\nmov     r12d, eax                                                      ; +0x7f, 0x1402bf33f\nxor     edx, edx                                                       ; +0x82, 0x1402bf342\nmov     rcx, rbx                                                       ; +0x84, 0x1402bf344\ncall    InfoLayer__onClose                                             ; +0x87, 0x1402bf347\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x8c, 0x1402bf34c\ntest    rcx, rcx                                                       ; +0x93, 0x1402bf353\njnz     short loc_1402BF387                                            ; +0x96, 0x1402bf356\nmov     ecx, 668h; Size                                                ; +0x98, 0x1402bf358\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x9d, 0x1402bf35d\nmov     [rsp+48h+arg_0], rax                                           ; +0xa2, 0x1402bf362\nmov     rcx, rax                                                       ; +0xa7, 0x1402bf367\ncall    sub_14017AB00                                                  ; +0xaa, 0x1402bf36a\nnop                                                                    ; +0xaf, 0x1402bf36f\nmov     cs:qword_1406C2ED8, rax                                        ; +0xb0, 0x1402bf370\nmov     rdx, [rax]                                                     ; +0xb7, 0x1402bf377\nmov     rcx, rax                                                       ; +0xba, 0x1402bf37a\ncall    qword ptr [rdx+48h]                                            ; +0xbd, 0x1402bf37d\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xc0, 0x1402bf380\nlea     rdx, a0090; \"0090\"                                             ; +0xc7, 0x1402bf387\ncall    GameManager__getGameVariable                                   ; +0xce, 0x1402bf38e\nmovzx   r15d, al                                                       ; +0xd3, 0x1402bf393\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xd7, 0x1402bf397\ntest    rcx, rcx                                                       ; +0xde, 0x1402bf39e\njnz     short loc_1402BF3D2                                            ; +0xe1, 0x1402bf3a1\nmov     ecx, 668h; Size                                                ; +0xe3, 0x1402bf3a3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xe8, 0x1402bf3a8\nmov     [rsp+48h+arg_0], rax                                           ; +0xed, 0x1402bf3ad\nmov     rcx, rax                                                       ; +0xf2, 0x1402bf3b2\ncall    sub_14017AB00                                                  ; +0xf5, 0x1402bf3b5\nnop                                                                    ; +0xfa, 0x1402bf3ba\nmov     cs:qword_1406C2ED8, rax                                        ; +0xfb, 0x1402bf3bb\nmov     rdx, [rax]                                                     ; +0x102, 0x1402bf3c2\nmov     rcx, rax                                                       ; +0x105, 0x1402bf3c5\ncall    qword ptr [rdx+48h]                                            ; +0x108, 0x1402bf3c8\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x10b, 0x1402bf3cb\nmov     r8b, 1                                                         ; +0x112, 0x1402bf3d2\nlea     rdx, a0090; \"0090\"                                             ; +0x115, 0x1402bf3d5\ncall    GameManager__setGameVariable                                   ; +0x11c, 0x1402bf3dc\ncmp     qword ptr [rbx+2E0h], 0                                        ; +0x121, 0x1402bf3e1\njz      short loc_1402BF40D                                            ; +0x129, 0x1402bf3e9\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x12b, 0x1402bf3eb\nmov     rdx, [rax]                                                     ; +0x131, 0x1402bf3f1\nmov     rcx, rax                                                       ; +0x134, 0x1402bf3f4\ncall    qword ptr [rdx+90h]                                            ; +0x137, 0x1402bf3f7\nmov     rcx, rax                                                       ; +0x13d, 0x1402bf3fd\nmov     rdx, [rbx+2E0h]                                                ; +0x140, 0x1402bf400\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x147, 0x1402bf407\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x14d, 0x1402bf40d\nmov     rdx, [rax]                                                     ; +0x153, 0x1402bf413\nmov     rcx, rax                                                       ; +0x156, 0x1402bf416\ncall    qword ptr [rdx+90h]                                            ; +0x159, 0x1402bf419\nmov     rcx, rax                                                       ; +0x15f, 0x1402bf41f\nmov     rdx, rbx                                                       ; +0x162, 0x1402bf422\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x165, 0x1402bf425\nmov     r8, rsi                                                        ; +0x16b, 0x1402bf42b\nmov     rdx, rbp                                                       ; +0x16e, 0x1402bf42e\nmov     rcx, rdi                                                       ; +0x171, 0x1402bf431\ncall    InfoLayer__create                                              ; +0x174, 0x1402bf434\nmov     rbx, rax                                                       ; +0x179, 0x1402bf439\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x17c, 0x1402bf43c\ntest    rcx, rcx                                                       ; +0x183, 0x1402bf443\njnz     short loc_1402BF478                                            ; +0x186, 0x1402bf446\nmov     ecx, 668h; Size                                                ; +0x188, 0x1402bf448\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18d, 0x1402bf44d\nmov     [rsp+48h+arg_0], rax                                           ; +0x192, 0x1402bf452\nmov     rcx, rax                                                       ; +0x197, 0x1402bf457\ncall    sub_14017AB00                                                  ; +0x19a, 0x1402bf45a\nnop                                                                    ; +0x19f, 0x1402bf45f\nmov     cs:qword_1406C2ED8, rax                                        ; +0x1a0, 0x1402bf460\nmov     r8, [rax]                                                      ; +0x1a7, 0x1402bf467\nmov     rcx, rax                                                       ; +0x1aa, 0x1402bf46a\ncall    qword ptr [r8+48h]                                             ; +0x1ad, 0x1402bf46d\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x1b1, 0x1402bf471\nmovzx   r8d, r15b                                                      ; +0x1b8, 0x1402bf478\nlea     rdx, a0090; \"0090\"                                             ; +0x1bc, 0x1402bf47c\ncall    GameManager__setGameVariable                                   ; +0x1c3, 0x1402bf483\nmov     rax, [r14]                                                     ; +0x1c8, 0x1402bf488\nmov     r8d, r12d                                                      ; +0x1cb, 0x1402bf48b\nmov     rdx, rbx                                                       ; +0x1ce, 0x1402bf48e\nmov     rcx, r14                                                       ; +0x1d1, 0x1402bf491\ncall    qword ptr [rax+1B8h]                                           ; +0x1d4, 0x1402bf494\ntest    rdi, rdi                                                       ; +0x1da, 0x1402bf49a\njz      short loc_1402BF4A8                                            ; +0x1dd, 0x1402bf49d\nmov     rcx, rdi                                                       ; +0x1df, 0x1402bf49f\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x1e2, 0x1402bf4a2\ntest    rbp, rbp                                                       ; +0x1e8, 0x1402bf4a8\njz      short loc_1402BF4B6                                            ; +0x1eb, 0x1402bf4ab\nmov     rcx, rbp                                                       ; +0x1ed, 0x1402bf4ad\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x1f0, 0x1402bf4b0\ntest    rsi, rsi                                                       ; +0x1f6, 0x1402bf4b6\njz      short loc_1402BF4C4                                            ; +0x1f9, 0x1402bf4b9\nmov     rcx, rsi                                                       ; +0x1fb, 0x1402bf4bb\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x1fe, 0x1402bf4be\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x204, 0x1402bf4c4\nmov     rbp, [rsp+48h+arg_10]                                          ; +0x209, 0x1402bf4c9\nadd     rsp, 20h                                                       ; +0x20e, 0x1402bf4ce\npop     r15                                                            ; +0x212, 0x1402bf4d2\npop     r14                                                            ; +0x214, 0x1402bf4d4\npop     r12                                                            ; +0x216, 0x1402bf4d6\npop     rdi                                                            ; +0x218, 0x1402bf4d8\npop     rsi                                                            ; +0x219, 0x1402bf4d9\nretn                                                                   ; +0x21a, 0x1402bf4da", "xrefs": ["InfoLayer::toggleExtendedMode @ 0x1402bf1bf", "InfoLayer::toggleSmallCommentMode @ 0x1402bf2b8", "<???> @ 0x1406d28e8"], "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"}