{"type": "func", "start": 5436348, "end": 5436500, "name": "CreateParticlePopup::onCopySettings", "pseudocode": "// \n// CreateParticlePopup::onCopySettings from 0x52f3bc to 0x52f454 (152 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CreateParticlePopup::onCopySettings(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  ParticleGameObject *m_targetObject; // r8\n  GameManager *v4; // r0\n  cocos2d::CCObject *v5; // [sp+4h] [bp-Ch] BYREF\n  _BYTE v6[4]; // [sp+8h] [bp-8h] BYREF\n\n  v5 = a2;\n  if ( a1->m_targetObject )\n  {\n    GameToolbox::saveParticleToString((GameToolbox *)&v5, a1->m_particle);\n    m_targetObject = a1->m_targetObject;\n    sub_775C20(v6);\n    ParticleGameObject::setParticleString((int)m_targetObject, (int)v6);\n    sub_774008(v6);\n    a1->m_targetObject->m_hasUniformObjectColor = a1->m_particle->m_bUseUniformColorMode;\n    if ( GameManager::sharedState()->m_levelEditorLayer )\n    {\n      v4 = GameManager::sharedState();\n      LevelEditorLayer::copyParticleState(v4->m_levelEditorLayer, a1->m_targetObject);\n    }\n    sub_774008(&v5);\n  }\n}", "assembly": "; \n; CreateParticlePopup::onCopySettings from 0x52f3bc to 0x52f454 (152 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x52f3bc\nMOV             R7, R0                                                 ; +0x4, 0x52f3c0\nLDR             R3, =(__stack_chk_guard_ptr - 0x52F3C8)                ; +0x6, 0x52f3c2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x8, 0x52f3c4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xa, 0x52f3c6\nLDR             R2, [R3]                                               ; +0xc, 0x52f3c8\nMOV             R6, R3                                                 ; +0xe, 0x52f3ca\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x10, 0x52f3cc\nLDR.W           R2, [R0,#0x1FC]                                        ; +0x12, 0x52f3ce\nCBZ             R2, loc_52F442                                         ; +0x16, 0x52f3d2\nADD             R4, SP, #0x10+var_C                                    ; +0x18, 0x52f3d4\nADD             R5, SP, #0x10+var_8                                    ; +0x1a, 0x52f3d6\nLDR.W           R1, [R7,#0x20C]; cocos2d::CCParticleSystemQuad *       ; +0x1c, 0x52f3d8\nMOV             R0, R4; this                                           ; +0x20, 0x52f3dc\nBL              _ZN11GameToolbox20saveParticleToStringEPN7cocos2d20CCParticleSystemQuadE; GameToolbox::saveParticleToString(cocos2d::CCParticleSystemQuad *) ; +0x22, 0x52f3de\nMOV             R0, R5                                                 ; +0x26, 0x52f3e2\nMOV             R1, R4                                                 ; +0x28, 0x52f3e4\nLDR.W           R8, [R7,#0x1FC]                                        ; +0x2a, 0x52f3e6\nBL              sub_775C20                                             ; +0x2e, 0x52f3ea\nMOV             R0, R8                                                 ; +0x32, 0x52f3ee\nMOV             R1, R5                                                 ; +0x34, 0x52f3f0\nBL              _ZN18ParticleGameObject17setParticleStringESs; ParticleGameObject::setParticleString(std::string) ; +0x36, 0x52f3f2\nMOV             R0, R5                                                 ; +0x3a, 0x52f3f6\nBL              sub_774008                                             ; +0x3c, 0x52f3f8\nLDR.W           R3, [R7,#0x20C]                                        ; +0x40, 0x52f3fc\nLDRB.W          R2, [R3,#0x284]                                        ; +0x44, 0x52f400\nLDR.W           R3, [R7,#0x1FC]                                        ; +0x48, 0x52f404\nSTRB.W          R2, [R3,#0x600]                                        ; +0x4c, 0x52f408\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x50, 0x52f40c\nLDR.W           R3, [R0,#0x170]                                        ; +0x54, 0x52f410\nCBNZ            R3, loc_52F41E                                         ; +0x58, 0x52f414\nMOV             R0, R4                                                 ; +0x5a, 0x52f416\nBL              sub_774008                                             ; +0x5c, 0x52f418\nB               loc_52F442                                             ; +0x60, 0x52f41c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x62, 0x52f41e\nLDR.W           R0, [R0,#0x170]; this                                  ; +0x66, 0x52f422\nLDR.W           R1, [R7,#0x1FC]; ParticleGameObject *                  ; +0x6a, 0x52f426\nBL              _ZN16LevelEditorLayer17copyParticleStateEP18ParticleGameObject; LevelEditorLayer::copyParticleState(ParticleGameObject *) ; +0x6e, 0x52f42a\nB               loc_52F416                                             ; +0x72, 0x52f42e\nMOV             R0, R5                                                 ; +0x74, 0x52f430\nBL              sub_774008                                             ; +0x76, 0x52f432\nB               loc_52F438                                             ; +0x7a, 0x52f436\nMOV             R0, R4                                                 ; +0x7c, 0x52f438\nBL              sub_774008                                             ; +0x7e, 0x52f43a\nBL              __cxa_end_cleanup                                      ; +0x82, 0x52f43e\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x86, 0x52f442\nLDR             R3, [R6]                                               ; +0x88, 0x52f444\nCMP             R2, R3                                                 ; +0x8a, 0x52f446\nBEQ             loc_52F44E                                             ; +0x8c, 0x52f448\nBLX             __stack_chk_fail                                       ; +0x8e, 0x52f44a\nADD             SP, SP, #0x10                                          ; +0x92, 0x52f44e\nPOP.W           {R4-R8,PC}                                             ; +0x94, 0x52f450", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}