//
// cocos2d::CCLabelBMFont::createBatched from 0x180049370 to 0x18004942a (186 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bbb48
//
// 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 11:21:42 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCLabelBMFont *__fastcall cocos2d::CCLabelBMFont::createBatched(
const char *a1,
const char *a2,
struct cocos2d::CCArray *a3,
int a4)
{
cocos2d::CCLabelBMFont *v8; // rax
cocos2d::CCLabelBMFont *v9; // rbx
cocos2d::CCLabelBMFont *v11; // [rsp+60h] [rbp+18h] BYREF
v8 = (cocos2d::CCLabelBMFont *)sub_1800E4AC0(0x218u);
v11 = v8;
if ( v8 )
v9 = cocos2d::CCLabelBMFont::CCLabelBMFont(v8);
else
v9 = nullptr;
*((_DWORD *)v9 + 132) = a4;
*((_BYTE *)v9 + 507) = 1;
*((_QWORD *)v9 + 64) = a3;
cocos2d::cc_timeval::operator=(&v11, dword_1801B23C8);
if ( (unsigned __int8)cocos2d::CCLabelBMFont::initWithString(v9, a1, a2) )
{
cocos2d::CCObject::autorelease(v9);
return v9;
}
else
{
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);
return nullptr;
}
}