//
// TimeSpeedControl::create from 0x1009776d0 to 0x10097773a (106 bytes)
//
// 2 xrefs:
// > EditorPauseLayer::customSetup @ 0x10027e1b8
// > PauseLayer::onSideButtonPressed @ 0x1003c1836
//
// 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:56 +0000
//
_OWORD *__fastcall TimeSpeedControl::create(__int64 a1)
{
_OWORD *v1; // rbx
v1 = operator new(0x160u);
cocos2d::CCNode::CCNode((__int64)v1);
*(_QWORD *)v1 = off_100BD0E00;
v1[20] = 0;
v1[21] = 0;
if ( (unsigned __int8)TimeSpeedControl::init(v1, a1) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}