{"type": "func", "start": 4295592568, "end": 4295592672, "name": "GameLevelManager::getSavedDailyLevel", "pseudocode": "// \n// GameLevelManager::getSavedDailyLevel from 0x100098a78 to 0x100098ae0 (104 bytes)\n// \n// 5 xrefs:\n// > GameLevelManager::getSavedLevel_1 @ 0x1000951f0\n// > LevelCell::loadCustomLevelCell @ 0x10010ccd0\n// > DailyLevelPage::init @ 0x1001b98dc\n// > DailyLevelPage::createNodeIfLoaded @ 0x1001ba7b8\n// > GameStatsManager::getTotalCollectedCurrency @ 0x100334e18\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\nGJGameLevel *__fastcall GameLevelManager::getSavedDailyLevel(GameLevelManager *a1, int a2)\n{\n  cocos2d::CCDictionary *m_dailyLevels; // x19\n  cocos2d::CCString *v3; // x0\n  char *CString; // x0\n  GJGameLevel *v5; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v8; // [xsp+1Fh] [xbp-11h]\n\n  m_dailyLevels = a1->m_dailyLevels;\n  v3 = (cocos2d::CCString *)sub_100268F4C(\"%i\", a2);\n  CString = (char *)cocos2d::CCString::getCString(v3);\n  sub_100009900(__p, CString);\n  v5 = (GJGameLevel *)cocos2d::CCDictionary::objectForKey_1(m_dailyLevels, __p);\n  if ( v8 < 0 )\n    operator delete(__p[0]);\n  return v5;\n}", "assembly": "; \n; GameLevelManager::getSavedDailyLevel from 0x100098a78 to 0x100098ae0 (104 bytes)\n; \n; 5 xrefs:\n; > GameLevelManager::getSavedLevel_1 @ 0x1000951f0\n; > LevelCell::loadCustomLevelCell @ 0x10010ccd0\n; > DailyLevelPage::init @ 0x1001b98dc\n; > DailyLevelPage::createNodeIfLoaded @ 0x1001ba7b8\n; > GameStatsManager::getTotalCollectedCurrency @ 0x100334e18\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100098a78\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100098a7c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100098a80\nADD             X29, SP, #0x30                                         ; +0xc, 0x100098a84\nLDR             X19, [X0,#0x1C0]                                       ; +0x10, 0x100098a88\nSTR             X1, [SP,#0x30+var_30]                                  ; +0x14, 0x100098a8c\nADRL            X0, aI; \"%i\"                                           ; +0x18, 0x100098a90\nBL              sub_100268F4C                                          ; +0x20, 0x100098a98\nBL              cocos2d__CCString__getCString                          ; +0x24, 0x100098a9c\nMOV             X1, X0; __s                                            ; +0x28, 0x100098aa0\nADD             X0, SP, #0x30+__p; int                                 ; +0x2c, 0x100098aa4\nBL              sub_100009900                                          ; +0x30, 0x100098aa8\nADD             X1, SP, #0x30+__p                                      ; +0x34, 0x100098aac\nMOV             X0, X19                                                ; +0x38, 0x100098ab0\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x3c, 0x100098ab4\nMOV             X19, X0                                                ; +0x40, 0x100098ab8\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x44, 0x100098abc\nTBZ             W8, #0x1F, loc_100098ACC                               ; +0x48, 0x100098ac0\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x4c, 0x100098ac4\nBL              __ZdlPv; operator delete(void *)                       ; +0x50, 0x100098ac8\nMOV             X0, X19                                                ; +0x54, 0x100098acc\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x58, 0x100098ad0\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x5c, 0x100098ad4\nADD             SP, SP, #0x40 ; '@'                                    ; +0x60, 0x100098ad8\nRET                                                                    ; +0x64, 0x100098adc", "xrefs": ["GameLevelManager::getSavedLevel_1 @ 0x1000951f0", "LevelCell::loadCustomLevelCell @ 0x10010ccd0", "DailyLevelPage::init @ 0x1001b98dc", "DailyLevelPage::createNodeIfLoaded @ 0x1001ba7b8", "GameStatsManager::getTotalCollectedCurrency @ 0x100334e18"], "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"}