//
// sub_100087280 from 0x100087280 to 0x100087344 (196 bytes)
//
// 1 xrefs:
// > sub_100086DC4 @ 0x100087024
//
// 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:58:19 +0000
//
char *__fastcall sub_100087280(char *a1)
{
char *v2; // x19
std::string __str; // [xsp+8h] [xbp-28h] BYREF
v2 = (char *)operator new(0x290u);
cocos2d::CCSprite::CCSprite(v2);
*(_DWORD *)(v2 + 615) = 0;
*(_OWORD *)(v2 + 600) = 0u;
*(_QWORD *)v2 = off_1008C7EA0;
*((_QWORD *)v2 + 40) = off_1008C8398;
*((_QWORD *)v2 + 43) = off_1008C8418;
v2[619] = 0;
*((_OWORD *)v2 + 39) = 0u;
*((_OWORD *)v2 + 40) = 0u;
if ( (unsigned int)CCSpritePlus::initWithSpriteFrameName(v2, a1) )
{
sub_100009900(&__str, a1);
std::string::operator=((std::string *)v2 + 26, &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
cocos2d::CCObject::autorelease(v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}