{"type": "func", "start": 6442867120, "end": 6442867184, "name": "cocos2d::CCParticleSystem::addParticle", "pseudocode": "// \n// cocos2d::CCParticleSystem::addParticle from 0x1800659b0 to 0x1800659f0 (64 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3b88\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\nchar __fastcall cocos2d::CCParticleSystem::addParticle(cocos2d::CCParticleSystem *this)\n{\n  __int64 m_uParticleCount; // rax\n\n  m_uParticleCount = this->m_uParticleCount;\n  if ( (_DWORD)m_uParticleCount == this->m_uTotalParticles )\n    return 0;\n  cocos2d::CCParticleSystem::initParticle(\n    this,\n    (struct cocos2d::sCCParticle *)((char *)this->m_pParticles + 148 * m_uParticleCount));\n  ++this->m_uParticleCount;\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleSystem::addParticle from 0x1800659b0 to 0x1800659f0 (64 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3b88\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    rbx                                                            ; +0x0, 0x1800659b0\nsub     rsp, 20h                                                       ; +0x2, 0x1800659b2\nmov     eax, [rcx+1D0h]                                                ; +0x6, 0x1800659b6\nmov     rbx, rcx                                                       ; +0xc, 0x1800659bc\ncmp     eax, [rcx+298h]                                                ; +0xf, 0x1800659bf\njnz     short loc_1800659CF                                            ; +0x15, 0x1800659c5\nxor     al, al                                                         ; +0x17, 0x1800659c7\nadd     rsp, 20h                                                       ; +0x19, 0x1800659c9\npop     rbx                                                            ; +0x1d, 0x1800659cd\nretn                                                                   ; +0x1e, 0x1800659ce\nimul    rdx, rax, 94h                                                  ; +0x1f, 0x1800659cf\nadd     rdx, [rcx+1A8h]; struct cocos2d::sCCParticle *                 ; +0x26, 0x1800659d6\ncall    ?initParticle@CCParticleSystem@cocos2d@@QEAAXPEAUsCCParticle@2@@Z; cocos2d::CCParticleSystem::initParticle(cocos2d::sCCParticle *) ; +0x2d, 0x1800659dd\ninc     dword ptr [rbx+1D0h]                                           ; +0x32, 0x1800659e2\nmov     al, 1                                                          ; +0x38, 0x1800659e8\nadd     rsp, 20h                                                       ; +0x3a, 0x1800659ea\npop     rbx                                                            ; +0x3e, 0x1800659ee\nretn                                                                   ; +0x3f, 0x1800659ef", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b3b88"], "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"}