{"type": "func", "start": 13186092, "end": 13186480, "name": "AccountBanPopup::onMessageBan", "pseudocode": "// \n// AccountBanPopup::onMessageBan from 0xc9342c to 0xc935b0 (388 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xeccb0\n// > AccountBanPopup::init @ 0xc945bc\n// > <???> @ 0x1547278\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:49 +0000\n// \n\n__int64 __fastcall AccountBanPopup::onMessageBan(AccountBanPopup *this, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x0\n  int v4; // w3\n  const char *v5; // x1\n  cocos2d::CCString *v6; // x0\n  char *CString; // x0\n  __int64 *v8; // x0\n  const char *v10; // x1\n  __int64 v11; // [xsp+38h] [xbp+38h] BYREF\n  __int64 v12; // [xsp+40h] [xbp+40h]\n  void *v13; // [xsp+48h] [xbp+48h]\n  void *v14; // [xsp+50h] [xbp+50h] BYREF\n  char *v15; // [xsp+58h] [xbp+58h]\n\n  v3 = *((_QWORD *)this + 141);\n  if ( !v3 )\n  {\n    v11 = 0;\n    v4 = 0;\n    v12 = 0;\n    v13 = nullptr;\n    goto LABEL_3;\n  }\n  v4 = *(_DWORD *)(v3 + 384);\n  v11 = 0;\n  v12 = 0;\n  v13 = nullptr;\n  if ( v4 != 12 )\n  {\nLABEL_3:\n    v5 = (char *)this + 1057;\n    if ( (*((_BYTE *)this + 1056) & 1) != 0 )\n      v5 = *((const char **)this + 134);\n    v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"Ban <cg>%s</c> from messages and friend requests for <cy>%s</c>?\",\n                                v5,\n                                off_13FB0D0[v4]);\n    goto LABEL_6;\n  }\n  v10 = (char *)this + 1057;\n  if ( (*((_BYTE *)this + 1056) & 1) != 0 )\n    v10 = *((const char **)this + 134);\n  v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"Apply a <cr>permanent</c> message ban to <cg>%s</c>?\\n\"\n                                                   \"Blocks messages and friend requests.\",\n                              v10);\nLABEL_6:\n  CString = (char *)cocos2d::CCString::getCString(v6);\n  v8 = std::string::assign(&v11, CString);\n  ReportPopup::reasonIndicesForTextModeration((__int64 *)&v14, (ReportPopup *)v8);\n  sub_C90E50((__int64)this + 1040, 5, (char *)&v11, (__int64)&v14);\n  if ( v14 )\n  {\n    if ( v14 != v15 )\n      v15 += 4 * ~((unsigned __int64)(v15 - 4 - (_BYTE *)v14) >> 2);\n    operator delete(v14);\n  }\n  if ( (v11 & 1) != 0 )\n    operator delete(v13);\n  return _stack_chk_guard;\n}", "assembly": "; \n; AccountBanPopup::onMessageBan from 0xc9342c to 0xc935b0 (388 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xeccb0\n; > AccountBanPopup::init @ 0xc945bc\n; > <???> @ 0x1547278\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:49 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0xc9342c\nMOV             X29, SP                                                ; +0x4, 0xc93430\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0xc93434\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xc93438\nMOV             X19, X0                                                ; +0x10, 0xc9343c\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0xc93440\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xc93444\nLDR             X0, [X0,#0x468]                                        ; +0x1c, 0xc93448\nLDR             X1, [X1]                                               ; +0x20, 0xc9344c\nSTR             X1, [X29,#0x70+var_8]                                  ; +0x24, 0xc93450\nCBZ             X0, loc_C93550                                         ; +0x28, 0xc93454\nLDR             W3, [X0,#0x180]                                        ; +0x2c, 0xc93458\nSTR             XZR, [X29,#0x70+var_38]                                ; +0x30, 0xc9345c\nSTR             XZR, [X29,#0x70+var_30]                                ; +0x34, 0xc93460\nCMP             W3, #0xC                                               ; +0x38, 0xc93464\nSTR             XZR, [X29,#0x70+var_28]                                ; +0x3c, 0xc93468\nB.EQ            loc_C93530                                             ; +0x40, 0xc9346c\nLDRB            W0, [X19,#0x420]                                       ; +0x44, 0xc93470\nADD             X1, X19, #0x421                                        ; +0x48, 0xc93474\nTBZ             W0, #0, loc_C93480                                     ; +0x4c, 0xc93478\nLDR             X1, [X19,#0x430]; char *                               ; +0x50, 0xc9347c\nADRP            X2, #off_13FB0D0@PAGE; \"1 Hour\"                        ; +0x54, 0xc93480\nADRP            X0, #aBanCgSCFromMes@PAGE; \"Ban <cg>%s</c> from messages and friend\"... ; +0x58, 0xc93484\nADD             X2, X2, #off_13FB0D0@PAGEOFF; \"1 Hour\"                 ; +0x5c, 0xc93488\nADD             X0, X0, #aBanCgSCFromMes@PAGEOFF; \"Ban <cg>%s</c> from messages and friend\"... ; +0x60, 0xc9348c\nLDR             X2, [X2,W3,SXTW#3]                                     ; +0x64, 0xc93490\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x68, 0xc93494\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x6c, 0xc93498\nADD             X22, X29, #0x70+var_38                                 ; +0x70, 0xc9349c\nMOV             X1, X0; char *                                         ; +0x74, 0xc934a0\nMOV             X0, X22; int                                           ; +0x78, 0xc934a4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x7c, 0xc934a8\nADD             X21, X29, #0x70+var_20                                 ; +0x80, 0xc934ac\nADD             X19, X19, #0x410                                       ; +0x84, 0xc934b0\nMOV             X8, X21                                                ; +0x88, 0xc934b4\nBL              _ZN11ReportPopup30reasonIndicesForTextModerationEv; ReportPopup::reasonIndicesForTextModeration(void) ; +0x8c, 0xc934b8\nMOV             X0, X19                                                ; +0x90, 0xc934bc\nMOV             W1, #5                                                 ; +0x94, 0xc934c0\nMOV             X2, X22                                                ; +0x98, 0xc934c4\nMOV             X3, X21                                                ; +0x9c, 0xc934c8\nBL              sub_C90E50                                             ; +0xa0, 0xc934cc\nLDR             X0, [X29,#0x70+var_20]; void *                         ; +0xa4, 0xc934d0\nCBZ             X0, loc_C934FC                                         ; +0xa8, 0xc934d4\nLDR             X1, [X29,#0x70+var_18]                                 ; +0xac, 0xc934d8\nCMP             X0, X1                                                 ; +0xb0, 0xc934dc\nB.EQ            loc_C934F8                                             ; +0xb4, 0xc934e0\nSUB             X19, X1, #4                                            ; +0xb8, 0xc934e4\nSUB             X19, X19, X0                                           ; +0xbc, 0xc934e8\nMVN             X19, X19,LSR#2                                         ; +0xc0, 0xc934ec\nADD             X19, X1, X19,LSL#2                                     ; +0xc4, 0xc934f0\nSTR             X19, [X29,#0x70+var_18]                                ; +0xc8, 0xc934f4\nBL              _ZdlPv; operator delete(void *)                        ; +0xcc, 0xc934f8\nLDRB            W0, [X29,#0x70+var_38]                                 ; +0xd0, 0xc934fc\nTBZ             W0, #0, loc_C9350C                                     ; +0xd4, 0xc93500\nLDR             X0, [X29,#0x70+var_28]; void *                         ; +0xd8, 0xc93504\nBL              _ZdlPv; operator delete(void *)                        ; +0xdc, 0xc93508\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xe0, 0xc9350c\nLDR             X1, [X29,#0x70+var_8]                                  ; +0xe4, 0xc93510\nLDR             X0, [X20]                                              ; +0xe8, 0xc93514\nCMP             X1, X0                                                 ; +0xec, 0xc93518\nB.NE            loc_C935AC                                             ; +0xf0, 0xc9351c\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0xf4, 0xc93520\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0xf8, 0xc93524\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0xfc, 0xc93528\nRET                                                                    ; +0x100, 0xc9352c\nLDRB            W0, [X19,#0x420]                                       ; +0x104, 0xc93530\nADD             X1, X19, #0x421                                        ; +0x108, 0xc93534\nTBZ             W0, #0, loc_C93540                                     ; +0x10c, 0xc93538\nLDR             X1, [X19,#0x430]; char *                               ; +0x110, 0xc9353c\nADRL            X0, aApplyACrPerman_1; \"Apply a <cr>permanent</c> message ban t\"... ; +0x114, 0xc93540\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x11c, 0xc93548\nB               loc_C93498                                             ; +0x120, 0xc9354c\nSTR             XZR, [X29,#0x70+var_38]                                ; +0x124, 0xc93550\nMOV             W3, #0                                                 ; +0x128, 0xc93554\nSTR             XZR, [X29,#0x70+var_30]                                ; +0x12c, 0xc93558\nSTR             XZR, [X29,#0x70+var_28]                                ; +0x130, 0xc9355c\nB               loc_C93470                                             ; +0x134, 0xc93560\nLDR             X1, [X29,#0x70+var_20]                                 ; +0x138, 0xc93564\nMOV             X19, X0                                                ; +0x13c, 0xc93568\nCBZ             X1, loc_C9358C                                         ; +0x140, 0xc9356c\nLDR             X2, [X29,#0x70+var_18]                                 ; +0x144, 0xc93570\nMOV             X0, X1; void *                                         ; +0x148, 0xc93574\nSUB             X1, X2, X1                                             ; +0x14c, 0xc93578\nLSR             X1, X1, #2                                             ; +0x150, 0xc9357c\nSUB             X1, X2, X1,LSL#2                                       ; +0x154, 0xc93580\nSTR             X1, [X29,#0x70+var_18]                                 ; +0x158, 0xc93584\nBL              _ZdlPv; operator delete(void *)                        ; +0x15c, 0xc93588\nLDRB            W0, [X29,#0x70+var_38]                                 ; +0x160, 0xc9358c\nTBZ             W0, #0, loc_C9359C                                     ; +0x164, 0xc93590\nLDR             X0, [X29,#0x70+var_28]; void *                         ; +0x168, 0xc93594\nBL              _ZdlPv; operator delete(void *)                        ; +0x16c, 0xc93598\nMOV             X0, X19                                                ; +0x170, 0xc9359c\nBL              _Unwind_Resume                                         ; +0x174, 0xc935a0\nMOV             X19, X0                                                ; +0x178, 0xc935a4\nB               loc_C9358C                                             ; +0x17c, 0xc935a8\nBL              .__stack_chk_fail                                      ; +0x180, 0xc935ac", "xrefs": ["<???> @ 0xeccb0", "AccountBanPopup::init @ 0xc945bc", "<???> @ 0x1547278"], "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"}