//
// sub_100270500 from 0x100270500 to 0x1002706f3 (499 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::onRateDemon @ 0x1002ae7ee
//
// 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:27:37 +0000
//
char *__fastcall sub_100270500(unsigned int a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x2E8u);
cocos2d::CCLayerColor::CCLayerColor(v1);
*(_QWORD *)v1 = off_100B4FB70;
*((_QWORD *)v1 + 40) = off_100B500C0;
*((_QWORD *)v1 + 41) = &off_100B50130;
*((_QWORD *)v1 + 42) = off_100B50148;
*((_QWORD *)v1 + 43) = off_100B50168;
*((_QWORD *)v1 + 44) = off_100B50190;
*((_QWORD *)v1 + 51) = off_100B501C0;
*((_QWORD *)v1 + 54) = off_100B50240;
*((_QWORD *)v1 + 68) = off_100B50260;
*(_OWORD *)(v1 + 552) = 0;
*(_OWORD *)(v1 + 561) = 0;
*(_OWORD *)(v1 + 584) = 0;
sub_1002782A0(v1 + 600);
*((_OWORD *)v1 + 38) = 0;
*((_QWORD *)v1 + 78) = 0;
*((_DWORD *)v1 + 158) = -1;
*((_WORD *)v1 + 318) = 0;
*((_DWORD *)v1 + 160) = -1;
v1[644] = 0;
*((_QWORD *)v1 + 81) = 0;
v1[656] = 0;
*(_QWORD *)v1 = off_100AF8C20;
*((_QWORD *)v1 + 40) = off_100AF9188;
*((_QWORD *)v1 + 41) = &off_100AF91F8;
*((_QWORD *)v1 + 42) = off_100AF9210;
*((_QWORD *)v1 + 43) = off_100AF9230;
*((_QWORD *)v1 + 44) = off_100AF9258;
*((_QWORD *)v1 + 51) = off_100AF9288;
*((_QWORD *)v1 + 54) = off_100AF9308;
*((_QWORD *)v1 + 68) = off_100AF9328;
*((_QWORD *)v1 + 83) = &off_100AF9370;
*((_QWORD *)v1 + 84) = off_100AF9388;
v1[680] = 0;
*((_OWORD *)v1 + 44) = 0;
*((_OWORD *)v1 + 43) = 0;
v1[720] = 0;
*(_OWORD *)(v1 + 728) = 0;
if ( (unsigned __int8)RateDemonLayer::init(v1, a1) )
{
cocos2d::CCObject::autorelease(v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}