{"type": "func", "start": 13185704, "end": 13186092, "name": "AccountBanPopup::onLevelUploadBan", "pseudocode": "// \n// AccountBanPopup::onLevelUploadBan from 0xc932a8 to 0xc9342c (388 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xef230\n// > AccountBanPopup::init @ 0xc940c4\n// > <???> @ 0x1547380\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::onLevelUploadBan(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 + 140);\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 uploading levels 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> level upload ban to <cg>%s</c>?\",\n                              v10);\nLABEL_6:\n  CString = (char *)cocos2d::CCString::getCString(v6);\n  v8 = std::string::assign(&v11, CString);\n  ReportPopup::reasonIndicesForUploadModeration((__int64 *)&v14, (ReportPopup *)v8);\n  sub_C90E50((__int64)this + 1040, 2, (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::onLevelUploadBan from 0xc932a8 to 0xc9342c (388 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xef230\n; > AccountBanPopup::init @ 0xc940c4\n; > <???> @ 0x1547380\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_70]!                                ; +0x0, 0xc932a8\nMOV             X29, SP                                                ; +0x4, 0xc932ac\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0xc932b0\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xc932b4\nMOV             X19, X0                                                ; +0x10, 0xc932b8\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0xc932bc\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xc932c0\nLDR             X0, [X0,#0x460]                                        ; +0x1c, 0xc932c4\nLDR             X1, [X1]                                               ; +0x20, 0xc932c8\nSTR             X1, [X29,#0x70+var_8]                                  ; +0x24, 0xc932cc\nCBZ             X0, loc_C933CC                                         ; +0x28, 0xc932d0\nLDR             W3, [X0,#0x180]                                        ; +0x2c, 0xc932d4\nSTR             XZR, [X29,#0x70+var_38]                                ; +0x30, 0xc932d8\nSTR             XZR, [X29,#0x70+var_30]                                ; +0x34, 0xc932dc\nCMP             W3, #0xC                                               ; +0x38, 0xc932e0\nSTR             XZR, [X29,#0x70+var_28]                                ; +0x3c, 0xc932e4\nB.EQ            loc_C933AC                                             ; +0x40, 0xc932e8\nLDRB            W0, [X19,#0x420]                                       ; +0x44, 0xc932ec\nADD             X1, X19, #0x421                                        ; +0x48, 0xc932f0\nTBZ             W0, #0, loc_C932FC                                     ; +0x4c, 0xc932f4\nLDR             X1, [X19,#0x430]; char *                               ; +0x50, 0xc932f8\nADRP            X2, #off_13FB0D0@PAGE; \"1 Hour\"                        ; +0x54, 0xc932fc\nADRP            X0, #aBanCgSCFromUpl@PAGE; \"Ban <cg>%s</c> from uploading levels fo\"... ; +0x58, 0xc93300\nADD             X2, X2, #off_13FB0D0@PAGEOFF; \"1 Hour\"                 ; +0x5c, 0xc93304\nADD             X0, X0, #aBanCgSCFromUpl@PAGEOFF; \"Ban <cg>%s</c> from uploading levels fo\"... ; +0x60, 0xc93308\nLDR             X2, [X2,W3,SXTW#3]                                     ; +0x64, 0xc9330c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x68, 0xc93310\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x6c, 0xc93314\nADD             X22, X29, #0x70+var_38                                 ; +0x70, 0xc93318\nMOV             X1, X0; char *                                         ; +0x74, 0xc9331c\nMOV             X0, X22; int                                           ; +0x78, 0xc93320\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x7c, 0xc93324\nADD             X21, X29, #0x70+var_20                                 ; +0x80, 0xc93328\nADD             X19, X19, #0x410                                       ; +0x84, 0xc9332c\nMOV             X8, X21                                                ; +0x88, 0xc93330\nBL              _ZN11ReportPopup32reasonIndicesForUploadModerationEv; ReportPopup::reasonIndicesForUploadModeration(void) ; +0x8c, 0xc93334\nMOV             X0, X19                                                ; +0x90, 0xc93338\nMOV             W1, #2                                                 ; +0x94, 0xc9333c\nMOV             X2, X22                                                ; +0x98, 0xc93340\nMOV             X3, X21                                                ; +0x9c, 0xc93344\nBL              sub_C90E50                                             ; +0xa0, 0xc93348\nLDR             X0, [X29,#0x70+var_20]; void *                         ; +0xa4, 0xc9334c\nCBZ             X0, loc_C93378                                         ; +0xa8, 0xc93350\nLDR             X1, [X29,#0x70+var_18]                                 ; +0xac, 0xc93354\nCMP             X0, X1                                                 ; +0xb0, 0xc93358\nB.EQ            loc_C93374                                             ; +0xb4, 0xc9335c\nSUB             X19, X1, #4                                            ; +0xb8, 0xc93360\nSUB             X19, X19, X0                                           ; +0xbc, 0xc93364\nMVN             X19, X19,LSR#2                                         ; +0xc0, 0xc93368\nADD             X19, X1, X19,LSL#2                                     ; +0xc4, 0xc9336c\nSTR             X19, [X29,#0x70+var_18]                                ; +0xc8, 0xc93370\nBL              _ZdlPv; operator delete(void *)                        ; +0xcc, 0xc93374\nLDRB            W0, [X29,#0x70+var_38]                                 ; +0xd0, 0xc93378\nTBZ             W0, #0, loc_C93388                                     ; +0xd4, 0xc9337c\nLDR             X0, [X29,#0x70+var_28]; void *                         ; +0xd8, 0xc93380\nBL              _ZdlPv; operator delete(void *)                        ; +0xdc, 0xc93384\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xe0, 0xc93388\nLDR             X1, [X29,#0x70+var_8]                                  ; +0xe4, 0xc9338c\nLDR             X0, [X20]                                              ; +0xe8, 0xc93390\nCMP             X1, X0                                                 ; +0xec, 0xc93394\nB.NE            loc_C93428                                             ; +0xf0, 0xc93398\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0xf4, 0xc9339c\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0xf8, 0xc933a0\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0xfc, 0xc933a4\nRET                                                                    ; +0x100, 0xc933a8\nLDRB            W0, [X19,#0x420]                                       ; +0x104, 0xc933ac\nADD             X1, X19, #0x421                                        ; +0x108, 0xc933b0\nTBZ             W0, #0, loc_C933BC                                     ; +0x10c, 0xc933b4\nLDR             X1, [X19,#0x430]; char *                               ; +0x110, 0xc933b8\nADRL            X0, aApplyACrPerman_0; \"Apply a <cr>permanent</c> level upload \"... ; +0x114, 0xc933bc\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x11c, 0xc933c4\nB               loc_C93314                                             ; +0x120, 0xc933c8\nSTR             XZR, [X29,#0x70+var_38]                                ; +0x124, 0xc933cc\nMOV             W3, #0                                                 ; +0x128, 0xc933d0\nSTR             XZR, [X29,#0x70+var_30]                                ; +0x12c, 0xc933d4\nSTR             XZR, [X29,#0x70+var_28]                                ; +0x130, 0xc933d8\nB               loc_C932EC                                             ; +0x134, 0xc933dc\nLDR             X1, [X29,#0x70+var_20]                                 ; +0x138, 0xc933e0\nMOV             X19, X0                                                ; +0x13c, 0xc933e4\nCBZ             X1, loc_C93408                                         ; +0x140, 0xc933e8\nLDR             X2, [X29,#0x70+var_18]                                 ; +0x144, 0xc933ec\nMOV             X0, X1; void *                                         ; +0x148, 0xc933f0\nSUB             X1, X2, X1                                             ; +0x14c, 0xc933f4\nLSR             X1, X1, #2                                             ; +0x150, 0xc933f8\nSUB             X1, X2, X1,LSL#2                                       ; +0x154, 0xc933fc\nSTR             X1, [X29,#0x70+var_18]                                 ; +0x158, 0xc93400\nBL              _ZdlPv; operator delete(void *)                        ; +0x15c, 0xc93404\nLDRB            W0, [X29,#0x70+var_38]                                 ; +0x160, 0xc93408\nTBZ             W0, #0, loc_C93418                                     ; +0x164, 0xc9340c\nLDR             X0, [X29,#0x70+var_28]; void *                         ; +0x168, 0xc93410\nBL              _ZdlPv; operator delete(void *)                        ; +0x16c, 0xc93414\nMOV             X0, X19                                                ; +0x170, 0xc93418\nBL              _Unwind_Resume                                         ; +0x174, 0xc9341c\nMOV             X19, X0                                                ; +0x178, 0xc93420\nB               loc_C93408                                             ; +0x17c, 0xc93424\nBL              .__stack_chk_fail                                      ; +0x180, 0xc93428", "xrefs": ["<???> @ 0xef230", "AccountBanPopup::init @ 0xc940c4", "<???> @ 0x1547380"], "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"}