{"type": "func", "start": 7120008, "end": 7120224, "name": "CreatorLayer::onMyLevels", "pseudocode": "// \n// CreatorLayer::onMyLevels from 0x6ca488 to 0x6ca560 (216 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x87a20\n// > CreatorLayer::init @ 0x6cc200\n// > <???> @ 0x122c940\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 CreatorLayer::onMyLevels(CreatorLayer *a1, cocos2d::CCObject *a2)\n{\n  GJSearchObject *m_localSearchType; // x0\n  SearchType v3; // w1\n  GJSearchObject *v4; // x20\n  GameManager *v5; // x0\n  GameManager *v6; // x0\n  cocos2d::CCDirector *v7; // x19\n  cocos2d::CCScene *v8; // x0\n  cocos2d::CCTransitionFade *v9; // x0\n  GameManager *v10; // x0\n  GameManager *v11; // x0\n\n  m_localSearchType = (GJSearchObject *)(unsigned int)GameManager::sharedState()->m_localSearchType;\n  if ( (_DWORD)m_localSearchType == 102 )\n  {\n    v4 = (GJSearchObject *)GJSearchObject::create(m_localSearchType, v3);\n  }\n  else\n  {\n    v4 = (GJSearchObject *)GJSearchObject::create((GJSearchObject *)((char *)&qword_60 + 2), v3);\n    v5 = GameManager::sharedState();\n    if ( GameManager::getIntGameVariable(v5, \"0091\") > 998\n      || (v10 = GameManager::sharedState(), GameManager::getIntGameVariable(v10, \"0091\") > 0) )\n    {\n      v6 = GameManager::sharedState();\n      if ( GameManager::getIntGameVariable(v6, \"0091\") <= 998 )\n      {\n        v11 = GameManager::sharedState();\n        v4->m_folder = GameManager::getIntGameVariable(v11, \"0091\");\n      }\n      else\n      {\n        v4->m_folder = (unsigned int)&elf_hash_bucket[123] + 3;\n      }\n    }\n    else\n    {\n      v4->m_folder = 0;\n    }\n  }\n  v7 = cocos2d::CCDirector::sharedDirector();\n  v8 = LevelBrowserLayer::scene(v4);\n  v9 = cocos2d::CCTransitionFade::create(0.5, v8);\n  cocos2d::CCDirector::pushScene(v7, v9);\n}", "assembly": "; \n; CreatorLayer::onMyLevels from 0x6ca488 to 0x6ca560 (216 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x87a20\n; > CreatorLayer::init @ 0x6cc200\n; > <???> @ 0x122c940\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x6ca488\nMOV             X29, SP                                                ; +0x4, 0x6ca48c\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x6ca490\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x6ca494\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x10, 0x6ca498\nLDR             W0, [X0,#0x4D0]                                        ; +0x14, 0x6ca49c\nCMP             W0, #0x66 ; 'f'                                        ; +0x18, 0x6ca4a0\nB.EQ            loc_6CA4F4                                             ; +0x1c, 0x6ca4a4\nMOV             W0, #0x62 ; 'b'                                        ; +0x20, 0x6ca4a8\nADRP            X19, #a0091@PAGE; \"0091\"                               ; +0x24, 0x6ca4ac\nADD             X21, X19, #a0091@PAGEOFF; \"0091\"                       ; +0x28, 0x6ca4b0\nBL              _ZN14GJSearchObject6createE10SearchType; GJSearchObject::create(SearchType) ; +0x2c, 0x6ca4b4\nMOV             X20, X0                                                ; +0x30, 0x6ca4b8\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x34, 0x6ca4bc\nMOV             X1, X21; char *                                        ; +0x38, 0x6ca4c0\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x3c, 0x6ca4c4\nCMP             W0, #0x3E6                                             ; +0x40, 0x6ca4c8\nB.LE            loc_6CA52C                                             ; +0x44, 0x6ca4cc\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x48, 0x6ca4d0\nADD             X19, X19, #a0091@PAGEOFF; \"0091\"                       ; +0x4c, 0x6ca4d4\nMOV             X1, X19; char *                                        ; +0x50, 0x6ca4d8\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x54, 0x6ca4dc\nCMP             W0, #0x3E6                                             ; +0x58, 0x6ca4e0\nMOV             W0, #(elf_hash_bucket+0x1EF); this                     ; +0x5c, 0x6ca4e4\nB.LE            loc_6CA54C                                             ; +0x60, 0x6ca4e8\nSTR             W0, [X20,#0x174]                                       ; +0x64, 0x6ca4ec\nB               loc_6CA4FC                                             ; +0x68, 0x6ca4f0\nBL              _ZN14GJSearchObject6createE10SearchType; GJSearchObject::create(SearchType) ; +0x6c, 0x6ca4f4\nMOV             X20, X0                                                ; +0x70, 0x6ca4f8\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x74, 0x6ca4fc\nMOV             X19, X0                                                ; +0x78, 0x6ca500\nMOV             X0, X20; this                                          ; +0x7c, 0x6ca504\nBL              _ZN17LevelBrowserLayer5sceneEP14GJSearchObject; LevelBrowserLayer::scene(GJSearchObject *) ; +0x80, 0x6ca508\nFMOV            S0, #0.5; float                                        ; +0x84, 0x6ca50c\nBL              _ZN7cocos2d16CCTransitionFade6createEfPNS_7CCSceneE; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x88, 0x6ca510\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x8c, 0x6ca514\nMOV             X1, X0; cocos2d::CCScene *                             ; +0x90, 0x6ca518\nMOV             X0, X19; this                                          ; +0x94, 0x6ca51c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x98, 0x6ca520\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x9c, 0x6ca524\nB               _ZN7cocos2d10CCDirector9pushSceneEPNS_7CCSceneE; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0xa0, 0x6ca528\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xa4, 0x6ca52c\nMOV             X1, X21; char *                                        ; +0xa8, 0x6ca530\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0xac, 0x6ca534\nCMP             W0, WZR                                                ; +0xb0, 0x6ca538\nB.GT            loc_6CA4D0                                             ; +0xb4, 0x6ca53c\nMOV             W0, #0                                                 ; +0xb8, 0x6ca540\nSTR             W0, [X20,#0x174]                                       ; +0xbc, 0x6ca544\nB               loc_6CA4FC                                             ; +0xc0, 0x6ca548\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xc4, 0x6ca54c\nMOV             X1, X19; char *                                        ; +0xc8, 0x6ca550\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0xcc, 0x6ca554\nSTR             W0, [X20,#0x174]                                       ; +0xd0, 0x6ca558\nB               loc_6CA4FC                                             ; +0xd4, 0x6ca55c", "xrefs": ["<???> @ 0x87a20", "CreatorLayer::init @ 0x6cc200", "<???> @ 0x122c940"], "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"}