//
// TextArea::create from 0x140089e30 to 0x14008a088 (600 bytes)
//
// 68 xrefs:
// > FLAlertLayer::init @ 0x14005aa6a
// > FLAlertLayer::init @ 0x14005ab9b
// > AccountLayer::customSetup @ 0x140092f16
// > AccountHelpLayer::customSetup @ 0x140094e1e
// > AchievementBar::init @ 0x140096fce
// > AdminActionConfirmPopup::init @ 0x1400a592c
// > ReviewChoiceSheet::init @ 0x1400ae738
// > CommentOptionsPopup::init @ 0x1400c265c
// > MessageThreadsPage::init @ 0x1400d5308
// > ThreadViewPopup::init @ 0x1400da3ea
// > ThreadViewPopup::measureBody @ 0x1400e0ac2
// > ThreadViewPopup::mountVirtualRow @ 0x1400e278c
// > ThreadMessageOptionsPopup::init @ 0x1400e57c9
// > NewThreadPopup::init @ 0x1400f00db
// > ThreadDescPopup::buildUI @ 0x1400fcd6b
// > ThreadDescPopup::buildUI @ 0x1400fd29a
// > ThreadRequestPopup::init @ 0x1400ff772
// > CreateGuidelinesLayer::init @ 0x140133498
// > CreateGuidelinesLayer::init @ 0x14013361d
// > AchievementCell::loadFromDict @ 0x14014842f
// > CommentCell::loadFromComment @ 0x1401534a7
// > GJNotificationCell::loadFromNotification @ 0x14015b38d
// > GJNotificationCell::loadFromNotification @ 0x14015b4bc
// > GJNotificationCell::loadFromNotification @ 0x14015b54d
// > NCSInfoLayer::init @ 0x140167677
// > DailyRecallUnlockPopup::init @ 0x140174254
// > DialogLayer::displayDialogObject @ 0x140175359
// > EditLevelLayer::init @ 0x140178e92
// > SoundPackDescPopup::init @ 0x140199680
// > EndLevelLayer::customSetup @ 0x140204758
// > EndLevelLayer::customSetup @ 0x140204bae
// > GauntletLayer::init @ 0x1402fb43b
// > GauntletSelectLayer::init @ 0x1402fe364
// > ItemInfoPopup::init @ 0x140385c38
// > UpdateAccountSettingsPopup::init @ 0x1403a06eb
// > UploadActionPopup::init @ 0x1403a1033
// > FriendRequestPopup::loadFromGJFriendRequest @ 0x1403a212a
// > GJMessagePopup::loadFromGJMessage @ 0x1403a40ea
// > SetTextPopup::init @ 0x1403a7845
// > TOSPopup::init @ 0x1403a95dd
// > PurchaseItemPopup::init @ 0x1403b56b4
// > InfoLayer::init @ 0x1403ceaf1
// > LeaderboardsLayer::init @ 0x1403db5af
// > LevelBrowserLayer::init @ 0x1403e2b4a
// > LevelBrowserLayer::loadPage @ 0x1403e4f16
// > LevelBrowserLayer::loadPage @ 0x1403e5031
// > LevelBrowserLayer::loadPage @ 0x1403e5141
// > LevelBrowserLayer::loadPage @ 0x1403e536f
// > LevelStatsInfoPopup::init @ 0x140426b1b
// > LevelStatsInfoPopup::init @ 0x140426bc0
// > LevelLeaderboard::init @ 0x140428f95
// > LevelListLayer::init @ 0x14042cd6b
// > ShareListLayer::init @ 0x140431fa8
// > ShareListLayer::init @ 0x1404322e5
// > UploadListPopup::init @ 0x1404337b9
// > LoadingLayer::init @ 0x1404695f0
// > LoadingLayer::loadAssets @ 0x140469e56
// > NewsPopup::rebuildPage @ 0x14049f031
// > ProfilePage::onFriend @ 0x140557101
// > SecretLayer5::init @ 0x14058a50b
// > ShareCommentLayer::init @ 0x14062ef22
// > ShareLevelLayer::init @ 0x14063083c
// > ShareLevelLayer::init @ 0x140630ba3
// > ShareLevelLayer::init @ 0x140630cdd
// > UploadPopup::init @ 0x1406323a6
// > ShareLevelSettingsLayer::init @ 0x1406334ea
// > TutorialLayer::loadPage @ 0x14066fc47
// > ??> @ 0x1409126d4
//
// 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 11:25:58 +0000
//
// Hidden C++ exception states: #wind=6
char *__fastcall TextArea::create(
__int64 a1,
_BYTE *a2,
float a3,
float a4,
const struct cocos2d::CCPoint *a5,
int a6,
char a7,
int a8)
{
char *v10; // rdi
__int64 v11; // rbp
__int64 v12; // rax
__int64 v13; // rbx
size_t v14; // r8
__int64 v15; // rax
char v17[8]; // [rsp+30h] [rbp-B8h] BYREF
char v18[32]; // [rsp+38h] [rbp-B0h] BYREF
char v19[32]; // [rsp+58h] [rbp-90h] BYREF
__int64 v20; // [rsp+78h] [rbp-70h]
v20 = a1;
v10 = (char *)operator new(0x2E0u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v10);
*(_QWORD *)v10 = &TextArea::`vftable';
*((_QWORD *)v10 + 40) = &TextArea::`vftable';
*((_QWORD *)v10 + 43) = &TextArea::`vftable';
*((_WORD *)v10 + 300) = 256;
*(_QWORD *)(v10 + 604) = 0;
*((_QWORD *)v10 + 77) = 0;
*((_QWORD *)v10 + 78) = 0;
*(_OWORD *)(v10 + 632) = 0;
*((_QWORD *)v10 + 81) = 0;
*((_QWORD *)v10 + 82) = 15;
v10[632] = 0;
*((_DWORD *)v10 + 166) = 0;
v10[668] = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v10 + 672));
v10[680] = 0;
*((_QWORD *)v10 + 86) = 0;
*((_DWORD *)v10 + 174) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v10 + 700));
*((_QWORD *)v10 + 89) = 0;
*((_QWORD *)v10 + 90) = 0;
*((_DWORD *)v10 + 182) = 0;
v11 = sub_14003F4F0((__int64)v18, a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, a5);
v13 = v12;
if ( cocos2d::CCSprite::init((cocos2d::CCSprite *)v10) )
{
*((float *)v10 + 156) = a4;
cocos2d::CCPoint::operator=(v10 + 672, v13);
v14 = -1;
do
++v14;
while ( a2[v14] );
sub_1400405A0((void **)v10 + 79, a2, v14);
*((float *)v10 + 171) = a3;
*((_DWORD *)v10 + 166) = a6;
v10[600] = a7;
*((_DWORD *)v10 + 151) = a8;
v15 = sub_14003F4F0((__int64)v19, v11);
TextArea::setString(v10, v15);
sub_14003D310(v11);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v10);
}
else
{
sub_14003D310(v11);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v10 + 8LL))(v10, 1);
v10 = nullptr;
}
sub_14003D310(a1);
return v10;
}