//
// sub_10024D82C from 0x10024d82c to 0x10024d8bc (144 bytes)
//
// 1 xrefs:
// > sub_10024D8D0 @ 0x10024d8f4
//
// 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:01:30 +0000
//
char *__fastcall sub_10024D82C(__int64 a1)
{
char *v2; // x19
__int64 (__fastcall **v3)(); // x8
v2 = (char *)operator new(0x270u);
cocos2d::CCSprite::CCSprite(v2);
v3 = &off_10090A710;
*(_QWORD *)v2 = &off_10090A710;
*((_QWORD *)v2 + 40) = off_10090AC08;
*((_QWORD *)v2 + 43) = off_10090AC88;
*(_OWORD *)(v2 + 600) = 0u;
*(_DWORD *)(v2 + 615) = 0;
if ( !a1 )
goto LABEL_5;
if ( (cocos2d::CCSprite::initWithSpriteFrame(v2, a1) & 1) == 0 )
{
v3 = *(__int64 (__fastcall ***)())v2;
LABEL_5:
((void (__fastcall *)(char *))v3[2])(v2);
return nullptr;
}
cocos2d::CCObject::autorelease((__int64)v2);
return v2;
}