; ; cocos2d::CCParticleSystemQuad::initWithTotalParticles from 0x18006cbc0 to 0x18006cc30 (112 bytes) ; ; 25 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 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:21:55 +0000 ; push rdi ; +0x0, 0x18006cbc0 sub rsp, 20h ; +0x2, 0x18006cbc2 mov rdi, rcx ; +0x6, 0x18006cbc6 call ?initWithTotalParticles@CCParticleSystem@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystem::initWithTotalParticles(uint,bool) ; +0x9, 0x18006cbc9 test al, al ; +0xe, 0x18006cbce jz short loc_18006CBE6 ; +0x10, 0x18006cbd0 mov rcx, rdi; this ; +0x12, 0x18006cbd2 call ?allocMemory@CCParticleSystemQuad@cocos2d@@AEAA_NXZ; cocos2d::CCParticleSystemQuad::allocMemory(void) ; +0x15, 0x18006cbd5 mov rcx, rdi; this ; +0x1a, 0x18006cbda test al, al ; +0x1d, 0x18006cbdd jnz short loc_18006CBEE ; +0x1f, 0x18006cbdf call ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x21, 0x18006cbe1 xor al, al ; +0x26, 0x18006cbe6 add rsp, 20h ; +0x28, 0x18006cbe8 pop rdi ; +0x2c, 0x18006cbec retn ; +0x2d, 0x18006cbed mov [rsp+28h+arg_0], rbx ; +0x2e, 0x18006cbee call ?initIndices@CCParticleSystemQuad@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystemQuad::initIndices(void) ; +0x33, 0x18006cbf3 mov rcx, rdi; this ; +0x38, 0x18006cbf8 call ?setupVBO@CCParticleSystemQuad@cocos2d@@AEAAXXZ; cocos2d::CCParticleSystemQuad::setupVBO(void) ; +0x3b, 0x18006cbfb mov rbx, [rdi] ; +0x40, 0x18006cc00 call ?sharedShaderCache@CCShaderCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCShaderCache::sharedShaderCache(void) ; +0x43, 0x18006cc03 mov rcx, rax; this ; +0x48, 0x18006cc08 lea rdx, aShaderposition_3; "ShaderPositionTextureColor" ; +0x4b, 0x18006cc0b call ?programForKey@CCShaderCache@cocos2d@@QEAAPEAVCCGLProgram@2@PEBD@Z; cocos2d::CCShaderCache::programForKey(char const *) ; +0x52, 0x18006cc12 mov rdx, rax ; +0x57, 0x18006cc17 mov rcx, rdi ; +0x5a, 0x18006cc1a call qword ptr [rbx+290h] ; +0x5d, 0x18006cc1d mov rbx, [rsp+28h+arg_0] ; +0x63, 0x18006cc23 mov al, 1 ; +0x68, 0x18006cc28 add rsp, 20h ; +0x6a, 0x18006cc2a pop rdi ; +0x6e, 0x18006cc2e retn ; +0x6f, 0x18006cc2f