{"type": "func", "start": 7747660, "end": 7747916, "name": "AccountBanPopup::onTrendingBan", "pseudocode": "// \n// AccountBanPopup::onTrendingBan from 0x76384c to 0x76394c (256 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:06 +0000\n// \n\nint __fastcall AccountBanPopup::onTrendingBan(AccountBanPopup *this, cocos2d::CCObject *a2)\n{\n  char *v2; // r6\n  cocos2d::CCString *v3; // r0\n  const char *CString; // r8\n  size_t v5; // r0\n  int v6; // r6\n  int v8[3]; // [sp+14h] [bp+0h] BYREF\n  char *v9[3]; // [sp+20h] [bp+Ch] BYREF\n  int v10[3]; // [sp+2Ch] [bp+18h] BYREF\n  int v11[3]; // [sp+38h] [bp+24h] BYREF\n\n  v2 = (char *)this + 724;\n  if ( (*((_BYTE *)this + 732) & 1) != 0 )\n    v3 = (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                                *((const char **)this + 185));\n  else\n    v3 = (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                                (const char *)this + 733);\n  memset(v8, 0, sizeof(v8));\n  CString = (const char *)cocos2d::CCString::getCString(v3);\n  v5 = strlen(CString);\n  std::string::__init(v8, CString, v5);\n  ReportPopup::reasonIndicesForUploadModeration((ReportPopup *)v9);\n  memset(v10, 0, sizeof(v10));\n  std::string::__init(v10, &unk_B6B226, 0);\n  v6 = AdminActionConfirmPopup::create(\n         (int)v2,\n         9,\n         \"Confirm Ban\",\n         (int)v8,\n         (ButtonSprite *)\"Ban\",\n         v9,\n         (unsigned __int8 *)v10,\n         1);\n  std::string::~string((int)v10);\n  std::__vector_base<int>::~__vector_base(v9);\n  memset(v11, 0, sizeof(v11));\n  std::string::__init(\n    v11,\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(v6, \"Trending Ban\", (int)v11);\n  std::string::~string((int)v11);\n  (*(void (__fastcall **)(int))(*(_DWORD *)v6 + 656))(v6);\n  return std::string::~string((int)v8);\n}", "assembly": "; \n; AccountBanPopup::onTrendingBan from 0x76384c to 0x76394c (256 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:06 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x76384c\nSUB             SP, SP, #0x48                                          ; +0x4, 0x763850\nLDR             R5, =(__stack_chk_guard_ptr - 0x76385E)                ; +0x6, 0x763852\nMOV             R6, R0                                                 ; +0x8, 0x763854\nMOVS            R4, #0                                                 ; +0xa, 0x763856\nADD             R7, SP, #0x14                                          ; +0xc, 0x763858\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x76385a\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x76385c\nADD.W           R6, R6, #0x2D4                                         ; +0x12, 0x76385e\nLDR             R3, [R5]                                               ; +0x16, 0x763862\nSTR             R3, [SP,#0x48+var_4]                                   ; +0x18, 0x763864\nLDRB.W          R3, [R0,#0x2DC]                                        ; +0x1a, 0x763866\nLSLS            R3, R3, #0x1F                                          ; +0x1e, 0x76386a\nITE PL                                                                 ; +0x20, 0x76386c\nADDWPL          R1, R0, #0x2DD                                         ; +0x22, 0x76386e\nLDRMI.W         R1, [R0,#0x2E4]; char *                                ; +0x26, 0x763872\nLDR             R0, =(aBanCgSCFromCyT - 0x76387C); \"Ban <cg>%s</c> from <cy>Trending</c>?\\n\"... ; +0x2a, 0x763876\nADD             R0, PC; \"Ban <cg>%s</c> from <cy>Trending</c>?\\n\"...   ; +0x2c, 0x763878\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x2e, 0x76387a\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x32, 0x76387e\nSTR             R4, [SP,#0x48+var_34]                                  ; +0x36, 0x763882\nSTR             R4, [SP,#0x48+var_30]                                  ; +0x38, 0x763884\nSTR             R4, [SP,#0x48+var_2C]                                  ; +0x3a, 0x763886\nMOV             R8, R0                                                 ; +0x3c, 0x763888\nBLX             strlen                                                 ; +0x3e, 0x76388a\nMOV             R1, R8                                                 ; +0x42, 0x76388e\nADD.W           R8, SP, #0x48+var_28                                   ; +0x44, 0x763890\nMOV             R2, R0                                                 ; +0x48, 0x763894\nMOV             R0, R7                                                 ; +0x4a, 0x763896\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x4c, 0x763898\nMOV             R0, R8; this                                           ; +0x50, 0x76389c\nBL              _ZN11ReportPopup32reasonIndicesForUploadModerationEv; ReportPopup::reasonIndicesForUploadModeration(void) ; +0x52, 0x76389e\nSTR             R4, [SP,#0x48+var_1C]                                  ; +0x56, 0x7638a2\nMOVS            R2, #0                                                 ; +0x58, 0x7638a4\nSTR             R4, [SP,#0x48+var_18]                                  ; +0x5a, 0x7638a6\nSTR             R4, [SP,#0x48+var_14]                                  ; +0x5c, 0x7638a8\nADD             R4, SP, #0x48+var_1C                                   ; +0x5e, 0x7638aa\nLDR             R1, =(unk_B6B226 - 0x7638B4)                           ; +0x60, 0x7638ac\nMOV             R0, R4                                                 ; +0x62, 0x7638ae\nADD             R1, PC; unk_B6B226                                     ; +0x64, 0x7638b0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x66, 0x7638b2\nLDR             R3, =(aBan - 0x7638C2); \"Ban\"                          ; +0x6a, 0x7638b6\nMOV             R0, R6                                                 ; +0x6c, 0x7638b8\nLDR             R2, =(aConfirmBan - 0x7638CA); \"Confirm Ban\"           ; +0x6e, 0x7638ba\nMOVS            R1, #9                                                 ; +0x70, 0x7638bc\nADD             R3, PC; \"Ban\"                                          ; +0x72, 0x7638be\nSTR             R4, [SP,#0x48+var_40]                                  ; +0x74, 0x7638c0\nSTMEA.W         SP, {R3,R8}                                            ; +0x76, 0x7638c2\nADD             R2, PC; \"Confirm Ban\"                                  ; +0x7a, 0x7638c6\nMOVS            R3, #1                                                 ; +0x7c, 0x7638c8\nSTR             R3, [SP,#0x48+var_3C]                                  ; +0x7e, 0x7638ca\nMOV             R3, R7                                                 ; +0x80, 0x7638cc\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) ; +0x82, 0x7638ce\nMOV             R6, R0                                                 ; +0x86, 0x7638d2\nMOV             R0, R4                                                 ; +0x88, 0x7638d4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x8a, 0x7638d6\nMOV             R0, R8                                                 ; +0x8e, 0x7638da\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0x90, 0x7638dc\nADD             R4, SP, #0x48+var_10                                   ; +0x94, 0x7638e0\nLDR             R1, =(aThePlayerIsNot - 0x7638EE); \"The player is not told. The reason and \"... ; +0x96, 0x7638e2\nMOVS            R2, #0xBB                                              ; +0x98, 0x7638e4\nMOV             R0, R4                                                 ; +0x9a, 0x7638e6\nMOVS            R3, #0                                                 ; +0x9c, 0x7638e8\nADD             R1, PC; \"The player is not told. The reason and \"...   ; +0x9e, 0x7638ea\nSTR             R3, [SP,#0x48+var_10]                                  ; +0xa0, 0x7638ec\nSTR             R3, [SP,#0x48+var_C]                                   ; +0xa2, 0x7638ee\nSTR             R3, [SP,#0x48+var_8]                                   ; +0xa4, 0x7638f0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xa6, 0x7638f2\nLDR             R1, =(aTrendingBan_0 - 0x763900); \"Trending Ban\"       ; +0xaa, 0x7638f6\nMOV             R0, R6                                                 ; +0xac, 0x7638f8\nMOV             R2, R4                                                 ; +0xae, 0x7638fa\nADD             R1, PC; \"Trending Ban\"                                 ; +0xb0, 0x7638fc\nBL              _ZN23AdminActionConfirmPopup7addHelpEPKcRKNSt6__ndk112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE; AdminActionConfirmPopup::addHelp(char const*,std::string const&) ; +0xb2, 0x7638fe\nMOV             R0, R4                                                 ; +0xb6, 0x763902\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb8, 0x763904\nLDR             R3, [R6]                                               ; +0xbc, 0x763908\nMOV             R0, R6                                                 ; +0xbe, 0x76390a\nLDR.W           R3, [R3,#0x290]                                        ; +0xc0, 0x76390c\nBLX             R3                                                     ; +0xc4, 0x763910\nMOV             R0, R7                                                 ; +0xc6, 0x763912\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xc8, 0x763914\nLDR             R2, [SP,#0x48+var_4]                                   ; +0xcc, 0x763918\nLDR             R3, [R5]                                               ; +0xce, 0x76391a\nCMP             R2, R3                                                 ; +0xd0, 0x76391c\nBEQ             loc_763946                                             ; +0xd2, 0x76391e\nBLX             __stack_chk_fail                                       ; +0xd4, 0x763920\nMOV             R0, R4                                                 ; +0xd8, 0x763924\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xda, 0x763926\nB               loc_76392C                                             ; +0xde, 0x76392a\nMOV             R0, R8                                                 ; +0xe0, 0x76392c\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0xe2, 0x76392e\nB               loc_76393C                                             ; +0xe6, 0x763932\nMOV             R0, R4                                                 ; +0xe8, 0x763934\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xea, 0x763936\nB               loc_76393C                                             ; +0xee, 0x76393a\nMOV             R0, R7                                                 ; +0xf0, 0x76393c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xf2, 0x76393e\nBL              __cxa_end_cleanup                                      ; +0xf6, 0x763942\nADD             SP, SP, #0x48 ; 'H'                                    ; +0xfa, 0x763946\nPOP.W           {R4-R8,PC}                                             ; +0xfc, 0x763948", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}