//
// cocos2d::CCParticleBatchNode::initWithTexture from 0x1003b1ee0 to 0x1003b1f84 (164 bytes)
//
// 3 xrefs:
// > cocos2d::CCParticleBatchNode::createWithTexture @ 0x1003b1eb1
// > cocos2d::CCParticleBatchNode::create @ 0x1003b2003
// > cocos2d::CCParticleBatchNode::initWithFile @ 0x1003b206c
//
// 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 12:29:26 +0000
//
char __fastcall cocos2d::CCParticleBatchNode::initWithTexture(_QWORD *a1, __int64 a2, unsigned int a3)
{
void *v4; // r14
void *v5; // r14
__int64 v6; // rax
__int64 v7; // rax
v4 = operator new(0x70u);
cocos2d::CCTextureAtlas::CCTextureAtlas(v4);
a1[41] = v4;
cocos2d::CCTextureAtlas::initWithTexture(v4, a2, a3);
v5 = operator new(0x40u);
sub_1007FE7B0(v5);
a1[26] = v5;
sub_1007FE870(v5, a3);
a1[42] = 0x30300000001LL;
v6 = cocos2d::CCShaderCache::sharedShaderCache();
v7 = cocos2d::CCShaderCache::programForKey(v6, "ShaderPositionTextureColor");
(*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 664LL))(a1, v7);
return 1;
}