{"type": "func", "start": 4684972, "end": 4685066, "name": "GJBaseGameLayer::spawnParticle", "pseudocode": "// \n// GJBaseGameLayer::spawnParticle from 0x477cac to 0x477d0a (94 bytes)\n// \n// 3 xrefs:\n// > GameObject::spawnDefaultPickupParticle @ 0x52a812\n// > GameObject::playDestroyObjectAnim @ 0x52a9b0\n// > GameObject::playDestroyObjectAnim @ 0x52ad6c\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  GameManager *v9; // r0\n  bool v10; // r2\n  cocos2d::CCParticleSystemQuad *v11; // r4\n\n  v9 = GameManager::sharedState();\n  if ( v9->m_performanceMode )\n    return nullptr;\n  v11 = (cocos2d::CCParticleSystemQuad *)cocos2d::CCParticleSystemQuad::create(\n                                           (cocos2d::CCParticleSystemQuad *)a2,\n                                           (const char *)v9->m_performanceMode,\n                                           v10);\n  v11->setTag(v11, a3);\n  v11->setPositionType(v11, a4);\n  v11->setAutoRemoveOnFinish(v11, 1);\n  a1->m_objectLayer->addChild_0(a1->m_objectLayer, v11, a3);\n  v11->setPosition(v11, (const cocos2d::CCPoint *)LODWORD(a5.x));\n  return v11;\n}", "assembly": "; \n; GJBaseGameLayer::spawnParticle from 0x477cac to 0x477d0a (94 bytes)\n; \n; 3 xrefs:\n; > GameObject::spawnDefaultPickupParticle @ 0x52a812\n; > GameObject::playDestroyObjectAnim @ 0x52a9b0\n; > GameObject::playDestroyObjectAnim @ 0x52ad6c\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            {R3-R7,LR}                                             ; +0x0, 0x477cac\nMOV             R4, R1                                                 ; +0x2, 0x477cae\nMOV             R6, R0                                                 ; +0x4, 0x477cb0\nMOV             R5, R2                                                 ; +0x6, 0x477cb2\nMOV             R7, R3                                                 ; +0x8, 0x477cb4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xa, 0x477cb6\nLDRB.W          R1, [R0,#0x29D]; char *                                ; +0xe, 0x477cba\nCBNZ            R1, loc_477D06                                         ; +0x12, 0x477cbe\nMOV             R0, R4; this                                           ; +0x14, 0x477cc0\nBL              _ZN7cocos2d20CCParticleSystemQuad6createEPKcb; cocos2d::CCParticleSystemQuad::create(char const*,bool) ; +0x16, 0x477cc2\nMOV             R1, R5                                                 ; +0x1a, 0x477cc6\nLDR             R3, [R0]                                               ; +0x1c, 0x477cc8\nMOV             R4, R0                                                 ; +0x1e, 0x477cca\nLDR             R3, [R3,#0x24]                                         ; +0x20, 0x477ccc\nBLX             R3                                                     ; +0x22, 0x477cce\nLDR             R3, [R4]                                               ; +0x24, 0x477cd0\nMOV             R0, R4                                                 ; +0x26, 0x477cd2\nMOV             R1, R7                                                 ; +0x28, 0x477cd4\nLDR.W           R3, [R3,#0x308]                                        ; +0x2a, 0x477cd6\nBLX             R3                                                     ; +0x2e, 0x477cda\nLDR             R3, [R4]                                               ; +0x30, 0x477cdc\nMOV             R0, R4                                                 ; +0x32, 0x477cde\nMOVS            R1, #1                                                 ; +0x34, 0x477ce0\nLDR.W           R3, [R3,#0x310]                                        ; +0x36, 0x477ce2\nBLX             R3                                                     ; +0x3a, 0x477ce6\nLDR.W           R0, [R6,#0x9F0]                                        ; +0x3c, 0x477ce8\nMOV             R1, R4                                                 ; +0x40, 0x477cec\nMOV             R2, R5                                                 ; +0x42, 0x477cee\nLDR             R3, [R0]                                               ; +0x44, 0x477cf0\nLDR.W           R3, [R3,#0xE0]                                         ; +0x46, 0x477cf2\nBLX             R3                                                     ; +0x4a, 0x477cf6\nLDR             R3, [R4]                                               ; +0x4c, 0x477cf8\nMOV             R0, R4                                                 ; +0x4e, 0x477cfa\nLDR             R1, [SP,#4+arg_0]                                      ; +0x50, 0x477cfc\nLDR             R3, [R3,#0x5C]                                         ; +0x52, 0x477cfe\nBLX             R3                                                     ; +0x54, 0x477d00\nMOV             R0, R4                                                 ; +0x56, 0x477d02\nPOP             {R3-R7,PC}                                             ; +0x58, 0x477d04\nMOVS            R0, #0                                                 ; +0x5a, 0x477d06\nPOP             {R3-R7,PC}                                             ; +0x5c, 0x477d08", "xrefs": ["GameObject::spawnDefaultPickupParticle @ 0x52a812", "GameObject::playDestroyObjectAnim @ 0x52a9b0", "GameObject::playDestroyObjectAnim @ 0x52ad6c"], "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"}