{"type": "func", "start": 4297419424, "end": 4297419599, "name": "GJUserCell::onViewFriendRequest", "pseudocode": "// \n// GJUserCell::onViewFriendRequest from 0x100256aa0 to 0x100256b4f (175 bytes)\n// \n// 0 xrefs:\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\nvoid __fastcall GJUserCell::onViewFriendRequest(GJUserCell *a1, cocos2d::CCObject *a2)\n{\n  GJUserScore *m_userScore; // rax\n  GameLevelManager *v3; // rax\n  GJFriendRequest *v4; // rax\n  GJFriendRequest *v5; // r14\n  __int64 v6; // rax\n  FriendRequestPopup *v7; // rax\n\n  m_userScore = a1->m_userScore;\n  if ( m_userScore )\n  {\n    if ( m_userScore->m_accountID > 0 )\n    {\n      v3 = GameLevelManager::sharedState();\n      v4 = GameLevelManager::friendRequestFromAccountID(v3, a1->m_userScore->m_accountID);\n      if ( v4 )\n      {\n        if ( a1->m_userScore->m_newFriendRequest )\n        {\n          v5 = v4;\n          v6 = ((__int64 (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->getChildByTag)(\n                 a1->m_mainLayer,\n                 100);\n          if ( v6 )\n            (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 328LL))(v6, 0);\n          a1->m_userScore->m_newFriendRequest = 0;\n          v4 = v5;\n        }\n        v7 = FriendRequestPopup::create(v4);\n        ((void (__fastcall *)(FriendRequestPopup *))v7->show)(v7);\n      }\n    }\n  }\n}", "assembly": "; \n; GJUserCell::onViewFriendRequest from 0x100256aa0 to 0x100256b4f (175 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x100256aa0\nmov     rbp, rsp                                                       ; +0x1, 0x100256aa1\npush    r14                                                            ; +0x4, 0x100256aa4\npush    rbx                                                            ; +0x6, 0x100256aa6\nmov     rax, [rdi+240h]                                                ; +0x7, 0x100256aa7\ntest    rax, rax                                                       ; +0xe, 0x100256aae\njz      loc_100256B4A                                                  ; +0x11, 0x100256ab1\ncmp     dword ptr [rax+178h], 0                                        ; +0x17, 0x100256ab7\njle     loc_100256B4A                                                  ; +0x1e, 0x100256abe\nmov     rbx, rdi                                                       ; +0x24, 0x100256ac4\ncall    GameLevelManager__sharedState                                  ; +0x27, 0x100256ac7\nmov     rcx, [rbx+240h]                                                ; +0x2c, 0x100256acc\nmov     esi, [rcx+178h]                                                ; +0x33, 0x100256ad3\nmov     rdi, rax                                                       ; +0x39, 0x100256ad9\ncall    GameLevelManager__friendRequestFromAccountID                   ; +0x3c, 0x100256adc\ntest    rax, rax                                                       ; +0x41, 0x100256ae1\njz      short loc_100256B4A                                            ; +0x44, 0x100256ae4\nmov     rcx, [rbx+240h]                                                ; +0x46, 0x100256ae6\ncmp     byte ptr [rcx+2B0h], 1                                         ; +0x4d, 0x100256aed\njnz     short loc_100256B32                                            ; +0x54, 0x100256af4\nmov     r14, rax                                                       ; +0x56, 0x100256af6\nmov     rdi, [rbx+218h]                                                ; +0x59, 0x100256af9\nmov     rax, [rdi]                                                     ; +0x60, 0x100256b00\nmov     esi, 64h ; 'd'                                                 ; +0x63, 0x100256b03\ncall    qword ptr [rax+1D0h]                                           ; +0x68, 0x100256b08\ntest    rax, rax                                                       ; +0x6e, 0x100256b0e\njz      short loc_100256B21                                            ; +0x71, 0x100256b11\nmov     rcx, [rax]                                                     ; +0x73, 0x100256b13\nmov     rdi, rax                                                       ; +0x76, 0x100256b16\nxor     esi, esi                                                       ; +0x79, 0x100256b19\ncall    qword ptr [rcx+148h]                                           ; +0x7b, 0x100256b1b\nmov     rax, [rbx+240h]                                                ; +0x81, 0x100256b21\nmov     byte ptr [rax+2B0h], 0                                         ; +0x88, 0x100256b28\nmov     rax, r14                                                       ; +0x8f, 0x100256b2f\nmov     rdi, rax                                                       ; +0x92, 0x100256b32\ncall    FriendRequestPopup__create                                     ; +0x95, 0x100256b35\nmov     rcx, [rax]                                                     ; +0x9a, 0x100256b3a\nmov     rdi, rax                                                       ; +0x9d, 0x100256b3d\npop     rbx                                                            ; +0xa0, 0x100256b40\npop     r14                                                            ; +0xa1, 0x100256b41\npop     rbp                                                            ; +0xa3, 0x100256b43\njmp     qword ptr [rcx+508h]                                           ; +0xa4, 0x100256b44\npop     rbx                                                            ; +0xaa, 0x100256b4a\npop     r14                                                            ; +0xab, 0x100256b4b\npop     rbp                                                            ; +0xad, 0x100256b4d\nretn                                                                   ; +0xae, 0x100256b4e", "xrefs": [], "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"}