{"type": "func", "start": 7751096, "end": 7751322, "name": "AccountBanPopup::onTrendingUnban", "pseudocode": "// \n// AccountBanPopup::onTrendingUnban from 0x7645b8 to 0x76469a (226 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::onTrendingUnban(AccountBanPopup *this, cocos2d::CCObject *a2)\n{\n  int v3; // r3\n  int v4; // r2\n  const char *v5; // r1\n  char *v6; // r0\n  cocos2d::CCString *v7; // r0\n  char *CString; // r0\n  int v9; // r0\n  int v11[3]; // [sp+10h] [bp-28h] BYREF\n  char *v12[3]; // [sp+1Ch] [bp-1Ch] BYREF\n  int v13[3]; // [sp+28h] [bp-10h] BYREF\n\n  v3 = *((unsigned __int8 *)this + 732);\n  memset(v11, 0, sizeof(v11));\n  v4 = *((_DWORD *)this + 189);\n  if ( v4 == 2 )\n  {\n    v4 = v3 << 31;\n    if ( (v3 & 1) != 0 )\n      v5 = *((const char **)this + 185);\n    else\n      v5 = (char *)this + 733;\n    v6 = \"Lift the <cy>Trending</c> ban for <cg>%s</c>?\";\n  }\n  else\n  {\n    if ( (v3 & 1) != 0 )\n      v5 = *((const char **)this + 185);\n    else\n      v5 = (char *)this + 733;\n    v6 = \"Allow <cg>%s</c> on <cy>Trending</c>?\\nOnly creators with a rated or sent level trend by default.\";\n  }\n  v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v6, v5, v4);\n  CString = (char *)cocos2d::CCString::getCString(v7);\n  std::string::assign(v11, CString);\n  memset(v12, 0, sizeof(v12));\n  memset(v13, 0, sizeof(v13));\n  std::string::__init(v13, &unk_B6B226, 0);\n  v9 = AdminActionConfirmPopup::create(\n         (int)this + 724,\n         10,\n         \"Confirm Allow\",\n         (int)v11,\n         (ButtonSprite *)\"Allow\",\n         v12,\n         (unsigned __int8 *)v13,\n         1);\n  (*(void (__fastcall **)(int))(*(_DWORD *)v9 + 656))(v9);\n  std::string::~string((int)v13);\n  std::__vector_base<int>::~__vector_base(v12);\n  return std::string::~string((int)v11);\n}", "assembly": "; \n; AccountBanPopup::onTrendingUnban from 0x7645b8 to 0x76469a (226 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; \nLDR             R3, =(__stack_chk_guard_ptr - 0x7645C2)                ; +0x0, 0x7645b8\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x7645ba\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x7645be\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x7645c0\nSUB             SP, SP, #0x38                                          ; +0xa, 0x7645c2\nMOV             R4, R0                                                 ; +0xc, 0x7645c4\nLDR             R2, [R3]                                               ; +0xe, 0x7645c6\nMOV             R7, R3                                                 ; +0x10, 0x7645c8\nADD             R5, SP, #0x38+var_28                                   ; +0x12, 0x7645ca\nLDRB.W          R3, [R0,#0x2DC]                                        ; +0x14, 0x7645cc\nSTR             R2, [SP,#0x38+var_4]                                   ; +0x18, 0x7645d0\nMOVS            R2, #0                                                 ; +0x1a, 0x7645d2\nSTR             R2, [SP,#0x38+var_28]                                  ; +0x1c, 0x7645d4\nSTR             R2, [SP,#0x38+var_24]                                  ; +0x1e, 0x7645d6\nSTR             R2, [SP,#0x38+var_20]                                  ; +0x20, 0x7645d8\nLDR.W           R2, [R0,#0x2F4]                                        ; +0x22, 0x7645da\nCMP             R2, #2                                                 ; +0x26, 0x7645de\nBNE             loc_764626                                             ; +0x28, 0x7645e0\nLSLS            R2, R3, #0x1F                                          ; +0x2a, 0x7645e2\nITE PL                                                                 ; +0x2c, 0x7645e4\nADDWPL          R1, R0, #0x2DD                                         ; +0x2e, 0x7645e6\nLDRMI.W         R1, [R0,#0x2E4]; char *                                ; +0x32, 0x7645ea\nLDR             R0, =(aLiftTheCyTrend - 0x7645F4); \"Lift the <cy>Trending</c> ban for <cg>%\"... ; +0x36, 0x7645ee\nADD             R0, PC; \"Lift the <cy>Trending</c> ban for <cg>%\"...   ; +0x38, 0x7645f0\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x3a, 0x7645f2\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x3e, 0x7645f6\nMOV             R1, R0; char *                                         ; +0x42, 0x7645fa\nMOV             R0, R5; int                                            ; +0x44, 0x7645fc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x46, 0x7645fe\nADD             R6, SP, #0x38+var_10                                   ; +0x4a, 0x764602\nLDR             R1, =(unk_B6B226 - 0x764612)                           ; +0x4c, 0x764604\nMOVS            R2, #0                                                 ; +0x4e, 0x764606\nADD.W           R4, R4, #0x2D4                                         ; +0x50, 0x764608\nMOV             R0, R6                                                 ; +0x54, 0x76460c\nADD             R1, PC; unk_B6B226                                     ; +0x56, 0x76460e\nSTR             R2, [SP,#0x38+var_1C]                                  ; +0x58, 0x764610\nADD.W           R8, SP, #0x38+var_1C                                   ; +0x5a, 0x764612\nSTR             R2, [SP,#0x38+var_18]                                  ; +0x5e, 0x764616\nSTR             R2, [SP,#0x38+var_14]                                  ; +0x60, 0x764618\nSTR             R2, [SP,#0x38+var_10]                                  ; +0x62, 0x76461a\nSTR             R2, [SP,#0x38+var_C]                                   ; +0x64, 0x76461c\nSTR             R2, [SP,#0x38+var_8]                                   ; +0x66, 0x76461e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x68, 0x764620\nB               loc_764638                                             ; +0x6c, 0x764624\nLSLS            R3, R3, #0x1F                                          ; +0x6e, 0x764626\nITE PL                                                                 ; +0x70, 0x764628\nADDWPL          R1, R0, #0x2DD                                         ; +0x72, 0x76462a\nLDRMI.W         R1, [R0,#0x2E4]                                        ; +0x76, 0x76462e\nLDR             R0, =(aAllowCgSCOnCyT - 0x764638); \"Allow <cg>%s</c> on <cy>Trending</c>?\\n\"... ; +0x7a, 0x764632\nADD             R0, PC; \"Allow <cg>%s</c> on <cy>Trending</c>?\\n\"...   ; +0x7c, 0x764634\nB               loc_7645F2                                             ; +0x7e, 0x764636\nLDR             R3, =(aAllow - 0x764644); \"Allow\"                      ; +0x80, 0x764638\nMOV             R0, R4                                                 ; +0x82, 0x76463a\nLDR             R2, =(aConfirmAllow - 0x76464C); \"Confirm Allow\"       ; +0x84, 0x76463c\nMOVS            R1, #0xA                                               ; +0x86, 0x76463e\nADD             R3, PC; \"Allow\"                                        ; +0x88, 0x764640\nSTR             R6, [SP,#0x38+var_30]                                  ; +0x8a, 0x764642\nSTMEA.W         SP, {R3,R8}                                            ; +0x8c, 0x764644\nADD             R2, PC; \"Confirm Allow\"                                ; +0x90, 0x764648\nMOVS            R3, #1                                                 ; +0x92, 0x76464a\nSTR             R3, [SP,#0x38+var_2C]                                  ; +0x94, 0x76464c\nMOV             R3, R5                                                 ; +0x96, 0x76464e\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) ; +0x98, 0x764650\nLDR             R3, [R0]                                               ; +0x9c, 0x764654\nLDR.W           R3, [R3,#0x290]                                        ; +0x9e, 0x764656\nBLX             R3                                                     ; +0xa2, 0x76465a\nMOV             R0, R6                                                 ; +0xa4, 0x76465c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa6, 0x76465e\nMOV             R0, R8                                                 ; +0xaa, 0x764662\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0xac, 0x764664\nMOV             R0, R5                                                 ; +0xb0, 0x764668\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb2, 0x76466a\nLDR             R2, [SP,#0x38+var_4]                                   ; +0xb6, 0x76466e\nLDR             R3, [R7]                                               ; +0xb8, 0x764670\nCMP             R2, R3                                                 ; +0xba, 0x764672\nBEQ             loc_764694                                             ; +0xbc, 0x764674\nBLX             __stack_chk_fail                                       ; +0xbe, 0x764676\nMOV             R0, R6                                                 ; +0xc2, 0x76467a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xc4, 0x76467c\nB               loc_764682                                             ; +0xc8, 0x764680\nMOV             R0, R8                                                 ; +0xca, 0x764682\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0xcc, 0x764684\nB               loc_76468A                                             ; +0xd0, 0x764688\nMOV             R0, R5                                                 ; +0xd2, 0x76468a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xd4, 0x76468c\nBL              __cxa_end_cleanup                                      ; +0xd8, 0x764690\nADD             SP, SP, #0x38 ; '8'                                    ; +0xdc, 0x764694\nPOP.W           {R4-R8,PC}                                             ; +0xde, 0x764696", "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"}