//
// sub_1004CC090 from 0x1004cc090 to 0x1004cc148 (184 bytes)
//
// 3 xrefs:
// > CommentCell::onGoToLevel @ 0x100138638
// > sub_1004D79E0 @ 0x1004d7a44
// > sub_10054B298 @ 0x10054b374
//
// 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:06:26 +0000
//
void *__fastcall sub_1004CC090(__int64 a1, __int64 a2)
{
void *v4; // x19
int v5; // w0
int v6; // w20
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v9; // [xsp+10h] [xbp-30h]
v4 = operator new(0x4B8u);
sub_1004CE330();
if ( *(char *)(a1 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a1, *(_QWORD *)(a1 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a1;
v9 = *(_QWORD *)(a1 + 16);
}
v5 = sub_1004CC170(v4, __p, a2);
v6 = v5;
if ( SHIBYTE(v9) < 0 )
{
operator delete(__p[0]);
if ( v6 )
goto LABEL_6;
LABEL_8:
(*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
if ( !v5 )
goto LABEL_8;
LABEL_6:
cocos2d::CCObject::autorelease((__int64)v4);
return v4;
}