{"type": "func", "start": 13186480, "end": 13186936, "name": "AccountBanPopup::onTrendingUnban", "pseudocode": "// \n// AccountBanPopup::onTrendingUnban from 0xc935b0 to 0xc93778 (456 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xc5cb0\n// > AccountBanPopup::init @ 0xc94fd0\n// > <???> @ 0x1545c80\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:05:49 +0000\n// \n\n__int64 __fastcall AccountBanPopup::onTrendingUnban(AccountBanPopup *this, cocos2d::CCObject *a2)\n{\n  int v3; // w1\n  bool v4; // zf\n  const char *v5; // x1\n  char v6; // w0\n  cocos2d::CCString *v7; // x0\n  char *CString; // x0\n  __int64 v9; // x0\n  __int64 v11[2]; // [xsp+30h] [xbp+30h] BYREF\n  void *v12; // [xsp+40h] [xbp+40h]\n  void *v13; // [xsp+48h] [xbp+48h] BYREF\n  char *v14; // [xsp+50h] [xbp+50h]\n  __int64 v15; // [xsp+58h] [xbp+58h]\n  __int64 v16[2]; // [xsp+60h] [xbp+60h] BYREF\n  void *v17; // [xsp+70h] [xbp+70h]\n\n  v11[0] = 0;\n  v3 = *((_DWORD *)this + 273);\n  v11[1] = 0;\n  v4 = v3 == 2;\n  v5 = (char *)this + 1057;\n  v12 = nullptr;\n  v6 = *((_BYTE *)this + 1056);\n  if ( v4 )\n  {\n    if ( (v6 & 1) != 0 )\n      v5 = *((const char **)this + 134);\n    v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"Lift the <cy>Trending</c> ban for <cg>%s</c>?\",\n                                v5);\n  }\n  else\n  {\n    if ( (v6 & 1) != 0 )\n      v5 = *((const char **)this + 134);\n    v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"Allow <cg>%s</c> on <cy>Trending</c>?\\n\"\n                                                     \"Only creators with a rated or sent level trend by default.\",\n                                v5);\n  }\n  CString = (char *)cocos2d::CCString::getCString(v7);\n  std::string::assign(v11, CString);\n  v13 = nullptr;\n  v14 = nullptr;\n  v15 = 0;\n  v16[0] = 0;\n  v16[1] = 0;\n  v17 = nullptr;\n  std::string::__init(v16, &byte_11B8890, 0);\n  v9 = AdminActionConfirmPopup::create(\n         (__int64)this + 1040,\n         10,\n         \"Confirm Allow\",\n         (char *)v11,\n         (ButtonSprite *)\"Allow\",\n         (__int64)&v13,\n         (__int64)v16,\n         1);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);\n  if ( (v16[0] & 1) != 0 )\n    operator delete(v17);\n  if ( v13 )\n  {\n    if ( v13 != v14 )\n      v14 += 4 * ~((unsigned __int64)(v14 - 4 - (_BYTE *)v13) >> 2);\n    operator delete(v13);\n  }\n  if ( (v11[0] & 1) != 0 )\n    operator delete(v12);\n  return _stack_chk_guard;\n}", "assembly": "; \n; AccountBanPopup::onTrendingUnban from 0xc935b0 to 0xc93778 (456 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xc5cb0\n; > AccountBanPopup::init @ 0xc94fd0\n; > <???> @ 0x1545c80\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:05:49 +0000\n; \nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0xc935b0\nMOV             X29, SP                                                ; +0x4, 0xc935b4\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x8, 0xc935b8\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xc935bc\nMOV             X19, X0                                                ; +0x10, 0xc935c0\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x14, 0xc935c4\nSTR             XZR, [X29,#0x80+var_50]                                ; +0x18, 0xc935c8\nLDR             X0, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xc935cc\nLDR             W1, [X19,#0x444]                                       ; +0x20, 0xc935d0\nSTR             XZR, [X29,#0x80+var_48]                                ; +0x24, 0xc935d4\nLDR             X0, [X0]                                               ; +0x28, 0xc935d8\nCMP             W1, #2                                                 ; +0x2c, 0xc935dc\nSTR             X0, [X29,#0x80+var_8]                                  ; +0x30, 0xc935e0\nADD             X1, X19, #0x421                                        ; +0x34, 0xc935e4\nSTR             XZR, [X29,#0x80+var_40]                                ; +0x38, 0xc935e8\nLDRB            W0, [X19,#0x420]                                       ; +0x3c, 0xc935ec\nB.EQ            loc_C936FC                                             ; +0x40, 0xc935f0\nTBZ             W0, #0, loc_C935FC                                     ; +0x44, 0xc935f4\nLDR             X1, [X19,#0x430]; char *                               ; +0x48, 0xc935f8\nADRL            X0, aAllowCgSCOnCyT; \"Allow <cg>%s</c> on <cy>Trending</c>?\\n\"... ; +0x4c, 0xc935fc\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x54, 0xc93604\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x58, 0xc93608\nADD             X22, X29, #0x80+var_50                                 ; +0x5c, 0xc9360c\nMOV             X1, X0; char *                                         ; +0x60, 0xc93610\nMOV             X0, X22; int                                           ; +0x64, 0xc93614\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x68, 0xc93618\nADD             X21, X29, #0x80+var_20                                 ; +0x6c, 0xc9361c\nADRP            X1, #byte_11B8890@PAGE                                 ; +0x70, 0xc93620\nMOV             X0, X21                                                ; +0x74, 0xc93624\nADD             X1, X1, #byte_11B8890@PAGEOFF                          ; +0x78, 0xc93628\nMOV             X2, #0                                                 ; +0x7c, 0xc9362c\nADD             X19, X19, #0x410                                       ; +0x80, 0xc93630\nSTR             XZR, [X29,#0x80+var_38]                                ; +0x84, 0xc93634\nSTR             XZR, [X29,#0x80+var_30]                                ; +0x88, 0xc93638\nSTR             XZR, [X29,#0x80+var_28]                                ; +0x8c, 0xc9363c\nSTR             XZR, [X29,#0x80+var_20]                                ; +0x90, 0xc93640\nSTR             XZR, [X29,#0x80+var_18]                                ; +0x94, 0xc93644\nSTR             XZR, [X29,#0x80+var_10]                                ; +0x98, 0xc93648\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x9c, 0xc9364c\nADRP            X2, #aConfirmAllow@PAGE; \"Confirm Allow\"               ; +0xa0, 0xc93650\nADRP            X4, #(aConfirmAllow+8)@PAGE; \"Allow\"                   ; +0xa4, 0xc93654\nMOV             X0, X19                                                ; +0xa8, 0xc93658\nMOV             W1, #0xA                                               ; +0xac, 0xc9365c\nADD             X2, X2, #aConfirmAllow@PAGEOFF; \"Confirm Allow\"        ; +0xb0, 0xc93660\nMOV             X3, X22                                                ; +0xb4, 0xc93664\nADD             X4, X4, #(aConfirmAllow+8)@PAGEOFF; \"Allow\"            ; +0xb8, 0xc93668\nADD             X5, X29, #0x80+var_38                                  ; +0xbc, 0xc9366c\nMOV             X6, X21                                                ; +0xc0, 0xc93670\nMOV             W7, #1                                                 ; +0xc4, 0xc93674\nBL              _ZN23AdminActionConfirmPopup6createEP26AdminActionConfirmDelegateiPKcRKNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_RKNS4_6vectorIiNS8_IiEEEESC_b; AdminActionConfirmPopup::create(AdminActionConfirmDelegate *,int,char const*,std::string const&,char const*,std::vector<int> const&,std::string const&,bool) ; +0xc8, 0xc93678\nLDR             X1, [X0]                                               ; +0xcc, 0xc9367c\nLDR             X1, [X1,#0x520]                                        ; +0xd0, 0xc93680\nBLR             X1                                                     ; +0xd4, 0xc93684\nLDRB            W0, [X29,#0x80+var_20]                                 ; +0xd8, 0xc93688\nTBNZ            W0, #0, loc_C936F0                                     ; +0xdc, 0xc9368c\nLDR             X0, [X29,#0x80+var_38]; void *                         ; +0xe0, 0xc93690\nCBZ             X0, loc_C936BC                                         ; +0xe4, 0xc93694\nLDR             X1, [X29,#0x80+var_30]                                 ; +0xe8, 0xc93698\nCMP             X0, X1                                                 ; +0xec, 0xc9369c\nB.EQ            loc_C936B8                                             ; +0xf0, 0xc936a0\nSUB             X19, X1, #4                                            ; +0xf4, 0xc936a4\nSUB             X19, X19, X0                                           ; +0xf8, 0xc936a8\nMVN             X19, X19,LSR#2                                         ; +0xfc, 0xc936ac\nADD             X19, X1, X19,LSL#2                                     ; +0x100, 0xc936b0\nSTR             X19, [X29,#0x80+var_30]                                ; +0x104, 0xc936b4\nBL              _ZdlPv; operator delete(void *)                        ; +0x108, 0xc936b8\nLDRB            W0, [X29,#0x80+var_50]                                 ; +0x10c, 0xc936bc\nTBZ             W0, #0, loc_C936CC                                     ; +0x110, 0xc936c0\nLDR             X0, [X29,#0x80+var_40]; void *                         ; +0x114, 0xc936c4\nBL              _ZdlPv; operator delete(void *)                        ; +0x118, 0xc936c8\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x11c, 0xc936cc\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x120, 0xc936d0\nLDR             X0, [X20]                                              ; +0x124, 0xc936d4\nCMP             X1, X0                                                 ; +0x128, 0xc936d8\nB.NE            loc_C9376C                                             ; +0x12c, 0xc936dc\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x130, 0xc936e0\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x134, 0xc936e4\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x138, 0xc936e8\nRET                                                                    ; +0x13c, 0xc936ec\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x140, 0xc936f0\nBL              _ZdlPv; operator delete(void *)                        ; +0x144, 0xc936f4\nB               loc_C93690                                             ; +0x148, 0xc936f8\nTBZ             W0, #0, loc_C93704                                     ; +0x14c, 0xc936fc\nLDR             X1, [X19,#0x430]; char *                               ; +0x150, 0xc93700\nADRL            X0, aLiftTheCyTrend; \"Lift the <cy>Trending</c> ban for <cg>%\"... ; +0x154, 0xc93704\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x15c, 0xc9370c\nB               loc_C93608                                             ; +0x160, 0xc93710\nMOV             X19, X0                                                ; +0x164, 0xc93714\nLDRB            W0, [X29,#0x80+var_50]                                 ; +0x168, 0xc93718\nTBZ             W0, #0, loc_C93728                                     ; +0x16c, 0xc9371c\nLDR             X0, [X29,#0x80+var_40]; void *                         ; +0x170, 0xc93720\nBL              _ZdlPv; operator delete(void *)                        ; +0x174, 0xc93724\nMOV             X0, X19                                                ; +0x178, 0xc93728\nBL              _Unwind_Resume                                         ; +0x17c, 0xc9372c\nLDRB            W1, [X29,#0x80+var_20]                                 ; +0x180, 0xc93730\nMOV             X19, X0                                                ; +0x184, 0xc93734\nTBZ             W1, #0, loc_C93744                                     ; +0x188, 0xc93738\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x18c, 0xc9373c\nBL              _ZdlPv; operator delete(void *)                        ; +0x190, 0xc93740\nLDR             X1, [X29,#0x80+var_38]                                 ; +0x194, 0xc93744\nCBZ             X1, loc_C93718                                         ; +0x198, 0xc93748\nLDR             X2, [X29,#0x80+var_30]                                 ; +0x19c, 0xc9374c\nMOV             X0, X1; void *                                         ; +0x1a0, 0xc93750\nSUB             X1, X2, X1                                             ; +0x1a4, 0xc93754\nLSR             X1, X1, #2                                             ; +0x1a8, 0xc93758\nSUB             X1, X2, X1,LSL#2                                       ; +0x1ac, 0xc9375c\nSTR             X1, [X29,#0x80+var_30]                                 ; +0x1b0, 0xc93760\nBL              _ZdlPv; operator delete(void *)                        ; +0x1b4, 0xc93764\nB               loc_C93718                                             ; +0x1b8, 0xc93768\nBL              .__stack_chk_fail                                      ; +0x1bc, 0xc9376c\nMOV             X19, X0                                                ; +0x1c0, 0xc93770\nB               loc_C93744                                             ; +0x1c4, 0xc93774", "xrefs": ["<???> @ 0xc5cb0", "AccountBanPopup::init @ 0xc94fd0", "<???> @ 0x1545c80"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}