{"type": "func", "start": 5369476944, "end": 5369477353, "name": "GJUserCell::onCancelFriendRequest", "pseudocode": "// \n// GJUserCell::onCancelFriendRequest from 0x1400bb750 to 0x1400bb8e9 (409 bytes)\n// \n// 2 xrefs:\n// > GJUserCell::loadFromScore @ 0x1400bb1f0\n// > <???> @ 0x1406c7d58\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=2\nvoid GJUserCell::onCancelFriendRequest(GJUserCell *a1, cocos2d::CCObject *a2)\n{\n  GJUserScore *m_userScore; // rax\n  FLAlertLayerProtocol *v3; // rdi\n  FLAlertLayer *v4; // rbx\n  __int64 v5; // rax\n  __int128 v6; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v7; // [rsp+60h] [rbp-38h]\n  __int64 v8; // [rsp+68h] [rbp-30h]\n  _BYTE v9[40]; // [rsp+70h] [rbp-28h] BYREF\n  FLAlertLayer *v10; // [rsp+B0h] [rbp+18h]\n\n  m_userScore = a1->m_userScore;\n  if ( m_userScore && m_userScore->m_accountID > 0 )\n  {\n    v3 = &a1->FLAlertLayerProtocol;\n    v6 = 0;\n    *(_QWORD *)&v6 = sub_14003AA10(0x40u);\n    v7 = 52;\n    v8 = 63;\n    strcpy((char *)v6, \"Are you sure you want to remove this friend request?\");\n    v10 = (FLAlertLayer *)operator new(0x278u);\n    v4 = FLAlertLayer::FLAlertLayer(v10);\n    if ( v4 )\n    {\n      v5 = sub_14003BDB0((__int64)v9, (__int64)&v6);\n      if ( FLAlertLayer::init((__int64)v4, (__int64)v3, \"Cancel friend request\", v5, \"Back\", \"Remove\", 380.0, 0, 0, 1.0) )\n      {\n        cocos2d::CCObject::autorelease(v4);\n      }\n      else\n      {\n        ((void (__fastcall *)(FLAlertLayer *, __int64))v4->~FLAlertLayer)(v4, 1);\n        v4 = nullptr;\n      }\n    }\n    sub_14003A830((__int64)&v6);\n    ButtonSprite::updateBGImage(v4->m_button2, \"GJ_button_06.png\");\n    v4->setTag(v4, 3);\n    v4->show(v4);\n  }\n}", "assembly": "; \n; GJUserCell::onCancelFriendRequest from 0x1400bb750 to 0x1400bb8e9 (409 bytes)\n; \n; 2 xrefs:\n; > GJUserCell::loadFromScore @ 0x1400bb1f0\n; > <???> @ 0x1406c7d58\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400bb750\npush    rdi                                                            ; +0x5, 0x1400bb755\nsub     rsp, 90h                                                       ; +0x6, 0x1400bb756\nmov     rax, [rcx+248h]                                                ; +0xd, 0x1400bb75d\ntest    rax, rax                                                       ; +0x14, 0x1400bb764\njz      loc_1400BB8D8                                                  ; +0x17, 0x1400bb767\ncmp     dword ptr [rax+188h], 0                                        ; +0x1d, 0x1400bb76d\njle     loc_1400BB8D8                                                  ; +0x24, 0x1400bb774\nlea     rdi, [rcx+230h]                                                ; +0x2a, 0x1400bb77a\nxorps   xmm0, xmm0                                                     ; +0x31, 0x1400bb781\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x34, 0x1400bb784\nmov     [rsp+98h+var_38], 0                                            ; +0x39, 0x1400bb789\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x42, 0x1400bb792\nmov     ecx, 40h ; '@'                                                 ; +0x4b, 0x1400bb79b\ncall    sub_14003AA10                                                  ; +0x50, 0x1400bb7a0\nmov     rcx, rax                                                       ; +0x55, 0x1400bb7a5\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x58, 0x1400bb7a8\nmov     [rsp+98h+var_38], 34h ; '4'                                    ; +0x5d, 0x1400bb7ad\nmov     [rsp+98h+var_30], 3Fh ; '?'                                    ; +0x66, 0x1400bb7b6\nmovups  xmm0, cs:xmmword_140547338                                     ; +0x6f, 0x1400bb7bf\nmovups  xmmword ptr [rax], xmm0                                        ; +0x76, 0x1400bb7c6\nmovups  xmm1, cs:xmmword_140547348                                     ; +0x79, 0x1400bb7c9\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x80, 0x1400bb7d0\nmovups  xmm0, cs:xmmword_140547358                                     ; +0x84, 0x1400bb7d4\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x8b, 0x1400bb7db\nmov     eax, cs:dword_140547368                                        ; +0x8f, 0x1400bb7df\nmov     [rcx+30h], eax                                                 ; +0x95, 0x1400bb7e5\nmov     byte ptr [rcx+34h], 0                                          ; +0x98, 0x1400bb7e8\nlea     rax, [rsp+98h+var_48]                                          ; +0x9c, 0x1400bb7ec\nmov     [rsp+98h+arg_0], rax                                           ; +0xa1, 0x1400bb7f1\nmov     ecx, 278h; Size                                                ; +0xa9, 0x1400bb7f9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xae, 0x1400bb7fe\nmov     [rsp+98h+arg_10], rax                                          ; +0xb3, 0x1400bb803\nmov     rcx, rax                                                       ; +0xbb, 0x1400bb80b\ncall    FLAlertLayer__FLAlertLayer                                     ; +0xbe, 0x1400bb80e\nmov     rbx, rax                                                       ; +0xc3, 0x1400bb813\ntest    rax, rax                                                       ; +0xc6, 0x1400bb816\njz      loc_1400BB8A1                                                  ; +0xc9, 0x1400bb819\nlea     rdx, [rsp+98h+var_48]                                          ; +0xcf, 0x1400bb81f\nlea     rcx, [rsp+98h+var_28]                                          ; +0xd4, 0x1400bb824\ncall    sub_14003BDB0                                                  ; +0xd9, 0x1400bb829\nmovss   xmm0, cs:flt_140622C24                                         ; +0xde, 0x1400bb82e\nmovss   [rsp+98h+var_50], xmm0                                         ; +0xe6, 0x1400bb836\nxorps   xmm1, xmm1                                                     ; +0xec, 0x1400bb83c\nmovss   [rsp+98h+var_58], xmm1                                         ; +0xef, 0x1400bb83f\nmov     [rsp+98h+var_60], 0                                            ; +0xf5, 0x1400bb845\nmovss   xmm0, cs:dword_140623478                                       ; +0xfa, 0x1400bb84a\nmovss   [rsp+98h+var_68], xmm0                                         ; +0x102, 0x1400bb852\nlea     rcx, aRemove; \"Remove\"                                         ; +0x108, 0x1400bb858\nmov     [rsp+98h+var_70], rcx                                          ; +0x10f, 0x1400bb85f\nlea     rcx, aBack; \"Back\"                                             ; +0x114, 0x1400bb864\nmov     [rsp+98h+var_78], rcx                                          ; +0x11b, 0x1400bb86b\nmov     r9, rax                                                        ; +0x120, 0x1400bb870\nlea     r8, aCancelFriendRe; \"Cancel friend request\"                   ; +0x123, 0x1400bb873\nmov     rdx, rdi                                                       ; +0x12a, 0x1400bb87a\nmov     rcx, rbx                                                       ; +0x12d, 0x1400bb87d\ncall    FLAlertLayer__init                                             ; +0x130, 0x1400bb880\nmov     rcx, rbx                                                       ; +0x135, 0x1400bb885\ntest    al, al                                                         ; +0x138, 0x1400bb888\njz      short loc_1400BB894                                            ; +0x13a, 0x1400bb88a\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x13c, 0x1400bb88c\njmp     short loc_1400BB8A1                                            ; +0x142, 0x1400bb892\nmov     rax, [rbx]                                                     ; +0x144, 0x1400bb894\nmov     edx, 1                                                         ; +0x147, 0x1400bb897\ncall    qword ptr [rax+8]                                              ; +0x14c, 0x1400bb89c\nxor     ebx, ebx                                                       ; +0x14f, 0x1400bb89f\nlea     rcx, [rsp+98h+var_48]                                          ; +0x151, 0x1400bb8a1\ncall    sub_14003A830                                                  ; +0x156, 0x1400bb8a6\nlea     rdx, aGjButton06Png; \"GJ_button_06.png\"                        ; +0x15b, 0x1400bb8ab\nmov     rcx, [rbx+258h]                                                ; +0x162, 0x1400bb8b2\ncall    ButtonSprite__updateBGImage                                    ; +0x169, 0x1400bb8b9\nmov     rax, [rbx]                                                     ; +0x16e, 0x1400bb8be\nmov     edx, 3                                                         ; +0x171, 0x1400bb8c1\nmov     rcx, rbx                                                       ; +0x176, 0x1400bb8c6\ncall    qword ptr [rax+40h]                                            ; +0x179, 0x1400bb8c9\nmov     rax, [rbx]                                                     ; +0x17c, 0x1400bb8cc\nmov     rcx, rbx                                                       ; +0x17f, 0x1400bb8cf\ncall    qword ptr [rax+410h]                                           ; +0x182, 0x1400bb8d2\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x188, 0x1400bb8d8\nadd     rsp, 90h                                                       ; +0x190, 0x1400bb8e0\npop     rdi                                                            ; +0x197, 0x1400bb8e7\nretn                                                                   ; +0x198, 0x1400bb8e8", "xrefs": ["GJUserCell::loadFromScore @ 0x1400bb1f0", "<???> @ 0x1406c7d58"], "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"}