{"type": "func", "start": 9515312, "end": 9515456, "name": "DailyLevelPage::getDailyTime", "pseudocode": "// \n// DailyLevelPage::getDailyTime from 0x913130 to 0x9131c0 (144 bytes)\n// \n// 2 xrefs:\n// > DailyLevelPage::updateTimers @ 0x915ab4\n// > <???> @ 0xbd018\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; // x0\n  int result; // w0\n  GameLevelManager *v5; // [xsp+38h] [xbp+38h] BYREF\n  __int64 v6; // [xsp+40h] [xbp+40h]\n\n  clock_gettime(0, (struct timespec *)&v5);\n  v2 = (double)(__int64)v5 + (double)v6 / 1000000000.0;\n  v3 = GameLevelManager::sharedState();\n  result = (int)((double)GameLevelManager::getDailyTimer(v3, a1->m_type) - v2);\n  if ( result < 0 )\n    return 0;\n  return result;\n}", "assembly": "; \n; DailyLevelPage::getDailyTime from 0x913130 to 0x9131c0 (144 bytes)\n; \n; 2 xrefs:\n; > DailyLevelPage::updateTimers @ 0x915ab4\n; > <???> @ 0xbd018\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x913130\nMOV             X29, SP                                                ; +0x4, 0x913134\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x913138\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x91313c\nADD             X1, X29, #0x50+var_18; tp                              ; +0x10, 0x913140\nMOV             X20, X0                                                ; +0x14, 0x913144\nMOV             W0, #0; clock_id                                       ; +0x18, 0x913148\nSTR             D8, [SP,#0x50+var_30]                                  ; +0x1c, 0x91314c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x913150\nLDR             X2, [X19]                                              ; +0x24, 0x913154\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x28, 0x913158\nBL              .clock_gettime                                         ; +0x2c, 0x91315c\nLDR             X1, [X29,#0x50+var_10]                                 ; +0x30, 0x913160\nLDR             D8, =0x41CDCD6500000000                                ; +0x34, 0x913164\nLDR             X0, [X29,#0x50+var_18]; this                           ; +0x38, 0x913168\nSCVTF           D0, X1                                                 ; +0x3c, 0x91316c\nSCVTF           D1, X0                                                 ; +0x40, 0x913170\nFDIV            D8, D0, D8                                             ; +0x44, 0x913174\nFADD            D8, D1, D8                                             ; +0x48, 0x913178\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x4c, 0x91317c\nLDR             W1, [X20,#0x2BC]                                       ; +0x50, 0x913180\nBL              _ZN16GameLevelManager13getDailyTimerE16GJTimedLevelType; GameLevelManager::getDailyTimer(GJTimedLevelType) ; +0x54, 0x913184\nSCVTF           D1, W0                                                 ; +0x58, 0x913188\nLDR             X2, [X29,#0x50+var_8]                                  ; +0x5c, 0x91318c\nLDR             X1, [X19]                                              ; +0x60, 0x913190\nFSUB            D0, D1, D8                                             ; +0x64, 0x913194\nFCVTZS          W0, D0                                                 ; +0x68, 0x913198\nCMP             W0, WZR                                                ; +0x6c, 0x91319c\nCSEL            W0, W0, WZR, GE                                        ; +0x70, 0x9131a0\nCMP             X2, X1                                                 ; +0x74, 0x9131a4\nB.NE            loc_9131BC                                             ; +0x78, 0x9131a8\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x7c, 0x9131ac\nLDR             D8, [SP,#0x50+var_30]                                  ; +0x80, 0x9131b0\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x84, 0x9131b4\nRET                                                                    ; +0x88, 0x9131b8\nBL              .__stack_chk_fail                                      ; +0x8c, 0x9131bc", "xrefs": ["DailyLevelPage::updateTimers @ 0x915ab4", "<???> @ 0xbd018"], "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"}