{"type": "func", "start": 13181136, "end": 13181560, "name": "AccountBanPopup::onCommentUnban", "pseudocode": "// \n// AccountBanPopup::onCommentUnban from 0xc920d0 to 0xc92278 (424 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xf2e60\n// > AccountBanPopup::init @ 0xc93bb0\n// > <???> @ 0x15475b0\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::onCommentUnban(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  __int64 v6; // x0\n  char *CString; // [xsp+38h] [xbp+38h]\n  __int64 v9[2]; // [xsp+40h] [xbp+40h] BYREF\n  void *v10; // [xsp+50h] [xbp+50h]\n  void *v11; // [xsp+58h] [xbp+58h] BYREF\n  char *v12; // [xsp+60h] [xbp+60h]\n  __int64 v13; // [xsp+68h] [xbp+68h]\n  __int64 v14[2]; // [xsp+70h] [xbp+70h] BYREF\n  void *v15; // [xsp+80h] [xbp+80h]\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 *)\"Lift <cg>all</c> comment bans (permanent and temporary) for <cg>%s</c>?\",\n                              v2);\n  v9[0] = 0;\n  CString = (char *)cocos2d::CCString::getCString(v4);\n  v9[1] = 0;\n  v10 = nullptr;\n  v5 = strlen(CString);\n  std::string::__init(v9, CString, v5);\n  v11 = nullptr;\n  v12 = nullptr;\n  v13 = 0;\n  v14[0] = 0;\n  v14[1] = 0;\n  v15 = nullptr;\n  std::string::__init(v14, &byte_11B8890, 0);\n  v6 = AdminActionConfirmPopup::create(\n         (__int64)v3,\n         3,\n         \"Confirm Unban\",\n         (char *)v9,\n         (ButtonSprite *)\"Unban\",\n         (__int64)&v11,\n         (__int64)v14,\n         1);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);\n  if ( (v14[0] & 1) != 0 )\n    operator delete(v15);\n  if ( v11 )\n  {\n    if ( v11 != v12 )\n      v12 += 4 * ~((unsigned __int64)(v12 - 4 - (_BYTE *)v11) >> 2);\n    operator delete(v11);\n  }\n  if ( (v9[0] & 1) != 0 )\n    operator delete(v10);\n  return _stack_chk_guard;\n}", "assembly": "; \n; AccountBanPopup::onCommentUnban from 0xc920d0 to 0xc92278 (424 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xf2e60\n; > AccountBanPopup::init @ 0xc93bb0\n; > <???> @ 0x15475b0\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_90]!                                ; +0x0, 0xc920d0\nMOV             X2, X0                                                 ; +0x4, 0xc920d4\nADD             X1, X0, #0x421                                         ; +0x8, 0xc920d8\nMOV             X29, SP                                                ; +0xc, 0xc920dc\nSTP             X19, X20, [SP,#0x90+var_80]                            ; +0x10, 0xc920e0\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0xc920e4\nSTP             X21, X22, [SP,#0x90+var_70]                            ; +0x18, 0xc920e8\nLDR             X3, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xc920ec\nLDRB            W0, [X0,#0x420]                                        ; +0x20, 0xc920f0\nLDR             X3, [X3]                                               ; +0x24, 0xc920f4\nSTR             X3, [X29,#0x90+var_8]                                  ; +0x28, 0xc920f8\nTBZ             W0, #0, loc_C92104                                     ; +0x2c, 0xc920fc\nLDR             X1, [X2,#0x430]; char *                                ; +0x30, 0xc92100\nADRP            X0, #aLiftCgAllCComm@PAGE; \"Lift <cg>all</c> comment bans (permanen\"... ; +0x34, 0xc92104\nADD             X19, X2, #0x410                                        ; +0x38, 0xc92108\nADD             X0, X0, #aLiftCgAllCComm@PAGEOFF; \"Lift <cg>all</c> comment bans (permanen\"... ; +0x3c, 0xc9210c\nADD             X22, X29, #0x90+var_50                                 ; +0x40, 0xc92110\nADD             X21, X29, #0x90+var_20                                 ; +0x44, 0xc92114\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x48, 0xc92118\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x4c, 0xc9211c\nSTR             XZR, [X29,#0x90+var_50]                                ; +0x50, 0xc92120\nSTR             X0, [X29,#0x90+var_58]                                 ; +0x54, 0xc92124\nSTR             XZR, [X29,#0x90+var_48]                                ; +0x58, 0xc92128\nSTR             XZR, [X29,#0x90+var_40]                                ; +0x5c, 0xc9212c\nBL              .strlen                                                ; +0x60, 0xc92130\nLDR             X1, [X29,#0x90+var_58]                                 ; +0x64, 0xc92134\nMOV             X2, X0                                                 ; +0x68, 0xc92138\nMOV             X0, X22                                                ; +0x6c, 0xc9213c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x70, 0xc92140\nSTR             XZR, [X29,#0x90+var_38]                                ; +0x74, 0xc92144\nADRP            X1, #byte_11B8890@PAGE                                 ; +0x78, 0xc92148\nMOV             X0, X21                                                ; +0x7c, 0xc9214c\nADD             X1, X1, #byte_11B8890@PAGEOFF                          ; +0x80, 0xc92150\nMOV             X2, #0                                                 ; +0x84, 0xc92154\nSTR             XZR, [X29,#0x90+var_30]                                ; +0x88, 0xc92158\nSTR             XZR, [X29,#0x90+var_28]                                ; +0x8c, 0xc9215c\nSTR             XZR, [X29,#0x90+var_20]                                ; +0x90, 0xc92160\nSTR             XZR, [X29,#0x90+var_18]                                ; +0x94, 0xc92164\nSTR             XZR, [X29,#0x90+var_10]                                ; +0x98, 0xc92168\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x9c, 0xc9216c\nADRP            X2, #aConfirmUnban@PAGE; \"Confirm Unban\"               ; +0xa0, 0xc92170\nADRP            X4, #(aMessageUnban_0+8)@PAGE; \"Unban\"                 ; +0xa4, 0xc92174\nMOV             X0, X19                                                ; +0xa8, 0xc92178\nMOV             W1, #3                                                 ; +0xac, 0xc9217c\nADD             X2, X2, #aConfirmUnban@PAGEOFF; \"Confirm Unban\"        ; +0xb0, 0xc92180\nMOV             X3, X22                                                ; +0xb4, 0xc92184\nADD             X4, X4, #(aMessageUnban_0+8)@PAGEOFF; \"Unban\"          ; +0xb8, 0xc92188\nADD             X5, X29, #0x90+var_38                                  ; +0xbc, 0xc9218c\nMOV             X6, X21                                                ; +0xc0, 0xc92190\nMOV             W7, #1                                                 ; +0xc4, 0xc92194\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, 0xc92198\nLDR             X1, [X0]                                               ; +0xcc, 0xc9219c\nLDR             X1, [X1,#0x520]                                        ; +0xd0, 0xc921a0\nBLR             X1                                                     ; +0xd4, 0xc921a4\nLDRB            W0, [X29,#0x90+var_20]                                 ; +0xd8, 0xc921a8\nTBNZ            W0, #0, loc_C92210                                     ; +0xdc, 0xc921ac\nLDR             X0, [X29,#0x90+var_38]; void *                         ; +0xe0, 0xc921b0\nCBZ             X0, loc_C921DC                                         ; +0xe4, 0xc921b4\nLDR             X1, [X29,#0x90+var_30]                                 ; +0xe8, 0xc921b8\nCMP             X0, X1                                                 ; +0xec, 0xc921bc\nB.EQ            loc_C921D8                                             ; +0xf0, 0xc921c0\nSUB             X2, X1, #4                                             ; +0xf4, 0xc921c4\nSUB             X2, X2, X0                                             ; +0xf8, 0xc921c8\nMVN             X2, X2,LSR#2                                           ; +0xfc, 0xc921cc\nADD             X2, X1, X2,LSL#2                                       ; +0x100, 0xc921d0\nSTR             X2, [X29,#0x90+var_30]                                 ; +0x104, 0xc921d4\nBL              _ZdlPv; operator delete(void *)                        ; +0x108, 0xc921d8\nLDRB            W0, [X29,#0x90+var_50]                                 ; +0x10c, 0xc921dc\nTBZ             W0, #0, loc_C921EC                                     ; +0x110, 0xc921e0\nLDR             X0, [X29,#0x90+var_40]; void *                         ; +0x114, 0xc921e4\nBL              _ZdlPv; operator delete(void *)                        ; +0x118, 0xc921e8\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x11c, 0xc921ec\nLDR             X1, [X29,#0x90+var_8]                                  ; +0x120, 0xc921f0\nLDR             X0, [X20]                                              ; +0x124, 0xc921f4\nCMP             X1, X0                                                 ; +0x128, 0xc921f8\nB.NE            loc_C9221C                                             ; +0x12c, 0xc921fc\nLDP             X19, X20, [SP,#0x90+var_80]                            ; +0x130, 0xc92200\nLDP             X21, X22, [SP,#0x90+var_70]                            ; +0x134, 0xc92204\nLDP             X29, X30, [SP+0x90+var_90],#0x90                       ; +0x138, 0xc92208\nRET                                                                    ; +0x13c, 0xc9220c\nLDR             X0, [X29,#0x90+var_10]; void *                         ; +0x140, 0xc92210\nBL              _ZdlPv; operator delete(void *)                        ; +0x144, 0xc92214\nB               loc_C921B0                                             ; +0x148, 0xc92218\nBL              .__stack_chk_fail                                      ; +0x14c, 0xc9221c\nLDRB            W1, [X29,#0x90+var_20]                                 ; +0x150, 0xc92220\nMOV             X19, X0                                                ; +0x154, 0xc92224\nTBZ             W1, #0, loc_C92234                                     ; +0x158, 0xc92228\nLDR             X0, [X29,#0x90+var_10]; void *                         ; +0x15c, 0xc9222c\nBL              _ZdlPv; operator delete(void *)                        ; +0x160, 0xc92230\nLDR             X1, [X29,#0x90+var_38]                                 ; +0x164, 0xc92234\nCBZ             X1, loc_C92258                                         ; +0x168, 0xc92238\nLDR             X2, [X29,#0x90+var_30]                                 ; +0x16c, 0xc9223c\nMOV             X0, X1; void *                                         ; +0x170, 0xc92240\nSUB             X1, X2, X1                                             ; +0x174, 0xc92244\nLSR             X1, X1, #2                                             ; +0x178, 0xc92248\nSUB             X1, X2, X1,LSL#2                                       ; +0x17c, 0xc9224c\nSTR             X1, [X29,#0x90+var_30]                                 ; +0x180, 0xc92250\nBL              _ZdlPv; operator delete(void *)                        ; +0x184, 0xc92254\nLDRB            W0, [X29,#0x90+var_50]                                 ; +0x188, 0xc92258\nTBZ             W0, #0, loc_C92268                                     ; +0x18c, 0xc9225c\nLDR             X0, [X29,#0x90+var_40]; void *                         ; +0x190, 0xc92260\nBL              _ZdlPv; operator delete(void *)                        ; +0x194, 0xc92264\nMOV             X0, X19                                                ; +0x198, 0xc92268\nBL              _Unwind_Resume                                         ; +0x19c, 0xc9226c\nMOV             X19, X0                                                ; +0x1a0, 0xc92270\nB               loc_C92234                                             ; +0x1a4, 0xc92274", "xrefs": ["<???> @ 0xf2e60", "AccountBanPopup::init @ 0xc93bb0", "<???> @ 0x15475b0"], "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"}