{"type": "func", "start": 5369483024, "end": 5369483447, "name": "GJRequestCell::FLAlert_Clicked", "pseudocode": "// \n// GJRequestCell::FLAlert_Clicked from 0x1400bcf10 to 0x1400bd0b7 (423 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140549590\n// > <???> @ 0x1406c7de8\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=3\nvoid GJRequestCell::FLAlert_Clicked(GJRequestCell *a1, FLAlertLayer *a2, bool a3)\n{\n  __int64 v4; // rcx\n  struct cocos2d::CCObject *v5; // rsi\n  int *p_m_nTag; // rdi\n  GameLevelManager *v7; // rcx\n  unsigned int *p_m_uID; // rcx\n  __int64 v9; // rax\n  __int128 v10; // [rsp+20h] [rbp-38h] BYREF\n  __int64 v11; // [rsp+30h] [rbp-28h]\n  __int64 v12; // [rsp+38h] [rbp-20h]\n  void *v13; // [rsp+78h] [rbp+20h]\n  void *v14; // [rsp+78h] [rbp+20h]\n\n  if ( a3 && a2->getTag(a2) == 1 && *(_QWORD *)&a1->m_uAutoReleaseCount )\n  {\n    v4 = qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v13 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280(v13);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v4 = qword_1406C2EC0;\n    }\n    v5 = cocos2d::CCDictionary::objectForKey(\n           *(cocos2d::CCDictionary **)(v4 + 608),\n           *(int *)(*(_QWORD *)&a1->m_uAutoReleaseCount + 392LL));\n    if ( v5 )\n    {\n      GJRequestCell::markAsRead((GJRequestCell *)((char *)a1 - 560));\n      p_m_nTag = &a1->m_nTag;\n      if ( a1 == (GJRequestCell *)560 )\n        p_m_nTag = nullptr;\n      v7 = (GameLevelManager *)qword_1406C2EC0;\n      if ( !qword_1406C2EC0 )\n      {\n        v14 = operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280(v14);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n        v7 = (GameLevelManager *)qword_1406C2EC0;\n      }\n      v7->m_uploadActionDelegate = (UploadActionDelegate *)p_m_nTag;\n      if ( GameLevelManager::deleteFriendRequests(v7, v5[5].m_nZOrder, nullptr, 0) )\n      {\n        v10 = 0;\n        *(_QWORD *)&v10 = sub_14003AA10(0x20u);\n        v11 = 26;\n        v12 = 31;\n        strcpy((char *)v10, \"Removing Friend Request...\");\n        p_m_uID = &a1->m_uID;\n        if ( a1 == (GJRequestCell *)560 )\n          p_m_uID = nullptr;\n        v9 = UploadActionPopup::create(p_m_uID, &v10);\n        *(_QWORD *)&a1->m_uIndexInArray = v9;\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1040LL))(v9);\n      }\n    }\n  }\n}", "assembly": "; \n; GJRequestCell::FLAlert_Clicked from 0x1400bcf10 to 0x1400bd0b7 (423 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140549590\n; > <???> @ 0x1406c7de8\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\ntest    r8b, r8b                                                       ; +0x0, 0x1400bcf10\njz      locret_1400BD0B6                                               ; +0x3, 0x1400bcf13\nmov     [rsp+arg_0], rbx                                               ; +0x9, 0x1400bcf19\nmov     [rsp+arg_8], rbp                                               ; +0xe, 0x1400bcf1e\npush    rsi                                                            ; +0x13, 0x1400bcf23\npush    rdi                                                            ; +0x14, 0x1400bcf24\npush    r14                                                            ; +0x15, 0x1400bcf25\nsub     rsp, 40h                                                       ; +0x17, 0x1400bcf27\nmov     rbx, rcx                                                       ; +0x1b, 0x1400bcf2b\nmov     rax, [rdx]                                                     ; +0x1e, 0x1400bcf2e\nmov     rcx, rdx                                                       ; +0x21, 0x1400bcf31\ncall    qword ptr [rax+38h]                                            ; +0x24, 0x1400bcf34\ncmp     eax, 1                                                         ; +0x27, 0x1400bcf37\njnz     loc_1400BD0A4                                                  ; +0x2a, 0x1400bcf3a\ncmp     qword ptr [rbx+18h], 0                                         ; +0x30, 0x1400bcf40\njz      loc_1400BD0A4                                                  ; +0x35, 0x1400bcf45\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x3b, 0x1400bcf4b\ntest    rcx, rcx                                                       ; +0x42, 0x1400bcf52\njnz     short loc_1400BCF86                                            ; +0x45, 0x1400bcf55\nmov     ecx, 3D0h; Size                                                ; +0x47, 0x1400bcf57\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4c, 0x1400bcf5c\nmov     [rsp+58h+arg_18], rax                                          ; +0x51, 0x1400bcf61\nmov     rcx, rax                                                       ; +0x56, 0x1400bcf66\ncall    sub_140141280                                                  ; +0x59, 0x1400bcf69\nnop                                                                    ; +0x5e, 0x1400bcf6e\nmov     cs:qword_1406C2EC0, rax                                        ; +0x5f, 0x1400bcf6f\nmov     rdx, [rax]                                                     ; +0x66, 0x1400bcf76\nmov     rcx, rax                                                       ; +0x69, 0x1400bcf79\ncall    qword ptr [rdx+48h]                                            ; +0x6c, 0x1400bcf7c\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x6f, 0x1400bcf7f\nmov     rax, [rbx+18h]                                                 ; +0x76, 0x1400bcf86\nmovsxd  rdx, dword ptr [rax+188h]                                      ; +0x7a, 0x1400bcf8a\nmov     rcx, [rcx+260h]                                                ; +0x81, 0x1400bcf91\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x88, 0x1400bcf98\nmov     rsi, rax                                                       ; +0x8e, 0x1400bcf9e\ntest    rax, rax                                                       ; +0x91, 0x1400bcfa1\njz      loc_1400BD0A4                                                  ; +0x94, 0x1400bcfa4\nlea     rbp, [rbx-230h]                                                ; +0x9a, 0x1400bcfaa\nmov     rcx, rbp                                                       ; +0xa1, 0x1400bcfb1\ncall    GJRequestCell__markAsRead                                      ; +0xa4, 0x1400bcfb4\nlea     rdi, [rbx+10h]                                                 ; +0xa9, 0x1400bcfb9\nxor     r14d, r14d                                                     ; +0xad, 0x1400bcfbd\ntest    rbp, rbp                                                       ; +0xb0, 0x1400bcfc0\ncmovz   rdi, r14                                                       ; +0xb3, 0x1400bcfc3\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xb7, 0x1400bcfc7\ntest    rcx, rcx                                                       ; +0xbe, 0x1400bcfce\njnz     short loc_1400BD002                                            ; +0xc1, 0x1400bcfd1\nmov     ecx, 3D0h; Size                                                ; +0xc3, 0x1400bcfd3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xc8, 0x1400bcfd8\nmov     [rsp+58h+arg_18], rax                                          ; +0xcd, 0x1400bcfdd\nmov     rcx, rax                                                       ; +0xd2, 0x1400bcfe2\ncall    sub_140141280                                                  ; +0xd5, 0x1400bcfe5\nnop                                                                    ; +0xda, 0x1400bcfea\nmov     cs:qword_1406C2EC0, rax                                        ; +0xdb, 0x1400bcfeb\nmov     rdx, [rax]                                                     ; +0xe2, 0x1400bcff2\nmov     rcx, rax                                                       ; +0xe5, 0x1400bcff5\ncall    qword ptr [rdx+48h]                                            ; +0xe8, 0x1400bcff8\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xeb, 0x1400bcffb\nmov     [rcx+328h], rdi                                                ; +0xf2, 0x1400bd002\nxor     r9d, r9d                                                       ; +0xf9, 0x1400bd009\nxor     r8d, r8d                                                       ; +0xfc, 0x1400bd00c\nmov     edx, [rsi+144h]                                                ; +0xff, 0x1400bd00f\ncall    GameLevelManager__deleteFriendRequests                         ; +0x105, 0x1400bd015\ntest    al, al                                                         ; +0x10a, 0x1400bd01a\njz      loc_1400BD0A4                                                  ; +0x10c, 0x1400bd01c\nxorps   xmm0, xmm0                                                     ; +0x112, 0x1400bd022\nmovups  [rsp+58h+var_38], xmm0                                         ; +0x115, 0x1400bd025\nmov     [rsp+58h+var_28], r14                                          ; +0x11a, 0x1400bd02a\nmov     [rsp+58h+var_20], 0Fh                                          ; +0x11f, 0x1400bd02f\nmov     ecx, 20h ; ' '                                                 ; +0x128, 0x1400bd038\ncall    sub_14003AA10                                                  ; +0x12d, 0x1400bd03d\nmov     qword ptr [rsp+58h+var_38], rax                                ; +0x132, 0x1400bd042\nmov     [rsp+58h+var_28], 1Ah                                          ; +0x137, 0x1400bd047\nmov     [rsp+58h+var_20], 1Fh                                          ; +0x140, 0x1400bd050\nmovups  xmm0, cs:xmmword_140547280                                     ; +0x149, 0x1400bd059\nmovups  xmmword ptr [rax], xmm0                                        ; +0x150, 0x1400bd060\nmovsd   xmm0, cs:qword_140547290                                       ; +0x153, 0x1400bd063\nmovsd   qword ptr [rax+10h], xmm0                                      ; +0x15b, 0x1400bd06b\nmovzx   ecx, cs:word_140547298                                         ; +0x160, 0x1400bd070\nmov     [rax+18h], cx                                                  ; +0x167, 0x1400bd077\nmov     byte ptr [rax+1Ah], 0                                          ; +0x16b, 0x1400bd07b\nlea     rcx, [rbx+8]                                                   ; +0x16f, 0x1400bd07f\ntest    rbp, rbp                                                       ; +0x173, 0x1400bd083\ncmovz   rcx, r14                                                       ; +0x176, 0x1400bd086\nlea     rdx, [rsp+58h+var_38]                                          ; +0x17a, 0x1400bd08a\ncall    UploadActionPopup__create                                      ; +0x17f, 0x1400bd08f\nmov     [rbx+20h], rax                                                 ; +0x184, 0x1400bd094\nmov     rdx, [rax]                                                     ; +0x188, 0x1400bd098\nmov     rcx, rax                                                       ; +0x18b, 0x1400bd09b\ncall    qword ptr [rdx+410h]                                           ; +0x18e, 0x1400bd09e\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x194, 0x1400bd0a4\nmov     rbp, [rsp+58h+arg_8]                                           ; +0x199, 0x1400bd0a9\nadd     rsp, 40h                                                       ; +0x19e, 0x1400bd0ae\npop     r14                                                            ; +0x1a2, 0x1400bd0b2\npop     rdi                                                            ; +0x1a4, 0x1400bd0b4\npop     rsi                                                            ; +0x1a5, 0x1400bd0b5\nretn                                                                   ; +0x1a6, 0x1400bd0b6", "xrefs": ["<???> @ 0x140549590", "<???> @ 0x1406c7de8"], "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"}