{"type": "func", "start": 5062344, "end": 5062456, "name": "DailyLevelPage::getDailyTime", "pseudocode": "// \n// DailyLevelPage::getDailyTime from 0x4d3ec8 to 0x4d3f38 (112 bytes)\n// \n// 1 xrefs:\n// > DailyLevelPage::updateTimers @ 0x4d5912\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\nint DailyLevelPage::getDailyTime(DailyLevelPage *a1)\n{\n  double v2; // d8\n  GameLevelManager *v3; // r0\n  int DailyTimer; // r0\n  int v6; // [sp+4h] [bp-10h] BYREF\n  int v7; // [sp+8h] [bp-Ch]\n\n  clock_gettime(0, (struct timespec *)&v6);\n  v2 = (double)v6 + (double)v7 / 1000000000.0;\n  v3 = GameLevelManager::sharedState();\n  DailyTimer = GameLevelManager::getDailyTimer(v3, a1->m_type);\n  return (int)((double)DailyTimer - v2) & ~((int)((double)DailyTimer - v2) >> 31);\n}", "assembly": "; \n; DailyLevelPage::getDailyTime from 0x4d3ec8 to 0x4d3f38 (112 bytes)\n; \n; 1 xrefs:\n; > DailyLevelPage::updateTimers @ 0x4d5912\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\nPUSH            {R4,R5,LR}                                             ; +0x0, 0x4d3ec8\nMOV             R5, R0                                                 ; +0x2, 0x4d3eca\nLDR             R4, =(__stack_chk_guard_ptr - 0x4D3ED8)                ; +0x4, 0x4d3ecc\nMOVS            R0, #0; clock_id                                       ; +0x6, 0x4d3ece\nVPUSH           {D8}                                                   ; +0x8, 0x4d3ed0\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x4d3ed4\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x4d3ed6\nLDR             R3, [R4]                                               ; +0x10, 0x4d3ed8\nSUB             SP, SP, #0x14                                          ; +0x12, 0x4d3eda\nVLDR            D8, =1.0e9                                             ; +0x14, 0x4d3edc\nADD             R1, SP, #0x14+var_10; tp                               ; +0x18, 0x4d3ee0\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x1a, 0x4d3ee2\nBLX             clock_gettime                                          ; +0x1c, 0x4d3ee4\nVLDR            S13, [SP,#0x14+var_C]                                  ; +0x20, 0x4d3ee8\nVLDR            S15, [SP,#0x14+var_10]                                 ; +0x24, 0x4d3eec\nVCVT.F64.S32    D6, S13                                                ; +0x28, 0x4d3ef0\nVDIV.F64        D8, D6, D8                                             ; +0x2c, 0x4d3ef4\nVCVT.F64.S32    D7, S15                                                ; +0x30, 0x4d3ef8\nVADD.F64        D8, D7, D8                                             ; +0x34, 0x4d3efc\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x38, 0x4d3f00\nLDR.W           R1, [R5,#0x214]                                        ; +0x3c, 0x4d3f04\nBL              _ZN16GameLevelManager13getDailyTimerE16GJTimedLevelType; GameLevelManager::getDailyTimer(GJTimedLevelType) ; +0x40, 0x4d3f08\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x44, 0x4d3f0c\nLDR             R3, [R4]                                               ; +0x46, 0x4d3f0e\nCMP             R2, R3                                                 ; +0x48, 0x4d3f10\nVMOV            S15, R0                                                ; +0x4a, 0x4d3f12\nVCVT.F64.S32    D7, S15                                                ; +0x4e, 0x4d3f16\nVSUB.F64        D7, D7, D8                                             ; +0x52, 0x4d3f1a\nVCVT.S32.F64    S15, D7                                                ; +0x56, 0x4d3f1e\nVMOV            R0, S15                                                ; +0x5a, 0x4d3f22\nBIC.W           R0, R0, R0,ASR#31                                      ; +0x5e, 0x4d3f26\nBEQ             loc_4D3F30                                             ; +0x62, 0x4d3f2a\nBLX             __stack_chk_fail                                       ; +0x64, 0x4d3f2c\nADD             SP, SP, #0x14                                          ; +0x68, 0x4d3f30\nVPOP            {D8}                                                   ; +0x6a, 0x4d3f32\nPOP             {R4,R5,PC}                                             ; +0x6e, 0x4d3f36", "xrefs": ["DailyLevelPage::updateTimers @ 0x4d5912"], "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"}