//
// cocos2d::CCLabelBMFont::createBatched from 0x1006aa2f0 to 0x1006aa38d (157 bytes)
//
// 1 xrefs:
// > TextGameObject::updateTextObject @ 0x1006a31b1
//
// 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:35:21 +0000
//
_DWORD *__fastcall cocos2d::CCLabelBMFont::createBatched(const char *a1, char *a2, __int64 a3, int a4)
{
__int64 v4; // rax
_DWORD *v7; // rbx
_QWORD v9[6]; // [rsp+0h] [rbp-30h] BYREF
v9[0] = v4;
v7 = operator new(0x208u);
cocos2d::CCLabelBMFont::CCLabelBMFont(v7);
v7[128] = a4;
*((_BYTE *)v7 + 491) = 1;
*((_QWORD *)v7 + 62) = a3;
sub_1002782D0(v9, &qword_100BE5D00);
if ( cocos2d::CCLabelBMFont::initWithString((__int64)v7, a1, a2, 0, v9, -1.0) )
{
cocos2d::CCObject::autorelease((__int64)v7);
}
else
{
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v7 + 16LL))(v7);
return nullptr;
}
return v7;
}