//
// cocos2d::CCParticleBatchNode::initWithTexture from 0xd725a0 to 0xd72648 (168 bytes)
//
// 3 xrefs:
// > cocos2d::CCParticleBatchNode::createWithTexture @ 0xd7267c
// > cocos2d::CCParticleBatchNode::initWithFile @ 0xd726fc
// > ??> @ 0x70e88
//
// This function is hookable on this platform (idp: arm, 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 13:08:01 +0000
//
__int64 __fastcall cocos2d::CCParticleBatchNode::initWithTexture(
cocos2d::CCParticleBatchNode *this,
cocos2d::CCTexture2D *a2,
unsigned int a3)
{
cocos2d::CCTextureAtlas *v5; // x20
cocos2d::CCArray *v6; // x21
cocos2d::CCShaderCache *v7; // x0
void (__fastcall *v8)(cocos2d::CCParticleBatchNode *, __int64); // x21
cocos2d::CCShaderCache *v9; // x0
__int64 v10; // x0
v5 = (cocos2d::CCTextureAtlas *)operator new(0x70u);
cocos2d::CCTextureAtlas::CCTextureAtlas(v5);
*((_QWORD *)this + 41) = v5;
cocos2d::CCTextureAtlas::initWithTexture(v5, a2, a3);
v6 = (cocos2d::CCArray *)operator new(0x40u);
cocos2d::CCArray::CCArray(v6);
*((_QWORD *)this + 26) = v6;
cocos2d::CCArray::initWithCapacity(v6, a3);
*((_DWORD *)this + 84) = 1;
v7 = *(cocos2d::CCShaderCache **)this;
*((_DWORD *)this + 85) = 771;
v8 = *((void (__fastcall **)(cocos2d::CCParticleBatchNode *, __int64))v7 + 83);
v9 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(v7);
v10 = cocos2d::CCShaderCache::programForKey(v9, "ShaderPositionTextureColor");
v8(this, v10);
return 1;
}