{"type": "func", "start": 4295868028, "end": 4295868248, "name": "CreatorLayer::onMyLevels", "pseudocode": "// \n// CreatorLayer::onMyLevels from 0x1000dbe7c to 0x1000dbf58 (220 bytes)\n// \n// 1 xrefs:\n// > CreatorLayer::init @ 0x1000daee0\n// \n// This function is hookable on this platform (idp: arm, 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 10:58:59 +0000\n// \n\n__int64 __fastcall CreatorLayer::onMyLevels(__int64 a1)\n{\n  __int64 v1; // x0\n  __int64 v2; // x0\n  char *v3; // x19\n  __int64 v4; // x0\n  __int64 IntGameVariable; // x0\n  __int64 v6; // x0\n  __int64 v7; // x0\n  __int64 v8; // x0\n  __int64 v9; // x0\n  __int64 v10; // x0\n  __int64 v11; // x20\n  __int64 v12; // x0\n  __int64 v13; // x1\n\n  v1 = GameManager::sharedState(a1);\n  if ( *(_DWORD *)(v1 + 1304) == 102\n    && (v2 = GameManager::sharedState(v1), (GameManager::onlyCuratedLevels(v2) & 1) == 0) )\n  {\n    v10 = (__int64)GJSearchObject::create_2(102);\n    v3 = (char *)v10;\n  }\n  else\n  {\n    v3 = GJSearchObject::create_2(98);\n    v4 = GameManager::sharedState(v3);\n    IntGameVariable = GameManager::getIntGameVariable(v4, \"0091\");\n    if ( (int)IntGameVariable <= 998\n      && (v6 = GameManager::sharedState(IntGameVariable),\n          IntGameVariable = GameManager::getIntGameVariable(v6, \"0091\"),\n          (int)IntGameVariable < 1) )\n    {\n      v10 = 0;\n    }\n    else\n    {\n      v7 = GameManager::sharedState(IntGameVariable);\n      v8 = GameManager::getIntGameVariable(v7, \"0091\");\n      if ( (int)v8 > 998 )\n      {\n        v10 = 999;\n      }\n      else\n      {\n        v9 = GameManager::sharedState(v8);\n        v10 = GameManager::getIntGameVariable(v9, \"0091\");\n      }\n    }\n    *((_DWORD *)v3 + 105) = v10;\n  }\n  v11 = cocos2d::CCDirector::sharedDirector(v10);\n  v12 = LevelBrowserLayer::scene(v3);\n  v13 = cocos2d::CCTransitionFade::create_1(v12, 0.5);\n  return cocos2d::CCDirector::pushScene(v11, v13);\n}", "assembly": "; \n; CreatorLayer::onMyLevels from 0x1000dbe7c to 0x1000dbf58 (220 bytes)\n; \n; 1 xrefs:\n; > CreatorLayer::init @ 0x1000daee0\n; \n; This function is hookable on this platform (idp: arm, 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 10:58:59 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000dbe7c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000dbe80\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000dbe84\nBL              GameManager__sharedState                               ; +0xc, 0x1000dbe88\nLDR             W8, [X0,#0x518]                                        ; +0x10, 0x1000dbe8c\nCMP             W8, #0x66 ; 'f'                                        ; +0x14, 0x1000dbe90\nB.NE            loc_1000DBEA4                                          ; +0x18, 0x1000dbe94\nBL              GameManager__sharedState                               ; +0x1c, 0x1000dbe98\nBL              GameManager__onlyCuratedLevels                         ; +0x20, 0x1000dbe9c\nTBZ             W0, #0, loc_1000DBF14                                  ; +0x24, 0x1000dbea0\nMOV             W0, #0x62 ; 'b'                                        ; +0x28, 0x1000dbea4\nBL              GJSearchObject__create_2                               ; +0x2c, 0x1000dbea8\nMOV             X19, X0                                                ; +0x30, 0x1000dbeac\nBL              GameManager__sharedState                               ; +0x34, 0x1000dbeb0\nADRL            X1, a0091; \"0091\"                                      ; +0x38, 0x1000dbeb4\nBL              GameManager__getIntGameVariable                        ; +0x40, 0x1000dbebc\nCMP             W0, #0x3E6                                             ; +0x44, 0x1000dbec0\nB.GT            loc_1000DBEE0                                          ; +0x48, 0x1000dbec4\nBL              GameManager__sharedState                               ; +0x4c, 0x1000dbec8\nADRL            X1, a0091; \"0091\"                                      ; +0x50, 0x1000dbecc\nBL              GameManager__getIntGameVariable                        ; +0x58, 0x1000dbed4\nCMP             W0, #1                                                 ; +0x5c, 0x1000dbed8\nB.LT            loc_1000DBF24                                          ; +0x60, 0x1000dbedc\nBL              GameManager__sharedState                               ; +0x64, 0x1000dbee0\nADRL            X1, a0091; \"0091\"                                      ; +0x68, 0x1000dbee4\nBL              GameManager__getIntGameVariable                        ; +0x70, 0x1000dbeec\nCMP             W0, #0x3E6                                             ; +0x74, 0x1000dbef0\nB.GT            loc_1000DBF0C                                          ; +0x78, 0x1000dbef4\nBL              GameManager__sharedState                               ; +0x7c, 0x1000dbef8\nADRL            X1, a0091; \"0091\"                                      ; +0x80, 0x1000dbefc\nBL              GameManager__getIntGameVariable                        ; +0x88, 0x1000dbf04\nB               loc_1000DBF28                                          ; +0x8c, 0x1000dbf08\nMOV             W0, #0x3E7                                             ; +0x90, 0x1000dbf0c\nB               loc_1000DBF28                                          ; +0x94, 0x1000dbf10\nMOV             W0, #0x66 ; 'f'                                        ; +0x98, 0x1000dbf14\nBL              GJSearchObject__create_2                               ; +0x9c, 0x1000dbf18\nMOV             X19, X0                                                ; +0xa0, 0x1000dbf1c\nB               loc_1000DBF2C                                          ; +0xa4, 0x1000dbf20\nMOV             W0, #0                                                 ; +0xa8, 0x1000dbf24\nSTR             W0, [X19,#0x1A4]                                       ; +0xac, 0x1000dbf28\nBL              cocos2d__CCDirector__sharedDirector                    ; +0xb0, 0x1000dbf2c\nMOV             X20, X0                                                ; +0xb4, 0x1000dbf30\nMOV             X0, X19                                                ; +0xb8, 0x1000dbf34\nBL              LevelBrowserLayer__scene                               ; +0xbc, 0x1000dbf38\nFMOV            S0, #0.5                                               ; +0xc0, 0x1000dbf3c\nBL              cocos2d__CCTransitionFade__create_1                    ; +0xc4, 0x1000dbf40\nMOV             X1, X0                                                 ; +0xc8, 0x1000dbf44\nMOV             X0, X20                                                ; +0xcc, 0x1000dbf48\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xd0, 0x1000dbf4c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xd4, 0x1000dbf50\nB               cocos2d__CCDirector__pushScene                         ; +0xd8, 0x1000dbf54", "xrefs": ["CreatorLayer::init @ 0x1000daee0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}