{"type": "func", "start": 5373139712, "end": 5373139893, "name": "LevelSearchLayer::onMostRecent", "pseudocode": "// \n// LevelSearchLayer::onMostRecent from 0x140439b00 to 0x140439bb5 (181 bytes)\n// \n// 2 xrefs:\n// > LevelSearchLayer::init @ 0x140435354\n// > <???> @ 0x140926e88\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:32:18 +0000\n// \n\nbool __fastcall LevelSearchLayer::onMostRecent(__int64 a1)\n{\n  void **SearchObject; // rbx\n  __int64 v3; // rdx\n  __int64 v4; // rcx\n  __int64 v5; // r8\n  __int64 v6; // r9\n  struct cocos2d::CCScene *v7; // rdi\n  __int64 v8; // rcx\n  cocos2d::CCObject *v9; // rax\n  struct cocos2d::CCScene *v10; // rbx\n  __int64 v11; // rcx\n  cocos2d::CCDirector *v12; // rax\n  __int128 v14; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v15; // [rsp+30h] [rbp-18h]\n  __int64 v16; // [rsp+38h] [rbp-10h]\n\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 440) + 1032LL))(*(_QWORD *)(a1 + 440), 0);\n  v15 = 0;\n  v14 = 0;\n  LOBYTE(v14) = 0;\n  v16 = 15;\n  SearchObject = LevelSearchLayer::getSearchObject(a1, 4, (__int64)&v14);\n  v7 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v4, v3, v5, v6);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v8) + 232) = v7;\n  v9 = LevelBrowserLayer::create((__int64)SearchObject);\n  (*(void (__fastcall **)(struct cocos2d::CCScene *, cocos2d::CCObject *))(*(_QWORD *)v7 + 464LL))(v7, v9);\n  v10 = cocos2d::CCTransitionFade::create(0.5, v7);\n  v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11);\n  return cocos2d::CCDirector::pushScene(v12, v10);\n}", "assembly": "; \n; LevelSearchLayer::onMostRecent from 0x140439b00 to 0x140439bb5 (181 bytes)\n; \n; 2 xrefs:\n; > LevelSearchLayer::init @ 0x140435354\n; > <???> @ 0x140926e88\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:32:18 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140439b00\npush    rdi                                                            ; +0x5, 0x140439b05\nsub     rsp, 40h                                                       ; +0x6, 0x140439b06\nmov     rbx, rcx                                                       ; +0xa, 0x140439b0a\nxor     edx, edx                                                       ; +0xd, 0x140439b0d\nmov     rcx, [rcx+1B8h]                                                ; +0xf, 0x140439b0f\nmov     rax, [rcx]                                                     ; +0x16, 0x140439b16\ncall    qword ptr [rax+408h]                                           ; +0x19, 0x140439b19\nxorps   xmm0, xmm0                                                     ; +0x1f, 0x140439b1f\nmov     [rsp+48h+var_18], 0                                            ; +0x22, 0x140439b22\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x2b, 0x140439b2b\nlea     r8, [rsp+48h+var_28]                                           ; +0x30, 0x140439b30\nmov     byte ptr [rsp+48h+var_28], 0                                   ; +0x35, 0x140439b35\nmov     edx, 4                                                         ; +0x3a, 0x140439b3a\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x3f, 0x140439b3f\nmov     rcx, rbx                                                       ; +0x48, 0x140439b48\ncall    LevelSearchLayer__getSearchObject                              ; +0x4b, 0x140439b4b\nmov     rbx, rax                                                       ; +0x50, 0x140439b50\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x53, 0x140439b53\nmov     rdi, rax                                                       ; +0x59, 0x140439b59\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x5c, 0x140439b5c\nmov     rcx, rbx                                                       ; +0x62, 0x140439b62\nmov     [rax+0E8h], rdi                                                ; +0x65, 0x140439b65\ncall    LevelBrowserLayer__create                                      ; +0x6c, 0x140439b6c\nmov     rcx, [rdi]                                                     ; +0x71, 0x140439b71\nmov     rdx, rax                                                       ; +0x74, 0x140439b74\nmov     r8, [rcx+1D0h]                                                 ; +0x77, 0x140439b77\nmov     rcx, rdi                                                       ; +0x7e, 0x140439b7e\ncall    r8                                                             ; +0x81, 0x140439b81\nmovss   xmm0, cs:dword_140834F20                                       ; +0x84, 0x140439b84\nmov     rdx, rdi                                                       ; +0x8c, 0x140439b8c\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x8f, 0x140439b8f\nmov     rbx, rax                                                       ; +0x95, 0x140439b95\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x98, 0x140439b98\nmov     rcx, rax                                                       ; +0x9e, 0x140439b9e\nmov     rdx, rbx                                                       ; +0xa1, 0x140439ba1\ncall    cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0xa4, 0x140439ba4\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xaa, 0x140439baa\nadd     rsp, 40h                                                       ; +0xaf, 0x140439baf\npop     rdi                                                            ; +0xb3, 0x140439bb3\nretn                                                                   ; +0xb4, 0x140439bb4", "xrefs": ["LevelSearchLayer::init @ 0x140435354", "<???> @ 0x140926e88"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}