//
// RateDemonLayer::create from 0x934490 to 0x9345d0 (320 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::onRateDemon @ 0x6d5a94
// > ??> @ 0xa4928
//
// 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 *RateDemonLayer::create(int a1)
{
RateDemonLayer *v2; // x19
v2 = (RateDemonLayer *)operator new(0x2C8u);
cocos2d::CCLayerColor::CCLayerColor(v2);
v2->m_controlConnected = -1;
v2->m_joystickConnected = -1;
v2->m_buttonMenu = nullptr;
v2->m_alertProtocol = nullptr;
v2->m_scene = nullptr;
v2->m_reverseKeyBack = 0;
v2->m_mainLayer = nullptr;
v2->m_ZOrder = 0;
v2->m_noElasticity = 0;
v2->m_button1 = nullptr;
v2->m_button2 = nullptr;
v2->m_scrollingLayer = nullptr;
v2->m_containsBorder = 0;
v2->m_noAction = 0;
v2->m_forcePrioRegistered = 0;
v2->m_uploadFinished = 0;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (RateDemonLayer_vtbl *)&off_11B0DE0;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_11B1318;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_11B1388;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_11B13A0;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_11B13C0;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_11B13E0;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_11B1408;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_11B1488;
v2->UploadPopupDelegate::__vftable = (UploadPopupDelegate_vtbl *)&off_11B14A8;
v2->UploadActionDelegate::__vftable = (UploadActionDelegate_vtbl *)off_11B14C0;
v2->m_submitButton = nullptr;
v2->m_demons = nullptr;
v2->m_unkPtr = nullptr;
v2->m_levelID = 0;
v2->m_demonRate = 0;
v2->m_moderator = 0;
v2->m_popup = nullptr;
v2->m_delegate = nullptr;
if ( RateDemonLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
v2->~RateDemonLayer_0(v2);
return nullptr;
}
}