{"type": "func", "start": 11531112, "end": 11531476, "name": "CreateParticlePopup::onClose", "pseudocode": "// \n// CreateParticlePopup::onClose from 0xaff368 to 0xaff4d4 (364 bytes)\n// \n// 4 xrefs:\n// > CreateParticlePopup::keyBackClicked @ 0xaff4d8\n// > <???> @ 0x704c8\n// > CreateParticlePopup::init @ 0xb01944\n// > <???> @ 0x1542ce0\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:01:19 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::onClose(cocos2d::CCArray **this, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x19\n  cocos2d::CCArray *v5; // x0\n  unsigned int i; // w19\n  ParticleGameObject *v7; // x21\n  GameToolbox *v8; // x23\n  __int64 v9[2]; // [xsp+50h] [xbp+50h] BYREF\n  void *v10; // [xsp+60h] [xbp+60h]\n\n  CreateParticlePopup::willClose(this);\n  v3 = (__int64)*(this + 85);\n  if ( v3 )\n  {\n    GameToolbox::saveParticleToString(*(this + 89), v9);\n    ParticleGameObject::setParticleString(v3, (__int64)v9);\n    if ( (v9[0] & 1) != 0 )\n      operator delete(v10);\n    *((_DWORD *)*(this + 85) + 443) = *((_DWORD *)this + 249);\n    *((_BYTE *)*(this + 85) + 1768) = *((_BYTE *)*(this + 89) + 740);\n    ParticleGameObject::updateParticle(*(this + 85));\n  }\n  else\n  {\n    v5 = *(this + 86);\n    if ( v5 )\n    {\n      for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v5); ++i )\n      {\n        v7 = (ParticleGameObject *)cocos2d::CCArray::objectAtIndex(*(this + 86), i);\n        v8 = (GameToolbox *)cocos2d::CCArray::objectAtIndex(*(this + 87), i);\n        GameToolbox::saveParticleToString(v8, v9);\n        ParticleGameObject::setParticleString((__int64)v7, (__int64)v9);\n        if ( (v9[0] & 1) != 0 )\n          operator delete(v10);\n        *((_BYTE *)v7 + 1768) = *((_BYTE *)v8 + 740);\n        ParticleGameObject::updateParticle(v7);\n        v5 = *(this + 86);\n      }\n    }\n  }\n  (*((void (__fastcall **)(cocos2d::CCArray **, __int64))*this + 66))(this, 1);\n  return _stack_chk_guard;\n}", "assembly": "; \n; CreateParticlePopup::onClose from 0xaff368 to 0xaff4d4 (364 bytes)\n; \n; 4 xrefs:\n; > CreateParticlePopup::keyBackClicked @ 0xaff4d8\n; > <???> @ 0x704c8\n; > CreateParticlePopup::init @ 0xb01944\n; > <???> @ 0x1542ce0\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:01:19 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0xaff368\nMOV             X29, SP                                                ; +0x4, 0xaff36c\nSTP             X23, X24, [SP,#0x70+var_40]                            ; +0x8, 0xaff370\nADRP            X24, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xaff374\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x10, 0xaff378\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0xaff37c\nLDR             X1, [X24,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xaff380\nMOV             X20, X0                                                ; +0x1c, 0xaff384\nLDR             X1, [X1]                                               ; +0x20, 0xaff388\nSTR             X1, [X29,#0x70+var_8]                                  ; +0x24, 0xaff38c\nBL              _ZN19CreateParticlePopup9willCloseEv; CreateParticlePopup::willClose(void) ; +0x28, 0xaff390\nLDR             X19, [X20,#0x2A8]                                      ; +0x2c, 0xaff394\nCBZ             X19, loc_AFF430                                        ; +0x30, 0xaff398\nADD             X1, X29, #0x70+var_20; cocos2d::CCParticleSystemQuad * ; +0x34, 0xaff39c\nLDR             X0, [X20,#0x2C8]; this                                 ; +0x38, 0xaff3a0\nMOV             X8, X1                                                 ; +0x3c, 0xaff3a4\nSTR             X1, [X29,#0x70+var_28]                                 ; +0x40, 0xaff3a8\nBL              _ZN11GameToolbox20saveParticleToStringEPN7cocos2d20CCParticleSystemQuadE; GameToolbox::saveParticleToString(cocos2d::CCParticleSystemQuad *) ; +0x44, 0xaff3ac\nLDR             X1, [X29,#0x70+var_28]                                 ; +0x48, 0xaff3b0\nMOV             X0, X19                                                ; +0x4c, 0xaff3b4\nBL              _ZN18ParticleGameObject17setParticleStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; ParticleGameObject::setParticleString(std::string) ; +0x50, 0xaff3b8\nLDRB            W0, [X29,#0x70+var_20]                                 ; +0x54, 0xaff3bc\nTBNZ            W0, #0, loc_AFF424                                     ; +0x58, 0xaff3c0\nLDR             X0, [X20,#0x2A8]                                       ; +0x5c, 0xaff3c4\nLDR             W1, [X20,#0x3E4]                                       ; +0x60, 0xaff3c8\nSTR             W1, [X0,#0x6EC]                                        ; +0x64, 0xaff3cc\nLDR             X1, [X20,#0x2C8]                                       ; +0x68, 0xaff3d0\nLDR             X0, [X20,#0x2A8]                                       ; +0x6c, 0xaff3d4\nLDRB            W1, [X1,#0x2E4]                                        ; +0x70, 0xaff3d8\nSTRB            W1, [X0,#0x6E8]                                        ; +0x74, 0xaff3dc\nLDR             X0, [X20,#0x2A8]; this                                 ; +0x78, 0xaff3e0\nBL              _ZN18ParticleGameObject14updateParticleEv; ParticleGameObject::updateParticle(void) ; +0x7c, 0xaff3e4\nLDR             X2, [X20]                                              ; +0x80, 0xaff3e8\nMOV             X0, X20                                                ; +0x84, 0xaff3ec\nMOV             W1, #1                                                 ; +0x88, 0xaff3f0\nLDR             X2, [X2,#0x210]                                        ; +0x8c, 0xaff3f4\nBLR             X2                                                     ; +0x90, 0xaff3f8\nLDR             X24, [X24,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x94, 0xaff3fc\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x98, 0xaff400\nLDR             X0, [X24]                                              ; +0x9c, 0xaff404\nCMP             X1, X0                                                 ; +0xa0, 0xaff408\nB.NE            loc_AFF4B0                                             ; +0xa4, 0xaff40c\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0xa8, 0xaff410\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0xac, 0xaff414\nLDP             X23, X24, [SP,#0x70+var_40]                            ; +0xb0, 0xaff418\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0xb4, 0xaff41c\nRET                                                                    ; +0xb8, 0xaff420\nLDR             X0, [X29,#0x70+var_10]; void *                         ; +0xbc, 0xaff424\nBL              _ZdlPv; operator delete(void *)                        ; +0xc0, 0xaff428\nB               loc_AFF3C4                                             ; +0xc4, 0xaff42c\nLDR             X0, [X20,#0x2B0]                                       ; +0xc8, 0xaff430\nCBZ             X0, loc_AFF3E8                                         ; +0xcc, 0xaff434\nMOV             W19, #0                                                ; +0xd0, 0xaff438\nADD             X22, X29, #0x70+var_20                                 ; +0xd4, 0xaff43c\nB               loc_AFF45C                                             ; +0xd8, 0xaff440\nLDRB            W1, [X23,#0x2E4]                                       ; +0xdc, 0xaff444\nMOV             X0, X21; this                                          ; +0xe0, 0xaff448\nSTRB            W1, [X21,#0x6E8]                                       ; +0xe4, 0xaff44c\nADD             W19, W19, #1                                           ; +0xe8, 0xaff450\nBL              _ZN18ParticleGameObject14updateParticleEv; ParticleGameObject::updateParticle(void) ; +0xec, 0xaff454\nLDR             X0, [X20,#0x2B0]; this                                 ; +0xf0, 0xaff458\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xf4, 0xaff45c\nCMP             W19, W0                                                ; +0xf8, 0xaff460\nB.CS            loc_AFF3E8                                             ; +0xfc, 0xaff464\nLDR             X0, [X20,#0x2B0]; this                                 ; +0x100, 0xaff468\nMOV             W1, W19; unsigned int                                  ; +0x104, 0xaff46c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x108, 0xaff470\nMOV             X21, X0                                                ; +0x10c, 0xaff474\nLDR             X0, [X20,#0x2B8]; this                                 ; +0x110, 0xaff478\nMOV             W1, W19; unsigned int                                  ; +0x114, 0xaff47c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x118, 0xaff480\nMOV             X23, X0                                                ; +0x11c, 0xaff484\nMOV             X8, X22                                                ; +0x120, 0xaff488\nBL              _ZN11GameToolbox20saveParticleToStringEPN7cocos2d20CCParticleSystemQuadE; GameToolbox::saveParticleToString(cocos2d::CCParticleSystemQuad *) ; +0x124, 0xaff48c\nMOV             X0, X21                                                ; +0x128, 0xaff490\nMOV             X1, X22                                                ; +0x12c, 0xaff494\nBL              _ZN18ParticleGameObject17setParticleStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; ParticleGameObject::setParticleString(std::string) ; +0x130, 0xaff498\nLDRB            W0, [X22]                                              ; +0x134, 0xaff49c\nTBZ             W0, #0, loc_AFF444                                     ; +0x138, 0xaff4a0\nLDR             X0, [X22,#0x10]; void *                                ; +0x13c, 0xaff4a4\nBL              _ZdlPv; operator delete(void *)                        ; +0x140, 0xaff4a8\nB               loc_AFF444                                             ; +0x144, 0xaff4ac\nBL              .__stack_chk_fail                                      ; +0x148, 0xaff4b0\nLDRB            W1, [X29,#0x70+var_20]                                 ; +0x14c, 0xaff4b4\nMOV             X19, X0                                                ; +0x150, 0xaff4b8\nTBZ             W1, #0, loc_AFF4C8                                     ; +0x154, 0xaff4bc\nLDR             X0, [X29,#0x70+var_10]; void *                         ; +0x158, 0xaff4c0\nBL              _ZdlPv; operator delete(void *)                        ; +0x15c, 0xaff4c4\nMOV             X0, X19                                                ; +0x160, 0xaff4c8\nBL              _Unwind_Resume                                         ; +0x164, 0xaff4cc\nB               loc_AFF4B4                                             ; +0x168, 0xaff4d0", "xrefs": ["CreateParticlePopup::keyBackClicked @ 0xaff4d8", "<???> @ 0x704c8", "CreateParticlePopup::init @ 0xb01944", "<???> @ 0x1542ce0"], "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"}