{"type": "func", "start": 12853292, "end": 12853892, "name": "AccountReviewPopup::onDeleteRow", "pseudocode": "// \n// AccountReviewPopup::onDeleteRow from 0xc4202c to 0xc42284 (600 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xbc428\n// > AccountReviewPopup::buildReportedRows @ 0xc4dbd8\n// > <???> @ 0x1545738\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:04:57 +0000\n// \n\n__int64 __fastcall AccountReviewPopup::onDeleteRow(AccountReviewPopup *this, cocos2d::CCObject *a2)\n{\n  signed int v3; // w21\n  cocos2d::CCArray *v4; // x0\n  __int64 v6; // x0\n  __int64 v7; // x23\n  int v8; // w1\n  const char *v9; // x21\n  char *v10; // x2\n  char *v11; // x3\n  cocos2d::CCString *v12; // x0\n  size_t v13; // x0\n  char *v14; // x20\n  const char *v15; // x1\n  size_t v16; // x0\n  ButtonSprite **v17; // x20\n  char *v18; // [xsp+48h] [xbp+48h]\n  char *CString; // [xsp+48h] [xbp+48h]\n  char *v20; // [xsp+48h] [xbp+48h]\n  __int64 v21[2]; // [xsp+58h] [xbp+58h] BYREF\n  void *v22; // [xsp+68h] [xbp+68h]\n  __int64 v23[2]; // [xsp+70h] [xbp+70h] BYREF\n  void *v24; // [xsp+80h] [xbp+80h]\n\n  v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n  if ( !*((_DWORD *)this + 309) )\n  {\n    v4 = *((cocos2d::CCArray **)this + 164);\n    if ( (v3 & 0x80000000) == 0 && v4 && v3 < (int)cocos2d::CCArray::count(v4) )\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 164), v3);\n      *((_DWORD *)this + 313) = v3;\n      v7 = v6;\n      v9 = (const char *)ReportPopup::contentTypeName((ReportPopup *)*(unsigned int *)(v6 + 56), v8);\n      if ( (*((_BYTE *)this + 848) & 1) != 0 )\n        v10 = *((char **)this + 108);\n      else\n        v10 = (char *)this + 849;\n      v18 = v10;\n      GameToolbox::singleLineSnippet(v7 + 136, 0x3Cu, (__int64)v23);\n      v11 = (char *)v23 + 1;\n      if ( (v23[0] & 1) != 0 )\n        v11 = (char *)v24;\n      v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                   (cocos2d::CCString *)\"Delete this <cy>%s</c> by <cg>%s</c>? Cannot be undone.\\n\"\n                                                        \"\\\"%s\\\"\",\n                                   v9,\n                                   v18,\n                                   v11);\n      CString = (char *)cocos2d::CCString::getCString(v12);\n      v21[0] = 0;\n      v21[1] = 0;\n      v22 = nullptr;\n      v13 = strlen(CString);\n      std::string::__init(v21, CString, v13);\n      if ( (v23[0] & 1) != 0 )\n        operator delete(v24);\n      v14 = (char *)this + 800;\n      v15 = (char *)v21 + 1;\n      if ( (v21[0] & 1) != 0 )\n        v15 = (const char *)v22;\n      v20 = (char *)v15;\n      v23[0] = 0;\n      v23[1] = 0;\n      v24 = nullptr;\n      v16 = strlen(v15);\n      std::string::__init(v23, v20, v16);\n      v17 = (ButtonSprite **)FLAlertLayer::create(\n                               (__int64)v14,\n                               (cocos2d::CCLabelBMFont *)\"Delete Content\",\n                               (char *)v23,\n                               (ButtonSprite *)\"Cancel\",\n                               (ButtonSprite *)\"Delete\",\n                               0,\n                               380.0,\n                               0.0,\n                               1.0);\n      if ( (v23[0] & 1) != 0 )\n        operator delete(v24);\n      (*((void (__fastcall **)(ButtonSprite **, __int64))*v17 + 9))(v17, 3);\n      ButtonSprite::updateBGImage(v17[77], \"GJ_button_06.png\");\n      (*((void (__fastcall **)(ButtonSprite **))*v17 + 164))(v17);\n      if ( (v21[0] & 1) != 0 )\n        operator delete(v22);\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; AccountReviewPopup::onDeleteRow from 0xc4202c to 0xc42284 (600 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xbc428\n; > AccountReviewPopup::buildReportedRows @ 0xc4dbd8\n; > <???> @ 0x1545738\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:04:57 +0000\n; \nSTP             X29, X30, [SP,#var_90]!                                ; +0x0, 0xc4202c\nMOV             X29, SP                                                ; +0x4, 0xc42030\nSTP             X19, X20, [SP,#0x90+var_80]                            ; +0x8, 0xc42034\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xc42038\nSTR             X23, [SP,#0x90+var_60]                                 ; +0x10, 0xc4203c\nSTP             X21, X22, [SP,#0x90+var_70]                            ; +0x14, 0xc42040\nMOV             X20, X0                                                ; +0x18, 0xc42044\nMOV             X0, X1                                                 ; +0x1c, 0xc42048\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xc4204c\nLDR             X1, [X1]                                               ; +0x24, 0xc42050\nLDR             X2, [X2]                                               ; +0x28, 0xc42054\nLDR             X1, [X1,#0x40]                                         ; +0x2c, 0xc42058\nSTR             X2, [X29,#0x90+var_8]                                  ; +0x30, 0xc4205c\nBLR             X1                                                     ; +0x34, 0xc42060\nMOV             W21, W0                                                ; +0x38, 0xc42064\nLDR             W0, [X20,#0x4D4]                                       ; +0x3c, 0xc42068\nCBNZ            W0, loc_C42088                                         ; +0x40, 0xc4206c\nLDR             X0, [X20,#0x520]; this                                 ; +0x44, 0xc42070\nTBNZ            W21, #0x1F, loc_C42088                                 ; +0x48, 0xc42074\nCBZ             X0, loc_C42088                                         ; +0x4c, 0xc42078\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x50, 0xc4207c\nCMP             W21, W0                                                ; +0x54, 0xc42080\nB.LT            loc_C420B0                                             ; +0x58, 0xc42084\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x5c, 0xc42088\nLDR             X1, [X29,#0x90+var_8]                                  ; +0x60, 0xc4208c\nLDR             X0, [X19]                                              ; +0x64, 0xc42090\nCMP             X1, X0                                                 ; +0x68, 0xc42094\nB.NE            loc_C42234                                             ; +0x6c, 0xc42098\nLDP             X19, X20, [SP,#0x90+var_80]                            ; +0x70, 0xc4209c\nLDP             X21, X22, [SP,#0x90+var_70]                            ; +0x74, 0xc420a0\nLDR             X23, [SP,#0x90+var_60]                                 ; +0x78, 0xc420a4\nLDP             X29, X30, [SP+0x90+var_90],#0x90                       ; +0x7c, 0xc420a8\nRET                                                                    ; +0x80, 0xc420ac\nLDR             X0, [X20,#0x520]; this                                 ; +0x84, 0xc420b0\nMOV             W1, W21; unsigned int                                  ; +0x88, 0xc420b4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x8c, 0xc420b8\nSTR             W21, [X20,#0x4E4]                                      ; +0x90, 0xc420bc\nMOV             X23, X0                                                ; +0x94, 0xc420c0\nLDR             W0, [X0,#0x38]; this                                   ; +0x98, 0xc420c4\nBL              _ZN11ReportPopup15contentTypeNameEi; ReportPopup::contentTypeName(int) ; +0x9c, 0xc420c8\nMOV             X21, X0                                                ; +0xa0, 0xc420cc\nLDRB            W0, [X20,#0x350]                                       ; +0xa4, 0xc420d0\nADD             X1, X20, #0x350                                        ; +0xa8, 0xc420d4\nTBNZ            W0, #0, loc_C42214                                     ; +0xac, 0xc420d8\nADD             X2, X20, #0x351                                        ; +0xb0, 0xc420dc\nADD             X22, X29, #0x90+var_20                                 ; +0xb4, 0xc420e0\nADD             X0, X23, #0x88                                         ; +0xb8, 0xc420e4\nMOV             X8, X22                                                ; +0xbc, 0xc420e8\nMOV             X1, #0x3C ; '<'                                        ; +0xc0, 0xc420ec\nSTR             X2, [X29,#0x90+var_48]                                 ; +0xc4, 0xc420f0\nBL              _ZN11GameToolbox17singleLineSnippetERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEm; GameToolbox::singleLineSnippet(std::string const&,ulong) ; +0xc8, 0xc420f4\nLDRB            W0, [X29,#0x90+var_20]                                 ; +0xcc, 0xc420f8\nADD             X3, X22, #1                                            ; +0xd0, 0xc420fc\nLDR             X2, [X29,#0x90+var_48]                                 ; +0xd4, 0xc42100\nTBZ             W0, #0, loc_C4210C                                     ; +0xd8, 0xc42104\nLDR             X3, [X29,#0x90+var_10]                                 ; +0xdc, 0xc42108\nADRP            X0, #aDeleteThisCySC@PAGE; \"Delete this <cy>%s</c> by <cg>%s</c>? C\"... ; +0xe0, 0xc4210c\nMOV             X1, X21; char *                                        ; +0xe4, 0xc42110\nADD             X0, X0, #aDeleteThisCySC@PAGEOFF; \"Delete this <cy>%s</c> by <cg>%s</c>? C\"... ; +0xe8, 0xc42114\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xec, 0xc42118\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xf0, 0xc4211c\nSTR             X0, [X29,#0x90+var_48]                                 ; +0xf4, 0xc42120\nADD             X21, X29, #0x90+var_38                                 ; +0xf8, 0xc42124\nSTR             XZR, [X29,#0x90+var_38]                                ; +0xfc, 0xc42128\nSTR             XZR, [X29,#0x90+var_30]                                ; +0x100, 0xc4212c\nSTR             XZR, [X29,#0x90+var_28]                                ; +0x104, 0xc42130\nBL              .strlen                                                ; +0x108, 0xc42134\nLDR             X1, [X29,#0x90+var_48]                                 ; +0x10c, 0xc42138\nMOV             X2, X0                                                 ; +0x110, 0xc4213c\nMOV             X0, X21                                                ; +0x114, 0xc42140\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x118, 0xc42144\nLDRB            W0, [X29,#0x90+var_20]                                 ; +0x11c, 0xc42148\nTBNZ            W0, #0, loc_C4221C                                     ; +0x120, 0xc4214c\nLDRB            W0, [X29,#0x90+var_38]                                 ; +0x124, 0xc42150\nADD             X20, X20, #0x320                                       ; +0x128, 0xc42154\nADD             X1, X21, #1                                            ; +0x12c, 0xc42158\nTBZ             W0, #0, loc_C42164                                     ; +0x130, 0xc4215c\nLDR             X1, [X29,#0x90+var_28]                                 ; +0x134, 0xc42160\nMOV             X0, X1; char *                                         ; +0x138, 0xc42164\nSTR             X1, [X29,#0x90+var_48]                                 ; +0x13c, 0xc42168\nSTR             XZR, [X29,#0x90+var_20]                                ; +0x140, 0xc4216c\nSTR             XZR, [X29,#0x90+var_18]                                ; +0x144, 0xc42170\nSTR             XZR, [X29,#0x90+var_10]                                ; +0x148, 0xc42174\nBL              .strlen                                                ; +0x14c, 0xc42178\nLDR             X1, [X29,#0x90+var_48]                                 ; +0x150, 0xc4217c\nMOV             X2, X0                                                 ; +0x154, 0xc42180\nMOV             X0, X22                                                ; +0x158, 0xc42184\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x15c, 0xc42188\nLDR             S0, =0x43BE0000                                        ; +0x160, 0xc4218c\nADRP            X1, #aDeleteContent@PAGE; \"Delete Content\"             ; +0x164, 0xc42190\nFMOV            S1, WZR                                                ; +0x168, 0xc42194\nADRP            X3, #aCancel@PAGE; \"Cancel\"                            ; +0x16c, 0xc42198\nADRP            X4, #aDelete@PAGE; \"Delete\"                            ; +0x170, 0xc4219c\nMOV             X0, X20                                                ; +0x174, 0xc421a0\nADD             X1, X1, #aDeleteContent@PAGEOFF; \"Delete Content\"      ; +0x178, 0xc421a4\nMOV             X2, X22                                                ; +0x17c, 0xc421a8\nADD             X3, X3, #aCancel@PAGEOFF; \"Cancel\"                     ; +0x180, 0xc421ac\nADD             X4, X4, #aDelete@PAGEOFF; \"Delete\"                     ; +0x184, 0xc421b0\nMOV             W5, #0                                                 ; +0x188, 0xc421b4\nFMOV            S2, #1.0                                               ; +0x18c, 0xc421b8\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_fbff; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float,bool,float,float) ; +0x190, 0xc421bc\nMOV             X20, X0                                                ; +0x194, 0xc421c0\nLDRB            W0, [X29,#0x90+var_20]                                 ; +0x198, 0xc421c4\nTBNZ            W0, #0, loc_C42228                                     ; +0x19c, 0xc421c8\nLDR             X2, [X20]                                              ; +0x1a0, 0xc421cc\nMOV             X0, X20                                                ; +0x1a4, 0xc421d0\nMOV             W1, #3                                                 ; +0x1a8, 0xc421d4\nLDR             X2, [X2,#0x48]                                         ; +0x1ac, 0xc421d8\nBLR             X2                                                     ; +0x1b0, 0xc421dc\nADRP            X1, #aGjButton06Png@PAGE; \"GJ_button_06.png\"           ; +0x1b4, 0xc421e0\nLDR             X0, [X20,#0x268]; this                                 ; +0x1b8, 0xc421e4\nADD             X1, X1, #aGjButton06Png@PAGEOFF; \"GJ_button_06.png\"    ; +0x1bc, 0xc421e8\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x1c0, 0xc421ec\nLDR             X1, [X20]                                              ; +0x1c4, 0xc421f0\nMOV             X0, X20                                                ; +0x1c8, 0xc421f4\nLDR             X1, [X1,#0x520]                                        ; +0x1cc, 0xc421f8\nBLR             X1                                                     ; +0x1d0, 0xc421fc\nLDRB            W0, [X29,#0x90+var_38]                                 ; +0x1d4, 0xc42200\nTBZ             W0, #0, loc_C42088                                     ; +0x1d8, 0xc42204\nLDR             X0, [X29,#0x90+var_28]; void *                         ; +0x1dc, 0xc42208\nBL              _ZdlPv; operator delete(void *)                        ; +0x1e0, 0xc4220c\nB               loc_C42088                                             ; +0x1e4, 0xc42210\nLDR             X2, [X1,#0x10]                                         ; +0x1e8, 0xc42214\nB               loc_C420E0                                             ; +0x1ec, 0xc42218\nLDR             X0, [X29,#0x90+var_10]; void *                         ; +0x1f0, 0xc4221c\nBL              _ZdlPv; operator delete(void *)                        ; +0x1f4, 0xc42220\nB               loc_C42150                                             ; +0x1f8, 0xc42224\nLDR             X0, [X29,#0x90+var_10]; void *                         ; +0x1fc, 0xc42228\nBL              _ZdlPv; operator delete(void *)                        ; +0x200, 0xc4222c\nB               loc_C421CC                                             ; +0x204, 0xc42230\nBL              .__stack_chk_fail                                      ; +0x208, 0xc42234\nLDRB            W1, [X29,#0x90+var_20]                                 ; +0x20c, 0xc42238\nMOV             X19, X0                                                ; +0x210, 0xc4223c\nTBZ             W1, #0, loc_C4224C                                     ; +0x214, 0xc42240\nLDR             X0, [X29,#0x90+var_10]; void *                         ; +0x218, 0xc42244\nBL              _ZdlPv; operator delete(void *)                        ; +0x21c, 0xc42248\nLDRB            W0, [X29,#0x90+var_38]                                 ; +0x220, 0xc4224c\nTBZ             W0, #0, loc_C4225C                                     ; +0x224, 0xc42250\nLDR             X0, [X29,#0x90+var_28]; void *                         ; +0x228, 0xc42254\nBL              _ZdlPv; operator delete(void *)                        ; +0x22c, 0xc42258\nMOV             X0, X19                                                ; +0x230, 0xc4225c\nBL              _Unwind_Resume                                         ; +0x234, 0xc42260\nMOV             X19, X0                                                ; +0x238, 0xc42264\nB               loc_C4224C                                             ; +0x23c, 0xc42268\nLDRB            W1, [X29,#0x90+var_20]                                 ; +0x240, 0xc4226c\nMOV             X19, X0                                                ; +0x244, 0xc42270\nTBZ             W1, #0, loc_C4225C                                     ; +0x248, 0xc42274\nLDR             X0, [X29,#0x90+var_10]; void *                         ; +0x24c, 0xc42278\nBL              _ZdlPv; operator delete(void *)                        ; +0x250, 0xc4227c\nB               loc_C4225C                                             ; +0x254, 0xc42280", "xrefs": ["<???> @ 0xbc428", "AccountReviewPopup::buildReportedRows @ 0xc4dbd8", "<???> @ 0x1545738"], "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"}