{"type": "func", "start": 4295713616, "end": 4295713816, "name": "CreatorLayer::onMyLevels", "pseudocode": "// \n// CreatorLayer::onMyLevels from 0x1000b6350 to 0x1000b6418 (200 bytes)\n// \n// 1 xrefs:\n// > CreatorLayer::init @ 0x1000b5540\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 CreatorLayer::onMyLevels(CreatorLayer *a1, cocos2d::CCObject *a2)\n{\n  SearchType m_localSearchType; // w20\n  SearchType v3; // w0\n  GJSearchObject *v4; // x19\n  GameManager *v5; // x0\n  GameManager *v6; // x0\n  GameManager *v7; // x0\n  GameManager *v8; // x0\n  int IntGameVariable; // w0\n  cocos2d::CCDirector *v10; // x20\n  cocos2d::CCScene *v11; // x0\n  cocos2d::CCTransitionFade *v12; // x1\n\n  m_localSearchType = GameManager::sharedState()->m_localSearchType;\n  if ( m_localSearchType == MyLists )\n    v3 = MyLists;\n  else\n    v3 = MyLevels;\n  v4 = GJSearchObject::create_2(v3);\n  if ( m_localSearchType != MyLists )\n  {\n    v5 = GameManager::sharedState();\n    if ( GameManager::getIntGameVariable(v5, \"0091\") <= 998\n      && (v6 = GameManager::sharedState(), GameManager::getIntGameVariable(v6, \"0091\") < 1) )\n    {\n      IntGameVariable = 0;\n    }\n    else\n    {\n      v7 = GameManager::sharedState();\n      if ( GameManager::getIntGameVariable(v7, \"0091\") > 998 )\n      {\n        IntGameVariable = 999;\n      }\n      else\n      {\n        v8 = GameManager::sharedState();\n        IntGameVariable = GameManager::getIntGameVariable(v8, \"0091\");\n      }\n    }\n    v4->m_folder = IntGameVariable;\n  }\n  v10 = cocos2d::CCDirector::sharedDirector();\n  v11 = LevelBrowserLayer::scene(v4);\n  v12 = cocos2d::CCTransitionFade::create_1(0.5, v11);\n  cocos2d::CCDirector::pushScene(v10, v12);\n}", "assembly": "; \n; CreatorLayer::onMyLevels from 0x1000b6350 to 0x1000b6418 (200 bytes)\n; \n; 1 xrefs:\n; > CreatorLayer::init @ 0x1000b5540\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000b6350\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000b6354\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000b6358\nBL              GameManager__sharedState                               ; +0xc, 0x1000b635c\nLDR             W20, [X0,#0x4B0]                                       ; +0x10, 0x1000b6360\nCMP             W20, #0x66 ; 'f'                                       ; +0x14, 0x1000b6364\nMOV             W8, #0x62 ; 'b'                                        ; +0x18, 0x1000b6368\nCSEL            W0, W20, W8, EQ                                        ; +0x1c, 0x1000b636c\nBL              GJSearchObject__create_2                               ; +0x20, 0x1000b6370\nMOV             X19, X0                                                ; +0x24, 0x1000b6374\nCMP             W20, #0x66 ; 'f'                                       ; +0x28, 0x1000b6378\nB.EQ            loc_1000B63EC                                          ; +0x2c, 0x1000b637c\nBL              GameManager__sharedState                               ; +0x30, 0x1000b6380\nADRL            X1, a0091; \"0091\"                                      ; +0x34, 0x1000b6384\nBL              GameManager__getIntGameVariable                        ; +0x3c, 0x1000b638c\nCMP             W0, #0x3E6                                             ; +0x40, 0x1000b6390\nB.GT            loc_1000B63B0                                          ; +0x44, 0x1000b6394\nBL              GameManager__sharedState                               ; +0x48, 0x1000b6398\nADRL            X1, a0091; \"0091\"                                      ; +0x4c, 0x1000b639c\nBL              GameManager__getIntGameVariable                        ; +0x54, 0x1000b63a4\nCMP             W0, #1                                                 ; +0x58, 0x1000b63a8\nB.LT            loc_1000B63E4                                          ; +0x5c, 0x1000b63ac\nBL              GameManager__sharedState                               ; +0x60, 0x1000b63b0\nADRL            X1, a0091; \"0091\"                                      ; +0x64, 0x1000b63b4\nBL              GameManager__getIntGameVariable                        ; +0x6c, 0x1000b63bc\nCMP             W0, #0x3E6                                             ; +0x70, 0x1000b63c0\nB.GT            loc_1000B63DC                                          ; +0x74, 0x1000b63c4\nBL              GameManager__sharedState                               ; +0x78, 0x1000b63c8\nADRL            X1, a0091; \"0091\"                                      ; +0x7c, 0x1000b63cc\nBL              GameManager__getIntGameVariable                        ; +0x84, 0x1000b63d4\nB               loc_1000B63E8                                          ; +0x88, 0x1000b63d8\nMOV             W0, #0x3E7                                             ; +0x8c, 0x1000b63dc\nB               loc_1000B63E8                                          ; +0x90, 0x1000b63e0\nMOV             W0, #0                                                 ; +0x94, 0x1000b63e4\nSTR             W0, [X19,#0x1A4]                                       ; +0x98, 0x1000b63e8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x9c, 0x1000b63ec\nMOV             X20, X0                                                ; +0xa0, 0x1000b63f0\nMOV             X0, X19                                                ; +0xa4, 0x1000b63f4\nBL              LevelBrowserLayer__scene                               ; +0xa8, 0x1000b63f8\nFMOV            S0, #0.5                                               ; +0xac, 0x1000b63fc\nBL              cocos2d__CCTransitionFade__create_1                    ; +0xb0, 0x1000b6400\nMOV             X1, X0                                                 ; +0xb4, 0x1000b6404\nMOV             X0, X20                                                ; +0xb8, 0x1000b6408\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xbc, 0x1000b640c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xc0, 0x1000b6410\nB               cocos2d__CCDirector__pushScene                         ; +0xc4, 0x1000b6414", "xrefs": ["CreatorLayer::init @ 0x1000b5540"], "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"}