{"type": "func", "start": 13182832, "end": 13183380, "name": "AccountBanPopup::onTrendingBan", "pseudocode": "// \n// AccountBanPopup::onTrendingBan from 0xc92770 to 0xc92994 (548 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x54c58\n// > AccountBanPopup::init @ 0xc94fcc\n// > <???> @ 0x1541de0\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:48 +0000\n// \n\n__int64 __fastcall AccountBanPopup::onTrendingBan(AccountBanPopup *this, cocos2d::CCObject *a2)\n{\n  const char *v2; // x1\n  char *v3; // x19\n  cocos2d::CCString *v4; // x0\n  size_t v5; // x0\n  ReportPopup *v6; // x0\n  __int64 v7; // x19\n  char *CString; // [xsp+48h] [xbp+48h]\n  __int64 v10[2]; // [xsp+58h] [xbp+58h] BYREF\n  void *v11; // [xsp+68h] [xbp+68h]\n  void *v12; // [xsp+70h] [xbp+70h] BYREF\n  char *v13; // [xsp+78h] [xbp+78h]\n  __int64 v14[2]; // [xsp+88h] [xbp+88h] BYREF\n  void *v15; // [xsp+98h] [xbp+98h]\n  __int64 v16[2]; // [xsp+A0h] [xbp+A0h] BYREF\n  void *v17; // [xsp+B0h] [xbp+B0h]\n\n  v2 = (char *)this + 1057;\n  if ( (*((_BYTE *)this + 1056) & 1) != 0 )\n    v2 = *((const char **)this + 134);\n  v3 = (char *)this + 1040;\n  v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"Ban <cg>%s</c> from <cy>Trending</c>?\\n\"\n                                                   \"Their levels leave the tab now and stay out until allowed again.\",\n                              v2);\n  v10[0] = 0;\n  CString = (char *)cocos2d::CCString::getCString(v4);\n  v10[1] = 0;\n  v11 = nullptr;\n  v5 = strlen(CString);\n  v6 = (ReportPopup *)std::string::__init(v10, CString, v5);\n  ReportPopup::reasonIndicesForUploadModeration((__int64 *)&v12, v6);\n  v14[0] = 0;\n  v14[1] = 0;\n  v15 = nullptr;\n  std::string::__init(v14, &byte_11B8890, 0);\n  v7 = AdminActionConfirmPopup::create(\n         (__int64)v3,\n         9,\n         \"Confirm Ban\",\n         (char *)v10,\n         (ButtonSprite *)\"Ban\",\n         (__int64)&v12,\n         (__int64)v14,\n         1);\n  if ( (v14[0] & 1) != 0 )\n    operator delete(v15);\n  if ( v12 )\n  {\n    if ( v12 != v13 )\n      v13 += 4 * ~((unsigned __int64)(v13 - 4 - (_BYTE *)v12) >> 2);\n    operator delete(v12);\n  }\n  v16[0] = 0;\n  v16[1] = 0;\n  v17 = nullptr;\n  std::string::__init(\n    v16,\n    \"The player is not told. The reason and categories only go to the moderator log.\\n\"\n    \"\\n\"\n    \"No duration: the ban stays until a moderator allows the account again or RobTop rates one of their levels.\",\n    0xBBu);\n  AdminActionConfirmPopup::addHelp(v7, \"Trending Ban\", (char *)v16);\n  if ( (v16[0] & 1) != 0 )\n    operator delete(v17);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);\n  if ( (v10[0] & 1) != 0 )\n    operator delete(v11);\n  return _stack_chk_guard;\n}", "assembly": "; \n; AccountBanPopup::onTrendingBan from 0xc92770 to 0xc92994 (548 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x54c58\n; > AccountBanPopup::init @ 0xc94fcc\n; > <???> @ 0x1541de0\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:48 +0000\n; \nSTP             X29, X30, [SP,#var_C0]!                                ; +0x0, 0xc92770\nMOV             X2, X0                                                 ; +0x4, 0xc92774\nADD             X1, X0, #0x421                                         ; +0x8, 0xc92778\nMOV             X29, SP                                                ; +0xc, 0xc9277c\nSTP             X19, X20, [SP,#0xC0+var_B0]                            ; +0x10, 0xc92780\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0xc92784\nSTR             X23, [SP,#0xC0+var_90]                                 ; +0x18, 0xc92788\nSTP             X21, X22, [SP,#0xC0+var_A0]                            ; +0x1c, 0xc9278c\nLDR             X3, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xc92790\nLDRB            W0, [X0,#0x420]                                        ; +0x24, 0xc92794\nLDR             X3, [X3]                                               ; +0x28, 0xc92798\nSTR             X3, [X29,#0xC0+var_8]                                  ; +0x2c, 0xc9279c\nTBZ             W0, #0, loc_C927A8                                     ; +0x30, 0xc927a0\nLDR             X1, [X2,#0x430]; char *                                ; +0x34, 0xc927a4\nADRP            X0, #aBanCgSCFromCyT@PAGE; \"Ban <cg>%s</c> from <cy>Trending</c>?\\n\"... ; +0x38, 0xc927a8\nADD             X19, X2, #0x410                                        ; +0x3c, 0xc927ac\nADD             X0, X0, #aBanCgSCFromCyT@PAGEOFF; \"Ban <cg>%s</c> from <cy>Trending</c>?\\n\"... ; +0x40, 0xc927b0\nADD             X23, X29, #0xC0+var_68                                 ; +0x44, 0xc927b4\nADD             X22, X29, #0xC0+var_50                                 ; +0x48, 0xc927b8\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x4c, 0xc927bc\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x50, 0xc927c0\nSTR             XZR, [X29,#0xC0+var_68]                                ; +0x54, 0xc927c4\nSTR             X0, [X29,#0xC0+var_78]                                 ; +0x58, 0xc927c8\nSTR             XZR, [X29,#0xC0+var_60]                                ; +0x5c, 0xc927cc\nSTR             XZR, [X29,#0xC0+var_58]                                ; +0x60, 0xc927d0\nBL              .strlen                                                ; +0x64, 0xc927d4\nLDR             X1, [X29,#0xC0+var_78]                                 ; +0x68, 0xc927d8\nMOV             X2, X0                                                 ; +0x6c, 0xc927dc\nMOV             X0, X23                                                ; +0x70, 0xc927e0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x74, 0xc927e4\nMOV             X8, X22                                                ; +0x78, 0xc927e8\nBL              _ZN11ReportPopup32reasonIndicesForUploadModerationEv; ReportPopup::reasonIndicesForUploadModeration(void) ; +0x7c, 0xc927ec\nADD             X21, X29, #0xC0+var_38                                 ; +0x80, 0xc927f0\nADRP            X1, #byte_11B8890@PAGE                                 ; +0x84, 0xc927f4\nMOV             X0, X21                                                ; +0x88, 0xc927f8\nADD             X1, X1, #byte_11B8890@PAGEOFF                          ; +0x8c, 0xc927fc\nMOV             X2, #0                                                 ; +0x90, 0xc92800\nSTR             XZR, [X29,#0xC0+var_38]                                ; +0x94, 0xc92804\nSTR             XZR, [X29,#0xC0+var_30]                                ; +0x98, 0xc92808\nSTR             XZR, [X29,#0xC0+var_28]                                ; +0x9c, 0xc9280c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xa0, 0xc92810\nADRP            X2, #aConfirmBan@PAGE; \"Confirm Ban\"                   ; +0xa4, 0xc92814\nADRP            X4, #(aMessageBan_0+8)@PAGE; \"Ban\"                     ; +0xa8, 0xc92818\nMOV             X0, X19                                                ; +0xac, 0xc9281c\nMOV             W1, #9                                                 ; +0xb0, 0xc92820\nADD             X2, X2, #aConfirmBan@PAGEOFF; \"Confirm Ban\"            ; +0xb4, 0xc92824\nMOV             X3, X23                                                ; +0xb8, 0xc92828\nADD             X4, X4, #(aMessageBan_0+8)@PAGEOFF; \"Ban\"              ; +0xbc, 0xc9282c\nMOV             X5, X22                                                ; +0xc0, 0xc92830\nMOV             X6, X21                                                ; +0xc4, 0xc92834\nMOV             W7, #1                                                 ; +0xc8, 0xc92838\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) ; +0xcc, 0xc9283c\nMOV             X19, X0                                                ; +0xd0, 0xc92840\nLDRB            W0, [X29,#0xC0+var_38]                                 ; +0xd4, 0xc92844\nTBNZ            W0, #0, loc_C9290C                                     ; +0xd8, 0xc92848\nLDR             X0, [X29,#0xC0+var_50]; void *                         ; +0xdc, 0xc9284c\nCBZ             X0, loc_C92878                                         ; +0xe0, 0xc92850\nLDR             X1, [X29,#0xC0+var_48]                                 ; +0xe4, 0xc92854\nCMP             X0, X1                                                 ; +0xe8, 0xc92858\nB.EQ            loc_C92874                                             ; +0xec, 0xc9285c\nSUB             X2, X1, #4                                             ; +0xf0, 0xc92860\nSUB             X2, X2, X0                                             ; +0xf4, 0xc92864\nMVN             X2, X2,LSR#2                                           ; +0xf8, 0xc92868\nADD             X2, X1, X2,LSL#2                                       ; +0xfc, 0xc9286c\nSTR             X2, [X29,#0xC0+var_48]                                 ; +0x100, 0xc92870\nBL              _ZdlPv; operator delete(void *)                        ; +0x104, 0xc92874\nADD             X21, X29, #0xC0+var_20                                 ; +0x108, 0xc92878\nADRP            X1, #aThePlayerIsNot@PAGE; \"The player is not told. The reason and \"... ; +0x10c, 0xc9287c\nMOV             X0, X21                                                ; +0x110, 0xc92880\nADD             X1, X1, #aThePlayerIsNot@PAGEOFF; \"The player is not told. The reason and \"... ; +0x114, 0xc92884\nMOV             X2, #0xBB                                              ; +0x118, 0xc92888\nSTR             XZR, [X29,#0xC0+var_20]                                ; +0x11c, 0xc9288c\nSTR             XZR, [X29,#0xC0+var_18]                                ; +0x120, 0xc92890\nSTR             XZR, [X29,#0xC0+var_10]                                ; +0x124, 0xc92894\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x128, 0xc92898\nADRP            X1, #aTrendingBan@PAGE; \"Trending Ban\"                 ; +0x12c, 0xc9289c\nMOV             X0, X19                                                ; +0x130, 0xc928a0\nADD             X1, X1, #aTrendingBan@PAGEOFF; \"Trending Ban\"          ; +0x134, 0xc928a4\nMOV             X2, X21                                                ; +0x138, 0xc928a8\nBL              _ZN23AdminActionConfirmPopup7addHelpEPKcRKNSt6__ndk112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE; AdminActionConfirmPopup::addHelp(char const*,std::string const&) ; +0x13c, 0xc928ac\nLDRB            W0, [X29,#0xC0+var_20]                                 ; +0x140, 0xc928b0\nTBNZ            W0, #0, loc_C92900                                     ; +0x144, 0xc928b4\nLDR             X1, [X19]                                              ; +0x148, 0xc928b8\nMOV             X0, X19                                                ; +0x14c, 0xc928bc\nLDR             X1, [X1,#0x520]                                        ; +0x150, 0xc928c0\nBLR             X1                                                     ; +0x154, 0xc928c4\nLDRB            W0, [X29,#0xC0+var_68]                                 ; +0x158, 0xc928c8\nTBZ             W0, #0, loc_C928D8                                     ; +0x15c, 0xc928cc\nLDR             X0, [X29,#0xC0+var_58]; void *                         ; +0x160, 0xc928d0\nBL              _ZdlPv; operator delete(void *)                        ; +0x164, 0xc928d4\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x168, 0xc928d8\nLDR             X1, [X29,#0xC0+var_8]                                  ; +0x16c, 0xc928dc\nLDR             X0, [X20]                                              ; +0x170, 0xc928e0\nCMP             X1, X0                                                 ; +0x174, 0xc928e4\nB.NE            loc_C92980                                             ; +0x178, 0xc928e8\nLDP             X19, X20, [SP,#0xC0+var_B0]                            ; +0x17c, 0xc928ec\nLDP             X21, X22, [SP,#0xC0+var_A0]                            ; +0x180, 0xc928f0\nLDR             X23, [SP,#0xC0+var_90]                                 ; +0x184, 0xc928f4\nLDP             X29, X30, [SP+0xC0+var_C0],#0xC0                       ; +0x188, 0xc928f8\nRET                                                                    ; +0x18c, 0xc928fc\nLDR             X0, [X29,#0xC0+var_10]; void *                         ; +0x190, 0xc92900\nBL              _ZdlPv; operator delete(void *)                        ; +0x194, 0xc92904\nB               loc_C928B8                                             ; +0x198, 0xc92908\nLDR             X0, [X29,#0xC0+var_28]; void *                         ; +0x19c, 0xc9290c\nBL              _ZdlPv; operator delete(void *)                        ; +0x1a0, 0xc92910\nB               loc_C9284C                                             ; +0x1a4, 0xc92914\nLDRB            W1, [X29,#0xC0+var_38]                                 ; +0x1a8, 0xc92918\nMOV             X19, X0                                                ; +0x1ac, 0xc9291c\nTBZ             W1, #0, loc_C9292C                                     ; +0x1b0, 0xc92920\nLDR             X0, [X29,#0xC0+var_28]; void *                         ; +0x1b4, 0xc92924\nBL              _ZdlPv; operator delete(void *)                        ; +0x1b8, 0xc92928\nLDR             X1, [X29,#0xC0+var_50]                                 ; +0x1bc, 0xc9292c\nCBZ             X1, loc_C92950                                         ; +0x1c0, 0xc92930\nLDR             X2, [X29,#0xC0+var_48]                                 ; +0x1c4, 0xc92934\nMOV             X0, X1; void *                                         ; +0x1c8, 0xc92938\nSUB             X1, X2, X1                                             ; +0x1cc, 0xc9293c\nLSR             X1, X1, #2                                             ; +0x1d0, 0xc92940\nSUB             X1, X2, X1,LSL#2                                       ; +0x1d4, 0xc92944\nSTR             X1, [X29,#0xC0+var_48]                                 ; +0x1d8, 0xc92948\nBL              _ZdlPv; operator delete(void *)                        ; +0x1dc, 0xc9294c\nLDRB            W0, [X29,#0xC0+var_68]                                 ; +0x1e0, 0xc92950\nTBZ             W0, #0, loc_C92960                                     ; +0x1e4, 0xc92954\nLDR             X0, [X29,#0xC0+var_58]; void *                         ; +0x1e8, 0xc92958\nBL              _ZdlPv; operator delete(void *)                        ; +0x1ec, 0xc9295c\nMOV             X0, X19                                                ; +0x1f0, 0xc92960\nBL              _Unwind_Resume                                         ; +0x1f4, 0xc92964\nLDRB            W1, [X29,#0xC0+var_20]                                 ; +0x1f8, 0xc92968\nMOV             X19, X0                                                ; +0x1fc, 0xc9296c\nTBZ             W1, #0, loc_C92950                                     ; +0x200, 0xc92970\nLDR             X0, [X29,#0xC0+var_10]; void *                         ; +0x204, 0xc92974\nBL              _ZdlPv; operator delete(void *)                        ; +0x208, 0xc92978\nB               loc_C92950                                             ; +0x20c, 0xc9297c\nBL              .__stack_chk_fail                                      ; +0x210, 0xc92980\nMOV             X19, X0                                                ; +0x214, 0xc92984\nB               loc_C9292C                                             ; +0x218, 0xc92988\nMOV             X19, X0                                                ; +0x21c, 0xc9298c\nB               loc_C92950                                             ; +0x220, 0xc92990", "xrefs": ["<???> @ 0x54c58", "AccountBanPopup::init @ 0xc94fcc", "<???> @ 0x1541de0"], "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"}