//
// cocos2d::CCSpriteBatchNode::create from 0x180091480 to 0x180091528 (168 bytes)
//
// 3 xrefs:
// > cocos2d::CCSpriteBatchNode::create @ 0x1800d5da5
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c024c
//
// 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:22:08 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCSpriteBatchNode *__fastcall cocos2d::CCSpriteBatchNode::create(const char *a1, unsigned int a2)
{
cocos2d::CCNode *v4; // rax
cocos2d::CCNode *v5; // rbx
cocos2d::CCTextureCache *v6; // rax
struct cocos2d::CCTexture2D *v7; // rax
v4 = (cocos2d::CCNode *)sub_1800E4AC0(0x168u);
v5 = v4;
if ( v4 )
{
cocos2d::CCNode::CCNode(v4);
*(_QWORD *)v5 = &cocos2d::CCSpriteBatchNode::`vftable'{for `cocos2d::CCNode'};
*((_QWORD *)v5 + 40) = &cocos2d::CCSpriteBatchNode::`vftable'{for `cocos2d::CCTextureProtocol'};
*((_QWORD *)v5 + 41) = 0;
*((_QWORD *)v5 + 43) = 0;
*((_BYTE *)v5 + 352) = 0;
}
else
{
v5 = nullptr;
}
v6 = cocos2d::CCTextureCache::sharedTextureCache();
v7 = cocos2d::CCTextureCache::addImage(v6, a1, 0);
cocos2d::CCSpriteBatchNode::initWithTexture(v5, v7, a2);
cocos2d::CCObject::autorelease(v5);
return v5;
}