{"type": "func", "start": 6320048, "end": 6320160, "name": "DailyLevelPage::getDailyTime", "pseudocode": "// \n// DailyLevelPage::getDailyTime from 0x606fb0 to 0x607020 (112 bytes)\n// \n// 1 xrefs:\n// > DailyLevelPage::updateTimers @ 0x608e72\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:45 +0000\n// \n\nint __fastcall DailyLevelPage::getDailyTime(DailyLevelPage *this)\n{\n  GameLevelManager *v2; // r0\n  double v3; // d8\n  _DWORD *v4; // r0\n  int DailyTimer; // r0\n  int v7; // [sp+4h] [bp-10h] BYREF\n  int v8; // [sp+8h] [bp-Ch]\n\n  v2 = (GameLevelManager *)clock_gettime(0, (struct timespec *)&v7);\n  v3 = (double)v7 + (double)v8 / 1000000000.0;\n  v4 = (_DWORD *)GameLevelManager::sharedState(v2);\n  DailyTimer = GameLevelManager::getDailyTimer(v4, *((_DWORD *)this + 139));\n  return (int)((double)DailyTimer - v3) & ~((int)((double)DailyTimer - v3) >> 31);\n}", "assembly": "; \n; DailyLevelPage::getDailyTime from 0x606fb0 to 0x607020 (112 bytes)\n; \n; 1 xrefs:\n; > DailyLevelPage::updateTimers @ 0x608e72\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:45 +0000\n; \nPUSH            {R4,R5,LR}                                             ; +0x0, 0x606fb0\nMOV             R5, R0                                                 ; +0x2, 0x606fb2\nVPUSH           {D8}                                                   ; +0x4, 0x606fb4\nMOVS            R0, #0; clock_id                                       ; +0x8, 0x606fb8\nLDR             R4, =(__stack_chk_guard_ptr - 0x606FC0)                ; +0xa, 0x606fba\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x606fbc\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x606fbe\nVLDR            D8, =1.0e9                                             ; +0x10, 0x606fc0\nSUB             SP, SP, #0x14                                          ; +0x14, 0x606fc4\nLDR             R3, [R4]                                               ; +0x16, 0x606fc6\nADD             R1, SP, #0x14+var_10; tp                               ; +0x18, 0x606fc8\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x1a, 0x606fca\nBLX             clock_gettime                                          ; +0x1c, 0x606fcc\nVLDR            S13, [SP,#0x14+var_C]                                  ; +0x20, 0x606fd0\nVLDR            S15, [SP,#0x14+var_10]                                 ; +0x24, 0x606fd4\nVCVT.F64.S32    D6, S13                                                ; +0x28, 0x606fd8\nVDIV.F64        D8, D6, D8                                             ; +0x2c, 0x606fdc\nVCVT.F64.S32    D7, S15                                                ; +0x30, 0x606fe0\nVADD.F64        D8, D7, D8                                             ; +0x34, 0x606fe4\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x38, 0x606fe8\nLDR.W           R1, [R5,#0x22C]                                        ; +0x3c, 0x606fec\nBL              _ZN16GameLevelManager13getDailyTimerE16GJTimedLevelType; GameLevelManager::getDailyTimer(GJTimedLevelType) ; +0x40, 0x606ff0\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x44, 0x606ff4\nLDR             R3, [R4]                                               ; +0x46, 0x606ff6\nCMP             R2, R3                                                 ; +0x48, 0x606ff8\nVMOV            S15, R0                                                ; +0x4a, 0x606ffa\nVCVT.F64.S32    D7, S15                                                ; +0x4e, 0x606ffe\nVSUB.F64        D7, D7, D8                                             ; +0x52, 0x607002\nVCVT.S32.F64    S15, D7                                                ; +0x56, 0x607006\nVMOV            R0, S15                                                ; +0x5a, 0x60700a\nBIC.W           R0, R0, R0,ASR#31                                      ; +0x5e, 0x60700e\nBEQ             loc_607018                                             ; +0x62, 0x607012\nBLX             __stack_chk_fail                                       ; +0x64, 0x607014\nADD             SP, SP, #0x14                                          ; +0x68, 0x607018\nVPOP            {D8}                                                   ; +0x6a, 0x60701a\nPOP             {R4,R5,PC}                                             ; +0x6e, 0x60701e", "xrefs": ["DailyLevelPage::updateTimers @ 0x608e72"], "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"}