{"type": "func", "start": 5371925168, "end": 5371925346, "name": "LevelSearchLayer::onMagic", "pseudocode": "// \n// LevelSearchLayer::onMagic from 0x1403112b0 to 0x140311362 (178 bytes)\n// \n// 2 xrefs:\n// > LevelSearchLayer::init @ 0x14030d000\n// > <???> @ 0x1406d47c0\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 LevelSearchLayer::onMagic(LevelSearchLayer *a1, cocos2d::CCObject *a2)\n{\n  char *SearchObject; // rbx\n  __int64 v4; // rcx\n  struct cocos2d::CCScene *v5; // rdi\n  __int64 v6; // rdx\n  __int64 v7; // rcx\n  LevelBrowserLayer *v8; // rax\n  struct cocos2d::CCTransitionFade *v9; // rbx\n  __int64 v10; // rcx\n  cocos2d::CCDirector *v11; // rax\n  __int128 v12; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v13; // [rsp+30h] [rbp-18h]\n  __int64 v14; // [rsp+38h] [rbp-10h]\n\n  a1->m_searchInput->onClickTrackNode(a1->m_searchInput, 0);\n  v13 = 0;\n  v12 = 0;\n  LOBYTE(v12) = 0;\n  v14 = 15;\n  SearchObject = LevelSearchLayer::getSearchObject(a1, 7, (__int64)&v12);\n  v5 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v4);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v7, v6) + 224) = v5;\n  v8 = LevelBrowserLayer::create((GJSearchObject *)SearchObject);\n  v5->addChild_1(v5, v8);\n  v9 = cocos2d::CCTransitionFade::create(0.5, v5);\n  v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10);\n  cocos2d::CCDirector::pushScene(v11, v9);\n}", "assembly": "; \n; LevelSearchLayer::onMagic from 0x1403112b0 to 0x140311362 (178 bytes)\n; \n; 2 xrefs:\n; > LevelSearchLayer::init @ 0x14030d000\n; > <???> @ 0x1406d47c0\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, 0x1403112b0\npush    rdi                                                            ; +0x5, 0x1403112b5\nsub     rsp, 40h                                                       ; +0x6, 0x1403112b6\nmov     rbx, rcx                                                       ; +0xa, 0x1403112ba\nxor     edx, edx                                                       ; +0xd, 0x1403112bd\nmov     rcx, [rcx+1B8h]                                                ; +0xf, 0x1403112bf\nmov     rax, [rcx]                                                     ; +0x16, 0x1403112c6\ncall    qword ptr [rax+3F8h]                                           ; +0x19, 0x1403112c9\nxorps   xmm0, xmm0                                                     ; +0x1f, 0x1403112cf\nmov     [rsp+48h+var_18], 0                                            ; +0x22, 0x1403112d2\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x2b, 0x1403112db\nlea     r8, [rsp+48h+var_28]                                           ; +0x30, 0x1403112e0\nmov     byte ptr [rsp+48h+var_28], 0                                   ; +0x35, 0x1403112e5\nmov     edx, 7                                                         ; +0x3a, 0x1403112ea\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x3f, 0x1403112ef\nmov     rcx, rbx                                                       ; +0x48, 0x1403112f8\ncall    LevelSearchLayer__getSearchObject                              ; +0x4b, 0x1403112fb\nmov     rbx, rax                                                       ; +0x50, 0x140311300\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x53, 0x140311303\nmov     rdi, rax                                                       ; +0x59, 0x140311309\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x5c, 0x14031130c\nmov     rcx, rbx                                                       ; +0x62, 0x140311312\nmov     [rax+0E0h], rdi                                                ; +0x65, 0x140311315\ncall    LevelBrowserLayer__create                                      ; +0x6c, 0x14031131c\nmov     r8, [rdi]                                                      ; +0x71, 0x140311321\nmov     rdx, rax                                                       ; +0x74, 0x140311324\nmov     rcx, rdi                                                       ; +0x77, 0x140311327\ncall    qword ptr [r8+1C0h]                                            ; +0x7a, 0x14031132a\nmovss   xmm0, cs:dword_140622B08                                       ; +0x81, 0x140311331\nmov     rdx, rdi                                                       ; +0x89, 0x140311339\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x8c, 0x14031133c\nmov     rbx, rax                                                       ; +0x92, 0x140311342\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x95, 0x140311345\nmov     rcx, rax                                                       ; +0x9b, 0x14031134b\nmov     rdx, rbx                                                       ; +0x9e, 0x14031134e\ncall    cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0xa1, 0x140311351\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xa7, 0x140311357\nadd     rsp, 40h                                                       ; +0xac, 0x14031135c\npop     rdi                                                            ; +0xb0, 0x140311360\nretn                                                                   ; +0xb1, 0x140311361", "xrefs": ["LevelSearchLayer::init @ 0x14030d000", "<???> @ 0x1406d47c0"], "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"}