//
// TextArea::create from 0x1003219a0 to 0x100321b0c (364 bytes)
//
// 49 xrefs:
// > AccountLayer::customSetup @ 0x1000cbe6a
// > AccountHelpLayer::customSetup @ 0x1000ce4da
// > EditLevelLayer::init @ 0x1001fb115
// > NCSInfoLayer::init @ 0x10021838f
// > AchievementCell::loadFromDict @ 0x1002438d3
// > CommentCell::loadFromComment @ 0x100248813
// > ShareLevelLayer::init @ 0x100280435
// > ShareLevelLayer::init @ 0x10028087a
// > ShareLevelLayer::init @ 0x1002809bb
// > UploadPopup::init @ 0x100281d65
// > ShareLevelSettingsLayer::init @ 0x100282f38
// > UpdateAccountSettingsPopup::init @ 0x1002a34e0
// > UploadActionPopup::init @ 0x1002a4379
// > FriendRequestPopup::loadFromGJFriendRequest @ 0x1002a5929
// > GJMessagePopup::loadFromGJMessage @ 0x1002a78c7
// > GJWriteMessagePopup::init @ 0x1002a948f
// > GJWriteMessagePopup::init @ 0x1002a980e
// > TOSPopup::init @ 0x1002b0140
// > PurchaseItemPopup::init @ 0x100327f6a
// > LevelListLayer::init @ 0x10035d4c0
// > ShareListLayer::init @ 0x100362052
// > ShareListLayer::init @ 0x1003624b0
// > UploadListPopup::init @ 0x100363b8f
// > ItemInfoPopup::init @ 0x10037259f
// > GauntletLayer::init @ 0x100392f12
// > LoadingLayer::init @ 0x1003a2ae1
// > LoadingLayer::loadAssets @ 0x1003a34ed
// > DialogLayer::displayDialogObject @ 0x1003c7b32
// > LevelLeaderboard::init @ 0x1003dab59
// > SecretLayer5::init @ 0x10047ac1a
// > LevelBrowserLayer::init @ 0x10048b8d5
// > LevelBrowserLayer::loadPage @ 0x10048ebd0
// > LevelBrowserLayer::loadPage @ 0x10048ed32
// > LevelBrowserLayer::loadPage @ 0x10048ee94
// > LevelBrowserLayer::loadPage @ 0x10048f248
// > LevelBrowserLayer::loadPage @ 0x10048f325
// > LevelBrowserLayer::loadPage @ 0x10048f402
// > FLAlertLayer::init @ 0x10049b648
// > FLAlertLayer::init @ 0x10049b819
// > EndLevelLayer::customSetup @ 0x1004c084e
// > EndLevelLayer::customSetup @ 0x1004c0a17
// > TutorialLayer::loadPage @ 0x1004dcf3c
// > CreateGuidelinesLayer::init @ 0x10050b79f
// > CreateGuidelinesLayer::init @ 0x10050b8e3
// > LeaderboardsLayer::init @ 0x1005129df
// > GauntletSelectLayer::init @ 0x100571c52
// > ShareCommentLayer::init @ 0x1005e0803
// > AchievementBar::init @ 0x100619664
// > InfoLayer::init @ 0x1007aef5c
//
// 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
//
char *__fastcall TextArea::create(
__int128 *a1,
__int64 a2,
double *a3,
unsigned __int8 a4,
float a5,
float a6,
float a7)
{
char *v9; // rbx
char v10; // r14
__int64 v12; // [rsp+8h] [rbp-58h] BYREF
__int128 v13; // [rsp+10h] [rbp-50h] BYREF
void *__p; // [rsp+20h] [rbp-40h]
float v15; // [rsp+2Ch] [rbp-34h]
float v16; // [rsp+30h] [rbp-30h]
float v17; // [rsp+34h] [rbp-2Ch]
v15 = a7;
v16 = a6;
v17 = a5;
v9 = (char *)operator new(0x2C8u);
cocos2d::CCSprite::CCSprite((__int64)v9, a2);
*(_QWORD *)v9 = off_100913158;
*((_QWORD *)v9 + 40) = off_100913630;
*((_QWORD *)v9 + 43) = off_1009136B0;
v9[596] = 0;
*(_OWORD *)(v9 + 600) = 0;
*(_OWORD *)(v9 + 616) = 0;
*(_OWORD *)(v9 + 629) = 0;
sub_10028CC30((_QWORD *)v9 + 81);
v9[656] = 0;
*((_QWORD *)v9 + 83) = 0;
*((_DWORD *)v9 + 168) = 0;
sub_10028CC30(v9 + 676);
*((_OWORD *)v9 + 43) = 0;
*((_DWORD *)v9 + 176) = 0;
if ( (*(_BYTE *)a1 & 1) != 0 )
{
sub_100006B70(&v13, *((const void **)a1 + 2), *((_QWORD *)a1 + 1), 0.0);
}
else
{
__p = *((void **)a1 + 2);
v13 = *a1;
}
sub_10028CC60(&v12, a3);
v10 = TextArea::init(v9, &v13, a2, &v12, a4, v17, v16, v15);
if ( (v13 & 1) != 0 )
operator delete(__p);
if ( v10 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v9 + 16LL))(v9);
return nullptr;
}
return v9;
}