//
// RateDemonLayer::create from 0x100426240 to 0x100426304 (196 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::onRateDemon @ 0x100028628
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
RateDemonLayer *__fastcall RateDemonLayer::create(int a1)
{
char *v2; // x19
v2 = (char *)operator new(0x2C8u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v2);
*(_QWORD *)v2 = off_100826528;
*((_QWORD *)v2 + 40) = off_100826A60;
*((_QWORD *)v2 + 41) = &off_100826AD0;
*((_QWORD *)v2 + 42) = off_100826AE8;
*((_QWORD *)v2 + 43) = off_100826B08;
*((_QWORD *)v2 + 44) = off_100826B28;
*((_QWORD *)v2 + 51) = off_100826B50;
*((_QWORD *)v2 + 54) = off_100826BD0;
*((_QWORD *)v2 + 79) = &off_100826BF0;
*((_QWORD *)v2 + 80) = off_100826C08;
v2[648] = 0;
*((_OWORD *)v2 + 41) = 0u;
*((_OWORD *)v2 + 42) = 0u;
v2[688] = 0;
*(_OWORD *)(v2 + 696) = 0u;
if ( RateDemonLayer::init((RateDemonLayer *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (RateDemonLayer *)v2;
}