//
// sub_10000888C from 0x10000888c to 0x100008950 (196 bytes)
//
// 2 xrefs:
// > sub_10007A434 @ 0x10007a4dc
// > sub_10007B234 @ 0x10007b4c0
//
// 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 10:57:11 +0000
//
_OWORD *__fastcall sub_10000888C(__int64 a1)
{
_OWORD *v2; // x19
int v3; // w0
int v4; // w20
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v7; // [xsp+10h] [xbp-20h]
v2 = operator new(0x170u);
cocos2d::CCNode::CCNode();
*(_QWORD *)v2 = off_1008AD230;
v2[20] = 0u;
v2[21] = 0u;
*(_OWORD *)((char *)v2 + 345) = 0u;
if ( *(char *)(a1 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a1);
}
else
{
*(_OWORD *)__p = *(_OWORD *)a1;
v7 = *(_QWORD *)(a1 + 16);
}
v3 = sub_100008978(v2, __p);
v4 = v3;
if ( SHIBYTE(v7) < 0 )
{
operator delete(__p[0]);
if ( v4 )
goto LABEL_6;
LABEL_8:
(*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
if ( !v3 )
goto LABEL_8;
LABEL_6:
cocos2d::CCObject::autorelease(v2);
return v2;
}