//
// cocos2d::CCLabelBMFont::createBatched from 0x1002fb3d8 to 0x1002fb48c (180 bytes)
//
// 1 xrefs:
// > TextGameObject::updateTextObject @ 0x100265024
//
// 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
//
cocos2d::CCLabelBMFont *__fastcall cocos2d::CCLabelBMFont::createBatched(
const char *a1,
const char *a2,
cocos2d::CCArray *a3,
int a4)
{
cocos2d::CCLabelBMFont *v8; // x19
__int64 v10; // [xsp+8h] [xbp-38h] BYREF
cocos2d::CCPoint v11; // 0:s1.4,4:s2.4
v8 = (cocos2d::CCLabelBMFont *)operator new(0x208u);
cocos2d::CCLabelBMFont::CCLabelBMFont();
v8->m_nExtraKerning = a4;
v8->m_bIsBatched = 1;
v8->m_pTargetArray = a3;
sub_1000229B8(&v10, &qword_10086DDB0);
if ( cocos2d::CCLabelBMFont::initWithString(v8, a1, a2, -1.0, kCCTextAlignmentLeft, v11) )
{
cocos2d::CCObject::autorelease(v8);
}
else
{
((void (__fastcall *)(cocos2d::CCLabelBMFont *))v8->~CCLabelBMFont_0)(v8);
return nullptr;
}
return v8;
}