{"type": "func", "start": 6327884, "end": 6328160, "name": "DailyLevelPage::updateTimers", "pseudocode": "// \n// DailyLevelPage::updateTimers from 0x608e4c to 0x608f60 (276 bytes)\n// \n// 2 xrefs:\n// > DailyLevelPage::dailyStatusFinished @ 0x608f7a\n// > DailyLevelPage::dailyStatusFinished @ 0x608f90\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:54:46 +0000\n// \n\nint __fastcall DailyLevelPage::updateTimers(DailyLevelPage *this, float a2)\n{\n  _DWORD *v3; // r0\n  int result; // r0\n  int DailyTime; // r8\n  GameLevelManager *DailyTimeString; // r0\n  char *v7; // r1\n  int v8; // r9\n  int v9; // r3\n  _DWORD *v10; // r0\n  int v11; // [sp+4h] [bp-20h] BYREF\n  size_t v12; // [sp+8h] [bp-1Ch]\n  char *v13; // [sp+Ch] [bp-18h]\n  int v14; // [sp+10h] [bp-14h] BYREF\n  size_t v15; // [sp+14h] [bp-10h]\n  char *v16; // [sp+18h] [bp-Ch]\n\n  v3 = (_DWORD *)GameLevelManager::sharedState(this);\n  result = GameLevelManager::hasDailyStateBeenLoaded(v3, *((_DWORD *)this + 139));\n  if ( result )\n  {\n    DailyTime = DailyLevelPage::getDailyTime(this);\n    DailyTimeString = DailyLevelPage::getDailyTimeString((DailyLevelPage *)&v11, (int)this, DailyTime);\n    if ( *((_DWORD *)this + 139) != 2 )\n    {\n      v7 = (v11 & 1) != 0 ? v13 : (char *)&v11 + 1;\n      DailyTimeString = (GameLevelManager *)(*(int (__fastcall **)(_DWORD, char *, int))(**((_DWORD **)this + 133) + 464))(\n                                              *((_DWORD *)this + 133),\n                                              v7,\n                                              (unsigned __int8)v11 << 31);\n      v8 = *((_DWORD *)this + 137);\n      if ( v8 )\n      {\n        v14 = 0;\n        v15 = 0;\n        v16 = nullptr;\n        if ( (v11 & 1) != 0 )\n        {\n          std::string::__init(&v14, v13, v12);\n        }\n        else\n        {\n          v14 = v11;\n          v15 = v12;\n          v16 = v13;\n        }\n        DailyLevelNode::updateTimeLabel(v8, (unsigned __int8 *)&v14);\n        DailyTimeString = (GameLevelManager *)std::string::~string((int)&v14);\n      }\n    }\n    if ( DailyTime <= 0 && !*((_BYTE *)this + 545) )\n    {\n      v9 = *((_DWORD *)this + 139);\n      *((_BYTE *)this + 545) = 1;\n      if ( v9 != 2 )\n      {\n        (*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 134) + 172))(*((_DWORD *)this + 134));\n        DailyTimeString = (GameLevelManager *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 133) + 172))(\n                                                *((_DWORD *)this + 133),\n                                                0);\n      }\n      v10 = (_DWORD *)GameLevelManager::sharedState(DailyTimeString);\n      GameLevelManager::resetDailyLevelState(v10, *((_DWORD *)this + 139));\n      DailyLevelPage::tryGetDailyStatus(this);\n      *((_BYTE *)this + 544) = 0;\n    }\n    return std::string::~string((int)&v11);\n  }\n  return result;\n}", "assembly": "; \n; DailyLevelPage::updateTimers from 0x608e4c to 0x608f60 (276 bytes)\n; \n; 2 xrefs:\n; > DailyLevelPage::dailyStatusFinished @ 0x608f7a\n; > DailyLevelPage::dailyStatusFinished @ 0x608f90\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:54:46 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x608e4c\nSUB             SP, SP, #0x24                                          ; +0x4, 0x608e50\nLDR             R6, =(__stack_chk_guard_ptr - 0x608E5A)                ; +0x6, 0x608e52\nMOV             R4, R0                                                 ; +0x8, 0x608e54\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xa, 0x608e56\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xc, 0x608e58\nLDR             R3, [R6]                                               ; +0xe, 0x608e5a\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x10, 0x608e5c\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x12, 0x608e5e\nLDR.W           R1, [R4,#0x22C]                                        ; +0x16, 0x608e62\nBL              _ZN16GameLevelManager23hasDailyStateBeenLoadedE16GJTimedLevelType; GameLevelManager::hasDailyStateBeenLoaded(GJTimedLevelType) ; +0x1a, 0x608e66\nCMP             R0, #0                                                 ; +0x1e, 0x608e6a\nBEQ             loc_608F4E                                             ; +0x20, 0x608e6c\nMOV             R0, R4; this                                           ; +0x22, 0x608e6e\nADD             R7, SP, #0x24+var_20                                   ; +0x24, 0x608e70\nBL              _ZN14DailyLevelPage12getDailyTimeEv; DailyLevelPage::getDailyTime(void) ; +0x26, 0x608e72\nMOV             R1, R4; int                                            ; +0x2a, 0x608e76\nMOV             R8, R0                                                 ; +0x2c, 0x608e78\nMOV             R0, R7; this                                           ; +0x2e, 0x608e7a\nMOV             R2, R8                                                 ; +0x30, 0x608e7c\nBL              _ZN14DailyLevelPage18getDailyTimeStringEi; DailyLevelPage::getDailyTimeString(int) ; +0x32, 0x608e7e\nLDR.W           R3, [R4,#0x22C]                                        ; +0x36, 0x608e82\nCMP             R3, #2                                                 ; +0x3a, 0x608e86\nBEQ             loc_608EE4                                             ; +0x3c, 0x608e88\nLDR.W           R0, [R4,#0x214]                                        ; +0x3e, 0x608e8a\nLDRB.W          R2, [SP,#0x24+var_20]                                  ; +0x42, 0x608e8e\nLDR             R3, [R0]                                               ; +0x46, 0x608e92\nLSLS            R2, R2, #0x1F                                          ; +0x48, 0x608e94\nITE PL                                                                 ; +0x4a, 0x608e96\nADDPL.W         R1, SP, #0x24+var_1F                                   ; +0x4c, 0x608e98\nLDRMI           R1, [SP,#0x24+var_18]                                  ; +0x50, 0x608e9c\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x52, 0x608e9e\nBLX             R3                                                     ; +0x56, 0x608ea2\nLDR.W           R9, [R4,#0x224]                                        ; +0x58, 0x608ea4\nCMP.W           R9, #0                                                 ; +0x5c, 0x608ea8\nBEQ             loc_608EE4                                             ; +0x60, 0x608eac\nMOVS            R3, #0                                                 ; +0x62, 0x608eae\nSTR             R3, [SP,#0x24+var_14]                                  ; +0x64, 0x608eb0\nSTR             R3, [SP,#0x24+var_10]                                  ; +0x66, 0x608eb2\nADD             R5, SP, #0x24+var_14                                   ; +0x68, 0x608eb4\nSTR             R3, [SP,#0x24+var_C]                                   ; +0x6a, 0x608eb6\nLDRB.W          R3, [SP,#0x24+var_20]                                  ; +0x6c, 0x608eb8\nTST.W           R3, #1                                                 ; +0x70, 0x608ebc\nBNE             loc_608ECC                                             ; +0x74, 0x608ec0\nLDM.W           R7, {R0-R2}                                            ; +0x76, 0x608ec2\nSTM.W           R5, {R0-R2}                                            ; +0x7a, 0x608ec6\nB               loc_608ED6                                             ; +0x7e, 0x608eca\nMOV             R0, R5                                                 ; +0x80, 0x608ecc\nLDR             R1, [SP,#0x24+var_18]                                  ; +0x82, 0x608ece\nLDR             R2, [SP,#0x24+var_1C]                                  ; +0x84, 0x608ed0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x86, 0x608ed2\nMOV             R0, R9                                                 ; +0x8a, 0x608ed6\nMOV             R1, R5                                                 ; +0x8c, 0x608ed8\nBL              _ZN14DailyLevelNode15updateTimeLabelENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; DailyLevelNode::updateTimeLabel(std::string) ; +0x8e, 0x608eda\nMOV             R0, R5                                                 ; +0x92, 0x608ede\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x94, 0x608ee0\nCMP.W           R8, #0                                                 ; +0x98, 0x608ee4\nBGT             loc_608F34                                             ; +0x9c, 0x608ee8\nLDRB.W          R3, [R4,#0x221]                                        ; +0x9e, 0x608eea\nCBNZ            R3, loc_608F34                                         ; +0xa2, 0x608eee\nLDR.W           R3, [R4,#0x22C]                                        ; +0xa4, 0x608ef0\nMOVS            R1, #1                                                 ; +0xa8, 0x608ef4\nSTRB.W          R1, [R4,#0x221]                                        ; +0xaa, 0x608ef6\nCMP             R3, #2                                                 ; +0xae, 0x608efa\nBNE             loc_608F0C                                             ; +0xb0, 0x608efc\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0xb2, 0x608efe\nLDR.W           R1, [R4,#0x22C]                                        ; +0xb6, 0x608f02\nBL              _ZN16GameLevelManager20resetDailyLevelStateE16GJTimedLevelType; GameLevelManager::resetDailyLevelState(GJTimedLevelType) ; +0xba, 0x608f06\nB               loc_608F28                                             ; +0xbe, 0x608f0a\nLDR.W           R0, [R4,#0x218]                                        ; +0xc0, 0x608f0c\nLDR             R3, [R0]                                               ; +0xc4, 0x608f10\nLDR.W           R3, [R3,#0xAC]                                         ; +0xc6, 0x608f12\nBLX             R3                                                     ; +0xca, 0x608f16\nLDR.W           R0, [R4,#0x214]                                        ; +0xcc, 0x608f18\nMOVS            R1, #0                                                 ; +0xd0, 0x608f1c\nLDR             R3, [R0]                                               ; +0xd2, 0x608f1e\nLDR.W           R3, [R3,#0xAC]                                         ; +0xd4, 0x608f20\nBLX             R3                                                     ; +0xd8, 0x608f24\nB               loc_608EFE                                             ; +0xda, 0x608f26\nMOV             R0, R4; this                                           ; +0xdc, 0x608f28\nBL              _ZN14DailyLevelPage17tryGetDailyStatusEv; DailyLevelPage::tryGetDailyStatus(void) ; +0xde, 0x608f2a\nMOVS            R3, #0                                                 ; +0xe2, 0x608f2e\nSTRB.W          R3, [R4,#0x220]                                        ; +0xe4, 0x608f30\nMOV             R0, R7                                                 ; +0xe8, 0x608f34\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xea, 0x608f36\nB               loc_608F4E                                             ; +0xee, 0x608f3a\nMOV             R0, R5                                                 ; +0xf0, 0x608f3c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xf2, 0x608f3e\nB               loc_608F44                                             ; +0xf6, 0x608f42\nMOV             R0, R7                                                 ; +0xf8, 0x608f44\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xfa, 0x608f46\nBL              __cxa_end_cleanup                                      ; +0xfe, 0x608f4a\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x102, 0x608f4e\nLDR             R3, [R6]                                               ; +0x104, 0x608f50\nCMP             R2, R3                                                 ; +0x106, 0x608f52\nBEQ             loc_608F5A                                             ; +0x108, 0x608f54\nBLX             __stack_chk_fail                                       ; +0x10a, 0x608f56\nADD             SP, SP, #0x24 ; '$'                                    ; +0x10e, 0x608f5a\nPOP.W           {R4-R9,PC}                                             ; +0x110, 0x608f5c", "xrefs": ["DailyLevelPage::dailyStatusFinished @ 0x608f7a", "DailyLevelPage::dailyStatusFinished @ 0x608f90"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}