{"type": "func", "start": 5373397568, "end": 5373397959, "name": "NotificationsPage::loadNotificationsFinished", "pseudocode": "// \n// NotificationsPage::loadNotificationsFinished from 0x140478a40 to 0x140478bc7 (391 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1407b5418\n// > <???> @ 0x140928520\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\nvoid __fastcall NotificationsPage::loadNotificationsFinished(__int64 a1, cocos2d::CCObject *a2, int a3, int a4, int a5)\n{\n  cocos2d::CCObject *v8; // rcx\n  int v9; // ecx\n  __int64 v10; // rdx\n  unsigned int v11; // eax\n  _QWORD *v12; // rcx\n  __int64 v13; // rdx\n  int v14; // ebx\n  __int64 v15; // rdx\n  __int64 v16; // rdx\n  cocos2d::CCArray *v17; // rcx\n  int v18; // edi\n  int v19; // ebx\n  unsigned int v20; // eax\n  cocos2d::CCString *v21; // rax\n  const char *CString; // rax\n\n  if ( a3 == *(_DWORD *)(a1 + 72) )\n  {\n    cocos2d::CCObject::retain(a2);\n    v8 = *(cocos2d::CCObject **)(a1 + 64);\n    if ( v8 )\n      cocos2d::CCObject::release(v8);\n    v9 = 10;\n    *(_QWORD *)(a1 + 64) = a2;\n    *(_DWORD *)(a1 + 76) = a4;\n    if ( a5 > 0 )\n      v9 = a5;\n    *(_DWORD *)(a1 + 80) = v9;\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 32) + 336LL))(*(_QWORD *)(a1 + 32), 0);\n    LOBYTE(v10) = 1;\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 56) + 336LL))(*(_QWORD *)(a1 + 56), v10);\n    v11 = cocos2d::CCArray::count(a2);\n    v12 = (_QWORD *)(a1 - 664);\n    if ( v11 )\n    {\n      NotificationsPage::setupBrowser(v12, a2);\n      v13 = 0;\n    }\n    else\n    {\n      NotificationsPage::setupBrowser(v12, nullptr);\n      (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 16) + 360LL))(\n        *(_QWORD *)(a1 + 16) + 360LL,\n        \"No notifications yet\");\n      LOBYTE(v13) = 1;\n    }\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 16) + 336LL))(*(_QWORD *)(a1 + 16), v13);\n    v14 = *(_DWORD *)(a1 + 80) * *(_DWORD *)(a1 + 72);\n    LOBYTE(v15) = *(_DWORD *)(a1 + 72) > 0;\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 48) + 336LL))(*(_QWORD *)(a1 + 48), v15);\n    v16 = (unsigned int)(v14 + *(_DWORD *)(a1 + 80));\n    LOBYTE(v16) = (int)v16 < *(_DWORD *)(a1 + 76);\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 40) + 336LL))(*(_QWORD *)(a1 + 40), v16);\n    if ( *(int *)(a1 + 76) > 0 && (v17 = *(cocos2d::CCArray **)(a1 + 64)) != nullptr && cocos2d::CCArray::count(v17) )\n    {\n      v18 = *(_DWORD *)(a1 + 80) * *(_DWORD *)(a1 + 72);\n      v19 = *(_DWORD *)(a1 + 76);\n      v20 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 64));\n      v21 = cocos2d::CCString::createWithFormat(\"%i to %i of %i\", v18 + 1, v18 + v20, v19);\n      CString = cocos2d::CCString::getCString(v21);\n      (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 8) + 360LL))(\n        *(_QWORD *)(a1 + 8) + 360LL,\n        CString);\n    }\n    else\n    {\n      (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 8) + 360LL))(*(_QWORD *)(a1 + 8) + 360LL, \" \");\n    }\n  }\n}", "assembly": "; \n; NotificationsPage::loadNotificationsFinished from 0x140478a40 to 0x140478bc7 (391 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1407b5418\n; > <???> @ 0x140928520\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140478a40\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140478a45\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x140478a4a\npush    rdi                                                            ; +0xf, 0x140478a4f\nsub     rsp, 20h                                                       ; +0x10, 0x140478a50\nmov     ebp, r9d                                                       ; +0x14, 0x140478a54\nmov     rbx, rdx                                                       ; +0x17, 0x140478a57\nmov     rsi, rcx                                                       ; +0x1a, 0x140478a5a\ncmp     r8d, [rcx+48h]                                                 ; +0x1d, 0x140478a5d\njnz     loc_140478BB2                                                  ; +0x21, 0x140478a61\nmov     rcx, rdx                                                       ; +0x27, 0x140478a67\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x2a, 0x140478a6a\nmov     rcx, [rsi+40h]                                                 ; +0x30, 0x140478a70\ntest    rcx, rcx                                                       ; +0x34, 0x140478a74\njz      short loc_140478A7F                                            ; +0x37, 0x140478a77\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x39, 0x140478a79\nmov     eax, [rsp+28h+arg_20]                                          ; +0x3f, 0x140478a7f\nmov     ecx, 0Ah                                                       ; +0x43, 0x140478a83\ntest    eax, eax                                                       ; +0x48, 0x140478a88\nmov     [rsi+40h], rbx                                                 ; +0x4a, 0x140478a8a\nmov     [rsi+4Ch], ebp                                                 ; +0x4e, 0x140478a8e\ncmovg   ecx, eax                                                       ; +0x51, 0x140478a91\nxor     edx, edx                                                       ; +0x54, 0x140478a94\nmov     [rsi+50h], ecx                                                 ; +0x56, 0x140478a96\nmov     rcx, [rsi+20h]                                                 ; +0x59, 0x140478a99\nmov     rax, [rcx]                                                     ; +0x5d, 0x140478a9d\ncall    qword ptr [rax+150h]                                           ; +0x60, 0x140478aa0\nmov     rcx, [rsi+38h]                                                 ; +0x66, 0x140478aa6\nmov     dl, 1                                                          ; +0x6a, 0x140478aaa\nmov     rax, [rcx]                                                     ; +0x6c, 0x140478aac\ncall    qword ptr [rax+150h]                                           ; +0x6f, 0x140478aaf\nmov     rcx, rbx                                                       ; +0x75, 0x140478ab5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x78, 0x140478ab8\nlea     rcx, [rsi-298h]                                                ; +0x7e, 0x140478abe\ntest    eax, eax                                                       ; +0x85, 0x140478ac5\njz      short loc_140478AD5                                            ; +0x87, 0x140478ac7\nmov     rdx, rbx                                                       ; +0x89, 0x140478ac9\ncall    NotificationsPage__setupBrowser                                ; +0x8c, 0x140478acc\nxor     edx, edx                                                       ; +0x91, 0x140478ad1\njmp     short loc_140478AF5                                            ; +0x93, 0x140478ad3\nxor     edx, edx                                                       ; +0x95, 0x140478ad5\ncall    NotificationsPage__setupBrowser                                ; +0x97, 0x140478ad7\nmov     rcx, [rsi+10h]                                                 ; +0x9c, 0x140478adc\nlea     rdx, aNoNotification; \"No notifications yet\"                   ; +0xa0, 0x140478ae0\nadd     rcx, 168h                                                      ; +0xa7, 0x140478ae7\nmov     rax, [rcx]                                                     ; +0xae, 0x140478aee\ncall    qword ptr [rax]                                                ; +0xb1, 0x140478af1\nmov     dl, 1                                                          ; +0xb3, 0x140478af3\nmov     rcx, [rsi+10h]                                                 ; +0xb5, 0x140478af5\nmov     rax, [rcx]                                                     ; +0xb9, 0x140478af9\ncall    qword ptr [rax+150h]                                           ; +0xbc, 0x140478afc\nmov     eax, [rsi+48h]                                                 ; +0xc2, 0x140478b02\nmov     ebx, eax                                                       ; +0xc5, 0x140478b05\nmov     rcx, [rsi+30h]                                                 ; +0xc7, 0x140478b07\nimul    ebx, [rsi+50h]                                                 ; +0xcb, 0x140478b0b\ntest    eax, eax                                                       ; +0xcf, 0x140478b0f\nmov     rax, [rcx]                                                     ; +0xd1, 0x140478b11\nsetnle  dl                                                             ; +0xd4, 0x140478b14\ncall    qword ptr [rax+150h]                                           ; +0xd7, 0x140478b17\nmov     rcx, [rsi+28h]                                                 ; +0xdd, 0x140478b1d\nmov     edx, [rsi+50h]                                                 ; +0xe1, 0x140478b21\nadd     edx, ebx                                                       ; +0xe4, 0x140478b24\ncmp     edx, [rsi+4Ch]                                                 ; +0xe6, 0x140478b26\nmov     rax, [rcx]                                                     ; +0xe9, 0x140478b29\nsetl    dl                                                             ; +0xec, 0x140478b2c\ncall    qword ptr [rax+150h]                                           ; +0xef, 0x140478b2f\ncmp     dword ptr [rsi+4Ch], 0                                         ; +0xf5, 0x140478b35\njle     short loc_140478B9B                                            ; +0xf9, 0x140478b39\nmov     rcx, [rsi+40h]                                                 ; +0xfb, 0x140478b3b\ntest    rcx, rcx                                                       ; +0xff, 0x140478b3f\njz      short loc_140478B9B                                            ; +0x102, 0x140478b42\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x104, 0x140478b44\ntest    eax, eax                                                       ; +0x10a, 0x140478b4a\njz      short loc_140478B9B                                            ; +0x10c, 0x140478b4c\nmov     edi, [rsi+48h]                                                 ; +0x10e, 0x140478b4e\nmov     rcx, [rsi+40h]                                                 ; +0x111, 0x140478b51\nimul    edi, [rsi+50h]                                                 ; +0x115, 0x140478b55\nmov     ebx, [rsi+4Ch]                                                 ; +0x119, 0x140478b59\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x11c, 0x140478b5c\nlea     edx, [rdi+1]                                                   ; +0x122, 0x140478b62\nmov     r9d, ebx                                                       ; +0x125, 0x140478b65\nlea     rcx, aIToIOfI; \"%i to %i of %i\"                                ; +0x128, 0x140478b68\nlea     r8d, [rdi+rax]                                                 ; +0x12f, 0x140478b6f\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x133, 0x140478b73\nmov     rcx, rax                                                       ; +0x139, 0x140478b79\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x13c, 0x140478b7c\nmov     rcx, [rsi+8]                                                   ; +0x142, 0x140478b82\nadd     rcx, 168h                                                      ; +0x146, 0x140478b86\nmov     rdx, [rcx]                                                     ; +0x14d, 0x140478b8d\nmov     r8, [rdx]                                                      ; +0x150, 0x140478b90\nmov     rdx, rax                                                       ; +0x153, 0x140478b93\ncall    r8                                                             ; +0x156, 0x140478b96\njmp     short loc_140478BB2                                            ; +0x159, 0x140478b99\nmov     rcx, [rsi+8]                                                   ; +0x15b, 0x140478b9b\nlea     rdx, asc_1406ED6E4; \" \"                                        ; +0x15f, 0x140478b9f\nadd     rcx, 168h                                                      ; +0x166, 0x140478ba6\nmov     rax, [rcx]                                                     ; +0x16d, 0x140478bad\ncall    qword ptr [rax]                                                ; +0x170, 0x140478bb0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x172, 0x140478bb2\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x177, 0x140478bb7\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x17c, 0x140478bbc\nadd     rsp, 20h                                                       ; +0x181, 0x140478bc1\npop     rdi                                                            ; +0x185, 0x140478bc5\nretn                                                                   ; +0x186, 0x140478bc6", "xrefs": ["<???> @ 0x1407b5418", "<???> @ 0x140928520"], "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"}