{"type": "func", "start": 4297056320, "end": 4297056471, "name": "EditLevelLayer::onTest", "pseudocode": "// \n// EditLevelLayer::onTest from 0x1001fe040 to 0x1001fe0d7 (151 bytes)\n// \n// 0 xrefs:\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 EditLevelLayer::onTest(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  unsigned int v2; // r14d\n  __int64 v3; // rax\n  cocos2d::CCDirector *v4; // r14\n  cocos2d::CCScene *v5; // rax\n  cocos2d::CCTransitionFade *v6; // rax\n\n  if ( (unsigned int)sub_100720070(a1->m_textInputs) )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = sub_1007200C0(a1->m_textInputs, v2);\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1144LL))(v3, 0);\n      ++v2;\n    }\n    while ( v2 < (unsigned int)sub_100720070(a1->m_textInputs) );\n  }\n  GameManager::sharedState()->m_sceneEnum = 3;\n  v4 = cocos2d::CCDirector::sharedDirector();\n  v5 = PlayLayer::scene(a1->m_level, 0, 0);\n  v6 = cocos2d::CCTransitionFade::create_1(0.5, v5);\n  cocos2d::CCDirector::replaceScene(v4, v6);\n}", "assembly": "; \n; EditLevelLayer::onTest from 0x1001fe040 to 0x1001fe0d7 (151 bytes)\n; \n; 0 xrefs:\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, 0x1001fe040\nmov     rbp, rsp                                                       ; +0x1, 0x1001fe041\npush    r14                                                            ; +0x4, 0x1001fe044\npush    rbx                                                            ; +0x6, 0x1001fe046\nmov     rbx, rdi                                                       ; +0x7, 0x1001fe047\nmov     rdi, [rdi+1D0h]                                                ; +0xa, 0x1001fe04a\ncall    sub_100720070                                                  ; +0x11, 0x1001fe051\ntest    eax, eax                                                       ; +0x16, 0x1001fe056\njz      short loc_1001FE091                                            ; +0x18, 0x1001fe058\nxor     r14d, r14d                                                     ; +0x1a, 0x1001fe05a\nnop     dword ptr [rax]                                                ; +0x1d, 0x1001fe05d\nmov     rdi, [rbx+1D0h]                                                ; +0x20, 0x1001fe060\nmov     esi, r14d                                                      ; +0x27, 0x1001fe067\ncall    sub_1007200C0                                                  ; +0x2a, 0x1001fe06a\nmov     rcx, [rax]                                                     ; +0x2f, 0x1001fe06f\nmov     rdi, rax                                                       ; +0x32, 0x1001fe072\nxor     esi, esi                                                       ; +0x35, 0x1001fe075\ncall    qword ptr [rcx+478h]                                           ; +0x37, 0x1001fe077\ninc     r14d                                                           ; +0x3d, 0x1001fe07d\nmov     rdi, [rbx+1D0h]                                                ; +0x40, 0x1001fe080\ncall    sub_100720070                                                  ; +0x47, 0x1001fe087\ncmp     r14d, eax                                                      ; +0x4c, 0x1001fe08c\njb      short loc_1001FE060                                            ; +0x4f, 0x1001fe08f\ncall    GameManager__sharedState                                       ; +0x51, 0x1001fe091\nmov     dword ptr [rax+29Ch], 3                                        ; +0x56, 0x1001fe096\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x60, 0x1001fe0a0\nmov     r14, rax                                                       ; +0x65, 0x1001fe0a5\nmov     rdi, [rbx+1C8h]                                                ; +0x68, 0x1001fe0a8\nxor     esi, esi                                                       ; +0x6f, 0x1001fe0af\nxor     edx, edx                                                       ; +0x71, 0x1001fe0b1\ncall    PlayLayer__scene                                               ; +0x73, 0x1001fe0b3\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x78, 0x1001fe0b8\nmov     rdi, rax                                                       ; +0x80, 0x1001fe0c0\ncall    cocos2d__CCTransitionFade__create_1                            ; +0x83, 0x1001fe0c3\nmov     rdi, r14                                                       ; +0x88, 0x1001fe0c8\nmov     rsi, rax                                                       ; +0x8b, 0x1001fe0cb\npop     rbx                                                            ; +0x8e, 0x1001fe0ce\npop     r14                                                            ; +0x8f, 0x1001fe0cf\npop     rbp                                                            ; +0x91, 0x1001fe0d1\njmp     cocos2d__CCDirector__replaceScene                              ; +0x92, 0x1001fe0d2", "xrefs": [], "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"}