//
// cocos2d::CCLabelBMFont::createBatched from 0x100397cfc to 0x100397db0 (180 bytes)
//
// 1 xrefs:
// > TextGameObject::updateTextObject @ 0x100302410
//
// This function is hookable on this platform (idp: arm, 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:03:41 +0000
//
_DWORD *__fastcall cocos2d::CCLabelBMFont::createBatched(const char *a1, char *a2, __int64 a3, int a4)
{
_DWORD *v8; // x19
__int64 v10; // [xsp+8h] [xbp-38h] BYREF
v8 = operator new(0x208u);
cocos2d::CCLabelBMFont::CCLabelBMFont();
v8[128] = a4;
*((_BYTE *)v8 + 491) = 1;
*((_QWORD *)v8 + 62) = a3;
sub_1000262F4(&v10, &dbl_1009F6CA0);
if ( (unsigned int)cocos2d::CCLabelBMFont::initWithString((__int64)v8, a1, a2, 0, (double *)&v10, -1.0) )
{
cocos2d::CCObject::autorelease((__int64)v8);
}
else
{
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v8 + 16LL))(v8);
return nullptr;
}
return v8;
}