{"type": "func", "start": 13183380, "end": 13183928, "name": "AccountBanPopup::onNameLock", "pseudocode": "// \n// AccountBanPopup::onNameLock from 0xc92994 to 0xc92bb8 (548 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x941b0\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::onNameLock(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 *)\"Lock the username of <cg>%s</c>?\\n\"\n                                                   \"They can no longer change it on the website until unlocked.\",\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::reasonIndicesForTextModeration((__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         11,\n         \"Confirm Lock\",\n         (char *)v10,\n         (ButtonSprite *)\"Lock\",\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 website tells the player their username is permanently locked. The reason and categories only go to the moderato\"\n    \"r log.\\n\"\n    \"\\n\"\n    \"No duration: the lock survives the weekly name change reset until a moderator unlocks the account.\",\n    0xDEu);\n  AdminActionConfirmPopup::addHelp(v7, \"Name Lock\", (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::onNameLock from 0xc92994 to 0xc92bb8 (548 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x941b0\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, 0xc92994\nMOV             X2, X0                                                 ; +0x4, 0xc92998\nADD             X1, X0, #0x421                                         ; +0x8, 0xc9299c\nMOV             X29, SP                                                ; +0xc, 0xc929a0\nSTP             X19, X20, [SP,#0xC0+var_B0]                            ; +0x10, 0xc929a4\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0xc929a8\nSTR             X23, [SP,#0xC0+var_90]                                 ; +0x18, 0xc929ac\nSTP             X21, X22, [SP,#0xC0+var_A0]                            ; +0x1c, 0xc929b0\nLDR             X3, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xc929b4\nLDRB            W0, [X0,#0x420]                                        ; +0x24, 0xc929b8\nLDR             X3, [X3]                                               ; +0x28, 0xc929bc\nSTR             X3, [X29,#0xC0+var_8]                                  ; +0x2c, 0xc929c0\nTBZ             W0, #0, loc_C929CC                                     ; +0x30, 0xc929c4\nLDR             X1, [X2,#0x430]; char *                                ; +0x34, 0xc929c8\nADRP            X0, #aLockTheUsernam@PAGE; \"Lock the username of <cg>%s</c>?\\nThey \"... ; +0x38, 0xc929cc\nADD             X19, X2, #0x410                                        ; +0x3c, 0xc929d0\nADD             X0, X0, #aLockTheUsernam@PAGEOFF; \"Lock the username of <cg>%s</c>?\\nThey \"... ; +0x40, 0xc929d4\nADD             X23, X29, #0xC0+var_68                                 ; +0x44, 0xc929d8\nADD             X22, X29, #0xC0+var_50                                 ; +0x48, 0xc929dc\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x4c, 0xc929e0\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x50, 0xc929e4\nSTR             XZR, [X29,#0xC0+var_68]                                ; +0x54, 0xc929e8\nSTR             X0, [X29,#0xC0+var_78]                                 ; +0x58, 0xc929ec\nSTR             XZR, [X29,#0xC0+var_60]                                ; +0x5c, 0xc929f0\nSTR             XZR, [X29,#0xC0+var_58]                                ; +0x60, 0xc929f4\nBL              .strlen                                                ; +0x64, 0xc929f8\nLDR             X1, [X29,#0xC0+var_78]                                 ; +0x68, 0xc929fc\nMOV             X2, X0                                                 ; +0x6c, 0xc92a00\nMOV             X0, X23                                                ; +0x70, 0xc92a04\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x74, 0xc92a08\nMOV             X8, X22                                                ; +0x78, 0xc92a0c\nBL              _ZN11ReportPopup30reasonIndicesForTextModerationEv; ReportPopup::reasonIndicesForTextModeration(void) ; +0x7c, 0xc92a10\nADD             X21, X29, #0xC0+var_38                                 ; +0x80, 0xc92a14\nADRP            X1, #byte_11B8890@PAGE                                 ; +0x84, 0xc92a18\nMOV             X0, X21                                                ; +0x88, 0xc92a1c\nADD             X1, X1, #byte_11B8890@PAGEOFF                          ; +0x8c, 0xc92a20\nMOV             X2, #0                                                 ; +0x90, 0xc92a24\nSTR             XZR, [X29,#0xC0+var_38]                                ; +0x94, 0xc92a28\nSTR             XZR, [X29,#0xC0+var_30]                                ; +0x98, 0xc92a2c\nSTR             XZR, [X29,#0xC0+var_28]                                ; +0x9c, 0xc92a30\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xa0, 0xc92a34\nADRP            X2, #aConfirmLock@PAGE; \"Confirm Lock\"                 ; +0xa4, 0xc92a38\nADRP            X4, #(aConfirmLock+8)@PAGE; \"Lock\"                     ; +0xa8, 0xc92a3c\nMOV             X0, X19                                                ; +0xac, 0xc92a40\nMOV             W1, #0xB                                               ; +0xb0, 0xc92a44\nADD             X2, X2, #aConfirmLock@PAGEOFF; \"Confirm Lock\"          ; +0xb4, 0xc92a48\nMOV             X3, X23                                                ; +0xb8, 0xc92a4c\nADD             X4, X4, #(aConfirmLock+8)@PAGEOFF; \"Lock\"              ; +0xbc, 0xc92a50\nMOV             X5, X22                                                ; +0xc0, 0xc92a54\nMOV             X6, X21                                                ; +0xc4, 0xc92a58\nMOV             W7, #1                                                 ; +0xc8, 0xc92a5c\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, 0xc92a60\nMOV             X19, X0                                                ; +0xd0, 0xc92a64\nLDRB            W0, [X29,#0xC0+var_38]                                 ; +0xd4, 0xc92a68\nTBNZ            W0, #0, loc_C92B30                                     ; +0xd8, 0xc92a6c\nLDR             X0, [X29,#0xC0+var_50]; void *                         ; +0xdc, 0xc92a70\nCBZ             X0, loc_C92A9C                                         ; +0xe0, 0xc92a74\nLDR             X1, [X29,#0xC0+var_48]                                 ; +0xe4, 0xc92a78\nCMP             X0, X1                                                 ; +0xe8, 0xc92a7c\nB.EQ            loc_C92A98                                             ; +0xec, 0xc92a80\nSUB             X2, X1, #4                                             ; +0xf0, 0xc92a84\nSUB             X2, X2, X0                                             ; +0xf4, 0xc92a88\nMVN             X2, X2,LSR#2                                           ; +0xf8, 0xc92a8c\nADD             X2, X1, X2,LSL#2                                       ; +0xfc, 0xc92a90\nSTR             X2, [X29,#0xC0+var_48]                                 ; +0x100, 0xc92a94\nBL              _ZdlPv; operator delete(void *)                        ; +0x104, 0xc92a98\nADD             X21, X29, #0xC0+var_20                                 ; +0x108, 0xc92a9c\nADRP            X1, #aTheWebsiteTell@PAGE; \"The website tells the player their user\"... ; +0x10c, 0xc92aa0\nMOV             X0, X21                                                ; +0x110, 0xc92aa4\nADD             X1, X1, #aTheWebsiteTell@PAGEOFF; \"The website tells the player their user\"... ; +0x114, 0xc92aa8\nMOV             X2, #0xDE                                              ; +0x118, 0xc92aac\nSTR             XZR, [X29,#0xC0+var_20]                                ; +0x11c, 0xc92ab0\nSTR             XZR, [X29,#0xC0+var_18]                                ; +0x120, 0xc92ab4\nSTR             XZR, [X29,#0xC0+var_10]                                ; +0x124, 0xc92ab8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x128, 0xc92abc\nADRP            X1, #aNameLock_0@PAGE; \"Name Lock\"                     ; +0x12c, 0xc92ac0\nMOV             X0, X19                                                ; +0x130, 0xc92ac4\nADD             X1, X1, #aNameLock_0@PAGEOFF; \"Name Lock\"              ; +0x134, 0xc92ac8\nMOV             X2, X21                                                ; +0x138, 0xc92acc\nBL              _ZN23AdminActionConfirmPopup7addHelpEPKcRKNSt6__ndk112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE; AdminActionConfirmPopup::addHelp(char const*,std::string const&) ; +0x13c, 0xc92ad0\nLDRB            W0, [X29,#0xC0+var_20]                                 ; +0x140, 0xc92ad4\nTBNZ            W0, #0, loc_C92B24                                     ; +0x144, 0xc92ad8\nLDR             X1, [X19]                                              ; +0x148, 0xc92adc\nMOV             X0, X19                                                ; +0x14c, 0xc92ae0\nLDR             X1, [X1,#0x520]                                        ; +0x150, 0xc92ae4\nBLR             X1                                                     ; +0x154, 0xc92ae8\nLDRB            W0, [X29,#0xC0+var_68]                                 ; +0x158, 0xc92aec\nTBZ             W0, #0, loc_C92AFC                                     ; +0x15c, 0xc92af0\nLDR             X0, [X29,#0xC0+var_58]; void *                         ; +0x160, 0xc92af4\nBL              _ZdlPv; operator delete(void *)                        ; +0x164, 0xc92af8\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x168, 0xc92afc\nLDR             X1, [X29,#0xC0+var_8]                                  ; +0x16c, 0xc92b00\nLDR             X0, [X20]                                              ; +0x170, 0xc92b04\nCMP             X1, X0                                                 ; +0x174, 0xc92b08\nB.NE            loc_C92BA4                                             ; +0x178, 0xc92b0c\nLDP             X19, X20, [SP,#0xC0+var_B0]                            ; +0x17c, 0xc92b10\nLDP             X21, X22, [SP,#0xC0+var_A0]                            ; +0x180, 0xc92b14\nLDR             X23, [SP,#0xC0+var_90]                                 ; +0x184, 0xc92b18\nLDP             X29, X30, [SP+0xC0+var_C0],#0xC0                       ; +0x188, 0xc92b1c\nRET                                                                    ; +0x18c, 0xc92b20\nLDR             X0, [X29,#0xC0+var_10]; void *                         ; +0x190, 0xc92b24\nBL              _ZdlPv; operator delete(void *)                        ; +0x194, 0xc92b28\nB               loc_C92ADC                                             ; +0x198, 0xc92b2c\nLDR             X0, [X29,#0xC0+var_28]; void *                         ; +0x19c, 0xc92b30\nBL              _ZdlPv; operator delete(void *)                        ; +0x1a0, 0xc92b34\nB               loc_C92A70                                             ; +0x1a4, 0xc92b38\nLDRB            W1, [X29,#0xC0+var_38]                                 ; +0x1a8, 0xc92b3c\nMOV             X19, X0                                                ; +0x1ac, 0xc92b40\nTBZ             W1, #0, loc_C92B50                                     ; +0x1b0, 0xc92b44\nLDR             X0, [X29,#0xC0+var_28]; void *                         ; +0x1b4, 0xc92b48\nBL              _ZdlPv; operator delete(void *)                        ; +0x1b8, 0xc92b4c\nLDR             X1, [X29,#0xC0+var_50]                                 ; +0x1bc, 0xc92b50\nCBZ             X1, loc_C92B74                                         ; +0x1c0, 0xc92b54\nLDR             X2, [X29,#0xC0+var_48]                                 ; +0x1c4, 0xc92b58\nMOV             X0, X1; void *                                         ; +0x1c8, 0xc92b5c\nSUB             X1, X2, X1                                             ; +0x1cc, 0xc92b60\nLSR             X1, X1, #2                                             ; +0x1d0, 0xc92b64\nSUB             X1, X2, X1,LSL#2                                       ; +0x1d4, 0xc92b68\nSTR             X1, [X29,#0xC0+var_48]                                 ; +0x1d8, 0xc92b6c\nBL              _ZdlPv; operator delete(void *)                        ; +0x1dc, 0xc92b70\nLDRB            W0, [X29,#0xC0+var_68]                                 ; +0x1e0, 0xc92b74\nTBZ             W0, #0, loc_C92B84                                     ; +0x1e4, 0xc92b78\nLDR             X0, [X29,#0xC0+var_58]; void *                         ; +0x1e8, 0xc92b7c\nBL              _ZdlPv; operator delete(void *)                        ; +0x1ec, 0xc92b80\nMOV             X0, X19                                                ; +0x1f0, 0xc92b84\nBL              _Unwind_Resume                                         ; +0x1f4, 0xc92b88\nLDRB            W1, [X29,#0xC0+var_20]                                 ; +0x1f8, 0xc92b8c\nMOV             X19, X0                                                ; +0x1fc, 0xc92b90\nTBZ             W1, #0, loc_C92B74                                     ; +0x200, 0xc92b94\nLDR             X0, [X29,#0xC0+var_10]; void *                         ; +0x204, 0xc92b98\nBL              _ZdlPv; operator delete(void *)                        ; +0x208, 0xc92b9c\nB               loc_C92B74                                             ; +0x20c, 0xc92ba0\nBL              .__stack_chk_fail                                      ; +0x210, 0xc92ba4\nMOV             X19, X0                                                ; +0x214, 0xc92ba8\nB               loc_C92B50                                             ; +0x218, 0xc92bac\nMOV             X19, X0                                                ; +0x21c, 0xc92bb0\nB               loc_C92B74                                             ; +0x220, 0xc92bb4", "xrefs": ["<???> @ 0x941b0"], "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"}