{"type": "func", "start": 5371367024, "end": 5371367315, "name": "GJPathPage::unlockAnimationFinished", "pseudocode": "// \n// GJPathPage::unlockAnimationFinished from 0x140288e70 to 0x140288f93 (291 bytes)\n// \n// 2 xrefs:\n// > GJPathPage::playUnlockAnimation @ 0x1402882a2\n// > <???> @ 0x1406d15e0\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=1\nvoid GJPathPage::unlockAnimationFinished(GJPathPage *a1)\n{\n  int v2; // ebx\n  __int64 v3; // rcx\n  GJPathsLayer *m_pathsLayer; // rbx\n  __int64 v5; // rcx\n  __int64 v6; // rax\n  cocos2d::CCTouchDispatcher *v7; // rax\n  _BOOL8 v8; // rdx\n  GJPathsLayer *v9; // rbx\n  GJPathPage *v10; // rbx\n  void *v11; // [rsp+30h] [rbp+8h]\n\n  a1->m_animationPlaying = 0;\n  v2 = a1->m_pathNumber + 29;\n  v3 = qword_1406C2EE8;\n  if ( !qword_1406C2EE8 )\n  {\n    v11 = operator new(0x3E0u);\n    qword_1406C2EE8 = sub_1401D0AE0((__int64)v11);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);\n    v3 = qword_1406C2EE8;\n  }\n  if ( (unsigned int)(v2 - 30) > 9 )\n    v2 = 0;\n  *(_DWORD *)(v3 + 988) = v2;\n  GJPathPage::onBack(a1, nullptr);\n  a1->m_pathsLayer->m_exiting = 0;\n  m_pathsLayer = a1->m_pathsLayer;\n  v6 = cocos2d::CCDirector::sharedDirector(v5);\n  v7 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 144LL))(v6);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, m_pathsLayer);\n  cocos2d::CCNode::stopAllActions(m_pathsLayer);\n  cocos2d::CCNode::unscheduleAllSelectors(m_pathsLayer);\n  m_pathsLayer->setKeypadEnabled(m_pathsLayer, 0);\n  LOBYTE(v8) = 1;\n  m_pathsLayer->removeFromParentAndCleanup(m_pathsLayer, v8);\n  v9 = GJPathsLayer::create();\n  v9->m_noElasticity = 1;\n  v9->show(v9);\n  v10 = GJPathPage::create(a1->m_pathNumber, v9);\n  v10->m_noElasticity = 1;\n  v10->show(v10);\n  GJPathPage::unlockAnimationStep3(v10);\n}", "assembly": "; \n; GJPathPage::unlockAnimationFinished from 0x140288e70 to 0x140288f93 (291 bytes)\n; \n; 2 xrefs:\n; > GJPathPage::playUnlockAnimation @ 0x1402882a2\n; > <???> @ 0x1406d15e0\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, 0x140288e70\npush    rdi                                                            ; +0x5, 0x140288e75\nsub     rsp, 20h                                                       ; +0x6, 0x140288e76\nmov     rdi, rcx                                                       ; +0xa, 0x140288e7a\nmov     byte ptr [rcx+294h], 0                                         ; +0xd, 0x140288e7d\nmov     ebx, [rcx+290h]                                                ; +0x14, 0x140288e84\nadd     ebx, 1Dh                                                       ; +0x1a, 0x140288e8a\nmov     rcx, cs:qword_1406C2EE8                                        ; +0x1d, 0x140288e8d\ntest    rcx, rcx                                                       ; +0x24, 0x140288e94\njnz     short loc_140288EC8                                            ; +0x27, 0x140288e97\nmov     ecx, 3E0h; Size                                                ; +0x29, 0x140288e99\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2e, 0x140288e9e\nmov     [rsp+28h+arg_0], rax                                           ; +0x33, 0x140288ea3\nmov     rcx, rax                                                       ; +0x38, 0x140288ea8\ncall    sub_1401D0AE0                                                  ; +0x3b, 0x140288eab\nnop                                                                    ; +0x40, 0x140288eb0\nmov     cs:qword_1406C2EE8, rax                                        ; +0x41, 0x140288eb1\nmov     rdx, [rax]                                                     ; +0x48, 0x140288eb8\nmov     rcx, rax                                                       ; +0x4b, 0x140288ebb\ncall    qword ptr [rdx+48h]                                            ; +0x4e, 0x140288ebe\nmov     rcx, cs:qword_1406C2EE8                                        ; +0x51, 0x140288ec1\nlea     eax, [rbx-1Eh]                                                 ; +0x58, 0x140288ec8\nxor     edx, edx                                                       ; +0x5b, 0x140288ecb\ncmp     eax, 9                                                         ; +0x5d, 0x140288ecd\ncmova   ebx, edx                                                       ; +0x60, 0x140288ed0\nmov     [rcx+3DCh], ebx                                                ; +0x63, 0x140288ed3\nmov     rcx, rdi                                                       ; +0x69, 0x140288ed9\ncall    GJPathPage__onBack                                             ; +0x6c, 0x140288edc\nmov     rax, [rdi+288h]                                                ; +0x71, 0x140288ee1\nmov     byte ptr [rax+288h], 0                                         ; +0x78, 0x140288ee8\nmov     rbx, [rdi+288h]                                                ; +0x7f, 0x140288eef\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x86, 0x140288ef6\nmov     rdx, [rax]                                                     ; +0x8c, 0x140288efc\nmov     rcx, rax                                                       ; +0x8f, 0x140288eff\ncall    qword ptr [rdx+90h]                                            ; +0x92, 0x140288f02\nmov     rcx, rax                                                       ; +0x98, 0x140288f08\nmov     rdx, rbx                                                       ; +0x9b, 0x140288f0b\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x9e, 0x140288f0e\nmov     rcx, rbx                                                       ; +0xa4, 0x140288f14\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0xa7, 0x140288f17\nmov     rcx, rbx                                                       ; +0xad, 0x140288f1d\ncall    cs:?unscheduleAllSelectors@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::unscheduleAllSelectors(void) ; +0xb0, 0x140288f20\nmov     rax, [rbx]                                                     ; +0xb6, 0x140288f26\nxor     edx, edx                                                       ; +0xb9, 0x140288f29\nmov     rcx, rbx                                                       ; +0xbb, 0x140288f2b\ncall    qword ptr [rax+3D0h]                                           ; +0xbe, 0x140288f2e\nmov     rax, [rbx]                                                     ; +0xc4, 0x140288f34\nmov     dl, 1                                                          ; +0xc7, 0x140288f37\nmov     rcx, rbx                                                       ; +0xc9, 0x140288f39\ncall    qword ptr [rax+1F8h]                                           ; +0xcc, 0x140288f3c\ncall    GJPathsLayer__create                                           ; +0xd2, 0x140288f42\nmov     rbx, rax                                                       ; +0xd7, 0x140288f47\nmov     byte ptr [rax+24Ch], 1                                         ; +0xda, 0x140288f4a\nmov     rdx, [rax]                                                     ; +0xe1, 0x140288f51\nmov     rcx, rax                                                       ; +0xe4, 0x140288f54\ncall    qword ptr [rdx+410h]                                           ; +0xe7, 0x140288f57\nmov     rdx, rbx                                                       ; +0xed, 0x140288f5d\nmov     ecx, [rdi+290h]                                                ; +0xf0, 0x140288f60\ncall    GJPathPage__create                                             ; +0xf6, 0x140288f66\nmov     rbx, rax                                                       ; +0xfb, 0x140288f6b\nmov     byte ptr [rax+24Ch], 1                                         ; +0xfe, 0x140288f6e\nmov     rdx, [rax]                                                     ; +0x105, 0x140288f75\nmov     rcx, rax                                                       ; +0x108, 0x140288f78\ncall    qword ptr [rdx+410h]                                           ; +0x10b, 0x140288f7b\nmov     rcx, rbx                                                       ; +0x111, 0x140288f81\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x114, 0x140288f84\nadd     rsp, 20h                                                       ; +0x119, 0x140288f89\npop     rdi                                                            ; +0x11d, 0x140288f8d\njmp     GJPathPage__unlockAnimationStep3                               ; +0x11e, 0x140288f8e", "xrefs": ["GJPathPage::playUnlockAnimation @ 0x1402882a2", "<???> @ 0x1406d15e0"], "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"}