{"type": "func", "start": 6442887696, "end": 6442887808, "name": "cocos2d::CCParticleSystemQuad::initWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleSystemQuad::initWithTotalParticles from 0x18006aa10 to 0x18006aa80 (112 bytes)\n// \n// 25 xrefs:\n// > cocos2d::CCParticleExplosion::initWithTotalParticles @ 0x180063c0c\n// > cocos2d::CCParticleFire::initWithTotalParticles @ 0x180063e4c\n// > cocos2d::CCParticleFireworks::initWithTotalParticles @ 0x18006402c\n// > cocos2d::CCParticleFlower::initWithTotalParticles @ 0x18006422c\n// > cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0x18006446c\n// > cocos2d::CCParticleMeteor::initWithTotalParticles @ 0x18006468c\n// > cocos2d::CCParticleRain::initWithTotalParticles @ 0x1800648bc\n// > cocos2d::CCParticleSmoke::initWithTotalParticles @ 0x180064aec\n// > cocos2d::CCParticleSnow::initWithTotalParticles @ 0x180064cfc\n// > cocos2d::CCParticleSpiral::initWithTotalParticles @ 0x180064f2c\n// > cocos2d::CCParticleSun::initWithTotalParticles @ 0x18006516c\n// > <???> @ 0x1800fad10\n// > <???> @ 0x1800fb380\n// > <???> @ 0x1800fb9f0\n// > <???> @ 0x1800fc060\n// > <???> @ 0x1800fc6d0\n// > <???> @ 0x1800fcd40\n// > <???> @ 0x1800fd3b0\n// > <???> @ 0x1800fda20\n// > <???> @ 0x1800fe090\n// > <???> @ 0x1800fe700\n// > <???> @ 0x1800fed70\n// > <???> @ 0x180100058\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3cf0\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::CCParticleSystemQuad::initWithTotalParticles(\n        cocos2d::CCParticleSystemQuad *this,\n        unsigned int a2,\n        char a3)\n{\n  cocos2d::CCParticleSystemQuad_vtbl *v5; // rbx\n  cocos2d::CCShaderCache *v6; // rax\n  struct cocos2d::CCGLProgram *v7; // rax\n\n  if ( !cocos2d::CCParticleSystem::initWithTotalParticles(this, a2, a3) )\n    return 0;\n  if ( !cocos2d::CCParticleSystemQuad::allocMemory(this) )\n  {\n    cocos2d::CCObject::release(this);\n    return 0;\n  }\n  cocos2d::CCParticleSystemQuad::initIndices(this);\n  cocos2d::CCParticleSystemQuad::setupVBO(this);\n  v5 = this->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v6 = cocos2d::CCShaderCache::sharedShaderCache();\n  v7 = cocos2d::CCShaderCache::programForKey(v6, \"ShaderPositionTextureColor\");\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, struct cocos2d::CCGLProgram *))v5->setShaderProgram)(this, v7);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleSystemQuad::initWithTotalParticles from 0x18006aa10 to 0x18006aa80 (112 bytes)\n; \n; 25 xrefs:\n; > cocos2d::CCParticleExplosion::initWithTotalParticles @ 0x180063c0c\n; > cocos2d::CCParticleFire::initWithTotalParticles @ 0x180063e4c\n; > cocos2d::CCParticleFireworks::initWithTotalParticles @ 0x18006402c\n; > cocos2d::CCParticleFlower::initWithTotalParticles @ 0x18006422c\n; > cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0x18006446c\n; > cocos2d::CCParticleMeteor::initWithTotalParticles @ 0x18006468c\n; > cocos2d::CCParticleRain::initWithTotalParticles @ 0x1800648bc\n; > cocos2d::CCParticleSmoke::initWithTotalParticles @ 0x180064aec\n; > cocos2d::CCParticleSnow::initWithTotalParticles @ 0x180064cfc\n; > cocos2d::CCParticleSpiral::initWithTotalParticles @ 0x180064f2c\n; > cocos2d::CCParticleSun::initWithTotalParticles @ 0x18006516c\n; > <???> @ 0x1800fad10\n; > <???> @ 0x1800fb380\n; > <???> @ 0x1800fb9f0\n; > <???> @ 0x1800fc060\n; > <???> @ 0x1800fc6d0\n; > <???> @ 0x1800fcd40\n; > <???> @ 0x1800fd3b0\n; > <???> @ 0x1800fda20\n; > <???> @ 0x1800fe090\n; > <???> @ 0x1800fe700\n; > <???> @ 0x1800fed70\n; > <???> @ 0x180100058\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3cf0\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    rdi                                                            ; +0x0, 0x18006aa10\nsub     rsp, 20h                                                       ; +0x2, 0x18006aa12\nmov     rdi, rcx                                                       ; +0x6, 0x18006aa16\ncall    ?initWithTotalParticles@CCParticleSystem@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystem::initWithTotalParticles(uint,bool) ; +0x9, 0x18006aa19\ntest    al, al                                                         ; +0xe, 0x18006aa1e\njz      short loc_18006AA36                                            ; +0x10, 0x18006aa20\nmov     rcx, rdi; this                                                 ; +0x12, 0x18006aa22\ncall    ?allocMemory@CCParticleSystemQuad@cocos2d@@AEAA_NXZ; cocos2d::CCParticleSystemQuad::allocMemory(void) ; +0x15, 0x18006aa25\nmov     rcx, rdi; this                                                 ; +0x1a, 0x18006aa2a\ntest    al, al                                                         ; +0x1d, 0x18006aa2d\njnz     short loc_18006AA3E                                            ; +0x1f, 0x18006aa2f\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x21, 0x18006aa31\nxor     al, al                                                         ; +0x26, 0x18006aa36\nadd     rsp, 20h                                                       ; +0x28, 0x18006aa38\npop     rdi                                                            ; +0x2c, 0x18006aa3c\nretn                                                                   ; +0x2d, 0x18006aa3d\nmov     [rsp+28h+arg_0], rbx                                           ; +0x2e, 0x18006aa3e\ncall    ?initIndices@CCParticleSystemQuad@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystemQuad::initIndices(void) ; +0x33, 0x18006aa43\nmov     rcx, rdi; this                                                 ; +0x38, 0x18006aa48\ncall    ?setupVBO@CCParticleSystemQuad@cocos2d@@AEAAXXZ; cocos2d::CCParticleSystemQuad::setupVBO(void) ; +0x3b, 0x18006aa4b\nmov     rbx, [rdi]                                                     ; +0x40, 0x18006aa50\ncall    ?sharedShaderCache@CCShaderCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCShaderCache::sharedShaderCache(void) ; +0x43, 0x18006aa53\nmov     rcx, rax; this                                                 ; +0x48, 0x18006aa58\nlea     rdx, aShaderposition_3; \"ShaderPositionTextureColor\"           ; +0x4b, 0x18006aa5b\ncall    ?programForKey@CCShaderCache@cocos2d@@QEAAPEAVCCGLProgram@2@PEBD@Z; cocos2d::CCShaderCache::programForKey(char const *) ; +0x52, 0x18006aa62\nmov     rdx, rax                                                       ; +0x57, 0x18006aa67\nmov     rcx, rdi                                                       ; +0x5a, 0x18006aa6a\ncall    qword ptr [rbx+280h]                                           ; +0x5d, 0x18006aa6d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x63, 0x18006aa73\nmov     al, 1                                                          ; +0x68, 0x18006aa78\nadd     rsp, 20h                                                       ; +0x6a, 0x18006aa7a\npop     rdi                                                            ; +0x6e, 0x18006aa7e\nretn                                                                   ; +0x6f, 0x18006aa7f", "xrefs": ["cocos2d::CCParticleExplosion::initWithTotalParticles @ 0x180063c0c", "cocos2d::CCParticleFire::initWithTotalParticles @ 0x180063e4c", "cocos2d::CCParticleFireworks::initWithTotalParticles @ 0x18006402c", "cocos2d::CCParticleFlower::initWithTotalParticles @ 0x18006422c", "cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0x18006446c", "cocos2d::CCParticleMeteor::initWithTotalParticles @ 0x18006468c", "cocos2d::CCParticleRain::initWithTotalParticles @ 0x1800648bc", "cocos2d::CCParticleSmoke::initWithTotalParticles @ 0x180064aec", "cocos2d::CCParticleSnow::initWithTotalParticles @ 0x180064cfc", "cocos2d::CCParticleSpiral::initWithTotalParticles @ 0x180064f2c", "cocos2d::CCParticleSun::initWithTotalParticles @ 0x18006516c", "<???> @ 0x1800fad10", "<???> @ 0x1800fb380", "<???> @ 0x1800fb9f0", "<???> @ 0x1800fc060", "<???> @ 0x1800fc6d0", "<???> @ 0x1800fcd40", "<???> @ 0x1800fd3b0", "<???> @ 0x1800fda20", "<???> @ 0x1800fe090", "<???> @ 0x1800fe700", "<???> @ 0x1800fed70", "<???> @ 0x180100058", "<???> @ 0x1801438a8", "<???> @ 0x1801b3cf0"], "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"}