//
// EmoteSprite::createWithDef from 0x14007f0e0 to 0x14007f1d1 (241 bytes)
//
// 27 xrefs:
// > MultilineBitmapFont::initWithFont @ 0x1400793c7
// > EmoteSprite::createWithName @ 0x14007f1fa
// > EmoteSprite::attachToLabel @ 0x14008030d
// > ThreadViewPopup::init @ 0x1400d9f44
// > ThreadViewPopup::layoutTitleRow @ 0x1400e30b5
// > ThreadViewPopup::layoutTitleRow @ 0x1400e316e
// > NewThreadPopup::init @ 0x1400f03c1
// > NewThreadPopup::refreshIconSlot @ 0x1400f0987
// > InvitesPopup::buildRows @ 0x1400f7f5b
// > InvitesPopup::buildRows @ 0x1400f800a
// > ThreadDescPopup::buildUI @ 0x1400fd12e
// > ThreadDescPopup::refreshIconSlot @ 0x1400fd807
// > ThreadRequestPopup::init @ 0x1400fedb1
// > ThreadRequestPopup::init @ 0x1400fee63
// > EmotePickerPopup::addCell @ 0x140123f82
// > GJThreadCell::loadFromThread @ 0x1401599d2
// > GJThreadCell::loadFromThread @ 0x140159a8c
// > GJNotificationCell::loadFromNotification @ 0x14015b782
// > GJNotificationCell::loadFromNotification @ 0x14015b7e0
// > EditLevelLayer::init @ 0x140178f53
// > EditorSoundConfigCell::loadFromConfig @ 0x1401908ba
// > EditorSoundConfigCell::loadFromConfig @ 0x14019098d
// > SoundPackDescPopup::init @ 0x140199a27
// > SoundPackDescPopup::refreshIconSlot @ 0x140199ee0
// > SetTextPopup::init @ 0x1403a7ab3
// > ShareCommentLayer::init @ 0x14062f06d
// > ??> @ 0x140911eb8
//
// This function is hookable on this platform (idp: pc, 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:25:54 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall EmoteSprite::createWithDef(__int64 a1)
{
_QWORD *v2; // rbx
cocos2d::CCString *v3; // rax
const char *CString; // rax
v2 = operator new(0x260u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v2);
*v2 = &EmoteSprite::`vftable';
v2[40] = &EmoteSprite::`vftable';
v2[43] = &EmoteSprite::`vftable';
v2[75] = 0;
if ( a1
&& (v3 = cocos2d::CCString::createWithFormat("particle_%02d_001.png", *(_DWORD *)(a1 + 8)),
CString = cocos2d::CCString::getCString(v3),
cocos2d::CCSprite::initWithSpriteFrameName((cocos2d::CCSprite *)v2, CString)) )
{
v2[75] = a1;
cocos2d::CCSprite::setColor((cocos2d::CCSprite *)(v2 + 40), (const struct cocos2d::_ccColor3B *)(a1 + 24));
if ( *(_BYTE *)(a1 + 40) )
cocos2d::CCSprite::setFlipX((cocos2d::CCSprite *)v2, 1);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return v2;
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);
return nullptr;
}
}