//
// sub_100904430 from 0x100904430 to 0x1009044f2 (194 bytes)
//
// 4 xrefs:
// > MultilineBitmapFont::initWithFont @ 0x10047c2fc
// > EmotePickerPopup::addCell @ 0x100903407
// > EmoteSprite::createWithName @ 0x1009045a2
// > sub_1009055C0 @ 0x1009058dc
//
// 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 12:38:04 +0000
//
__int64 (__fastcall ***__fastcall sub_100904430(__int64 a1, double a2))()
{
__int64 (__fastcall ***v2)(); // rbx
__int64 (__fastcall **v3)(); // rax
char *v4; // rax
__int64 CString; // rsi
v2 = (__int64 (__fastcall ***)())operator new(0x260u);
cocos2d::CCSprite::CCSprite((__int64)v2);
v3 = off_100BB96A0;
*v2 = off_100BB96A0;
v2[40] = off_100BB9B88;
v2[43] = off_100BB9C08;
v2[75] = nullptr;
if ( !a1 )
goto LABEL_7;
v4 = sub_10088E820("particle_%02d_001.png", *(_DWORD *)(a1 + 8));
CString = cocos2d::CCString::getCString((__int64)v4);
if ( !(unsigned __int8)cocos2d::CCSprite::initWithSpriteFrameName((__int64)v2, CString, a2) )
{
v3 = *v2;
LABEL_7:
((void (__fastcall *)(__int64 (__fastcall ***)()))v3[2])(v2);
return nullptr;
}
v2[75] = (__int64 (__fastcall **)())a1;
cocos2d::CCSprite::setColor((__int64)v2, a1 + 24);
if ( *(_BYTE *)(a1 + 40) == 1 )
cocos2d::CCSprite::setFlipX((unsigned __int8 *)v2, 1u);
cocos2d::CCObject::autorelease((__int64)v2);
return v2;
}