//
// cocos2d::CCLabelBMFont::createBatched from 0x1005d89a0 to 0x1005d8a3d (157 bytes)
//
// 1 xrefs:
// > TextGameObject::updateTextObject @ 0x1005d193b
//
// 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)
{
__int64 v4; // rax
cocos2d::CCPoint v5; // xmm1_8
cocos2d::CCLabelBMFont *v8; // rbx
_QWORD v10[6]; // [rsp+0h] [rbp-30h] BYREF
v10[0] = v4;
v8 = (cocos2d::CCLabelBMFont *)operator new(0x208u);
cocos2d::CCLabelBMFont::CCLabelBMFont(v8);
v8->m_nExtraKerning = a4;
v8->m_bIsBatched = 1;
v8->m_pTargetArray = a3;
sub_10028CC60(v10, &dbl_1009A2D70);
if ( cocos2d::CCLabelBMFont::initWithString(v8, a1, a2, -1.0, kCCTextAlignmentLeft, v5) )
{
cocos2d::CCObject::autorelease(v8);
}
else
{
((void (__fastcall *)(cocos2d::CCLabelBMFont *))v8->~CCLabelBMFont_0)(v8);
return nullptr;
}
return v8;
}