//
// MultilineBitmapFont::createWithFont from 0x10047ba10 to 0x10047bb8a (378 bytes)
//
// 1 xrefs:
// > TextArea::setString @ 0x10030d0dd
//
// 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:30:37 +0000
//
char *__fastcall MultilineBitmapFont::createWithFont(
int a1,
__int128 *a2,
_QWORD *a3,
int a4,
int a5,
char a6,
float a7,
float a8,
float a9,
int a10)
{
char *v12; // rbx
double v13; // xmm0_8
double v14; // xmm1_8
double v15; // xmm2_8
char v16; // r14
__int64 v18; // [rsp+18h] [rbp-68h] BYREF
__int128 v19; // [rsp+20h] [rbp-60h] BYREF
void *__p; // [rsp+30h] [rbp-50h]
float v21; // [rsp+44h] [rbp-3Ch]
int v22; // [rsp+48h] [rbp-38h]
float v23; // [rsp+4Ch] [rbp-34h]
float v24; // [rsp+50h] [rbp-30h]
int v25; // [rsp+54h] [rbp-2Ch]
v21 = a9;
v25 = a5;
v22 = a4;
v23 = a8;
v24 = a7;
v12 = (char *)operator new(0x2B8u);
cocos2d::CCSprite::CCSprite((__int64)v12);
*(_QWORD *)v12 = off_100B4C0F0;
*((_QWORD *)v12 + 40) = off_100B4C5D8;
*((_QWORD *)v12 + 43) = off_100B4C658;
*((_QWORD *)v12 + 75) = 0;
v12[608] = 0;
*(_QWORD *)(v12 + 612) = 0;
*((_OWORD *)v12 + 39) = 0;
*((_OWORD *)v12 + 40) = 0;
*(_QWORD *)(v12 + 653) = 0;
*(_OWORD *)(v12 + 664) = 0;
sub_1002782A0((_QWORD *)v12 + 85);
*((_DWORD *)v12 + 172) = 0;
v12[692] = 0;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_10001AD30(&v19, *((const void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
__p = *((void **)a2 + 2);
v19 = *a2;
}
sub_1002782D0(&v18, a3);
*(_QWORD *)&v13 = LODWORD(v24);
*(_QWORD *)&v14 = LODWORD(v23);
*(_QWORD *)&v15 = LODWORD(v21);
v16 = MultilineBitmapFont::initWithFont(
(_DWORD)v12,
a1,
(unsigned int)&v19,
(unsigned int)&v18,
v22,
(unsigned __int8)v25,
a6,
a10);
if ( (v19 & 1) != 0 )
operator delete(__p);
if ( v16 )
{
cocos2d::CCObject::autorelease(v12);
}
else
{
(*(void (__fastcall **)(char *, double, double, double))(*(_QWORD *)v12 + 16LL))(v12, v13, v14, v15);
return nullptr;
}
return v12;
}