; ; cocos2d::CCParticleSystemQuad::initWithTotalParticles from 0x18006aa10 to 0x18006aa80 (112 bytes) ; ; 25 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 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rdi ; +0x0, 0x18006aa10 sub rsp, 20h ; +0x2, 0x18006aa12 mov rdi, rcx ; +0x6, 0x18006aa16 call ?initWithTotalParticles@CCParticleSystem@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystem::initWithTotalParticles(uint,bool) ; +0x9, 0x18006aa19 test al, al ; +0xe, 0x18006aa1e jz short loc_18006AA36 ; +0x10, 0x18006aa20 mov rcx, rdi; this ; +0x12, 0x18006aa22 call ?allocMemory@CCParticleSystemQuad@cocos2d@@AEAA_NXZ; cocos2d::CCParticleSystemQuad::allocMemory(void) ; +0x15, 0x18006aa25 mov rcx, rdi; this ; +0x1a, 0x18006aa2a test al, al ; +0x1d, 0x18006aa2d jnz short loc_18006AA3E ; +0x1f, 0x18006aa2f call ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x21, 0x18006aa31 xor al, al ; +0x26, 0x18006aa36 add rsp, 20h ; +0x28, 0x18006aa38 pop rdi ; +0x2c, 0x18006aa3c retn ; +0x2d, 0x18006aa3d mov [rsp+28h+arg_0], rbx ; +0x2e, 0x18006aa3e call ?initIndices@CCParticleSystemQuad@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystemQuad::initIndices(void) ; +0x33, 0x18006aa43 mov rcx, rdi; this ; +0x38, 0x18006aa48 call ?setupVBO@CCParticleSystemQuad@cocos2d@@AEAAXXZ; cocos2d::CCParticleSystemQuad::setupVBO(void) ; +0x3b, 0x18006aa4b mov rbx, [rdi] ; +0x40, 0x18006aa50 call ?sharedShaderCache@CCShaderCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCShaderCache::sharedShaderCache(void) ; +0x43, 0x18006aa53 mov rcx, rax; this ; +0x48, 0x18006aa58 lea rdx, aShaderposition_3; "ShaderPositionTextureColor" ; +0x4b, 0x18006aa5b call ?programForKey@CCShaderCache@cocos2d@@QEAAPEAVCCGLProgram@2@PEBD@Z; cocos2d::CCShaderCache::programForKey(char const *) ; +0x52, 0x18006aa62 mov rdx, rax ; +0x57, 0x18006aa67 mov rcx, rdi ; +0x5a, 0x18006aa6a call qword ptr [rbx+280h] ; +0x5d, 0x18006aa6d mov rbx, [rsp+28h+arg_0] ; +0x63, 0x18006aa73 mov al, 1 ; +0x68, 0x18006aa78 add rsp, 20h ; +0x6a, 0x18006aa7a pop rdi ; +0x6e, 0x18006aa7e retn ; +0x6f, 0x18006aa7f