//
// TextArea::init from 0x100321b50 to 0x100321c36 (230 bytes)
//
// 1 xrefs:
// > TextArea::create @ 0x100321ac9
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall TextArea::init(
__int64 a1,
__int128 *a2,
const std::string::value_type *a3,
double *a4,
int a5,
float a6,
float a7,
float a8)
{
unsigned int v10; // eax
unsigned int v11; // ebx
double v12; // xmm0_8
__int128 v14; // [rsp+0h] [rbp-50h] BYREF
void *__p; // [rsp+10h] [rbp-40h]
int v16; // [rsp+18h] [rbp-38h]
float v17; // [rsp+1Ch] [rbp-34h]
float v18; // [rsp+20h] [rbp-30h]
float v19; // [rsp+24h] [rbp-2Ch]
v16 = a5;
v17 = a8;
v19 = a7;
v18 = a6;
LOBYTE(v10) = cocos2d::CCSprite::init((cocos2d::CCSprite *)a1);
v11 = v10;
if ( (_BYTE)v10 )
{
*(float *)(a1 + 608) = v19;
sub_10028CC90((_QWORD *)(a1 + 648), a4);
std::string::assign((std::string *)(a1 + 616), a3);
*(float *)(a1 + 660) = v18;
*(_QWORD *)&v12 = LODWORD(v17);
*(float *)(a1 + 640) = v17;
*(_BYTE *)(a1 + 596) = v16;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_100006B70(&v14, *((const void **)a2 + 2), *((_QWORD *)a2 + 1), v12);
}
else
{
__p = *((void **)a2 + 2);
v14 = *a2;
}
TextArea::setString(a1, &v14);
if ( (v14 & 1) != 0 )
operator delete(__p);
}
return v11;
}