{"type": "func", "start": 4297156352, "end": 4297156453, "name": "DailyLevelPage::getDailyTime", "pseudocode": "// \n// DailyLevelPage::getDailyTime from 0x100216700 to 0x100216765 (101 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:27:00 +0000\n// \n\n__int64 __fastcall DailyLevelPage::getDailyTime(__int64 a1)\n{\n  __int64 v1; // rax\n  int DailyTimer; // eax\n  int v3; // ecx\n  __int64 result; // rax\n  timeb v5; // [rsp+0h] [rbp-20h] BYREF\n  double v6; // [rsp+10h] [rbp-10h]\n\n  ftime(&v5);\n  v6 = (double)v5.millitm / 1000.0 + (double)SLODWORD(v5.time);\n  v1 = GameLevelManager::sharedState((double)SLODWORD(v5.time));\n  DailyTimer = GameLevelManager::getDailyTimer(v1, *(unsigned int *)(a1 + 732));\n  v3 = (int)((double)DailyTimer - v6);\n  result = 0;\n  if ( v3 > 0 )\n    return (unsigned int)v3;\n  return result;\n}", "assembly": "; \n; DailyLevelPage::getDailyTime from 0x100216700 to 0x100216765 (101 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:27:00 +0000\n; \npush    rbp                                                            ; +0x0, 0x100216700\nmov     rbp, rsp                                                       ; +0x1, 0x100216701\npush    rbx                                                            ; +0x4, 0x100216704\nsub     rsp, 18h                                                       ; +0x5, 0x100216705\nmov     rbx, rdi                                                       ; +0x9, 0x100216709\nlea     rdi, [rbp+var_20]; timeb *                                     ; +0xc, 0x10021670c\ncall    _ftime                                                         ; +0x10, 0x100216710\ncvtsi2sd xmm0, [rbp+var_20.time]                                       ; +0x15, 0x100216715\nmovzx   eax, [rbp+var_20.millitm]                                      ; +0x1b, 0x10021671b\ncvtsi2sd xmm1, eax                                                     ; +0x1f, 0x10021671f\ndivsd   xmm1, cs:qword_100A03B70                                       ; +0x23, 0x100216723\naddsd   xmm1, xmm0                                                     ; +0x2b, 0x10021672b\nmovsd   [rbp+var_10], xmm1                                             ; +0x2f, 0x10021672f\ncall    GameLevelManager__sharedState                                  ; +0x34, 0x100216734\nmov     esi, [rbx+2DCh]                                                ; +0x39, 0x100216739\nmov     rdi, rax                                                       ; +0x3f, 0x10021673f\ncall    GameLevelManager__getDailyTimer                                ; +0x42, 0x100216742\nxorps   xmm0, xmm0                                                     ; +0x47, 0x100216747\ncvtsi2sd xmm0, eax                                                     ; +0x4a, 0x10021674a\nsubsd   xmm0, [rbp+var_10]                                             ; +0x4e, 0x10021674e\ncvttsd2si ecx, xmm0                                                    ; +0x53, 0x100216753\nxor     eax, eax                                                       ; +0x57, 0x100216757\ntest    ecx, ecx                                                       ; +0x59, 0x100216759\ncmovg   eax, ecx                                                       ; +0x5b, 0x10021675b\nadd     rsp, 18h                                                       ; +0x5e, 0x10021675e\npop     rbx                                                            ; +0x62, 0x100216762\npop     rbp                                                            ; +0x63, 0x100216763\nretn                                                                   ; +0x64, 0x100216764", "xrefs": [], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}