{"type": "func", "start": 4296395744, "end": 4296395905, "name": "GJBaseGameLayer::spawnParticle", "pseudocode": "// \n// GJBaseGameLayer::spawnParticle from 0x10015cbe0 to 0x10015cc81 (161 bytes)\n// \n// 3 xrefs:\n// > GameObject::spawnDefaultPickupParticle @ 0x10025e3d1\n// > GameObject::playDestroyObjectAnim @ 0x10025e5df\n// > GameObject::playDestroyObjectAnim @ 0x10025e64f\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 GJBaseGameLayer::spawnParticle(\n        GJBaseGameLayer *a1,\n        const char *a2,\n        int a3,\n        cocos2d::tCCPositionType a4,\n        cocos2d::CCPoint a5)\n{\n  __int64 v5; // r8\n  __int64 v6; // rbx\n  cocos2d::CCParticleSystemQuad *v9; // r14\n\n  v6 = v5;\n  if ( GameManager::sharedState()->m_performanceMode )\n    return nullptr;\n  v9 = cocos2d::CCParticleSystemQuad::create(a2, 0);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD, double))v9->setTag)(\n    v9,\n    (unsigned int)a3,\n    *(double *)&a5);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD))v9->setPositionType)(v9, a4);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v9->setAutoRemoveOnFinish)(v9, 1);\n  ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, _QWORD))a1->m_objectLayer->addChild_0)(\n    a1->m_objectLayer,\n    v9,\n    (unsigned int)a3);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v9->setPosition)(v9, v6);\n  return v9;\n}", "assembly": "; \n; GJBaseGameLayer::spawnParticle from 0x10015cbe0 to 0x10015cc81 (161 bytes)\n; \n; 3 xrefs:\n; > GameObject::spawnDefaultPickupParticle @ 0x10025e3d1\n; > GameObject::playDestroyObjectAnim @ 0x10025e5df\n; > GameObject::playDestroyObjectAnim @ 0x10025e64f\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, 0x10015cbe0\nmov     rbp, rsp                                                       ; +0x1, 0x10015cbe1\npush    r15                                                            ; +0x4, 0x10015cbe4\npush    r14                                                            ; +0x6, 0x10015cbe6\npush    r13                                                            ; +0x8, 0x10015cbe8\npush    r12                                                            ; +0xa, 0x10015cbea\npush    rbx                                                            ; +0xc, 0x10015cbec\npush    rax                                                            ; +0xd, 0x10015cbed\nmov     rbx, r8                                                        ; +0xe, 0x10015cbee\nmov     r13d, ecx                                                      ; +0x11, 0x10015cbf1\nmov     r15d, edx                                                      ; +0x14, 0x10015cbf4\nmov     r14, rsi                                                       ; +0x17, 0x10015cbf7\nmov     r12, rdi                                                       ; +0x1a, 0x10015cbfa\ncall    GameManager__sharedState                                       ; +0x1d, 0x10015cbfd\ncmp     byte ptr [rax+375h], 0                                         ; +0x22, 0x10015cc02\njz      short loc_10015CC10                                            ; +0x29, 0x10015cc09\nxor     r14d, r14d                                                     ; +0x2b, 0x10015cc0b\njmp     short loc_10015CC6F                                            ; +0x2e, 0x10015cc0e\nmov     rdi, r14                                                       ; +0x30, 0x10015cc10\nxor     esi, esi                                                       ; +0x33, 0x10015cc13\ncall    cocos2d__CCParticleSystemQuad__create                          ; +0x35, 0x10015cc15\nmov     r14, rax                                                       ; +0x3a, 0x10015cc1a\nmov     rax, [rax]                                                     ; +0x3d, 0x10015cc1d\nmov     rdi, r14                                                       ; +0x40, 0x10015cc20\nmov     esi, r15d                                                      ; +0x43, 0x10015cc23\ncall    qword ptr [rax+48h]                                            ; +0x46, 0x10015cc26\nmov     rax, [r14]                                                     ; +0x49, 0x10015cc29\nmov     rdi, r14                                                       ; +0x4c, 0x10015cc2c\nmov     esi, r13d                                                      ; +0x4f, 0x10015cc2f\ncall    qword ptr [rax+610h]                                           ; +0x52, 0x10015cc32\nmov     rax, [r14]                                                     ; +0x58, 0x10015cc38\nmov     rdi, r14                                                       ; +0x5b, 0x10015cc3b\nmov     esi, 1                                                         ; +0x5e, 0x10015cc3e\ncall    qword ptr [rax+620h]                                           ; +0x63, 0x10015cc43\nmov     rdi, [r12+0EB8h]                                               ; +0x69, 0x10015cc49\nmov     rax, [rdi]                                                     ; +0x71, 0x10015cc51\nmov     rsi, r14                                                       ; +0x74, 0x10015cc54\nmov     edx, r15d                                                      ; +0x77, 0x10015cc57\ncall    qword ptr [rax+1C0h]                                           ; +0x7a, 0x10015cc5a\nmov     rax, [r14]                                                     ; +0x80, 0x10015cc60\nmov     rdi, r14                                                       ; +0x83, 0x10015cc63\nmov     rsi, rbx                                                       ; +0x86, 0x10015cc66\ncall    qword ptr [rax+0B8h]                                           ; +0x89, 0x10015cc69\nmov     rax, r14                                                       ; +0x8f, 0x10015cc6f\nadd     rsp, 8                                                         ; +0x92, 0x10015cc72\npop     rbx                                                            ; +0x96, 0x10015cc76\npop     r12                                                            ; +0x97, 0x10015cc77\npop     r13                                                            ; +0x99, 0x10015cc79\npop     r14                                                            ; +0x9b, 0x10015cc7b\npop     r15                                                            ; +0x9d, 0x10015cc7d\npop     rbp                                                            ; +0x9f, 0x10015cc7f\nretn                                                                   ; +0xa0, 0x10015cc80", "xrefs": ["GameObject::spawnDefaultPickupParticle @ 0x10025e3d1", "GameObject::playDestroyObjectAnim @ 0x10025e5df", "GameObject::playDestroyObjectAnim @ 0x10025e64f"], "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"}