{"type": "func", "start": 5369482352, "end": 5369482562, "name": "GJRequestCell::markAsRead", "pseudocode": "// \n// GJRequestCell::markAsRead from 0x1400bcc70 to 0x1400bcd42 (210 bytes)\n// \n// 3 xrefs:\n// > GJRequestCell::onViewFriendRequest @ 0x1400bcc47\n// > GJRequestCell::FLAlert_Clicked @ 0x1400bcfb4\n// > <???> @ 0x1406c7dd0\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\n// Hidden C++ exception states: #wind=1\nvoid GJRequestCell::markAsRead(GJRequestCell *a1)\n{\n  cocos2d::CCNode *v2; // rax\n  GJAccountManager *v3; // rax\n  int v4; // ebx\n  __int64 v5; // rcx\n  struct cocos2d::CCObject *v6; // rax\n  int v7; // ecx\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  if ( a1->m_score->m_newFriendRequest )\n  {\n    v2 = a1->m_mainLayer->getChildByTag(a1->m_mainLayer, 100);\n    if ( v2 )\n      v2->setVisible(v2, 0);\n    a1->m_score->m_newFriendRequest = 0;\n    v3 = GJAccountManager::sharedState();\n    v4 = v3->m_accountID - v3->m_unkInt1;\n    v5 = qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v8 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280(v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v5 = qword_1406C2EC0;\n    }\n    v6 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v5 + 600), v4);\n    if ( v6 )\n    {\n      v7 = v6[13].m_uAutoReleaseCount - 1;\n      if ( v7 < 0 )\n        v7 = 0;\n      v6[13].m_uAutoReleaseCount = v7;\n    }\n  }\n}", "assembly": "; \n; GJRequestCell::markAsRead from 0x1400bcc70 to 0x1400bcd42 (210 bytes)\n; \n; 3 xrefs:\n; > GJRequestCell::onViewFriendRequest @ 0x1400bcc47\n; > GJRequestCell::FLAlert_Clicked @ 0x1400bcfb4\n; > <???> @ 0x1406c7dd0\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\npush    rbx                                                            ; +0x0, 0x1400bcc70\nsub     rsp, 20h                                                       ; +0x2, 0x1400bcc72\nmov     rbx, rcx                                                       ; +0x6, 0x1400bcc76\nmov     rax, [rcx+248h]                                                ; +0x9, 0x1400bcc79\ncmp     byte ptr [rax+2F8h], 0                                         ; +0x10, 0x1400bcc80\njz      loc_1400BCD3C                                                  ; +0x17, 0x1400bcc87\nmov     rcx, [rcx+220h]                                                ; +0x1d, 0x1400bcc8d\nmov     rax, [rcx]                                                     ; +0x24, 0x1400bcc94\nmov     edx, 64h ; 'd'                                                 ; +0x27, 0x1400bcc97\ncall    qword ptr [rax+1C8h]                                           ; +0x2c, 0x1400bcc9c\ntest    rax, rax                                                       ; +0x32, 0x1400bcca2\njz      short loc_1400BCCB6                                            ; +0x35, 0x1400bcca5\nmov     r8, [rax]                                                      ; +0x37, 0x1400bcca7\nxor     edx, edx                                                       ; +0x3a, 0x1400bccaa\nmov     rcx, rax                                                       ; +0x3c, 0x1400bccac\ncall    qword ptr [r8+140h]                                            ; +0x3f, 0x1400bccaf\nmov     rax, [rbx+248h]                                                ; +0x46, 0x1400bccb6\nmov     byte ptr [rax+2F8h], 0                                         ; +0x4d, 0x1400bccbd\ncall    GJAccountManager__sharedState                                  ; +0x54, 0x1400bccc4\nmov     ebx, [rax+168h]                                                ; +0x59, 0x1400bccc9\nsub     ebx, [rax+16Ch]                                                ; +0x5f, 0x1400bcccf\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x65, 0x1400bccd5\ntest    rcx, rcx                                                       ; +0x6c, 0x1400bccdc\njnz     short loc_1400BCD10                                            ; +0x6f, 0x1400bccdf\nmov     ecx, 3D0h; Size                                                ; +0x71, 0x1400bcce1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x76, 0x1400bcce6\nmov     [rsp+28h+arg_0], rax                                           ; +0x7b, 0x1400bcceb\nmov     rcx, rax                                                       ; +0x80, 0x1400bccf0\ncall    sub_140141280                                                  ; +0x83, 0x1400bccf3\nnop                                                                    ; +0x88, 0x1400bccf8\nmov     cs:qword_1406C2EC0, rax                                        ; +0x89, 0x1400bccf9\nmov     rdx, [rax]                                                     ; +0x90, 0x1400bcd00\nmov     rcx, rax                                                       ; +0x93, 0x1400bcd03\ncall    qword ptr [rdx+48h]                                            ; +0x96, 0x1400bcd06\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x99, 0x1400bcd09\nmovsxd  rdx, ebx                                                       ; +0xa0, 0x1400bcd10\nmov     rcx, [rcx+258h]                                                ; +0xa3, 0x1400bcd13\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xaa, 0x1400bcd1a\ntest    rax, rax                                                       ; +0xb0, 0x1400bcd20\njz      short loc_1400BCD3C                                            ; +0xb3, 0x1400bcd23\nmov     ecx, [rax+2F0h]                                                ; +0xb5, 0x1400bcd25\nsub     ecx, 1                                                         ; +0xbb, 0x1400bcd2b\nmov     edx, 0                                                         ; +0xbe, 0x1400bcd2e\ncmovs   ecx, edx                                                       ; +0xc3, 0x1400bcd33\nmov     [rax+2F0h], ecx                                                ; +0xc6, 0x1400bcd36\nadd     rsp, 20h                                                       ; +0xcc, 0x1400bcd3c\npop     rbx                                                            ; +0xd0, 0x1400bcd40\nretn                                                                   ; +0xd1, 0x1400bcd41", "xrefs": ["GJRequestCell::onViewFriendRequest @ 0x1400bcc47", "GJRequestCell::FLAlert_Clicked @ 0x1400bcfb4", "<???> @ 0x1406c7dd0"], "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"}