//
// cocos2d::CCLabelBMFont::createBatched from 0xd5a5c4 to 0xd5a6b0 (236 bytes)
//
// 2 xrefs:
// > TextGameObject::updateTextObject @ 0x77e570
// > ??> @ 0xfa8a0
//
// 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 13:07:46 +0000
//
__int64 __fastcall cocos2d::CCLabelBMFont::createBatched(
cocos2d::CCLabelBMFont *this,
cocos2d *a2,
const char *a3,
cocos2d::CCArray *a4)
{
__int64 v6; // x19
int v8; // [xsp+48h] [xbp+48h]
int v10; // [xsp+60h] [xbp+60h] BYREF
v8 = (int)a4;
v6 = operator new(0x208u);
cocos2d::CCLabelBMFont::CCLabelBMFont((cocos2d::CCLabelBMFont *)v6);
*(_DWORD *)(v6 + 512) = v8;
*(_QWORD *)(v6 + 496) = a3;
*(_BYTE *)(v6 + 491) = 1;
cocos2d::CCPoint::CCPoint(&v10, (const cocos2d::CCPoint *)&unk_1560280);
if ( (unsigned __int8)cocos2d::CCLabelBMFont::initWithString(v6, (const char *)this, a2, 0, (float *)&v10, -1.0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return v6;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 16LL))(v6);
return 0;
}
}