{"type": "func", "start": 4303040624, "end": 4303041089, "name": "InfoLayer::reloadWindow", "pseudocode": "// \n// InfoLayer::reloadWindow from 0x1007b3070 to 0x1007b3241 (465 bytes)\n// \n// 2 xrefs:\n// > InfoLayer::toggleExtendedMode @ 0x1007b1136\n// > InfoLayer::toggleSmallCommentMode @ 0x1007b11bf\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::reloadWindow(InfoLayer *a1)\n{\n  GJGameLevel *m_level; // rbx\n  GJUserScore *m_score; // r14\n  GJLevelList *m_levelList; // r15\n  cocos2d::CCDirector *v4; // rax\n  cocos2d::CCTouchDispatcher *v5; // rax\n  GameManager *v6; // rax\n  GameManager *v7; // rax\n  cocos2d::CCDirector *v8; // rax\n  cocos2d::CCTouchDispatcher *v9; // rax\n  cocos2d::CCDirector *v10; // rax\n  cocos2d::CCTouchDispatcher *v11; // rax\n  InfoLayer *v12; // r12\n  GameManager *v13; // rax\n  __int64 v14; // [rsp+8h] [rbp-38h]\n  unsigned int v15; // [rsp+10h] [rbp-30h]\n  bool GameVariable; // [rsp+17h] [rbp-29h]\n\n  m_level = a1->m_level;\n  if ( m_level )\n    cocos2d::CCObject::retain(a1->m_level);\n  m_score = a1->m_score;\n  if ( m_score )\n    cocos2d::CCObject::retain(a1->m_score);\n  m_levelList = a1->m_levelList;\n  if ( m_levelList )\n    cocos2d::CCObject::retain(a1->m_levelList);\n  v14 = ((__int64 (__fastcall *)(InfoLayer *))a1->getParent)(a1);\n  v15 = ((__int64 (__fastcall *)(InfoLayer *))a1->getZOrder)(a1);\n  if ( a1->m_list )\n  {\n    v4 = cocos2d::CCDirector::sharedDirector();\n    v5 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v4->getTouchDispatcher)(v4);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1->m_list);\n    ((void (__fastcall *)(GJCommentListLayer *))a1->m_list->removeMeAndCleanup)(a1->m_list);\n    a1->m_list = nullptr;\n  }\n  ((void (__fastcall *)(InfoLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(InfoLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n  v6 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v6, \"0090\");\n  v7 = GameManager::sharedState();\n  GameManager::setGameVariable(v7, \"0090\", 1);\n  if ( a1->m_list )\n  {\n    v8 = cocos2d::CCDirector::sharedDirector();\n    v9 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v8->getTouchDispatcher)(v8);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v9, a1->m_list);\n  }\n  v10 = cocos2d::CCDirector::sharedDirector();\n  v11 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v10->getTouchDispatcher)(v10);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v11, a1);\n  v12 = InfoLayer::create(m_level, m_score, m_levelList);\n  v13 = GameManager::sharedState();\n  GameManager::setGameVariable(v13, \"0090\", GameVariable);\n  (*(void (__fastcall **)(__int64, InfoLayer *, _QWORD))(*(_QWORD *)v14 + 448LL))(v14, v12, v15);\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 0x1007b3070 to 0x1007b3241 (465 bytes)\n; \n; 2 xrefs:\n; > InfoLayer::toggleExtendedMode @ 0x1007b1136\n; > InfoLayer::toggleSmallCommentMode @ 0x1007b11bf\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, 0x1007b3070\nmov     rbp, rsp                                                       ; +0x1, 0x1007b3071\npush    r15                                                            ; +0x4, 0x1007b3074\npush    r14                                                            ; +0x6, 0x1007b3076\npush    r13                                                            ; +0x8, 0x1007b3078\npush    r12                                                            ; +0xa, 0x1007b307a\npush    rbx                                                            ; +0xc, 0x1007b307c\nsub     rsp, 18h                                                       ; +0xd, 0x1007b307d\nmov     r12, rdi                                                       ; +0x11, 0x1007b3081\nmov     rbx, [rdi+290h]                                                ; +0x14, 0x1007b3084\ntest    rbx, rbx                                                       ; +0x1b, 0x1007b308b\njz      short loc_1007B3098                                            ; +0x1e, 0x1007b308e\nmov     rdi, rbx                                                       ; +0x20, 0x1007b3090\ncall    cocos2d__CCObject__retain                                      ; +0x23, 0x1007b3093\nmov     r14, [r12+298h]                                                ; +0x28, 0x1007b3098\ntest    r14, r14                                                       ; +0x30, 0x1007b30a0\njz      short loc_1007B30AD                                            ; +0x33, 0x1007b30a3\nmov     rdi, r14                                                       ; +0x35, 0x1007b30a5\ncall    cocos2d__CCObject__retain                                      ; +0x38, 0x1007b30a8\nmov     r15, [r12+2A0h]                                                ; +0x3d, 0x1007b30ad\ntest    r15, r15                                                       ; +0x45, 0x1007b30b5\njz      short loc_1007B30C2                                            ; +0x48, 0x1007b30b8\nmov     rdi, r15                                                       ; +0x4a, 0x1007b30ba\ncall    cocos2d__CCObject__retain                                      ; +0x4d, 0x1007b30bd\nmov     rax, [r12]                                                     ; +0x52, 0x1007b30c2\nmov     rdi, r12                                                       ; +0x56, 0x1007b30c6\ncall    qword ptr [rax+1F0h]                                           ; +0x59, 0x1007b30c9\nmov     [rbp+var_38], rax                                              ; +0x5f, 0x1007b30cf\nmov     rax, [r12]                                                     ; +0x63, 0x1007b30d3\nmov     rdi, r12                                                       ; +0x67, 0x1007b30d7\ncall    qword ptr [rax+68h]                                            ; +0x6a, 0x1007b30da\nmov     [rbp+var_30], eax                                              ; +0x6d, 0x1007b30dd\ncmp     qword ptr [r12+2D8h], 0                                        ; +0x70, 0x1007b30e0\njz      short loc_1007B3129                                            ; +0x79, 0x1007b30e9\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x7b, 0x1007b30eb\nmov     rcx, [rax]                                                     ; +0x80, 0x1007b30f0\nmov     rdi, rax                                                       ; +0x83, 0x1007b30f3\ncall    qword ptr [rcx+0A0h]                                           ; +0x86, 0x1007b30f6\nmov     rsi, [r12+2D8h]                                                ; +0x8c, 0x1007b30fc\nmov     rdi, rax                                                       ; +0x94, 0x1007b3104\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x97, 0x1007b3107\nmov     rdi, [r12+2D8h]                                                ; +0x9c, 0x1007b310c\nmov     rax, [rdi]                                                     ; +0xa4, 0x1007b3114\ncall    qword ptr [rax+208h]                                           ; +0xa7, 0x1007b3117\nmov     qword ptr [r12+2D8h], 0                                        ; +0xad, 0x1007b311d\nmov     rax, [r12]                                                     ; +0xb9, 0x1007b3129\nmov     rdi, r12                                                       ; +0xbd, 0x1007b312d\nxor     esi, esi                                                       ; +0xc0, 0x1007b3130\ncall    qword ptr [rax+420h]                                           ; +0xc2, 0x1007b3132\nmov     rax, [r12]                                                     ; +0xc8, 0x1007b3138\nmov     rdi, r12                                                       ; +0xcc, 0x1007b313c\nmov     esi, 1                                                         ; +0xcf, 0x1007b313f\ncall    qword ptr [rax+200h]                                           ; +0xd4, 0x1007b3144\ncall    GameManager__sharedState                                       ; +0xda, 0x1007b314a\nlea     r13, a0090; \"0090\"                                             ; +0xdf, 0x1007b314f\nmov     rdi, rax                                                       ; +0xe6, 0x1007b3156\nmov     rsi, r13                                                       ; +0xe9, 0x1007b3159\ncall    GameManager__getGameVariable                                   ; +0xec, 0x1007b315c\nmov     [rbp+var_29], al                                               ; +0xf1, 0x1007b3161\ncall    GameManager__sharedState                                       ; +0xf4, 0x1007b3164\nmov     rdi, rax                                                       ; +0xf9, 0x1007b3169\nmov     rsi, r13                                                       ; +0xfc, 0x1007b316c\nmov     edx, 1                                                         ; +0xff, 0x1007b316f\ncall    GameManager__setGameVariable                                   ; +0x104, 0x1007b3174\ncmp     qword ptr [r12+2D8h], 0                                        ; +0x109, 0x1007b3179\njz      short loc_1007B31A5                                            ; +0x112, 0x1007b3182\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x114, 0x1007b3184\nmov     rcx, [rax]                                                     ; +0x119, 0x1007b3189\nmov     rdi, rax                                                       ; +0x11c, 0x1007b318c\ncall    qword ptr [rcx+0A0h]                                           ; +0x11f, 0x1007b318f\nmov     rsi, [r12+2D8h]                                                ; +0x125, 0x1007b3195\nmov     rdi, rax                                                       ; +0x12d, 0x1007b319d\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x130, 0x1007b31a0\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x135, 0x1007b31a5\nmov     rcx, [rax]                                                     ; +0x13a, 0x1007b31aa\nmov     rdi, rax                                                       ; +0x13d, 0x1007b31ad\ncall    qword ptr [rcx+0A0h]                                           ; +0x140, 0x1007b31b0\nmov     rdi, rax                                                       ; +0x146, 0x1007b31b6\nmov     rsi, r12                                                       ; +0x149, 0x1007b31b9\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x14c, 0x1007b31bc\nmov     rdi, rbx                                                       ; +0x151, 0x1007b31c1\nmov     rsi, r14                                                       ; +0x154, 0x1007b31c4\nmov     rdx, r15                                                       ; +0x157, 0x1007b31c7\ncall    InfoLayer__create                                              ; +0x15a, 0x1007b31ca\nmov     r12, rax                                                       ; +0x15f, 0x1007b31cf\ncall    GameManager__sharedState                                       ; +0x162, 0x1007b31d2\nmovzx   edx, [rbp+var_29]                                              ; +0x167, 0x1007b31d7\nlea     rsi, a0090; \"0090\"                                             ; +0x16b, 0x1007b31db\nmov     rdi, rax                                                       ; +0x172, 0x1007b31e2\ncall    GameManager__setGameVariable                                   ; +0x175, 0x1007b31e5\nmov     rdi, [rbp+var_38]                                              ; +0x17a, 0x1007b31ea\nmov     rax, [rdi]                                                     ; +0x17e, 0x1007b31ee\nmov     rsi, r12                                                       ; +0x181, 0x1007b31f1\nmov     edx, [rbp+var_30]                                              ; +0x184, 0x1007b31f4\ncall    qword ptr [rax+1C0h]                                           ; +0x187, 0x1007b31f7\ntest    rbx, rbx                                                       ; +0x18d, 0x1007b31fd\njz      short loc_1007B320A                                            ; +0x190, 0x1007b3200\nmov     rdi, rbx                                                       ; +0x192, 0x1007b3202\ncall    cocos2d__CCObject__release                                     ; +0x195, 0x1007b3205\ntest    r14, r14                                                       ; +0x19a, 0x1007b320a\njz      short loc_1007B3217                                            ; +0x19d, 0x1007b320d\nmov     rdi, r14                                                       ; +0x19f, 0x1007b320f\ncall    cocos2d__CCObject__release                                     ; +0x1a2, 0x1007b3212\ntest    r15, r15                                                       ; +0x1a7, 0x1007b3217\njz      short loc_1007B3232                                            ; +0x1aa, 0x1007b321a\nmov     rdi, r15                                                       ; +0x1ac, 0x1007b321c\nadd     rsp, 18h                                                       ; +0x1af, 0x1007b321f\npop     rbx                                                            ; +0x1b3, 0x1007b3223\npop     r12                                                            ; +0x1b4, 0x1007b3224\npop     r13                                                            ; +0x1b6, 0x1007b3226\npop     r14                                                            ; +0x1b8, 0x1007b3228\npop     r15                                                            ; +0x1ba, 0x1007b322a\npop     rbp                                                            ; +0x1bc, 0x1007b322c\njmp     cocos2d__CCObject__release                                     ; +0x1bd, 0x1007b322d\nadd     rsp, 18h                                                       ; +0x1c2, 0x1007b3232\npop     rbx                                                            ; +0x1c6, 0x1007b3236\npop     r12                                                            ; +0x1c7, 0x1007b3237\npop     r13                                                            ; +0x1c9, 0x1007b3239\npop     r14                                                            ; +0x1cb, 0x1007b323b\npop     r15                                                            ; +0x1cd, 0x1007b323d\npop     rbp                                                            ; +0x1cf, 0x1007b323f\nretn                                                                   ; +0x1d0, 0x1007b3240", "xrefs": ["InfoLayer::toggleExtendedMode @ 0x1007b1136", "InfoLayer::toggleSmallCommentMode @ 0x1007b11bf"], "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"}