{"type": "func", "start": 4300952816, "end": 4300953012, "name": "GameObject::createAndAddParticle", "pseudocode": "// \n// GameObject::createAndAddParticle from 0x1005b54f0 to 0x1005b55b4 (196 bytes)\n// \n// 36 xrefs:\n// > EndPortalObject::init @ 0x10039c4a1\n// > GameObject::customSetup @ 0x1005aa726\n// > GameObject::customSetup @ 0x1005abe41\n// > GameObject::customSetup @ 0x1005ac1c8\n// > GameObject::customSetup @ 0x1005ac2c7\n// > GameObject::customSetup @ 0x1005ac4c6\n// > GameObject::customSetup @ 0x1005ac555\n// > GameObject::customSetup @ 0x1005ac683\n// > GameObject::customSetup @ 0x1005ac7a9\n// > GameObject::customSetup @ 0x1005ac85a\n// > GameObject::customSetup @ 0x1005ac973\n// > GameObject::customSetup @ 0x1005aca51\n// > GameObject::customSetup @ 0x1005acadd\n// > GameObject::customSetup @ 0x1005acca8\n// > GameObject::customSetup @ 0x1005acd48\n// > GameObject::customSetup @ 0x1005ace7b\n// > GameObject::customSetup @ 0x1005acf39\n// > GameObject::customSetup @ 0x1005ad009\n// > GameObject::customSetup @ 0x1005ad0a5\n// > GameObject::customSetup @ 0x1005ad14a\n// > GameObject::customSetup @ 0x1005ad1e9\n// > GameObject::customSetup @ 0x1005ad2a4\n// > GameObject::customSetup @ 0x1005ad3cf\n// > GameObject::customSetup @ 0x1005ad454\n// > GameObject::customSetup @ 0x1005ad56f\n// > GameObject::customSetup @ 0x1005ad640\n// > GameObject::customSetup @ 0x1005ad6e5\n// > GameObject::customSetup @ 0x1005ad816\n// > GameObject::customSetup @ 0x1005ad8ed\n// > GameObject::customSetup @ 0x1005ad970\n// > GameObject::customSetup @ 0x1005ada5e\n// > GameObject::commonInteractiveSetup @ 0x1005b54b9\n// > EnhancedGameObject::updateUserCoin @ 0x1005c1ad5\n// > EnhancedGameObject::customSetup @ 0x1005cd6d3\n// > EnhancedGameObject::customSetup @ 0x1005cda10\n// > EnhancedGameObject::customSetup @ 0x1005cdb8a\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 *__fastcall GameObject::createAndAddParticle(\n        GameObject *a1,\n        int a2,\n        const char *a3,\n        int a4,\n        cocos2d::tCCPositionType a5)\n{\n  double v5; // xmm0_8\n  GameManager *v10; // rax\n  GameManager *v11; // rax\n  std::string v12; // [rsp+8h] [rbp-48h] BYREF\n  cocos2d::CCParticleSystemQuad *Particle; // [rsp+20h] [rbp-30h]\n\n  if ( !GameManager::sharedState()->m_playLayer || a1->m_hasNoParticles )\n    return nullptr;\n  v10 = GameManager::sharedState();\n  Particle = GJBaseGameLayer::createParticle(v10->m_playLayer, a2, a3, a4, a5);\n  v11 = GameManager::sharedState();\n  GJBaseGameLayer::getParticleKey(&v12.m_data.m_long.capacitym1, v5, (__int64)v11->m_playLayer, a2, (char *)a3, a4, a5);\n  if ( (a1->m_particleString.m_data.m_short.sizex2 & 1) != 0 )\n    operator delete(a1->m_particleString.m_data.m_long.longStorage);\n  a1->m_particleString = v12;\n  a1->m_hasParticles = 1;\n  return Particle;\n}", "assembly": "; \n; GameObject::createAndAddParticle from 0x1005b54f0 to 0x1005b55b4 (196 bytes)\n; \n; 36 xrefs:\n; > EndPortalObject::init @ 0x10039c4a1\n; > GameObject::customSetup @ 0x1005aa726\n; > GameObject::customSetup @ 0x1005abe41\n; > GameObject::customSetup @ 0x1005ac1c8\n; > GameObject::customSetup @ 0x1005ac2c7\n; > GameObject::customSetup @ 0x1005ac4c6\n; > GameObject::customSetup @ 0x1005ac555\n; > GameObject::customSetup @ 0x1005ac683\n; > GameObject::customSetup @ 0x1005ac7a9\n; > GameObject::customSetup @ 0x1005ac85a\n; > GameObject::customSetup @ 0x1005ac973\n; > GameObject::customSetup @ 0x1005aca51\n; > GameObject::customSetup @ 0x1005acadd\n; > GameObject::customSetup @ 0x1005acca8\n; > GameObject::customSetup @ 0x1005acd48\n; > GameObject::customSetup @ 0x1005ace7b\n; > GameObject::customSetup @ 0x1005acf39\n; > GameObject::customSetup @ 0x1005ad009\n; > GameObject::customSetup @ 0x1005ad0a5\n; > GameObject::customSetup @ 0x1005ad14a\n; > GameObject::customSetup @ 0x1005ad1e9\n; > GameObject::customSetup @ 0x1005ad2a4\n; > GameObject::customSetup @ 0x1005ad3cf\n; > GameObject::customSetup @ 0x1005ad454\n; > GameObject::customSetup @ 0x1005ad56f\n; > GameObject::customSetup @ 0x1005ad640\n; > GameObject::customSetup @ 0x1005ad6e5\n; > GameObject::customSetup @ 0x1005ad816\n; > GameObject::customSetup @ 0x1005ad8ed\n; > GameObject::customSetup @ 0x1005ad970\n; > GameObject::customSetup @ 0x1005ada5e\n; > GameObject::commonInteractiveSetup @ 0x1005b54b9\n; > EnhancedGameObject::updateUserCoin @ 0x1005c1ad5\n; > EnhancedGameObject::customSetup @ 0x1005cd6d3\n; > EnhancedGameObject::customSetup @ 0x1005cda10\n; > EnhancedGameObject::customSetup @ 0x1005cdb8a\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    rbp                                                            ; +0x0, 0x1005b54f0\nmov     rbp, rsp                                                       ; +0x1, 0x1005b54f1\npush    r15                                                            ; +0x4, 0x1005b54f4\npush    r14                                                            ; +0x6, 0x1005b54f6\npush    r13                                                            ; +0x8, 0x1005b54f8\npush    r12                                                            ; +0xa, 0x1005b54fa\npush    rbx                                                            ; +0xc, 0x1005b54fc\nsub     rsp, 28h                                                       ; +0xd, 0x1005b54fd\nmov     r14d, r8d                                                      ; +0x11, 0x1005b5501\nmov     r15d, ecx                                                      ; +0x14, 0x1005b5504\nmov     r12, rdx                                                       ; +0x17, 0x1005b5507\nmov     r13d, esi                                                      ; +0x1a, 0x1005b550a\nmov     rbx, rdi                                                       ; +0x1d, 0x1005b550d\ncall    GameManager__sharedState                                       ; +0x20, 0x1005b5510\ncmp     qword ptr [rax+1F8h], 0                                        ; +0x25, 0x1005b5515\njz      short loc_1005B5528                                            ; +0x2d, 0x1005b551d\ncmp     byte ptr [rbx+415h], 0                                         ; +0x2f, 0x1005b551f\njz      short loc_1005B552C                                            ; +0x36, 0x1005b5526\nxor     eax, eax                                                       ; +0x38, 0x1005b5528\njmp     short loc_1005B55A5                                            ; +0x3a, 0x1005b552a\ncall    GameManager__sharedState                                       ; +0x3c, 0x1005b552c\nmov     rdi, [rax+1F8h]                                                ; +0x41, 0x1005b5531\nmov     esi, r13d                                                      ; +0x48, 0x1005b5538\nmov     rdx, r12                                                       ; +0x4b, 0x1005b553b\nmov     ecx, r15d                                                      ; +0x4e, 0x1005b553e\nmov     r8d, r14d                                                      ; +0x51, 0x1005b5541\ncall    GJBaseGameLayer__createParticle                                ; +0x54, 0x1005b5544\nmov     [rbp+var_30], rax                                              ; +0x59, 0x1005b5549\ncall    GameManager__sharedState                                       ; +0x5d, 0x1005b554d\nmov     rsi, [rax+1F8h]                                                ; +0x62, 0x1005b5552\nlea     rdi, [rbp+var_48]                                              ; +0x69, 0x1005b5559\nmov     edx, r13d                                                      ; +0x6d, 0x1005b555d\nmov     rcx, r12                                                       ; +0x70, 0x1005b5560\nmov     r8d, r15d                                                      ; +0x73, 0x1005b5563\nmov     r9d, r14d                                                      ; +0x76, 0x1005b5566\ncall    GJBaseGameLayer__getParticleKey                                ; +0x79, 0x1005b5569\nlea     r14, [rbx+310h]                                                ; +0x7e, 0x1005b556e\ntest    byte ptr [rbx+310h], 1                                         ; +0x85, 0x1005b5575\njz      short loc_1005B558A                                            ; +0x8c, 0x1005b557c\nmov     rdi, [rbx+320h]; __p                                           ; +0x8e, 0x1005b557e\ncall    __ZdlPv; operator delete(void *)                               ; +0x95, 0x1005b5585\nmov     rax, [rbp+var_38]                                              ; +0x9a, 0x1005b558a\nmov     [r14+10h], rax                                                 ; +0x9e, 0x1005b558e\nmovups  xmm0, [rbp+var_48]                                             ; +0xa2, 0x1005b5592\nmovups  xmmword ptr [r14], xmm0                                        ; +0xa6, 0x1005b5596\nmov     byte ptr [rbx+328h], 1                                         ; +0xaa, 0x1005b559a\nmov     rax, [rbp+var_30]                                              ; +0xb1, 0x1005b55a1\nadd     rsp, 28h                                                       ; +0xb5, 0x1005b55a5\npop     rbx                                                            ; +0xb9, 0x1005b55a9\npop     r12                                                            ; +0xba, 0x1005b55aa\npop     r13                                                            ; +0xbc, 0x1005b55ac\npop     r14                                                            ; +0xbe, 0x1005b55ae\npop     r15                                                            ; +0xc0, 0x1005b55b0\npop     rbp                                                            ; +0xc2, 0x1005b55b2\nretn                                                                   ; +0xc3, 0x1005b55b3", "xrefs": ["EndPortalObject::init @ 0x10039c4a1", "GameObject::customSetup @ 0x1005aa726", "GameObject::customSetup @ 0x1005abe41", "GameObject::customSetup @ 0x1005ac1c8", "GameObject::customSetup @ 0x1005ac2c7", "GameObject::customSetup @ 0x1005ac4c6", "GameObject::customSetup @ 0x1005ac555", "GameObject::customSetup @ 0x1005ac683", "GameObject::customSetup @ 0x1005ac7a9", "GameObject::customSetup @ 0x1005ac85a", "GameObject::customSetup @ 0x1005ac973", "GameObject::customSetup @ 0x1005aca51", "GameObject::customSetup @ 0x1005acadd", "GameObject::customSetup @ 0x1005acca8", "GameObject::customSetup @ 0x1005acd48", "GameObject::customSetup @ 0x1005ace7b", "GameObject::customSetup @ 0x1005acf39", "GameObject::customSetup @ 0x1005ad009", "GameObject::customSetup @ 0x1005ad0a5", "GameObject::customSetup @ 0x1005ad14a", "GameObject::customSetup @ 0x1005ad1e9", "GameObject::customSetup @ 0x1005ad2a4", "GameObject::customSetup @ 0x1005ad3cf", "GameObject::customSetup @ 0x1005ad454", "GameObject::customSetup @ 0x1005ad56f", "GameObject::customSetup @ 0x1005ad640", "GameObject::customSetup @ 0x1005ad6e5", "GameObject::customSetup @ 0x1005ad816", "GameObject::customSetup @ 0x1005ad8ed", "GameObject::customSetup @ 0x1005ad970", "GameObject::customSetup @ 0x1005ada5e", "GameObject::commonInteractiveSetup @ 0x1005b54b9", "EnhancedGameObject::updateUserCoin @ 0x1005c1ad5", "EnhancedGameObject::customSetup @ 0x1005cd6d3", "EnhancedGameObject::customSetup @ 0x1005cda10", "EnhancedGameObject::customSetup @ 0x1005cdb8a"], "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"}