{"type": "func", "start": 3844036, "end": 3844180, "name": "CreatorLayer::onMyLevels", "pseudocode": "// \n// CreatorLayer::onMyLevels from 0x3aa7c4 to 0x3aa854 (144 bytes)\n// \n// 0 xrefs:\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  SearchType v2; // r1\n  GJSearchObject *m_localSearchType; // r4\n  GJSearchObject *v4; // r5\n  GameManager *v5; // r0\n  GameManager *v6; // r0\n  int IntGameVariable; // r0\n  GameManager *v8; // r0\n  GameManager *v9; // r0\n  cocos2d::CCDirector *v10; // r4\n  cocos2d::CCScene *v11; // r0\n  cocos2d::CCTransitionFade *v12; // r1\n\n  m_localSearchType = (GJSearchObject *)GameManager::sharedState()->m_localSearchType;\n  if ( m_localSearchType != (GJSearchObject *)((char *)&dword_64 + 2) )\n    m_localSearchType = (GJSearchObject *)(&dword_60 + 2);\n  v4 = (GJSearchObject *)GJSearchObject::create(m_localSearchType, v2);\n  if ( m_localSearchType == (GJSearchObject *)((char *)&dword_60 + 2) )\n  {\n    v5 = GameManager::sharedState();\n    if ( GameManager::getIntGameVariable(v5, \"0091\") > 998\n      || (v8 = GameManager::sharedState(), GameManager::getIntGameVariable(v8, \"0091\") > 0) )\n    {\n      v6 = GameManager::sharedState();\n      if ( GameManager::getIntGameVariable(v6, \"0091\") <= 998 )\n      {\n        v9 = GameManager::sharedState();\n        IntGameVariable = GameManager::getIntGameVariable(v9, \"0091\");\n      }\n      else\n      {\n        IntGameVariable = 999;\n      }\n    }\n    else\n    {\n      IntGameVariable = 0;\n    }\n    v4->m_folder = IntGameVariable;\n  }\n  v10 = cocos2d::CCDirector::sharedDirector();\n  v11 = LevelBrowserLayer::scene(v4);\n  v12 = cocos2d::CCTransitionFade::create(0.5, v11);\n  cocos2d::CCDirector::pushScene(v10, v12);\n}", "assembly": "; \n; CreatorLayer::onMyLevels from 0x3aa7c4 to 0x3aa854 (144 bytes)\n; \n; 0 xrefs:\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x3aa7c4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x2, 0x3aa7c6\nLDR.W           R4, [R0,#0x3B4]                                        ; +0x6, 0x3aa7ca\nCMP             R4, #0x66 ; 'f'                                        ; +0xa, 0x3aa7ce\nIT NE                                                                  ; +0xc, 0x3aa7d0\nMOVNE           R4, #0x62 ; 'b'                                        ; +0xe, 0x3aa7d2\nMOV             R0, R4                                                 ; +0x10, 0x3aa7d4\nBL              _ZN14GJSearchObject6createE10SearchType; GJSearchObject::create(SearchType) ; +0x12, 0x3aa7d6\nCMP             R4, #0x62 ; 'b'                                        ; +0x16, 0x3aa7da\nMOV             R5, R0                                                 ; +0x18, 0x3aa7dc\nBNE             loc_3AA832                                             ; +0x1a, 0x3aa7de\nLDR             R4, =(a0091 - 0x3AA7EA); \"0091\"                        ; +0x1c, 0x3aa7e0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1e, 0x3aa7e2\nADD             R4, PC; \"0091\"                                         ; +0x22, 0x3aa7e6\nMOV             R1, R4; char *                                         ; +0x24, 0x3aa7e8\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x26, 0x3aa7ea\nMOVW            R3, #0x3E6                                             ; +0x2a, 0x3aa7ee\nCMP             R0, R3                                                 ; +0x2e, 0x3aa7f2\nBLE             loc_3AA812                                             ; +0x30, 0x3aa7f4\nLDR             R4, =(a0091 - 0x3AA800); \"0091\"                        ; +0x32, 0x3aa7f6\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x34, 0x3aa7f8\nADD             R4, PC; \"0091\"                                         ; +0x38, 0x3aa7fc\nMOV             R1, R4; char *                                         ; +0x3a, 0x3aa7fe\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x3c, 0x3aa800\nMOVW            R3, #0x3E6                                             ; +0x40, 0x3aa804\nCMP             R0, R3                                                 ; +0x44, 0x3aa808\nBLE             loc_3AA824                                             ; +0x46, 0x3aa80a\nMOVW            R0, #0x3E7                                             ; +0x48, 0x3aa80c\nB               loc_3AA82E                                             ; +0x4c, 0x3aa810\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x4e, 0x3aa812\nMOV             R1, R4; char *                                         ; +0x52, 0x3aa816\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x54, 0x3aa818\nCMP             R0, #0                                                 ; +0x58, 0x3aa81c\nBGT             loc_3AA7F6                                             ; +0x5a, 0x3aa81e\nMOVS            R0, #0                                                 ; +0x5c, 0x3aa820\nB               loc_3AA82E                                             ; +0x5e, 0x3aa822\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x60, 0x3aa824\nMOV             R1, R4; char *                                         ; +0x64, 0x3aa828\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x66, 0x3aa82a\nSTR.W           R0, [R5,#0x134]                                        ; +0x6a, 0x3aa82e\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x6e, 0x3aa832\nMOV             R4, R0                                                 ; +0x72, 0x3aa836\nMOV             R0, R5; this                                           ; +0x74, 0x3aa838\nBL              _ZN17LevelBrowserLayer5sceneEP14GJSearchObject; LevelBrowserLayer::scene(GJSearchObject *) ; +0x76, 0x3aa83a\nMOV             R1, R0; float                                          ; +0x7a, 0x3aa83e\nMOV.W           R0, #0x3F000000; this                                  ; +0x7c, 0x3aa840\nBL              _ZN7cocos2d16CCTransitionFade6createEfPNS_7CCSceneE; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x80, 0x3aa844\nMOV             R1, R0; cocos2d::CCScene *                             ; +0x84, 0x3aa848\nMOV             R0, R4; this                                           ; +0x86, 0x3aa84a\nPOP.W           {R3-R5,LR}                                             ; +0x88, 0x3aa84c\nB.W             _ZN7cocos2d10CCDirector9pushSceneEPNS_7CCSceneE; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0x8c, 0x3aa850", "xrefs": [], "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"}