//
// sub_1002D041C from 0x1002d041c to 0x1002d0540 (292 bytes)
//
// 1 xrefs:
// > TextArea::setString @ 0x10011b2c4
//
// This function is hookable on this platform (idp: arm, 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:02:37 +0000
//
void *__fastcall sub_1002D041C(
__int64 a1,
__int64 a2,
double *a3,
__int64 a4,
__int64 a5,
__int64 a6,
__int64 a7,
float a8,
float a9,
float a10)
{
void *v20; // x19
int v21; // w0
int v22; // w20
__int64 v24; // [xsp+8h] [xbp-88h] BYREF
void *__p[2]; // [xsp+10h] [xbp-80h] BYREF
__int64 v26; // [xsp+20h] [xbp-70h]
v20 = operator new(0x2B8u);
sub_1002D2310();
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v26 = *(_QWORD *)(a2 + 16);
}
sub_1000262F4(&v24, a3);
v21 = sub_1002D0568(v20, a1, __p, &v24, a4, a5, a6, a7, a8, a9, a10);
v22 = v21;
if ( SHIBYTE(v26) < 0 )
{
operator delete(__p[0]);
if ( v22 )
goto LABEL_6;
LABEL_8:
(*(void (__fastcall **)(void *))(*(_QWORD *)v20 + 16LL))(v20);
return nullptr;
}
if ( !v21 )
goto LABEL_8;
LABEL_6:
cocos2d::CCObject::autorelease((__int64)v20);
return v20;
}