{"type": "func", "start": 4298120944, "end": 4298121283, "name": "GJPathPage::unlockAnimationFinished", "pseudocode": "// \n// GJPathPage::unlockAnimationFinished from 0x100301ef0 to 0x100302043 (339 bytes)\n// \n// 1 xrefs:\n// > GJPathPage::playUnlockAnimation @ 0x100301463\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 GJPathPage::unlockAnimationFinished(GJPathPage *a1)\n{\n  StatKey v1; // r14d\n  GameStatsManager *v2; // rax\n  cocos2d::CCDirector *v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  GJPathsLayer *m_pathsLayer; // rax\n  GJPathsLayer *v6; // r14\n  cocos2d::CCDirector *v7; // rax\n  cocos2d::CCTouchDispatcher *v8; // rax\n  GJPathsLayer *v9; // r14\n  GJPathPage *v10; // rbx\n  __int16 v11; // [rsp+Ch] [rbp-14h] BYREF\n  char v12; // [rsp+Eh] [rbp-12h]\n\n  a1->m_animationPlaying = 0;\n  v1 = a1->m_pathNumber + 29;\n  v2 = GameStatsManager::sharedState();\n  GameStatsManager::updateActivePath(v2, v1);\n  if ( !a1->m_animationPlaying )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector();\n    v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);\n    cocos2d::CCNode::stopAllActions(a1);\n    cocos2d::CCNode::unscheduleAllSelectors(a1);\n    ((void (__fastcall *)(GJPathPage *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n    ((void (__fastcall *)(GJPathPage *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n    m_pathsLayer = a1->m_pathsLayer;\n    v12 = -1;\n    v11 = -1;\n    ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))m_pathsLayer->m_closeSprite->setColor)(\n      m_pathsLayer->m_closeSprite,\n      &v11);\n  }\n  v6 = a1->m_pathsLayer;\n  v6->m_exiting = 0;\n  v7 = cocos2d::CCDirector::sharedDirector();\n  v8 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v7->getTouchDispatcher)(v7);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v8, v6);\n  cocos2d::CCNode::stopAllActions(v6);\n  cocos2d::CCNode::unscheduleAllSelectors(v6);\n  ((void (__fastcall *)(GJPathsLayer *, _QWORD))v6->setKeypadEnabled)(v6, 0);\n  ((void (__fastcall *)(GJPathsLayer *, __int64))v6->removeFromParentAndCleanup)(v6, 1);\n  v9 = GJPathsLayer::create();\n  v9->m_noElasticity = 1;\n  ((void (__fastcall *)(GJPathsLayer *))v9->show)(v9);\n  v10 = GJPathPage::create(a1->m_pathNumber, v9);\n  v10->m_noElasticity = 1;\n  ((void (__fastcall *)(GJPathPage *))v10->show)(v10);\n  GJPathPage::unlockAnimationStep3(v10);\n}", "assembly": "; \n; GJPathPage::unlockAnimationFinished from 0x100301ef0 to 0x100302043 (339 bytes)\n; \n; 1 xrefs:\n; > GJPathPage::playUnlockAnimation @ 0x100301463\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, 0x100301ef0\nmov     rbp, rsp                                                       ; +0x1, 0x100301ef1\npush    r14                                                            ; +0x4, 0x100301ef4\npush    rbx                                                            ; +0x6, 0x100301ef6\nsub     rsp, 10h                                                       ; +0x7, 0x100301ef7\nmov     rbx, rdi                                                       ; +0xb, 0x100301efb\nmov     byte ptr [rdi+294h], 0                                         ; +0xe, 0x100301efe\nmov     r14d, [rdi+290h]                                               ; +0x15, 0x100301f05\nadd     r14d, 1Dh                                                      ; +0x1c, 0x100301f0c\ncall    GameStatsManager__sharedState                                  ; +0x20, 0x100301f10\nmov     rdi, rax                                                       ; +0x25, 0x100301f15\nmov     esi, r14d                                                      ; +0x28, 0x100301f18\ncall    GameStatsManager__updateActivePath                             ; +0x2b, 0x100301f1b\ncmp     byte ptr [rbx+294h], 0                                         ; +0x30, 0x100301f20\njnz     short loc_100301F99                                            ; +0x37, 0x100301f27\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x39, 0x100301f29\nmov     rcx, [rax]                                                     ; +0x3e, 0x100301f2e\nmov     rdi, rax                                                       ; +0x41, 0x100301f31\ncall    qword ptr [rcx+0A0h]                                           ; +0x44, 0x100301f34\nmov     rdi, rax                                                       ; +0x4a, 0x100301f3a\nmov     rsi, rbx                                                       ; +0x4d, 0x100301f3d\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x50, 0x100301f40\nmov     rdi, rbx                                                       ; +0x55, 0x100301f45\ncall    cocos2d__CCNode__stopAllActions                                ; +0x58, 0x100301f48\nmov     rdi, rbx                                                       ; +0x5d, 0x100301f4d\ncall    cocos2d__CCNode__unscheduleAllSelectors                        ; +0x60, 0x100301f50\nmov     rax, [rbx]                                                     ; +0x65, 0x100301f55\nmov     rdi, rbx                                                       ; +0x68, 0x100301f58\nxor     esi, esi                                                       ; +0x6b, 0x100301f5b\ncall    qword ptr [rax+420h]                                           ; +0x6d, 0x100301f5d\nmov     rax, [rbx]                                                     ; +0x73, 0x100301f63\nmov     rdi, rbx                                                       ; +0x76, 0x100301f66\nmov     esi, 1                                                         ; +0x79, 0x100301f69\ncall    qword ptr [rax+200h]                                           ; +0x7e, 0x100301f6e\nmov     rax, [rbx+288h]                                                ; +0x84, 0x100301f74\nmov     [rbp+var_12], 0FFh                                             ; +0x8b, 0x100301f7b\nmov     [rbp+var_14], 0FFFFh                                           ; +0x8f, 0x100301f7f\nmov     rdi, [rax+280h]                                                ; +0x95, 0x100301f85\nmov     rax, [rdi]                                                     ; +0x9c, 0x100301f8c\nlea     rsi, [rbp+var_14]                                              ; +0x9f, 0x100301f8f\ncall    qword ptr [rax+3B0h]                                           ; +0xa3, 0x100301f93\nmov     r14, [rbx+288h]                                                ; +0xa9, 0x100301f99\nmov     byte ptr [r14+288h], 0                                         ; +0xb0, 0x100301fa0\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xb8, 0x100301fa8\nmov     rcx, [rax]                                                     ; +0xbd, 0x100301fad\nmov     rdi, rax                                                       ; +0xc0, 0x100301fb0\ncall    qword ptr [rcx+0A0h]                                           ; +0xc3, 0x100301fb3\nmov     rdi, rax                                                       ; +0xc9, 0x100301fb9\nmov     rsi, r14                                                       ; +0xcc, 0x100301fbc\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0xcf, 0x100301fbf\nmov     rdi, r14                                                       ; +0xd4, 0x100301fc4\ncall    cocos2d__CCNode__stopAllActions                                ; +0xd7, 0x100301fc7\nmov     rdi, r14                                                       ; +0xdc, 0x100301fcc\ncall    cocos2d__CCNode__unscheduleAllSelectors                        ; +0xdf, 0x100301fcf\nmov     rax, [r14]                                                     ; +0xe4, 0x100301fd4\nmov     rdi, r14                                                       ; +0xe7, 0x100301fd7\nxor     esi, esi                                                       ; +0xea, 0x100301fda\ncall    qword ptr [rax+420h]                                           ; +0xec, 0x100301fdc\nmov     rax, [r14]                                                     ; +0xf2, 0x100301fe2\nmov     rdi, r14                                                       ; +0xf5, 0x100301fe5\nmov     esi, 1                                                         ; +0xf8, 0x100301fe8\ncall    qword ptr [rax+200h]                                           ; +0xfd, 0x100301fed\ncall    GJPathsLayer__create                                           ; +0x103, 0x100301ff3\nmov     r14, rax                                                       ; +0x108, 0x100301ff8\nmov     byte ptr [rax+24Ch], 1                                         ; +0x10b, 0x100301ffb\nmov     rax, [rax]                                                     ; +0x112, 0x100302002\nmov     rdi, r14                                                       ; +0x115, 0x100302005\ncall    qword ptr [rax+508h]                                           ; +0x118, 0x100302008\nmov     edi, [rbx+290h]                                                ; +0x11e, 0x10030200e\nmov     rsi, r14                                                       ; +0x124, 0x100302014\ncall    GJPathPage__create                                             ; +0x127, 0x100302017\nmov     rbx, rax                                                       ; +0x12c, 0x10030201c\nmov     byte ptr [rax+24Ch], 1                                         ; +0x12f, 0x10030201f\nmov     rax, [rax]                                                     ; +0x136, 0x100302026\nmov     rdi, rbx                                                       ; +0x139, 0x100302029\ncall    qword ptr [rax+508h]                                           ; +0x13c, 0x10030202c\nmov     rdi, rbx                                                       ; +0x142, 0x100302032\ncall    GJPathPage__unlockAnimationStep3                               ; +0x145, 0x100302035\nadd     rsp, 10h                                                       ; +0x14a, 0x10030203a\npop     rbx                                                            ; +0x14e, 0x10030203e\npop     r14                                                            ; +0x14f, 0x10030203f\npop     rbp                                                            ; +0x151, 0x100302041\nretn                                                                   ; +0x152, 0x100302042", "xrefs": ["GJPathPage::playUnlockAnimation @ 0x100301463"], "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"}