{"type": "func", "start": 4295670244, "end": 4295670304, "name": "GameLevelManager::hasDailyStateBeenLoaded", "pseudocode": "// \n// GameLevelManager::hasDailyStateBeenLoaded from 0x1000ab9e4 to 0x1000aba20 (60 bytes)\n// \n// 2 xrefs:\n// > DailyLevelPage::init @ 0x1001b9900\n// > DailyLevelPage::updateTimers @ 0x1001b9e78\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\nbool __fastcall GameLevelManager::hasDailyStateBeenLoaded(GameLevelManager *a1, GJTimedLevelType a2)\n{\n  int m_eventTimeLeft; // w8\n\n  switch ( a2 )\n  {\n    case 2:\n      m_eventTimeLeft = a1->m_eventTimeLeft;\n      return m_eventTimeLeft > 0;\n    case 1:\n      m_eventTimeLeft = a1->m_weeklyTimeLeft;\n      return m_eventTimeLeft > 0;\n    case 0:\n      m_eventTimeLeft = a1->m_dailyTimeLeft;\n      return m_eventTimeLeft > 0;\n  }\n  return 0;\n}", "assembly": "; \n; GameLevelManager::hasDailyStateBeenLoaded from 0x1000ab9e4 to 0x1000aba20 (60 bytes)\n; \n; 2 xrefs:\n; > DailyLevelPage::init @ 0x1001b9900\n; > DailyLevelPage::updateTimers @ 0x1001b9e78\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\nCMP             W1, #2                                                 ; +0x0, 0x1000ab9e4\nB.EQ            loc_1000ABA08                                          ; +0x4, 0x1000ab9e8\nCMP             W1, #1                                                 ; +0x8, 0x1000ab9ec\nB.EQ            loc_1000ABA00                                          ; +0xc, 0x1000ab9f0\nCBNZ            W1, loc_1000ABA18                                      ; +0x10, 0x1000ab9f4\nLDR             W8, [X0,#0x1C8]                                        ; +0x14, 0x1000ab9f8\nB               loc_1000ABA0C                                          ; +0x18, 0x1000ab9fc\nLDR             W8, [X0,#0x1D4]                                        ; +0x1c, 0x1000aba00\nB               loc_1000ABA0C                                          ; +0x20, 0x1000aba04\nLDR             W8, [X0,#0x1E0]                                        ; +0x24, 0x1000aba08\nCMP             W8, #0                                                 ; +0x28, 0x1000aba0c\nCSET            W0, GT                                                 ; +0x2c, 0x1000aba10\nRET                                                                    ; +0x30, 0x1000aba14\nMOV             W0, #0                                                 ; +0x34, 0x1000aba18\nRET                                                                    ; +0x38, 0x1000aba1c", "xrefs": ["DailyLevelPage::init @ 0x1001b9900", "DailyLevelPage::updateTimers @ 0x1001b9e78"], "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"}