//
// TextArea::create from 0x592410 to 0x592660 (592 bytes)
//
// 50 xrefs:
// > FLAlertLayer::init @ 0x57e4d0
// > FLAlertLayer::init @ 0x57eabc
// > CreateGuidelinesLayer::init @ 0x5c0cd4
// > CreateGuidelinesLayer::init @ 0x5c0de0
// > LoadingLayer::loadAssets @ 0x5c4a94
// > LoadingLayer::init @ 0x5c561c
// > AchievementCell::loadFromDict @ 0x60daa4
// > CommentCell::loadFromComment @ 0x6177a0
// > EditLevelLayer::init @ 0x6e09fc
// > ShareLevelLayer::init @ 0x6e4428
// > ShareLevelLayer::init @ 0x6e4724
// > ShareLevelLayer::init @ 0x6e47e4
// > UploadPopup::init @ 0x6e53a0
// > ShareLevelSettingsLayer::init @ 0x6e62ec
// > LevelBrowserLayer::loadPage @ 0x6e9fc8
// > LevelBrowserLayer::loadPage @ 0x6ea338
// > LevelBrowserLayer::loadPage @ 0x6ea450
// > LevelBrowserLayer::loadPage @ 0x6ea590
// > LevelBrowserLayer::loadPage @ 0x6ea690
// > LevelBrowserLayer::loadPage @ 0x6ea758
// > LevelBrowserLayer::init @ 0x6eb198
// > ItemInfoPopup::init @ 0x7953c8
// > EndLevelLayer::customSetup @ 0x7d6af8
// > EndLevelLayer::customSetup @ 0x7d6dfc
// > AchievementBar::init @ 0x7d7eb8
// > TutorialLayer::loadPage @ 0x7da7bc
// > InfoLayer::init @ 0x7e4cfc
// > ShareCommentLayer::init @ 0x7e7008
// > LeaderboardsLayer::init @ 0x81f0d8
// > NCSInfoLayer::init @ 0x83e458
// > AccountLayer::customSetup @ 0x84b808
// > AccountHelpLayer::customSetup @ 0x84d274
// > TOSPopup::init @ 0x8c664c
// > UpdateAccountSettingsPopup::init @ 0x8ca358
// > UploadActionPopup::init @ 0x8cb25c
// > FriendRequestPopup::loadFromGJFriendRequest @ 0x8ccc60
// > GJMessagePopup::loadFromGJMessage @ 0x8cde80
// > GJWriteMessagePopup::init @ 0x8d0280
// > GJWriteMessagePopup::init @ 0x8d05ac
// > DialogLayer::displayDialogObject @ 0x916910
// > GauntletSelectLayer::init @ 0x91ccd0
// > GauntletLayer::init @ 0x91f814
// > PurchaseItemPopup::init @ 0x92ffec
// > LevelLeaderboard::init @ 0x932d1c
// > LevelListLayer::init @ 0xa76850
// > ShareListLayer::init @ 0xa796b8
// > ShareListLayer::init @ 0xa799ac
// > UploadListPopup::init @ 0xa7ad30
// > SecretLayer5::init @ 0xa96560
// > ??> @ 0xc20b8
//
// 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::create(
__int64 a1,
const char *a2,
const cocos2d::CCPoint *a3,
char a4,
float a5,
float a6,
float a7)
{
__int64 v14; // x19
_BOOL4 v15; // w23
void *v16; // x0
__int64 v17; // x1
__int64 v18; // x0
unsigned int *v20; // x1
int v21; // w2
__int64 v22; // [xsp+78h] [xbp+78h] BYREF
cocos2d::CCPoint v23; // [xsp+80h] [xbp+80h] BYREF
v14 = operator new(0x2B8u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v14);
*(_BYTE *)(v14 + 596) = 0;
*(_QWORD *)v14 = &off_113E5D0;
*(_QWORD *)(v14 + 320) = &off_113EAA8;
*(_QWORD *)(v14 + 344) = &off_113EB28;
*(_QWORD *)(v14 + 600) = 0;
*(_DWORD *)(v14 + 608) = 0;
*(_DWORD *)(v14 + 612) = 0;
*(_BYTE *)(v14 + 628) = 0;
*(_QWORD *)(v14 + 616) = &byte_124B6C8;
*(_DWORD *)(v14 + 624) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v14 + 632));
*(_BYTE *)(v14 + 640) = 0;
*(_DWORD *)(v14 + 648) = 0;
*(_DWORD *)(v14 + 652) = 0;
*(_DWORD *)(v14 + 656) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v14 + 660));
*(_QWORD *)(v14 + 672) = 0;
*(_QWORD *)(v14 + 680) = 0;
*(_DWORD *)(v14 + 688) = 0;
sub_D18D28(&v22, a1);
cocos2d::CCPoint::CCPoint(&v23, a3);
v15 = TextArea::init(v14, (__int64)&v22, a2, a5, a6, a7, (__int64)&v23, a4);
v16 = (void *)(v22 - 24);
if ( (__int64 *)(v22 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v20 = (unsigned int *)(v22 - 8);
do
v21 = __ldaxr(v20);
while ( __stlxr(v21 - 1, v20) );
}
else
{
v21 = *(_DWORD *)(v22 - 8);
*(_DWORD *)(v22 - 8) = v21 - 1;
}
if ( v21 <= 0 )
operator delete(v16);
}
if ( v15 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v14);
}
else
{
v17 = *(_QWORD *)v14;
v18 = v14;
v14 = 0;
(*(void (__fastcall **)(__int64))(v17 + 16))(v18);
}
return v14;
}