{"type": "func", "start": 6710192, "end": 6710346, "name": "CreateParticlePopup::onCopySettings", "pseudocode": "// \n// CreateParticlePopup::onCopySettings from 0x6663b0 to 0x66644a (154 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:55:40 +0000\n// \n\nint __fastcall CreateParticlePopup::onCopySettings(int this, cocos2d::CCObject *a2)\n{\n  int v2; // r7\n  int v3; // r8\n  GameManager *v4; // r0\n  GameManager *v5; // r0\n  int v6; // r0\n  int v7; // r2\n  int v8; // r3\n  _BYTE v9[12]; // [sp+4h] [bp-1Ch] BYREF\n  int v10[3]; // [sp+10h] [bp-10h] BYREF\n\n  v2 = this;\n  if ( *(_DWORD *)(this + 528) )\n  {\n    GameToolbox::saveParticleToString((GameToolbox *)v9, *(cocos2d::CCParticleSystemQuad **)(this + 544));\n    v3 = *(_DWORD *)(v2 + 528);\n    std::string::basic_string(v10, (int)v9);\n    ParticleGameObject::setParticleString(v3, (unsigned __int8 *)v10);\n    v4 = (GameManager *)std::string::~string((int)v10);\n    *(_BYTE *)(*(_DWORD *)(v2 + 528) + 1560) = *(_BYTE *)(*(_DWORD *)(v2 + 544) + 656);\n    v5 = (GameManager *)GameManager::sharedState(v4);\n    if ( *((_DWORD *)v5 + 102) )\n    {\n      v6 = GameManager::sharedState(v5);\n      LevelEditorLayer::copyParticleState(\n        *(ParticleGameObject **)(v6 + 408),\n        *(ParticleGameObject **)(v2 + 528),\n        v7,\n        v8);\n    }\n    return std::string::~string((int)v9);\n  }\n  return this;\n}", "assembly": "; \n; CreateParticlePopup::onCopySettings from 0x6663b0 to 0x66644a (154 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:55:40 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x6663BA)                ; +0x0, 0x6663b0\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x6663b2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x6663b6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x6663b8\nSUB             SP, SP, #0x20                                          ; +0xa, 0x6663ba\nMOV             R7, R0                                                 ; +0xc, 0x6663bc\nLDR             R2, [R3]                                               ; +0xe, 0x6663be\nMOV             R6, R3                                                 ; +0x10, 0x6663c0\nSTR             R2, [SP,#0x20+var_4]                                   ; +0x12, 0x6663c2\nLDR.W           R2, [R0,#0x210]                                        ; +0x14, 0x6663c4\nCBZ             R2, loc_666438                                         ; +0x18, 0x6663c8\nADD             R4, SP, #0x20+var_1C                                   ; +0x1a, 0x6663ca\nADD             R5, SP, #0x20+var_10                                   ; +0x1c, 0x6663cc\nLDR.W           R1, [R7,#0x220]; cocos2d::CCParticleSystemQuad *       ; +0x1e, 0x6663ce\nMOV             R0, R4; this                                           ; +0x22, 0x6663d2\nBL              _ZN11GameToolbox20saveParticleToStringEPN7cocos2d20CCParticleSystemQuadE; GameToolbox::saveParticleToString(cocos2d::CCParticleSystemQuad *) ; +0x24, 0x6663d4\nMOV             R0, R5                                                 ; +0x28, 0x6663d8\nMOV             R1, R4                                                 ; +0x2a, 0x6663da\nLDR.W           R8, [R7,#0x210]                                        ; +0x2c, 0x6663dc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x30, 0x6663e0\nMOV             R0, R8                                                 ; +0x34, 0x6663e4\nMOV             R1, R5                                                 ; +0x36, 0x6663e6\nBL              _ZN18ParticleGameObject17setParticleStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; ParticleGameObject::setParticleString(std::string) ; +0x38, 0x6663e8\nMOV             R0, R5                                                 ; +0x3c, 0x6663ec\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x3e, 0x6663ee\nLDR.W           R2, [R7,#0x220]                                        ; +0x42, 0x6663f2\nLDR.W           R3, [R7,#0x210]                                        ; +0x46, 0x6663f6\nLDRB.W          R2, [R2,#0x290]                                        ; +0x4a, 0x6663fa\nSTRB.W          R2, [R3,#0x618]                                        ; +0x4e, 0x6663fe\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x52, 0x666402\nLDR.W           R3, [R0,#0x198]                                        ; +0x56, 0x666406\nCBNZ            R3, loc_666414                                         ; +0x5a, 0x66640a\nMOV             R0, R4                                                 ; +0x5c, 0x66640c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x5e, 0x66640e\nB               loc_666438                                             ; +0x62, 0x666412\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x64, 0x666414\nLDR.W           R0, [R0,#0x198]; this                                  ; +0x68, 0x666418\nLDR.W           R1, [R7,#0x210]; ParticleGameObject *                  ; +0x6c, 0x66641c\nBL              _ZN16LevelEditorLayer17copyParticleStateEP18ParticleGameObject; LevelEditorLayer::copyParticleState(ParticleGameObject *) ; +0x70, 0x666420\nB               loc_66640C                                             ; +0x74, 0x666424\nMOV             R0, R5                                                 ; +0x76, 0x666426\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x78, 0x666428\nB               loc_66642E                                             ; +0x7c, 0x66642c\nMOV             R0, R4                                                 ; +0x7e, 0x66642e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x80, 0x666430\nBL              __cxa_end_cleanup                                      ; +0x84, 0x666434\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x88, 0x666438\nLDR             R3, [R6]                                               ; +0x8a, 0x66643a\nCMP             R2, R3                                                 ; +0x8c, 0x66643c\nBEQ             loc_666444                                             ; +0x8e, 0x66643e\nBLX             __stack_chk_fail                                       ; +0x90, 0x666440\nADD             SP, SP, #0x20 ; ' '                                    ; +0x94, 0x666444\nPOP.W           {R4-R8,PC}                                             ; +0x96, 0x666446", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}