//
// EmoteSprite::initWithDef from 0x1004dc590 to 0x1004dc61c (140 bytes)
//
// 1 xrefs:
// > EmoteSprite::createWithDef @ 0x1004dc544
//
// 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:06:34 +0000
//
__int64 __fastcall EmoteSprite::initWithDef(__int64 a1, __int64 a2)
{
__int64 v2; // x20
void *v4; // x0
__int64 CString; // x0
int v6; // w8
v2 = a2;
if ( a2 )
{
v4 = sub_1003065B0("particle_%02d_001.png", *(_DWORD *)(a2 + 8));
CString = cocos2d::CCString::getCString((__int64)v4);
if ( (unsigned int)cocos2d::CCSprite::initWithSpriteFrameName(a1, CString) )
{
*(_QWORD *)(a1 + 600) = v2;
cocos2d::CCSprite::setColor((unsigned __int8 *)a1, (unsigned __int8 *)(v2 + 24));
v6 = *(unsigned __int8 *)(v2 + 40);
v2 = 1;
if ( v6 == 1 )
cocos2d::CCSprite::setFlipX((unsigned __int8 *)a1, 1);
}
else
{
return 0;
}
}
return v2;
}