//
// RateStarsModLayer::create from 0x1009626e0 to 0x1009628f5 (533 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::onRateStarsMod @ 0x1002aea1b
//
// 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:46 +0000
//
char *__fastcall RateStarsModLayer::create(unsigned int a1, unsigned __int8 a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x300u);
cocos2d::CCLayerColor::CCLayerColor((__int64)v2);
*(_QWORD *)v2 = off_100B4FB70;
*((_QWORD *)v2 + 40) = off_100B500C0;
*((_QWORD *)v2 + 41) = &off_100B50130;
*((_QWORD *)v2 + 42) = off_100B50148;
*((_QWORD *)v2 + 43) = off_100B50168;
*((_QWORD *)v2 + 44) = off_100B50190;
*((_QWORD *)v2 + 51) = off_100B501C0;
*((_QWORD *)v2 + 54) = off_100B50240;
*((_QWORD *)v2 + 68) = off_100B50260;
*(_OWORD *)(v2 + 552) = 0;
*(_OWORD *)(v2 + 561) = 0;
*(_OWORD *)(v2 + 584) = 0;
sub_1002782A0((_QWORD *)v2 + 75);
*((_OWORD *)v2 + 38) = 0;
*((_QWORD *)v2 + 78) = 0;
*((_DWORD *)v2 + 158) = -1;
*((_WORD *)v2 + 318) = 0;
*((_DWORD *)v2 + 160) = -1;
v2[644] = 0;
*((_QWORD *)v2 + 81) = 0;
v2[656] = 0;
*(_QWORD *)v2 = off_100BCB6F0;
*((_QWORD *)v2 + 40) = off_100BCBC58;
*((_QWORD *)v2 + 41) = &off_100BCBCC8;
*((_QWORD *)v2 + 42) = off_100BCBCE0;
*((_QWORD *)v2 + 43) = off_100BCBD00;
*((_QWORD *)v2 + 44) = off_100BCBD28;
*((_QWORD *)v2 + 51) = off_100BCBD58;
*((_QWORD *)v2 + 54) = off_100BCBDD8;
*((_QWORD *)v2 + 68) = off_100BCBDF8;
*((_QWORD *)v2 + 83) = &off_100BCBE40;
*((_QWORD *)v2 + 84) = off_100BCBE58;
v2[680] = 0;
*((_OWORD *)v2 + 44) = 0;
*((_OWORD *)v2 + 43) = 0;
v2[720] = 0;
*(_OWORD *)(v2 + 728) = 0;
*(_OWORD *)(v2 + 744) = 0;
*((_QWORD *)v2 + 95) = 0;
if ( (unsigned __int8)RateStarsModLayer::init(v2, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}