{"type": "func", "start": 4297081212, "end": 4297081412, "name": "GJBaseGameLayer::spawnParticle", "pseudocode": "// \n// GJBaseGameLayer::spawnParticle from 0x10020417c to 0x100204244 (200 bytes)\n// \n// 3 xrefs:\n// > GameObject::spawnDefaultPickupParticle @ 0x100349534\n// > GameObject::playDestroyObjectAnim @ 0x100349738\n// > GameObject::playDestroyObjectAnim @ 0x100349ca8\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\n// local variable allocation has failed, the output may be wrong!\ncocos2d::CCParticleSystemQuad *__fastcall GJBaseGameLayer::spawnParticle(\n        GJBaseGameLayer *a1,\n        const char *a2,\n        int a3,\n        cocos2d::tCCPositionType a4,\n        cocos2d::CCPoint a5)\n{\n  __int64 v5; // x4\n  __int64 v6; // x19\n  __int64 v7; // x23\n  __int64 v8; // x20\n  cocos2d::CCParticleSystemQuad *v11; // x21\n\n  v6 = v5;\n  v7 = *(_QWORD *)&a4;\n  v8 = *(_QWORD *)&a3;\n  if ( GameManager::sharedState()->m_performanceMode )\n    return nullptr;\n  v11 = cocos2d::CCParticleSystemQuad::create(a2, 0);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v11->setTag)(v11, v8);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v11->setPositionType)(v11, v7);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v11->setAutoRemoveOnFinish)(v11, 1);\n  ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_objectLayer->addChild_0)(\n    a1->m_objectLayer,\n    v11,\n    v8);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v11->setPosition)(v11, v6);\n  return v11;\n}", "assembly": "; \n; GJBaseGameLayer::spawnParticle from 0x10020417c to 0x100204244 (200 bytes)\n; \n; 3 xrefs:\n; > GameObject::spawnDefaultPickupParticle @ 0x100349534\n; > GameObject::playDestroyObjectAnim @ 0x100349738\n; > GameObject::playDestroyObjectAnim @ 0x100349ca8\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\nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x10020417c\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x100204180\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100204184\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100204188\nADD             X29, SP, #0x30                                         ; +0x10, 0x10020418c\nMOV             X19, X4                                                ; +0x14, 0x100204190\nMOV             X23, X3                                                ; +0x18, 0x100204194\nMOV             X20, X2                                                ; +0x1c, 0x100204198\nMOV             X21, X1                                                ; +0x20, 0x10020419c\nMOV             X22, X0                                                ; +0x24, 0x1002041a0\nBL              GameManager__sharedState                               ; +0x28, 0x1002041a4\nLDRB            W8, [X0,#0x375]                                        ; +0x2c, 0x1002041a8\nTBZ             W8, #0, loc_1002041B8                                  ; +0x30, 0x1002041ac\nMOV             X21, #0                                                ; +0x34, 0x1002041b0\nB               loc_10020422C                                          ; +0x38, 0x1002041b4\nMOV             X0, X21                                                ; +0x3c, 0x1002041b8\nMOV             W1, #0                                                 ; +0x40, 0x1002041bc\nBL              cocos2d__CCParticleSystemQuad__create                  ; +0x44, 0x1002041c0\nMOV             X21, X0                                                ; +0x48, 0x1002041c4\nLDR             X8, [X0]                                               ; +0x4c, 0x1002041c8\nLDR             X8, [X8,#0x48]                                         ; +0x50, 0x1002041cc\nMOV             X1, X20                                                ; +0x54, 0x1002041d0\nBLR             X8                                                     ; +0x58, 0x1002041d4\nLDR             X8, [X21]                                              ; +0x5c, 0x1002041d8\nLDR             X8, [X8,#0x610]                                        ; +0x60, 0x1002041dc\nMOV             X0, X21                                                ; +0x64, 0x1002041e0\nMOV             X1, X23                                                ; +0x68, 0x1002041e4\nBLR             X8                                                     ; +0x6c, 0x1002041e8\nLDR             X8, [X21]                                              ; +0x70, 0x1002041ec\nLDR             X8, [X8,#0x620]                                        ; +0x74, 0x1002041f0\nMOV             X0, X21                                                ; +0x78, 0x1002041f4\nMOV             W1, #1                                                 ; +0x7c, 0x1002041f8\nBLR             X8                                                     ; +0x80, 0x1002041fc\nLDR             X0, [X22,#0xEE0]                                       ; +0x84, 0x100204200\nLDR             X8, [X0]                                               ; +0x88, 0x100204204\nLDR             X8, [X8,#0x1C0]                                        ; +0x8c, 0x100204208\nMOV             X1, X21                                                ; +0x90, 0x10020420c\nMOV             X2, X20                                                ; +0x94, 0x100204210\nBLR             X8                                                     ; +0x98, 0x100204214\nLDR             X8, [X21]                                              ; +0x9c, 0x100204218\nLDR             X8, [X8,#0xB8]                                         ; +0xa0, 0x10020421c\nMOV             X0, X21                                                ; +0xa4, 0x100204220\nMOV             X1, X19                                                ; +0xa8, 0x100204224\nBLR             X8                                                     ; +0xac, 0x100204228\nMOV             X0, X21                                                ; +0xb0, 0x10020422c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xb4, 0x100204230\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xb8, 0x100204234\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xbc, 0x100204238\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0xc0, 0x10020423c\nRET                                                                    ; +0xc4, 0x100204240", "xrefs": ["GameObject::spawnDefaultPickupParticle @ 0x100349534", "GameObject::playDestroyObjectAnim @ 0x100349738", "GameObject::playDestroyObjectAnim @ 0x100349ca8"], "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"}