//
// EmoteSprite::initWithDef from 0x6e1544 to 0x6e15dc (152 bytes)
//
// 2 xrefs:
// > EmoteSprite::createWithDef @ 0x6e1628
// > ??> @ 0xe5a08
//
// 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 12:51:39 +0000
//
__int64 __fastcall EmoteSprite::initWithDef(cocos2d::CCSprite *a1, __int64 a2)
{
cocos2d::CCString *v4; // x0
const char *CString; // x0
unsigned __int8 v6; // w0
unsigned int v7; // w21
unsigned int v9; // w21
if ( !a2 )
return 0;
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"particle_%02d_001.png",
(const char *)*(unsigned int *)(a2 + 8));
CString = (const char *)cocos2d::CCString::getCString(v4);
v6 = cocos2d::CCSprite::initWithSpriteFrameName(a1, CString);
v7 = v6;
if ( !v6 )
return 0;
*((_QWORD *)a1 + 75) = a2;
cocos2d::CCSprite::setColor(a1, a2 + 24);
if ( !*(_BYTE *)(a2 + 40) )
return v7;
v9 = *(unsigned __int8 *)(a2 + 40);
cocos2d::CCSprite::setFlipX(a1, 1);
return v9;
}