{"type": "func", "start": 5371904064, "end": 5371904392, "name": "LevelSearchLayer::scene", "pseudocode": "// \n// LevelSearchLayer::scene from 0x14030c040 to 0x14030c188 (328 bytes)\n// \n// 3 xrefs:\n// > CreatorLayer::onOnlineLevels @ 0x14009db07\n// > LevelSearchLayer::onSearchMode @ 0x14030e533\n// > <???> @ 0x1406d46f4\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// local variable allocation has failed, the output may be wrong!\n// Hidden C++ exception states: #wind=1\ncocos2d::CCScene *LevelSearchLayer::scene(int a1)\n{\n  cocos2d::CCScene *v2; // rsi\n  __int64 v3; // rdx\n  __int64 v4; // rcx\n  LevelSearchLayer *v5; // rdi\n\n  v2 = (cocos2d::CCScene *)cocos2d::CCScene::create(*(_QWORD *)&a1);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v4, v3) + 224) = v2;\n  v5 = (LevelSearchLayer *)operator new(0x1F0u);\n  cocos2d::CCLayer::CCLayer(v5);\n  v5->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (LevelSearchLayer_vtbl *)&LevelSearchLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&LevelSearchLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&LevelSearchLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&LevelSearchLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&LevelSearchLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&LevelSearchLayer::`vftable';\n  v5->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&LevelSearchLayer::`vftable';\n  v5->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&LevelSearchLayer::`vftable';\n  v5->DemonFilterDelegate::__vftable = (DemonFilterDelegate_vtbl *)&LevelSearchLayer::`vftable';\n  v5->m_type = 0;\n  v5->m_searchInput = nullptr;\n  v5->m_starsSprite = nullptr;\n  v5->m_difficultySprites = nullptr;\n  v5->m_lengthSprites = nullptr;\n  v5->m_difficultyDict = nullptr;\n  v5->m_lastDifficultySprite = nullptr;\n  v5->m_demonTypeButton = nullptr;\n  if ( LevelSearchLayer::init(v5, a1) )\n  {\n    cocos2d::CCObject::autorelease(v5);\n  }\n  else\n  {\n    ((void (__fastcall *)(LevelSearchLayer *, __int64))v5->~LevelSearchLayer)(v5, 1);\n    v5 = nullptr;\n  }\n  v2->addChild_1(v2, v5);\n  return v2;\n}", "assembly": "; \n; LevelSearchLayer::scene from 0x14030c040 to 0x14030c188 (328 bytes)\n; \n; 3 xrefs:\n; > CreatorLayer::onOnlineLevels @ 0x14009db07\n; > LevelSearchLayer::onSearchMode @ 0x14030e533\n; > <???> @ 0x1406d46f4\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_0], rbx                                               ; +0x0, 0x14030c040\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14030c045\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14030c04a\npush    rdi                                                            ; +0xf, 0x14030c04f\nsub     rsp, 20h                                                       ; +0x10, 0x14030c050\nmov     ebx, ecx                                                       ; +0x14, 0x14030c054\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x16, 0x14030c056\nmov     rsi, rax                                                       ; +0x1c, 0x14030c05c\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x1f, 0x14030c05f\nmov     [rax+0E0h], rsi                                                ; +0x25, 0x14030c065\nmov     ecx, 1F0h; Size                                                ; +0x2c, 0x14030c06c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x14030c071\nmov     rdi, rax                                                       ; +0x36, 0x14030c076\nmov     [rsp+28h+arg_8], rax                                           ; +0x39, 0x14030c079\nmov     rcx, rax                                                       ; +0x3e, 0x14030c07e\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x41, 0x14030c081\nlea     rax, ??_7LevelSearchLayer@@6B@; const LevelSearchLayer::`vftable' ; +0x47, 0x14030c087\nmov     [rdi], rax                                                     ; +0x4e, 0x14030c08e\nlea     rax, ??_7LevelSearchLayer@@6B@_0; const LevelSearchLayer::`vftable' ; +0x51, 0x14030c091\nmov     [rdi+140h], rax                                                ; +0x58, 0x14030c098\nlea     rax, ??_7LevelSearchLayer@@6B@_1; const LevelSearchLayer::`vftable' ; +0x5f, 0x14030c09f\nmov     [rdi+148h], rax                                                ; +0x66, 0x14030c0a6\nlea     rax, ??_7LevelSearchLayer@@6B@_2; const LevelSearchLayer::`vftable' ; +0x6d, 0x14030c0ad\nmov     [rdi+150h], rax                                                ; +0x74, 0x14030c0b4\nlea     rax, ??_7LevelSearchLayer@@6B@_3; const LevelSearchLayer::`vftable' ; +0x7b, 0x14030c0bb\nmov     [rdi+158h], rax                                                ; +0x82, 0x14030c0c2\nlea     rax, ??_7LevelSearchLayer@@6B@_4; const LevelSearchLayer::`vftable' ; +0x89, 0x14030c0c9\nmov     [rdi+160h], rax                                                ; +0x90, 0x14030c0d0\nlea     rax, ??_7LevelSearchLayer@@6B@_5; const LevelSearchLayer::`vftable' ; +0x97, 0x14030c0d7\nmov     [rdi+198h], rax                                                ; +0x9e, 0x14030c0de\nlea     rax, ??_7LevelSearchLayer@@6B@_6; const LevelSearchLayer::`vftable' ; +0xa5, 0x14030c0e5\nmov     [rdi+1A0h], rax                                                ; +0xac, 0x14030c0ec\nlea     rax, ??_7LevelSearchLayer@@6B@_7; const LevelSearchLayer::`vftable' ; +0xb3, 0x14030c0f3\nmov     [rdi+1A8h], rax                                                ; +0xba, 0x14030c0fa\nxor     ebp, ebp                                                       ; +0xc1, 0x14030c101\nmov     [rdi+1B0h], ebp                                                ; +0xc3, 0x14030c103\nmov     [rdi+1B8h], rbp                                                ; +0xc9, 0x14030c109\nmov     [rdi+1C0h], rbp                                                ; +0xd0, 0x14030c110\nmov     [rdi+1C8h], rbp                                                ; +0xd7, 0x14030c117\nmov     [rdi+1D0h], rbp                                                ; +0xde, 0x14030c11e\nmov     [rdi+1D8h], rbp                                                ; +0xe5, 0x14030c125\nmov     [rdi+1E0h], rbp                                                ; +0xec, 0x14030c12c\nmov     [rdi+1E8h], rbp                                                ; +0xf3, 0x14030c133\nmov     edx, ebx                                                       ; +0xfa, 0x14030c13a\nmov     rcx, rdi                                                       ; +0xfc, 0x14030c13c\ncall    LevelSearchLayer__init                                         ; +0xff, 0x14030c13f\nmov     rcx, rdi                                                       ; +0x104, 0x14030c144\ntest    al, al                                                         ; +0x107, 0x14030c147\njz      short loc_14030C153                                            ; +0x109, 0x14030c149\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x10b, 0x14030c14b\njmp     short loc_14030C161                                            ; +0x111, 0x14030c151\nmov     rax, [rdi]                                                     ; +0x113, 0x14030c153\nmov     edx, 1                                                         ; +0x116, 0x14030c156\ncall    qword ptr [rax+8]                                              ; +0x11b, 0x14030c15b\nmov     rdi, rbp                                                       ; +0x11e, 0x14030c15e\nmov     rax, [rsi]                                                     ; +0x121, 0x14030c161\nmov     rdx, rdi                                                       ; +0x124, 0x14030c164\nmov     rcx, rsi                                                       ; +0x127, 0x14030c167\ncall    qword ptr [rax+1C0h]                                           ; +0x12a, 0x14030c16a\nmov     rax, rsi                                                       ; +0x130, 0x14030c170\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x133, 0x14030c173\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x138, 0x14030c178\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x13d, 0x14030c17d\nadd     rsp, 20h                                                       ; +0x142, 0x14030c182\npop     rdi                                                            ; +0x146, 0x14030c186\nretn                                                                   ; +0x147, 0x14030c187", "xrefs": ["CreatorLayer::onOnlineLevels @ 0x14009db07", "LevelSearchLayer::onSearchMode @ 0x14030e533", "<???> @ 0x1406d46f4"], "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"}