{"type": "func", "start": 4297430896, "end": 4297431104, "name": "GameObject::createAndAddParticle", "pseudocode": "// \n// GameObject::createAndAddParticle from 0x100259770 to 0x100259840 (208 bytes)\n// \n// 35 xrefs:\n// > GameObject::customSetup @ 0x10025743c\n// > GameObject::customSetup @ 0x10025823c\n// > GameObject::customSetup @ 0x100258314\n// > GameObject::customSetup @ 0x1002584c4\n// > GameObject::customSetup @ 0x100258524\n// > GameObject::customSetup @ 0x1002585fc\n// > GameObject::customSetup @ 0x1002586f4\n// > GameObject::customSetup @ 0x100258790\n// > GameObject::customSetup @ 0x10025886c\n// > GameObject::customSetup @ 0x100258924\n// > GameObject::customSetup @ 0x100258994\n// > GameObject::customSetup @ 0x100258b1c\n// > GameObject::customSetup @ 0x100258ba0\n// > GameObject::customSetup @ 0x100258c74\n// > GameObject::customSetup @ 0x100258d04\n// > GameObject::customSetup @ 0x100258dd4\n// > GameObject::customSetup @ 0x100258e5c\n// > GameObject::customSetup @ 0x100258ee8\n// > GameObject::customSetup @ 0x100258f78\n// > GameObject::customSetup @ 0x100259018\n// > GameObject::customSetup @ 0x10025910c\n// > GameObject::customSetup @ 0x10025917c\n// > GameObject::customSetup @ 0x100259250\n// > GameObject::customSetup @ 0x100259318\n// > GameObject::customSetup @ 0x1002593a4\n// > GameObject::customSetup @ 0x1002594a8\n// > GameObject::customSetup @ 0x100259558\n// > GameObject::customSetup @ 0x1002595c0\n// > GameObject::customSetup @ 0x100259698\n// > GameObject::commonInteractiveSetup @ 0x100259740\n// > EnhancedGameObject::updateUserCoin @ 0x10025f550\n// > EnhancedGameObject::customSetup @ 0x1002643c0\n// > EnhancedGameObject::customSetup @ 0x10026463c\n// > EnhancedGameObject::customSetup @ 0x1002646e4\n// > EndPortalObject::init @ 0x1003fe784\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 GameObject::createAndAddParticle(\n        GameObject *a1,\n        int a2,\n        const char *a3,\n        int a4,\n        cocos2d::tCCPositionType a5)\n{\n  __int64 v5; // x20\n  __int64 v6; // x22\n  __int64 v8; // x24\n  cocos2d::CCParticleSystemQuad *Particle; // x21\n  GameManager *v11; // x0\n  void **p_m_particleString; // x20\n  __int128 v14; // [xsp+8h] [xbp-48h] BYREF\n  char *v15; // [xsp+18h] [xbp-38h]\n\n  v5 = *(_QWORD *)&a5;\n  v6 = *(_QWORD *)&a4;\n  v8 = *(_QWORD *)&a2;\n  if ( !GameManager::sharedState()->m_playLayer || a1->m_hasNoParticles )\n    return nullptr;\n  v11 = GameManager::sharedState();\n  Particle = GJBaseGameLayer::createParticle(v11->m_playLayer, v8, a3, v6, (cocos2d::tCCPositionType)v5);\n  GameManager::sharedState();\n  GJBaseGameLayer::getParticleKey(v8, (char *)a3, v6, v5, &v14);\n  p_m_particleString = (void **)&a1->m_particleString;\n  if ( a1->m_particleString.m_data.m_short.shortStorage.__elems_[22] < 0 )\n    operator delete(*p_m_particleString);\n  *(_OWORD *)p_m_particleString = v14;\n  a1->m_particleString.m_data.m_long.longStorage = v15;\n  a1->m_hasParticles = 1;\n  return Particle;\n}", "assembly": "; \n; GameObject::createAndAddParticle from 0x100259770 to 0x100259840 (208 bytes)\n; \n; 35 xrefs:\n; > GameObject::customSetup @ 0x10025743c\n; > GameObject::customSetup @ 0x10025823c\n; > GameObject::customSetup @ 0x100258314\n; > GameObject::customSetup @ 0x1002584c4\n; > GameObject::customSetup @ 0x100258524\n; > GameObject::customSetup @ 0x1002585fc\n; > GameObject::customSetup @ 0x1002586f4\n; > GameObject::customSetup @ 0x100258790\n; > GameObject::customSetup @ 0x10025886c\n; > GameObject::customSetup @ 0x100258924\n; > GameObject::customSetup @ 0x100258994\n; > GameObject::customSetup @ 0x100258b1c\n; > GameObject::customSetup @ 0x100258ba0\n; > GameObject::customSetup @ 0x100258c74\n; > GameObject::customSetup @ 0x100258d04\n; > GameObject::customSetup @ 0x100258dd4\n; > GameObject::customSetup @ 0x100258e5c\n; > GameObject::customSetup @ 0x100258ee8\n; > GameObject::customSetup @ 0x100258f78\n; > GameObject::customSetup @ 0x100259018\n; > GameObject::customSetup @ 0x10025910c\n; > GameObject::customSetup @ 0x10025917c\n; > GameObject::customSetup @ 0x100259250\n; > GameObject::customSetup @ 0x100259318\n; > GameObject::customSetup @ 0x1002593a4\n; > GameObject::customSetup @ 0x1002594a8\n; > GameObject::customSetup @ 0x100259558\n; > GameObject::customSetup @ 0x1002595c0\n; > GameObject::customSetup @ 0x100259698\n; > GameObject::commonInteractiveSetup @ 0x100259740\n; > EnhancedGameObject::updateUserCoin @ 0x10025f550\n; > EnhancedGameObject::customSetup @ 0x1002643c0\n; > EnhancedGameObject::customSetup @ 0x10026463c\n; > EnhancedGameObject::customSetup @ 0x1002646e4\n; > EndPortalObject::init @ 0x1003fe784\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\nSUB             SP, SP, #0x60                                          ; +0x0, 0x100259770\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x4, 0x100259774\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x8, 0x100259778\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0xc, 0x10025977c\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10, 0x100259780\nADD             X29, SP, #0x50                                         ; +0x14, 0x100259784\nMOV             X20, X4                                                ; +0x18, 0x100259788\nMOV             X22, X3                                                ; +0x1c, 0x10025978c\nMOV             X23, X2                                                ; +0x20, 0x100259790\nMOV             X24, X1                                                ; +0x24, 0x100259794\nMOV             X19, X0                                                ; +0x28, 0x100259798\nBL              GameManager__sharedState                               ; +0x2c, 0x10025979c\nLDR             X8, [X0,#0x1F8]                                        ; +0x30, 0x1002597a0\nCBZ             X8, loc_1002597B0                                      ; +0x34, 0x1002597a4\nLDRB            W8, [X19,#0x415]                                       ; +0x38, 0x1002597a8\nTBZ             W8, #0, loc_1002597B8                                  ; +0x3c, 0x1002597ac\nMOV             X21, #0                                                ; +0x40, 0x1002597b0\nB               loc_100259824                                          ; +0x44, 0x1002597b4\nBL              GameManager__sharedState                               ; +0x48, 0x1002597b8\nLDR             X0, [X0,#0x1F8]                                        ; +0x4c, 0x1002597bc\nMOV             X1, X24                                                ; +0x50, 0x1002597c0\nMOV             X2, X23                                                ; +0x54, 0x1002597c4\nMOV             X3, X22                                                ; +0x58, 0x1002597c8\nMOV             X4, X20                                                ; +0x5c, 0x1002597cc\nBL              GJBaseGameLayer__createParticle                        ; +0x60, 0x1002597d0\nMOV             X21, X0                                                ; +0x64, 0x1002597d4\nBL              GameManager__sharedState                               ; +0x68, 0x1002597d8\nLDR             X0, [X0,#0x1F8]                                        ; +0x6c, 0x1002597dc\nADD             X8, SP, #0x50+var_48                                   ; +0x70, 0x1002597e0\nMOV             X1, X24                                                ; +0x74, 0x1002597e4\nMOV             X2, X23                                                ; +0x78, 0x1002597e8\nMOV             X3, X22                                                ; +0x7c, 0x1002597ec\nMOV             X4, X20                                                ; +0x80, 0x1002597f0\nBL              GJBaseGameLayer__getParticleKey                        ; +0x84, 0x1002597f4\nADD             X20, X19, #0x310                                       ; +0x88, 0x1002597f8\nLDRSB           W8, [X19,#0x327]                                       ; +0x8c, 0x1002597fc\nTBZ             W8, #0x1F, loc_10025980C                               ; +0x90, 0x100259800\nLDR             X0, [X20]; __p                                         ; +0x94, 0x100259804\nBL              __ZdlPv; operator delete(void *)                       ; +0x98, 0x100259808\nLDUR            Q0, [SP,#0x50+var_48]                                  ; +0x9c, 0x10025980c\nSTR             Q0, [X20]                                              ; +0xa0, 0x100259810\nLDR             X8, [SP,#0x50+var_38]                                  ; +0xa4, 0x100259814\nSTR             X8, [X20,#0x10]                                        ; +0xa8, 0x100259818\nMOV             W8, #1                                                 ; +0xac, 0x10025981c\nSTRB            W8, [X19,#0x328]                                       ; +0xb0, 0x100259820\nMOV             X0, X21                                                ; +0xb4, 0x100259824\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0xb8, 0x100259828\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xbc, 0x10025982c\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0xc0, 0x100259830\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0xc4, 0x100259834\nADD             SP, SP, #0x60 ; '`'                                    ; +0xc8, 0x100259838\nRET                                                                    ; +0xcc, 0x10025983c", "xrefs": ["GameObject::customSetup @ 0x10025743c", "GameObject::customSetup @ 0x10025823c", "GameObject::customSetup @ 0x100258314", "GameObject::customSetup @ 0x1002584c4", "GameObject::customSetup @ 0x100258524", "GameObject::customSetup @ 0x1002585fc", "GameObject::customSetup @ 0x1002586f4", "GameObject::customSetup @ 0x100258790", "GameObject::customSetup @ 0x10025886c", "GameObject::customSetup @ 0x100258924", "GameObject::customSetup @ 0x100258994", "GameObject::customSetup @ 0x100258b1c", "GameObject::customSetup @ 0x100258ba0", "GameObject::customSetup @ 0x100258c74", "GameObject::customSetup @ 0x100258d04", "GameObject::customSetup @ 0x100258dd4", "GameObject::customSetup @ 0x100258e5c", "GameObject::customSetup @ 0x100258ee8", "GameObject::customSetup @ 0x100258f78", "GameObject::customSetup @ 0x100259018", "GameObject::customSetup @ 0x10025910c", "GameObject::customSetup @ 0x10025917c", "GameObject::customSetup @ 0x100259250", "GameObject::customSetup @ 0x100259318", "GameObject::customSetup @ 0x1002593a4", "GameObject::customSetup @ 0x1002594a8", "GameObject::customSetup @ 0x100259558", "GameObject::customSetup @ 0x1002595c0", "GameObject::customSetup @ 0x100259698", "GameObject::commonInteractiveSetup @ 0x100259740", "EnhancedGameObject::updateUserCoin @ 0x10025f550", "EnhancedGameObject::customSetup @ 0x1002643c0", "EnhancedGameObject::customSetup @ 0x10026463c", "EnhancedGameObject::customSetup @ 0x1002646e4", "EndPortalObject::init @ 0x1003fe784"], "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"}