{"type": "func", "start": 6442896320, "end": 6442896432, "name": "cocos2d::CCParticleSystemQuad::initWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleSystemQuad::initWithTotalParticles from 0x18006cbc0 to 0x18006cc30 (112 bytes)\n// \n// 25 xrefs:\n// > cocos2d::CCParticleExplosion::initWithTotalParticles @ 0x18006603c\n// > cocos2d::CCParticleFire::initWithTotalParticles @ 0x18006627c\n// > cocos2d::CCParticleFireworks::initWithTotalParticles @ 0x18006645c\n// > cocos2d::CCParticleFlower::initWithTotalParticles @ 0x18006665c\n// > cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0x18006689c\n// > cocos2d::CCParticleMeteor::initWithTotalParticles @ 0x180066abc\n// > cocos2d::CCParticleRain::initWithTotalParticles @ 0x180066cec\n// > cocos2d::CCParticleSmoke::initWithTotalParticles @ 0x180066f1c\n// > cocos2d::CCParticleSnow::initWithTotalParticles @ 0x18006712c\n// > cocos2d::CCParticleSpiral::initWithTotalParticles @ 0x18006736c\n// > cocos2d::CCParticleSun::initWithTotalParticles @ 0x1800675ac\n// > <???> @ 0x180101250\n// > <???> @ 0x1801018d0\n// > <???> @ 0x180101f50\n// > <???> @ 0x1801025d0\n// > <???> @ 0x180102c50\n// > <???> @ 0x1801032d0\n// > <???> @ 0x180103950\n// > <???> @ 0x180103fd0\n// > <???> @ 0x180104650\n// > <???> @ 0x180104cd0\n// > <???> @ 0x180105350\n// > <???> @ 0x1801066a8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801be038\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:55 +0000\n// \n\nchar __fastcall cocos2d::CCParticleSystemQuad::initWithTotalParticles(\n        cocos2d::CCParticleSystemQuad *this,\n        int a2,\n        char a3)\n{\n  __int64 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 = *(_QWORD *)this;\n  v6 = cocos2d::CCShaderCache::sharedShaderCache();\n  v7 = cocos2d::CCShaderCache::programForKey(v6, \"ShaderPositionTextureColor\");\n  (*(void (__fastcall **)(cocos2d::CCParticleSystemQuad *, struct cocos2d::CCGLProgram *))(v5 + 656))(this, v7);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleSystemQuad::initWithTotalParticles from 0x18006cbc0 to 0x18006cc30 (112 bytes)\n; \n; 25 xrefs:\n; > cocos2d::CCParticleExplosion::initWithTotalParticles @ 0x18006603c\n; > cocos2d::CCParticleFire::initWithTotalParticles @ 0x18006627c\n; > cocos2d::CCParticleFireworks::initWithTotalParticles @ 0x18006645c\n; > cocos2d::CCParticleFlower::initWithTotalParticles @ 0x18006665c\n; > cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0x18006689c\n; > cocos2d::CCParticleMeteor::initWithTotalParticles @ 0x180066abc\n; > cocos2d::CCParticleRain::initWithTotalParticles @ 0x180066cec\n; > cocos2d::CCParticleSmoke::initWithTotalParticles @ 0x180066f1c\n; > cocos2d::CCParticleSnow::initWithTotalParticles @ 0x18006712c\n; > cocos2d::CCParticleSpiral::initWithTotalParticles @ 0x18006736c\n; > cocos2d::CCParticleSun::initWithTotalParticles @ 0x1800675ac\n; > <???> @ 0x180101250\n; > <???> @ 0x1801018d0\n; > <???> @ 0x180101f50\n; > <???> @ 0x1801025d0\n; > <???> @ 0x180102c50\n; > <???> @ 0x1801032d0\n; > <???> @ 0x180103950\n; > <???> @ 0x180103fd0\n; > <???> @ 0x180104650\n; > <???> @ 0x180104cd0\n; > <???> @ 0x180105350\n; > <???> @ 0x1801066a8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801be038\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:55 +0000\n; \npush    rdi                                                            ; +0x0, 0x18006cbc0\nsub     rsp, 20h                                                       ; +0x2, 0x18006cbc2\nmov     rdi, rcx                                                       ; +0x6, 0x18006cbc6\ncall    ?initWithTotalParticles@CCParticleSystem@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystem::initWithTotalParticles(uint,bool) ; +0x9, 0x18006cbc9\ntest    al, al                                                         ; +0xe, 0x18006cbce\njz      short loc_18006CBE6                                            ; +0x10, 0x18006cbd0\nmov     rcx, rdi; this                                                 ; +0x12, 0x18006cbd2\ncall    ?allocMemory@CCParticleSystemQuad@cocos2d@@AEAA_NXZ; cocos2d::CCParticleSystemQuad::allocMemory(void) ; +0x15, 0x18006cbd5\nmov     rcx, rdi; this                                                 ; +0x1a, 0x18006cbda\ntest    al, al                                                         ; +0x1d, 0x18006cbdd\njnz     short loc_18006CBEE                                            ; +0x1f, 0x18006cbdf\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x21, 0x18006cbe1\nxor     al, al                                                         ; +0x26, 0x18006cbe6\nadd     rsp, 20h                                                       ; +0x28, 0x18006cbe8\npop     rdi                                                            ; +0x2c, 0x18006cbec\nretn                                                                   ; +0x2d, 0x18006cbed\nmov     [rsp+28h+arg_0], rbx                                           ; +0x2e, 0x18006cbee\ncall    ?initIndices@CCParticleSystemQuad@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystemQuad::initIndices(void) ; +0x33, 0x18006cbf3\nmov     rcx, rdi; this                                                 ; +0x38, 0x18006cbf8\ncall    ?setupVBO@CCParticleSystemQuad@cocos2d@@AEAAXXZ; cocos2d::CCParticleSystemQuad::setupVBO(void) ; +0x3b, 0x18006cbfb\nmov     rbx, [rdi]                                                     ; +0x40, 0x18006cc00\ncall    ?sharedShaderCache@CCShaderCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCShaderCache::sharedShaderCache(void) ; +0x43, 0x18006cc03\nmov     rcx, rax; this                                                 ; +0x48, 0x18006cc08\nlea     rdx, aShaderposition_3; \"ShaderPositionTextureColor\"           ; +0x4b, 0x18006cc0b\ncall    ?programForKey@CCShaderCache@cocos2d@@QEAAPEAVCCGLProgram@2@PEBD@Z; cocos2d::CCShaderCache::programForKey(char const *) ; +0x52, 0x18006cc12\nmov     rdx, rax                                                       ; +0x57, 0x18006cc17\nmov     rcx, rdi                                                       ; +0x5a, 0x18006cc1a\ncall    qword ptr [rbx+290h]                                           ; +0x5d, 0x18006cc1d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x63, 0x18006cc23\nmov     al, 1                                                          ; +0x68, 0x18006cc28\nadd     rsp, 20h                                                       ; +0x6a, 0x18006cc2a\npop     rdi                                                            ; +0x6e, 0x18006cc2e\nretn                                                                   ; +0x6f, 0x18006cc2f", "xrefs": ["cocos2d::CCParticleExplosion::initWithTotalParticles @ 0x18006603c", "cocos2d::CCParticleFire::initWithTotalParticles @ 0x18006627c", "cocos2d::CCParticleFireworks::initWithTotalParticles @ 0x18006645c", "cocos2d::CCParticleFlower::initWithTotalParticles @ 0x18006665c", "cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0x18006689c", "cocos2d::CCParticleMeteor::initWithTotalParticles @ 0x180066abc", "cocos2d::CCParticleRain::initWithTotalParticles @ 0x180066cec", "cocos2d::CCParticleSmoke::initWithTotalParticles @ 0x180066f1c", "cocos2d::CCParticleSnow::initWithTotalParticles @ 0x18006712c", "cocos2d::CCParticleSpiral::initWithTotalParticles @ 0x18006736c", "cocos2d::CCParticleSun::initWithTotalParticles @ 0x1800675ac", "<???> @ 0x180101250", "<???> @ 0x1801018d0", "<???> @ 0x180101f50", "<???> @ 0x1801025d0", "<???> @ 0x180102c50", "<???> @ 0x1801032d0", "<???> @ 0x180103950", "<???> @ 0x180103fd0", "<???> @ 0x180104650", "<???> @ 0x180104cd0", "<???> @ 0x180105350", "<???> @ 0x1801066a8", "<???> @ 0x18014cf68", "<???> @ 0x1801be038"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}