//
// cocos2d::CCParticleBatchNode::initWithTexture from 0x180063b00 to 0x180063bd3 (211 bytes)
//
// 5 xrefs:
// > cocos2d::CCParticleBatchNode::create @ 0x18006378b
// > cocos2d::CCParticleBatchNode::createWithTexture @ 0x180063868
// > cocos2d::CCParticleBatchNode::initWithFile @ 0x180063af3
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd9a8
//
// 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:52 +0000
//
// Hidden C++ exception states: #wind=2
char __fastcall cocos2d::CCParticleBatchNode::initWithTexture(
cocos2d::CCParticleBatchNode *this,
struct cocos2d::CCTexture2D *a2,
unsigned int a3)
{
cocos2d::CCTextureAtlas *v6; // rax
cocos2d::CCArray *v7; // rbx
cocos2d::CCTextureAtlas *v8; // rax
cocos2d::CCArray *v9; // rax
__int64 v10; // rbx
cocos2d::CCShaderCache *v11; // rax
struct cocos2d::CCGLProgram *v12; // rax
v6 = (cocos2d::CCTextureAtlas *)sub_1800E4AC0(0x70u);
v7 = nullptr;
if ( v6 )
v8 = (cocos2d::CCTextureAtlas *)cocos2d::CCTextureAtlas::CCTextureAtlas(v6);
else
v8 = nullptr;
*((_QWORD *)this + 41) = v8;
cocos2d::CCTextureAtlas::initWithTexture(v8, a2, a3);
v9 = (cocos2d::CCArray *)sub_1800E4AC0(0x40u);
if ( v9 )
v7 = cocos2d::CCArray::CCArray(v9);
*((_QWORD *)this + 26) = v7;
cocos2d::CCArray::initWithCapacity(v7, a3);
*((_DWORD *)this + 84) = 1;
*((_DWORD *)this + 85) = 771;
v10 = *(_QWORD *)this;
v11 = cocos2d::CCShaderCache::sharedShaderCache();
v12 = cocos2d::CCShaderCache::programForKey(v11, "ShaderPositionTextureColor");
(*(void (__fastcall **)(cocos2d::CCParticleBatchNode *, struct cocos2d::CCGLProgram *))(v10 + 656))(this, v12);
return 1;
}