//
// EmoteSprite::createWithDef from 0x3f4400 to 0x3f4460 (96 bytes)
//
// 4 xrefs:
// > MultilineBitmapFont::initWithFont @ 0x3d64f2
// > EmoteSprite::createWithName @ 0x3f4470
// > EmoteSprite::attachToLabel @ 0x3f4574
// > EmotePickerPopup::addCell @ 0x778da6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:16 +0000
//
cocos2d::CCSprite *__fastcall EmoteSprite::createWithDef(int a1)
{
cocos2d::CCSprite *v2; // r4
v2 = (cocos2d::CCSprite *)operator new(0x200u);
cocos2d::CCSprite::CCSprite(v2);
*(_DWORD *)v2 = &off_C8BB80;
*((_DWORD *)v2 + 66) = &off_C8BDF4;
*((_DWORD *)v2 + 70) = &off_C8BE34;
*((_DWORD *)v2 + 127) = 0;
if ( EmoteSprite::initWithDef(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v2 + 8))(v2);
return nullptr;
}
}