{"type": "func", "start": 5373396512, "end": 5373396710, "name": "NotificationsPage::onUpdate", "pseudocode": "// \n// NotificationsPage::onUpdate from 0x140478620 to 0x1404786e6 (198 bytes)\n// \n// 2 xrefs:\n// > NotificationsPage::init @ 0x14047830d\n// > <???> @ 0x1409284d8\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 11:32:41 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall NotificationsPage::onUpdate(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 result; // rax\n  __int64 v4; // rcx\n  void *v5; // [rsp+40h] [rbp+18h]\n  void *v6; // [rsp+40h] [rbp+18h]\n\n  v2 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v5 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v5);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v2 = *(_QWORD *)&qword_14090BFB0;\n  }\n  result = (unsigned int)GameLevelManager::getTimeLeft(v2, \"upd_notifications\", 5.0) - 1;\n  if ( (unsigned int)result > 4 )\n  {\n    v4 = *(_QWORD *)&qword_14090BFB0;\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v6 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v6);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      v4 = *(_QWORD *)&qword_14090BFB0;\n    }\n    GameLevelManager::makeTimeStamp(v4, \"upd_notifications\");\n    return NotificationsPage::loadPage(a1, *(unsigned int *)(a1 + 736));\n  }\n  return result;\n}", "assembly": "; \n; NotificationsPage::onUpdate from 0x140478620 to 0x1404786e6 (198 bytes)\n; \n; 2 xrefs:\n; > NotificationsPage::init @ 0x14047830d\n; > <???> @ 0x1409284d8\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 11:32:41 +0000\n; \npush    rbx                                                            ; +0x0, 0x140478620\nsub     rsp, 20h                                                       ; +0x2, 0x140478622\nmov     rbx, rcx                                                       ; +0x6, 0x140478626\nmov     rcx, cs:qword_14090BFB0                                        ; +0x9, 0x140478629\ntest    rcx, rcx                                                       ; +0x10, 0x140478630\njnz     short loc_140478667                                            ; +0x13, 0x140478633\nmov     ecx, 690h; Size                                                ; +0x15, 0x140478635\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x14047863a\nmov     [rsp+28h+arg_10], rax                                          ; +0x1f, 0x14047863f\nmov     rcx, rax                                                       ; +0x24, 0x140478644\ncall    GameLevelManager__GameLevelManager                             ; +0x27, 0x140478647\nnop                                                                    ; +0x2c, 0x14047864c\nmov     cs:qword_14090BFB0, rax                                        ; +0x2d, 0x14047864d\nmov     rcx, [rax]                                                     ; +0x34, 0x140478654\nmov     rdx, [rcx+48h]                                                 ; +0x37, 0x140478657\nmov     rcx, rax                                                       ; +0x3b, 0x14047865b\ncall    rdx                                                            ; +0x3e, 0x14047865e\nmov     rcx, cs:qword_14090BFB0                                        ; +0x40, 0x140478660\nmovss   xmm2, cs:flt_140835470                                         ; +0x47, 0x140478667\nlea     rdx, aUpdNotificatio; \"upd_notifications\"                      ; +0x4f, 0x14047866f\ncall    GameLevelManager__getTimeLeft                                  ; +0x56, 0x140478676\ndec     eax                                                            ; +0x5b, 0x14047867b\ncmp     eax, 4                                                         ; +0x5d, 0x14047867d\njbe     short loc_1404786E0                                            ; +0x60, 0x140478680\nmov     rcx, cs:qword_14090BFB0                                        ; +0x62, 0x140478682\ntest    rcx, rcx                                                       ; +0x69, 0x140478689\njnz     short loc_1404786C1                                            ; +0x6c, 0x14047868c\nmov     ecx, 690h; Size                                                ; +0x6e, 0x14047868e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x73, 0x140478693\nmov     [rsp+28h+arg_10], rax                                          ; +0x78, 0x140478698\nmov     rcx, rax                                                       ; +0x7d, 0x14047869d\ncall    GameLevelManager__GameLevelManager                             ; +0x80, 0x1404786a0\nnop                                                                    ; +0x85, 0x1404786a5\nmov     cs:qword_14090BFB0, rax                                        ; +0x86, 0x1404786a6\nmov     rcx, [rax]                                                     ; +0x8d, 0x1404786ad\nmov     r8, [rcx+48h]                                                  ; +0x90, 0x1404786b0\nmov     rcx, rax                                                       ; +0x94, 0x1404786b4\ncall    r8                                                             ; +0x97, 0x1404786b7\nmov     rcx, cs:qword_14090BFB0                                        ; +0x9a, 0x1404786ba\nlea     rdx, aUpdNotificatio; \"upd_notifications\"                      ; +0xa1, 0x1404786c1\ncall    GameLevelManager__makeTimeStamp                                ; +0xa8, 0x1404786c8\nmov     edx, [rbx+2E0h]                                                ; +0xad, 0x1404786cd\nmov     rcx, rbx                                                       ; +0xb3, 0x1404786d3\nadd     rsp, 20h                                                       ; +0xb6, 0x1404786d6\npop     rbx                                                            ; +0xba, 0x1404786da\njmp     NotificationsPage__loadPage                                    ; +0xbb, 0x1404786db\nadd     rsp, 20h                                                       ; +0xc0, 0x1404786e0\npop     rbx                                                            ; +0xc4, 0x1404786e4\nretn                                                                   ; +0xc5, 0x1404786e5", "xrefs": ["NotificationsPage::init @ 0x14047830d", "<???> @ 0x1409284d8"], "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"}