//
// TextArea::init from 0x6b31e4 to 0x6b3334 (336 bytes)
//
// 2 xrefs:
// > TextArea::create @ 0x6b3480
// > ??> @ 0x6a5e8
//
// 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:51 +0000
//
__int64 __fastcall TextArea::init(
__int64 a1,
char *a2,
const char *a3,
__int64 a4,
char a5,
int a6,
float a7,
float a8,
float a9)
{
unsigned __int8 v16; // w0
unsigned int v17; // w21
size_t v19; // x0
char v20; // w0
__int64 v21; // x0
__int64 v22; // x1
__int64 v25; // [xsp+80h] [xbp+80h] BYREF
__int64 v26; // [xsp+88h] [xbp+88h]
void *v27; // [xsp+90h] [xbp+90h]
v16 = cocos2d::CCSprite::init((cocos2d::CCSprite *)a1);
v17 = v16;
if ( v16 )
{
*(float *)(a1 + 616) = a8;
cocos2d::CCPoint::operator=(a1 + 656, a4);
v19 = strlen(a3);
std::string::assign((__int64 *)(a1 + 624), a3, v19);
*(_BYTE *)(a1 + 596) = a5;
*(_DWORD *)(a1 + 600) = a6;
*(float *)(a1 + 668) = a7;
v25 = 0;
*(float *)(a1 + 648) = a9;
v20 = *a2;
v26 = 0;
v27 = nullptr;
if ( (v20 & 1) != 0 )
{
std::string::__init(&v25, *((void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
v21 = *(_QWORD *)a2;
v22 = *((_QWORD *)a2 + 1);
v27 = *((void **)a2 + 2);
v25 = v21;
v26 = v22;
}
TextArea::setString((__int64 *)a1, (char *)&v25);
if ( (v25 & 1) != 0 )
operator delete(v27);
}
return v17;
}