//
// TextArea::create from 0x140076e80 to 0x1400770bf (575 bytes)
//
// 48 xrefs:
// > FLAlertLayer::init @ 0x140051e10
// > FLAlertLayer::init @ 0x140051f2e
// > AccountLayer::customSetup @ 0x14007d86d
// > AccountHelpLayer::customSetup @ 0x14007f746
// > AchievementBar::init @ 0x14008192f
// > CreateGuidelinesLayer::init @ 0x140099edb
// > CreateGuidelinesLayer::init @ 0x14009a051
// > AchievementCell::loadFromDict @ 0x1400adae3
// > CommentCell::loadFromComment @ 0x1400b70c4
// > NCSInfoLayer::init @ 0x1400c6742
// > DialogLayer::displayDialogObject @ 0x1400d3ce0
// > EditLevelLayer::init @ 0x1400d5df1
// > EndLevelLayer::customSetup @ 0x140133774
// > EndLevelLayer::customSetup @ 0x140133b69
// > GauntletLayer::init @ 0x1401f66d0
// > GauntletSelectLayer::init @ 0x1401f954c
// > ItemInfoPopup::init @ 0x14027d110
// > UpdateAccountSettingsPopup::init @ 0x140294b92
// > UploadActionPopup::init @ 0x14029550d
// > FriendRequestPopup::loadFromGJFriendRequest @ 0x140296538
// > GJMessagePopup::loadFromGJMessage @ 0x140297fdb
// > GJWriteMessagePopup::init @ 0x140299b09
// > GJWriteMessagePopup::init @ 0x140299ebd
// > TOSPopup::init @ 0x14029e2db
// > PurchaseItemPopup::init @ 0x1402af362
// > InfoLayer::init @ 0x1402bb769
// > LeaderboardsLayer::init @ 0x1402c2419
// > LevelBrowserLayer::init @ 0x1402c9609
// > LevelBrowserLayer::loadPage @ 0x1402cb388
// > LevelBrowserLayer::loadPage @ 0x1402cb4a1
// > LevelBrowserLayer::loadPage @ 0x1402cb5af
// > LevelBrowserLayer::loadPage @ 0x1402cb7e4
// > LevelLeaderboard::init @ 0x140301622
// > LevelListLayer::init @ 0x140304f64
// > ShareListLayer::init @ 0x140309e3e
// > ShareListLayer::init @ 0x14030a216
// > UploadListPopup::init @ 0x14030b4fc
// > LoadingLayer::init @ 0x14032ea0d
// > LoadingLayer::loadAssets @ 0x14032f265
// > SecretLayer5::init @ 0x1403f4e6c
// > ShareCommentLayer::init @ 0x14048df12
// > ShareLevelLayer::init @ 0x14048f1e4
// > ShareLevelLayer::init @ 0x14048f5f4
// > ShareLevelLayer::init @ 0x14048f72e
// > UploadPopup::init @ 0x140490956
// > ShareLevelSettingsLayer::init @ 0x140491a5c
// > TutorialLayer::loadPage @ 0x1404cc7cf
// > ??> @ 0x1406c64ec
//
// 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
//
// 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)
{
char *v9; // rdi
__int64 v10; // rbp
__int64 v11; // rax
__int64 v12; // rbx
size_t v13; // r8
__int64 v14; // rax
cocos2d::CCPoint v16; // [rsp+30h] [rbp-B8h] BYREF
char v17[32]; // [rsp+38h] [rbp-B0h] BYREF
char v18[32]; // [rsp+58h] [rbp-90h] BYREF
__int64 v19; // [rsp+78h] [rbp-70h]
v19 = a1;
v9 = (char *)operator new(0x2D8u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v9);
*(_QWORD *)v9 = &TextArea::`vftable';
*((_QWORD *)v9 + 40) = &TextArea::`vftable';
*((_QWORD *)v9 + 43) = &TextArea::`vftable';
v9[600] = 0;
*((_QWORD *)v9 + 76) = 0;
*((_QWORD *)v9 + 77) = 0;
*((_OWORD *)v9 + 39) = 0;
*((_QWORD *)v9 + 80) = 0;
*((_QWORD *)v9 + 81) = 15;
v9[624] = 0;
*((_DWORD *)v9 + 164) = 0;
v9[660] = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9 + 83);
v9[672] = 0;
*((_QWORD *)v9 + 85) = 0;
*((_DWORD *)v9 + 172) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v9 + 692));
*((_QWORD *)v9 + 88) = 0;
*((_QWORD *)v9 + 89) = 0;
*((_DWORD *)v9 + 180) = 0;
v10 = sub_14003BDB0((__int64)v17, a1);
cocos2d::CCPoint::CCPoint(&v16, a5);
v12 = v11;
if ( cocos2d::CCSprite::init((cocos2d::CCSprite *)v9) )
{
*((float *)v9 + 154) = a4;
cocos2d::CCPoint::operator=(v9 + 664, v12);
v13 = -1;
do
++v13;
while ( a2[v13] );
sub_14003CCE0((void **)v9 + 78, a2, v13);
*((float *)v9 + 169) = a3;
*((_DWORD *)v9 + 164) = a6;
v9[600] = a7;
v14 = sub_14003BDB0((__int64)v18, v10);
TextArea::setString(v9, v14);
sub_14003A830(v10);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
}
else
{
sub_14003A830(v10);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);
v9 = nullptr;
}
sub_14003A830(a1);
return v9;
}