{"type": "func", "start": 4296087688, "end": 4296088020, "name": "GJUserCell::onRemoveFriend", "pseudocode": "// \n// GJUserCell::onRemoveFriend from 0x100111888 to 0x1001119d4 (332 bytes)\n// \n// 1 xrefs:\n// > GJUserCell::loadFromScore @ 0x100109e80\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::onRemoveFriend(GJUserCell *a1, cocos2d::CCObject *a2)\n{\n  GJUserScore *m_userScore; // x8\n  void **v4; // x8\n  cocos2d::CCString *v5; // x0\n  char *CString; // x0\n  char *v7; // x1\n  ButtonSprite **v8; // x19\n  void *v9[2]; // [xsp+8h] [xbp-58h] BYREF\n  char v10; // [xsp+1Fh] [xbp-41h]\n  void *__p[2]; // [xsp+20h] [xbp-40h] BYREF\n  char *longStorage; // [xsp+30h] [xbp-30h]\n  void *v13[2]; // [xsp+38h] [xbp-28h] BYREF\n  char v14; // [xsp+4Fh] [xbp-11h]\n\n  m_userScore = a1->m_userScore;\n  if ( m_userScore && m_userScore->m_accountID >= 1 )\n  {\n    if ( m_userScore->m_userName.m_data.m_short.shortStorage.__elems_[22] < 0 )\n    {\n      sub_1000097D0(\n        __p,\n        (void *)m_userScore->m_userName.m_data.m_long.capacitym1,\n        m_userScore->m_userName.m_data.m_long.size);\n    }\n    else\n    {\n      *(_OWORD *)__p = *(_OWORD *)&m_userScore->m_userName.m_data.m_short.sizex2;\n      longStorage = m_userScore->m_userName.m_data.m_long.longStorage;\n    }\n    v4 = __p;\n    if ( SHIBYTE(longStorage) < 0 )\n      v4 = (void **)__p[0];\n    v5 = (cocos2d::CCString *)sub_100268F4C(\n                                \"Are you sure you want to <cr>remove</c> <cy>%s</c> from your friends list?\",\n                                (const char *)v4);\n    CString = (char *)cocos2d::CCString::getCString(v5);\n    sub_100009900(v13, CString);\n    if ( SHIBYTE(longStorage) < 0 )\n      operator delete(__p[0]);\n    if ( v14 >= 0 )\n      v7 = (char *)v13;\n    else\n      v7 = (char *)v13[0];\n    sub_100009900(v9, v7);\n    v8 = (ButtonSprite **)FLAlertLayer::create(\n                            &a1->FLAlertLayerProtocol,\n                            \"Unfriend\",\n                            v9,\n                            \"Back\",\n                            \"Unfriend\",\n                            0,\n                            380.0,\n                            0.0,\n                            1.0);\n    if ( v10 < 0 )\n      operator delete(v9[0]);\n    ButtonSprite::updateBGImage(v8[75], \"GJ_button_06.png\");\n    (*(void (__fastcall **)(ButtonSprite **, __int64))&(*v8)->m_fVertexZ)(v8, 2);\n    (*(void (__fastcall **)(ButtonSprite **))&(*v8)[1].m_fTextureTop)(v8);\n    if ( v14 < 0 )\n      operator delete(v13[0]);\n  }\n}", "assembly": "; \n; GJUserCell::onRemoveFriend from 0x100111888 to 0x1001119d4 (332 bytes)\n; \n; 1 xrefs:\n; > GJUserCell::loadFromScore @ 0x100109e80\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\nSUB             SP, SP, #0x70                                          ; +0x0, 0x100111888\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0x4, 0x10011188c\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0x8, 0x100111890\nADD             X29, SP, #0x60                                         ; +0xc, 0x100111894\nLDR             X8, [X0,#0x240]                                        ; +0x10, 0x100111898\nCBZ             X8, loc_1001119C4                                      ; +0x14, 0x10011189c\nLDR             W9, [X8,#0x178]                                        ; +0x18, 0x1001118a0\nCMP             W9, #1                                                 ; +0x1c, 0x1001118a4\nB.LT            loc_1001119C4                                          ; +0x20, 0x1001118a8\nMOV             X19, X0                                                ; +0x24, 0x1001118ac\nLDRSB           W9, [X8,#0x157]                                        ; +0x28, 0x1001118b0\nTBNZ            W9, #0x1F, loc_1001118CC                               ; +0x2c, 0x1001118b4\nLDR             Q0, [X8,#0x140]                                        ; +0x30, 0x1001118b8\nSTR             Q0, [SP,#0x60+__p]                                     ; +0x34, 0x1001118bc\nLDR             X8, [X8,#0x150]                                        ; +0x38, 0x1001118c0\nSTR             X8, [SP,#0x60+var_30]                                  ; +0x3c, 0x1001118c4\nB               loc_1001118D8                                          ; +0x40, 0x1001118c8\nLDP             X1, X2, [X8,#0x140]; __src                             ; +0x44, 0x1001118cc\nADD             X0, SP, #0x60+__p; __dst                               ; +0x48, 0x1001118d0\nBL              sub_1000097D0                                          ; +0x4c, 0x1001118d4\nLDRSB           W8, [SP,#0x60+var_30+7]                                ; +0x50, 0x1001118d8\nLDR             X9, [SP,#0x60+__p]                                     ; +0x54, 0x1001118dc\nCMP             W8, #0                                                 ; +0x58, 0x1001118e0\nADD             X8, SP, #0x60+__p                                      ; +0x5c, 0x1001118e4\nCSEL            X8, X9, X8, LT                                         ; +0x60, 0x1001118e8\nSTR             X8, [SP,#0x60+var_60]                                  ; +0x64, 0x1001118ec\nADRL            X0, aAreYouSureYouW_5; \"Are you sure you want to <cr>remove</c>\"... ; +0x68, 0x1001118f0\nBL              sub_100268F4C                                          ; +0x70, 0x1001118f8\nBL              cocos2d__CCString__getCString                          ; +0x74, 0x1001118fc\nMOV             X1, X0; __s                                            ; +0x78, 0x100111900\nSUB             X0, X29, #-var_28; int                                 ; +0x7c, 0x100111904\nBL              sub_100009900                                          ; +0x80, 0x100111908\nLDRSB           W8, [SP,#0x60+var_30+7]                                ; +0x84, 0x10011190c\nTBZ             W8, #0x1F, loc_10011191C                               ; +0x88, 0x100111910\nLDR             X0, [SP,#0x60+__p]; __p                                ; +0x8c, 0x100111914\nBL              __ZdlPv; operator delete(void *)                       ; +0x90, 0x100111918\nLDURSB          W8, [X29,#var_11]                                      ; +0x94, 0x10011191c\nLDUR            X9, [X29,#var_28]                                      ; +0x98, 0x100111920\nCMP             W8, #0                                                 ; +0x9c, 0x100111924\nSUB             X8, X29, #-var_28                                      ; +0xa0, 0x100111928\nCSEL            X1, X9, X8, LT; __s                                    ; +0xa4, 0x10011192c\nADD             X0, SP, #0x60+var_58; int                              ; +0xa8, 0x100111930\nBL              sub_100009900                                          ; +0xac, 0x100111934\nADRL            X3, aBack; \"Back\"                                      ; +0xb0, 0x100111938\nADRL            X1, aUnfriend; \"Unfriend\"                              ; +0xb8, 0x100111940\nMOV             W8, #0x43BE0000                                        ; +0xc0, 0x100111948\nFMOV            S0, W8                                                 ; +0xc4, 0x10011194c\nADD             X0, X19, #0x228                                        ; +0xc8, 0x100111950\nADD             X2, SP, #0x60+var_58                                   ; +0xcc, 0x100111954\nFMOV            S1, WZR                                                ; +0xd0, 0x100111958\nFMOV            S2, #1.0                                               ; +0xd4, 0x10011195c\nMOV             X4, X1                                                 ; +0xd8, 0x100111960\nMOV             W5, #0                                                 ; +0xdc, 0x100111964\nBL              FLAlertLayer__create                                   ; +0xe0, 0x100111968\nMOV             X19, X0                                                ; +0xe4, 0x10011196c\nLDRSB           W8, [SP,#0x60+var_41]                                  ; +0xe8, 0x100111970\nTBZ             W8, #0x1F, loc_100111980                               ; +0xec, 0x100111974\nLDR             X0, [SP,#0x60+var_58]; __p                             ; +0xf0, 0x100111978\nBL              __ZdlPv; operator delete(void *)                       ; +0xf4, 0x10011197c\nLDR             X0, [X19,#0x258]                                       ; +0xf8, 0x100111980\nADRL            X1, aGjButton06Png; \"GJ_button_06.png\"                 ; +0xfc, 0x100111984\nBL              ButtonSprite__updateBGImage                            ; +0x104, 0x10011198c\nLDR             X8, [X19]                                              ; +0x108, 0x100111990\nLDR             X8, [X8,#0x48]                                         ; +0x10c, 0x100111994\nMOV             X0, X19                                                ; +0x110, 0x100111998\nMOV             W1, #2                                                 ; +0x114, 0x10011199c\nBLR             X8                                                     ; +0x118, 0x1001119a0\nLDR             X8, [X19]                                              ; +0x11c, 0x1001119a4\nLDR             X8, [X8,#0x508]                                        ; +0x120, 0x1001119a8\nMOV             X0, X19                                                ; +0x124, 0x1001119ac\nBLR             X8                                                     ; +0x128, 0x1001119b0\nLDURSB          W8, [X29,#var_11]                                      ; +0x12c, 0x1001119b4\nTBZ             W8, #0x1F, loc_1001119C4                               ; +0x130, 0x1001119b8\nLDUR            X0, [X29,#var_28]; __p                                 ; +0x134, 0x1001119bc\nBL              __ZdlPv; operator delete(void *)                       ; +0x138, 0x1001119c0\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0x13c, 0x1001119c4\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0x140, 0x1001119c8\nADD             SP, SP, #0x70 ; 'p'                                    ; +0x144, 0x1001119cc\nRET                                                                    ; +0x148, 0x1001119d0", "xrefs": ["GJUserCell::loadFromScore @ 0x100109e80"], "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"}