{"type": "func", "start": 4300437280, "end": 4300437354, "name": "GameLevelManager::getSavedDailyLevelFromLevelID", "pseudocode": "// \n// GameLevelManager::getSavedDailyLevelFromLevelID from 0x100537720 to 0x10053776a (74 bytes)\n// \n// 2 xrefs:\n// > CommentCell::loadFromComment @ 0x1002486d1\n// > CommentCell::loadFromComment @ 0x100248901\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; // rax\n  cocos2d::CCDictElement *m_pElements; // rcx\n  GJGameLevel *result; // rax\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 0x100537720 to 0x10053776a (74 bytes)\n; \n; 2 xrefs:\n; > CommentCell::loadFromComment @ 0x1002486d1\n; > CommentCell::loadFromComment @ 0x100248901\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\nmov     rax, [rdi+1C0h]                                                ; +0x0, 0x100537720\ntest    rax, rax                                                       ; +0x7, 0x100537727\njz      short loc_100537767                                            ; +0xa, 0x10053772a\npush    rbp                                                            ; +0xc, 0x10053772c\nmov     rbp, rsp                                                       ; +0xd, 0x10053772d\nmov     rcx, [rax+38h]                                                 ; +0x10, 0x100537730\ntest    rcx, rcx                                                       ; +0x14, 0x100537734\njz      short loc_100537763                                            ; +0x17, 0x100537737\nnop     dword ptr [rax+00000000h]                                      ; +0x19, 0x100537739\nmov     rax, [rcx+108h]                                                ; +0x20, 0x100537740\nmov     edx, [rax+148h]                                                ; +0x27, 0x100537747\nsub     edx, [rax+14Ch]                                                ; +0x2d, 0x10053774d\ncmp     edx, esi                                                       ; +0x33, 0x100537753\njz      short loc_100537765                                            ; +0x35, 0x100537755\nmov     rcx, [rcx+120h]                                                ; +0x37, 0x100537757\ntest    rcx, rcx                                                       ; +0x3e, 0x10053775e\njnz     short loc_100537740                                            ; +0x41, 0x100537761\nxor     eax, eax                                                       ; +0x43, 0x100537763\npop     rbp                                                            ; +0x45, 0x100537765\nretn                                                                   ; +0x46, 0x100537766\nxor     eax, eax                                                       ; +0x47, 0x100537767\nretn                                                                   ; +0x49, 0x100537769", "xrefs": ["CommentCell::loadFromComment @ 0x1002486d1", "CommentCell::loadFromComment @ 0x100248901"], "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"}