{"type": "func", "start": 8813472, "end": 8813692, "name": "GJBaseGameLayer::spawnParticle", "pseudocode": "// \n// GJBaseGameLayer::spawnParticle from 0x867ba0 to 0x867c7c (220 bytes)\n// \n// 5 xrefs:\n// > GameObject::spawnDefaultPickupParticle @ 0x9b2b20\n// > GameObject::spawnDefaultPickupParticle @ 0x9b2cb4\n// > GameObject::playDestroyObjectAnim @ 0x9b318c\n// > GameObject::playDestroyObjectAnim @ 0x9b3a48\n// > <???> @ 0x2d0f0\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\ncocos2d::CCParticleSystemQuad *GJBaseGameLayer::spawnParticle(\n        GJBaseGameLayer *a1,\n        const char *a2,\n        int a3,\n        cocos2d::tCCPositionType a4,\n        cocos2d::CCPoint a5)\n{\n  const cocos2d::CCPoint *v5; // x4\n  const cocos2d::CCPoint *v10; // x21\n  bool v11; // w2\n  cocos2d::CCParticleSystemQuad *v12; // x19\n\n  v10 = v5;\n  if ( GameManager::sharedState()->m_performanceMode )\n    return nullptr;\n  v12 = (cocos2d::CCParticleSystemQuad *)cocos2d::CCParticleSystemQuad::create(\n                                           (cocos2d::CCParticleSystemQuad *)a2,\n                                           nullptr,\n                                           v11);\n  v12->setTag(v12, a3);\n  v12->setPositionType(v12, a4);\n  v12->setAutoRemoveOnFinish(v12, 1);\n  a1->m_objectLayer->addChild_0(a1->m_objectLayer, v12, a3);\n  v12->setPosition(v12, v10);\n  return v12;\n}", "assembly": "; \n; GJBaseGameLayer::spawnParticle from 0x867ba0 to 0x867c7c (220 bytes)\n; \n; 5 xrefs:\n; > GameObject::spawnDefaultPickupParticle @ 0x9b2b20\n; > GameObject::spawnDefaultPickupParticle @ 0x9b2cb4\n; > GameObject::playDestroyObjectAnim @ 0x9b318c\n; > GameObject::playDestroyObjectAnim @ 0x9b3a48\n; > <???> @ 0x2d0f0\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             X29, X30, [SP,#var_40]!                                ; +0x0, 0x867ba0\nMOV             X29, SP                                                ; +0x4, 0x867ba4\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x867ba8\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0xc, 0x867bac\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0x867bb0\nMOV             X22, X0                                                ; +0x14, 0x867bb4\nMOV             X19, X1                                                ; +0x18, 0x867bb8\nMOV             W20, W2                                                ; +0x1c, 0x867bbc\nMOV             W23, W3                                                ; +0x20, 0x867bc0\nMOV             X21, X4                                                ; +0x24, 0x867bc4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x28, 0x867bc8\nLDRB            W0, [X0,#0x335]                                        ; +0x2c, 0x867bcc\nCBNZ            W0, loc_867C64                                         ; +0x30, 0x867bd0\nMOV             W1, #0; char *                                         ; +0x34, 0x867bd4\nMOV             X0, X19; this                                          ; +0x38, 0x867bd8\nBL              _ZN7cocos2d20CCParticleSystemQuad6createEPKcb; cocos2d::CCParticleSystemQuad::create(char const*,bool) ; +0x3c, 0x867bdc\nLDR             X2, [X0]                                               ; +0x40, 0x867be0\nMOV             X19, X0                                                ; +0x44, 0x867be4\nMOV             W1, W20                                                ; +0x48, 0x867be8\nLDR             X2, [X2,#0x48]                                         ; +0x4c, 0x867bec\nBLR             X2                                                     ; +0x50, 0x867bf0\nLDR             X2, [X19]                                              ; +0x54, 0x867bf4\nMOV             X0, X19                                                ; +0x58, 0x867bf8\nMOV             W1, W23                                                ; +0x5c, 0x867bfc\nLDR             X2, [X2,#0x610]                                        ; +0x60, 0x867c00\nBLR             X2                                                     ; +0x64, 0x867c04\nLDR             X2, [X19]                                              ; +0x68, 0x867c08\nMOV             X0, X19                                                ; +0x6c, 0x867c0c\nMOV             W1, #1                                                 ; +0x70, 0x867c10\nLDR             X2, [X2,#0x620]                                        ; +0x74, 0x867c14\nBLR             X2                                                     ; +0x78, 0x867c18\nLDR             X3, [X22,#0x1030]                                      ; +0x7c, 0x867c1c\nMOV             X1, X19                                                ; +0x80, 0x867c20\nMOV             W2, W20                                                ; +0x84, 0x867c24\nMOV             X0, X3                                                 ; +0x88, 0x867c28\nLDR             X3, [X3]                                               ; +0x8c, 0x867c2c\nLDR             X3, [X3,#0x1C0]                                        ; +0x90, 0x867c30\nBLR             X3                                                     ; +0x94, 0x867c34\nLDR             X2, [X19]                                              ; +0x98, 0x867c38\nMOV             X0, X19                                                ; +0x9c, 0x867c3c\nMOV             X1, X21                                                ; +0xa0, 0x867c40\nLDR             X2, [X2,#0xB8]                                         ; +0xa4, 0x867c44\nBLR             X2                                                     ; +0xa8, 0x867c48\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xac, 0x867c4c\nMOV             X0, X19                                                ; +0xb0, 0x867c50\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xb4, 0x867c54\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xb8, 0x867c58\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xbc, 0x867c5c\nRET                                                                    ; +0xc0, 0x867c60\nMOV             X0, #0                                                 ; +0xc4, 0x867c64\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xc8, 0x867c68\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xcc, 0x867c6c\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xd0, 0x867c70\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xd4, 0x867c74\nRET                                                                    ; +0xd8, 0x867c78", "xrefs": ["GameObject::spawnDefaultPickupParticle @ 0x9b2b20", "GameObject::spawnDefaultPickupParticle @ 0x9b2cb4", "GameObject::playDestroyObjectAnim @ 0x9b318c", "GameObject::playDestroyObjectAnim @ 0x9b3a48", "<???> @ 0x2d0f0"], "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"}