//
// InfoLayer::create from 0x1007ae1d0 to 0x1007ae36b (411 bytes)
//
// 4 xrefs:
// > LevelInfoLayer::onInfo @ 0x1002c198a
// > LevelListLayer::onInfo @ 0x10035d9fa
// > InfoLayer::reloadWindow @ 0x1007b31ca
// > ProfilePage::onCommentHistory @ 0x1007bcf74
//
// 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
//
InfoLayer *__fastcall InfoLayer::create(GJGameLevel *a1, GJUserScore *a2, GJLevelList *a3)
{
char *v4; // rbx
v4 = (char *)operator new(0x330u);
cocos2d::CCLayerColor::CCLayerColor((__int64)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_1009924D8;
*((_QWORD *)v4 + 40) = off_100992A30;
*((_QWORD *)v4 + 41) = &off_100992AA0;
*((_QWORD *)v4 + 42) = off_100992AB8;
*((_QWORD *)v4 + 43) = off_100992AD8;
*((_QWORD *)v4 + 44) = off_100992AF8;
*((_QWORD *)v4 + 51) = off_100992B20;
*((_QWORD *)v4 + 54) = off_100992BA0;
*((_QWORD *)v4 + 79) = off_100992BC0;
*((_QWORD *)v4 + 80) = off_100992BF0;
*((_QWORD *)v4 + 81) = &off_100992C18;
*((_OWORD *)v4 + 43) = 0;
*((_OWORD *)v4 + 42) = 0;
*((_OWORD *)v4 + 41) = 0;
*((_QWORD *)v4 + 88) = 0;
*((_OWORD *)v4 + 45) = 0;
*((_OWORD *)v4 + 46) = 0;
*((_OWORD *)v4 + 47) = 0;
*((_OWORD *)v4 + 49) = 0;
*(_OWORD *)(v4 + 793) = 0;
if ( InfoLayer::init((InfoLayer *)v4, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return (InfoLayer *)v4;
}