//
// MultilineBitmapFont::createWithFont from 0x6acd58 to 0x6acf74 (540 bytes)
//
// 2 xrefs:
// > TextArea::setString @ 0x6b2d14
// > ??> @ 0xfbb30
//
// 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 12:50:49 +0000
//
__int64 __fastcall MultilineBitmapFont::createWithFont(
char *a1,
__int64 a2,
const cocos2d::CCPoint *a3,
int a4,
char a5,
char a6,
int a7,
float a8,
float a9,
float a10)
{
__int64 v20; // x19
__int64 v21; // x0
__int64 v22; // x1
int v23; // w21
float v25; // [xsp+88h] [xbp+88h] BYREF
__int64 v26; // [xsp+90h] [xbp+90h] BYREF
__int64 v27; // [xsp+98h] [xbp+98h]
void *v28; // [xsp+A0h] [xbp+A0h]
v20 = operator new(0x2B8u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v20);
*(_QWORD *)(v20 + 600) = 0;
*(_QWORD *)v20 = &off_141B6B0;
*(_QWORD *)(v20 + 320) = &off_141BB98;
*(_QWORD *)(v20 + 344) = &off_141BC18;
*(_BYTE *)(v20 + 608) = 0;
*(_DWORD *)(v20 + 612) = 0;
*(_QWORD *)(v20 + 624) = 0;
*(_QWORD *)(v20 + 632) = 0;
*(_QWORD *)(v20 + 640) = 0;
*(_QWORD *)(v20 + 648) = 0;
*(_DWORD *)(v20 + 656) = 0;
*(_BYTE *)(v20 + 660) = 0;
*(_QWORD *)(v20 + 664) = 0;
*(_DWORD *)(v20 + 672) = 0;
*(_DWORD *)(v20 + 676) = 0;
*(_DWORD *)(v20 + 616) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v20 + 680));
*(_BYTE *)(v20 + 692) = 0;
v26 = 0;
v27 = 0;
v28 = nullptr;
*(_DWORD *)(v20 + 688) = 0;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
std::string::__init(&v26, *(void **)(a2 + 16), *(_QWORD *)(a2 + 8));
}
else
{
v21 = *(_QWORD *)a2;
v22 = *(_QWORD *)(a2 + 8);
v28 = *(void **)(a2 + 16);
v26 = v21;
v27 = v22;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, a3);
v23 = (unsigned __int8)MultilineBitmapFont::initWithFont(
v20,
a1,
(unsigned __int8 *)&v26,
&v25,
a4,
a5,
a6,
a7,
a8,
a9,
a10);
if ( (v26 & 1) != 0 )
operator delete(v28);
if ( v23 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v20);
return v20;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v20 + 16LL))(v20);
return 0;
}
}