//
// RateStarsLayer::create from 0x10028b7a0 to 0x10028b91c (380 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::onRateStars @ 0x1002c1afb
// > LevelInfoLayer::onRateStarsMod @ 0x1002c1e5b
//
// 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
//
RateStarsLayer *__fastcall RateStarsLayer::create(int a1, bool a2, bool a3)
{
char *v4; // rbx
v4 = (char *)operator new(0x2D8u);
cocos2d::CCLayerColor::CCLayerColor(v4);
*((_QWORD *)v4 + 72) = 0;
*((_DWORD *)v4 + 146) = 0;
v4[588] = 0;
*((_OWORD *)v4 + 34) = 0;
*(_OWORD *)(v4 + 553) = 0;
*((_OWORD *)v4 + 37) = 0;
*((_QWORD *)v4 + 76) = 0;
*((_DWORD *)v4 + 154) = -1;
*((_WORD *)v4 + 310) = 0;
*((_DWORD *)v4 + 156) = -1;
v4[628] = 0;
*(_QWORD *)v4 = off_1008F3C68;
*((_QWORD *)v4 + 40) = off_1008F41A0;
*((_QWORD *)v4 + 41) = &off_1008F4210;
*((_QWORD *)v4 + 42) = off_1008F4228;
*((_QWORD *)v4 + 43) = off_1008F4248;
*((_QWORD *)v4 + 44) = off_1008F4268;
*((_QWORD *)v4 + 51) = off_1008F4290;
*((_QWORD *)v4 + 54) = off_1008F4310;
*((_QWORD *)v4 + 79) = &off_1008F4330;
*((_QWORD *)v4 + 80) = off_1008F4348;
*((_WORD *)v4 + 324) = 0;
*((_QWORD *)v4 + 90) = 0;
*(_OWORD *)(v4 + 665) = 0;
*((_OWORD *)v4 + 41) = 0;
*((_OWORD *)v4 + 43) = 0;
*(_OWORD *)(v4 + 700) = 0;
if ( RateStarsLayer::init((RateStarsLayer *)v4, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return (RateStarsLayer *)v4;
}