{"type": "func", "start": 4295592964, "end": 4295593020, "name": "GameLevelManager::getSavedDailyLevelFromLevelID", "pseudocode": "// \n// GameLevelManager::getSavedDailyLevelFromLevelID from 0x100098c04 to 0x100098c3c (56 bytes)\n// \n// 2 xrefs:\n// > CommentCell::loadFromComment @ 0x100106984\n// > CommentCell::loadFromComment @ 0x100106b0c\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::getSavedDailyLevelFromLevelID(GameLevelManager *a1, int a2)\n{\n  cocos2d::CCDictionary *m_dailyLevels; // x8\n  cocos2d::CCDictElement *m_pElements; // x8\n  GJGameLevel *result; // x0\n\n  m_dailyLevels = a1->m_dailyLevels;\n  if ( !m_dailyLevels )\n    return nullptr;\n  m_pElements = m_dailyLevels->m_pElements;\n  if ( !m_pElements )\n    return nullptr;\n  while ( 1 )\n  {\n    result = (GJGameLevel *)m_pElements->m_pObject;\n    if ( result->m_levelID.random - result->m_levelID.seed == a2 )\n      break;\n    m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;\n    if ( !m_pElements )\n      return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; GameLevelManager::getSavedDailyLevelFromLevelID from 0x100098c04 to 0x100098c3c (56 bytes)\n; \n; 2 xrefs:\n; > CommentCell::loadFromComment @ 0x100106984\n; > CommentCell::loadFromComment @ 0x100106b0c\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\nLDR             X8, [X0,#0x1C0]                                        ; +0x0, 0x100098c04\nCBZ             X8, loc_100098C34                                      ; +0x4, 0x100098c08\nLDR             X8, [X8,#0x38]                                         ; +0x8, 0x100098c0c\nCBZ             X8, loc_100098C34                                      ; +0xc, 0x100098c10\nLDR             X0, [X8,#0x108]                                        ; +0x10, 0x100098c14\nLDR             W9, [X0,#0x148]                                        ; +0x14, 0x100098c18\nLDR             W10, [X0,#0x14C]                                       ; +0x18, 0x100098c1c\nSUB             W9, W9, W10                                            ; +0x1c, 0x100098c20\nCMP             W9, W1                                                 ; +0x20, 0x100098c24\nB.EQ            locret_100098C38                                       ; +0x24, 0x100098c28\nLDR             X8, [X8,#0x120]                                        ; +0x28, 0x100098c2c\nCBNZ            X8, loc_100098C14                                      ; +0x2c, 0x100098c30\nMOV             X0, #0                                                 ; +0x30, 0x100098c34\nRET                                                                    ; +0x34, 0x100098c38", "xrefs": ["CommentCell::loadFromComment @ 0x100106984", "CommentCell::loadFromComment @ 0x100106b0c"], "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"}