//
// TextArea::create from 0x10030cc20 to 0x10030cd9f (383 bytes)
//
// 73 xrefs:
// > AccountLayer::customSetup @ 0x10009a2bd
// > AccountHelpLayer::customSetup @ 0x10009c92d
// > EditLevelLayer::init @ 0x1001dd757
// > NCSInfoLayer::init @ 0x1001fb812
// > AchievementCell::loadFromDict @ 0x1002293f6
// > CommentCell::loadFromComment @ 0x10022e3bc
// > GJNotificationCell::loadFromNotification @ 0x10023401a
// > GJNotificationCell::loadFromNotification @ 0x100234115
// > GJNotificationCell::loadFromNotification @ 0x1002341b8
// > GJNotificationCell::loadFromNotification @ 0x1002342f5
// > ShareLevelLayer::init @ 0x10026cc08
// > ShareLevelLayer::init @ 0x10026cf4a
// > ShareLevelLayer::init @ 0x10026d086
// > UploadPopup::init @ 0x10026e918
// > ShareLevelSettingsLayer::init @ 0x10026fab8
// > UpdateAccountSettingsPopup::init @ 0x10028f593
// > UploadActionPopup::init @ 0x1002904fc
// > FriendRequestPopup::loadFromGJFriendRequest @ 0x100291ce3
// > GJMessagePopup::loadFromGJMessage @ 0x1002940df
// > GJWriteMessagePopup::init @ 0x100295c12
// > GJWriteMessagePopup::init @ 0x100295f94
// > sub_10029AA90 @ 0x10029afe1
// > TOSPopup::init @ 0x10029d4d3
// > PurchaseItemPopup::init @ 0x1003136bd
// > LevelListLayer::init @ 0x100348a8b
// > ShareListLayer::init @ 0x10034daf7
// > ShareListLayer::init @ 0x10034de74
// > UploadListPopup::init @ 0x10034f742
// > ItemInfoPopup::init @ 0x10035ba72
// > GauntletLayer::init @ 0x10037de75
// > LoadingLayer::init @ 0x10038c0f4
// > LoadingLayer::loadAssets @ 0x10038cb0d
// > DialogLayer::displayDialogObject @ 0x1003b1025
// > LevelLeaderboard::init @ 0x1003c7b3c
// > SecretLayer5::init @ 0x10046f57d
// > LevelBrowserLayer::init @ 0x1004810a8
// > LevelBrowserLayer::loadPage @ 0x100484c33
// > LevelBrowserLayer::loadPage @ 0x100484d98
// > LevelBrowserLayer::loadPage @ 0x100484efd
// > LevelBrowserLayer::loadPage @ 0x1004852b4
// > LevelBrowserLayer::loadPage @ 0x100485394
// > LevelBrowserLayer::loadPage @ 0x100485474
// > FLAlertLayer::init @ 0x10049407c
// > FLAlertLayer::init @ 0x10049425d
// > EndLevelLayer::customSetup @ 0x1004b97b3
// > EndLevelLayer::customSetup @ 0x1004b9973
// > TutorialLayer::loadPage @ 0x1004d807f
// > CreateGuidelinesLayer::init @ 0x10050cdc2
// > CreateGuidelinesLayer::init @ 0x10050cf09
// > LeaderboardsLayer::init @ 0x100513a12
// > GauntletSelectLayer::init @ 0x10059ef55
// > ShareCommentLayer::init @ 0x1006b219b
// > sub_1006B3110 @ 0x1006b3269
// > AchievementBar::init @ 0x1006f60c7
// > InfoLayer::init @ 0x10089214a
// > SoundPackDescPopup::init @ 0x1008fa539
// > LevelStatsInfoPopup::init @ 0x1009261af
// > LevelStatsInfoPopup::init @ 0x10092625f
// > MessageThreadsPage::init @ 0x100928f07
// > ThreadViewPopup::init @ 0x10092e61c
// > sub_100936360 @ 0x10093664a
// > ThreadViewPopup::mountVirtualRow @ 0x100938f10
// > sub_10093ADB0 @ 0x10093b176
// > NewThreadPopup::init @ 0x10094533e
// > ThreadDescPopup::buildUI @ 0x100952757
// > ThreadDescPopup::buildUI @ 0x100952855
// > sub_1009543D0 @ 0x100954ddb
// > NewsPopup::rebuildPage @ 0x100959db3
// > CommentOptionsPopup::init @ 0x10096816d
// > DailyRecallUnlockPopup::init @ 0x10098a8c5
// > DailyRecallUnlockPopup::init @ 0x10098a993
// > sub_100993790 @ 0x100993cea
// > sub_1009A4C50 @ 0x1009a4f60
//
// 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:28:37 +0000
//
char *__fastcall TextArea::create(
__int128 *a1,
__int64 a2,
_QWORD *a3,
unsigned __int8 a4,
unsigned int a5,
float a6,
float a7,
float a8)
{
char *v10; // rbx
char v11; // r14
__int64 v13; // [rsp+8h] [rbp-58h] BYREF
__int128 v14; // [rsp+10h] [rbp-50h] BYREF
void *__p; // [rsp+20h] [rbp-40h]
unsigned int v16; // [rsp+28h] [rbp-38h]
float v17; // [rsp+2Ch] [rbp-34h]
float v18; // [rsp+30h] [rbp-30h]
float v19; // [rsp+34h] [rbp-2Ch]
v16 = a5;
v17 = a8;
v18 = a7;
v19 = a6;
v10 = (char *)operator new(0x2D0u);
cocos2d::CCSprite::CCSprite((__int64)v10);
*(_QWORD *)v10 = off_100B1AEA8;
*((_QWORD *)v10 + 40) = off_100B1B390;
*((_QWORD *)v10 + 43) = off_100B1B410;
*((_WORD *)v10 + 298) = 256;
*(_OWORD *)(v10 + 600) = 0;
*(_OWORD *)(v10 + 616) = 0;
*(_OWORD *)(v10 + 632) = 0;
*(_QWORD *)(v10 + 645) = 0;
sub_1002782A0((_QWORD *)v10 + 82);
v10[664] = 0;
*((_QWORD *)v10 + 84) = 0;
*((_DWORD *)v10 + 170) = 0;
sub_1002782A0(v10 + 684);
*(_OWORD *)(v10 + 696) = 0;
*((_DWORD *)v10 + 178) = 0;
if ( (*(_BYTE *)a1 & 1) != 0 )
{
sub_10001AD30(&v14, *((const void **)a1 + 2), *((_QWORD *)a1 + 1));
}
else
{
__p = *((void **)a1 + 2);
v14 = *a1;
}
sub_1002782D0(&v13, a3);
v11 = sub_10030CDF0(v10, &v14, a2, &v13, a4, v16, v19, v18, v17);
if ( (v14 & 1) != 0 )
operator delete(__p);
if ( v11 )
{
cocos2d::CCObject::autorelease(v10);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v10 + 16LL))(v10);
return nullptr;
}
return v10;
}