//
// OptionsLayer::onRecordReplays from 0x8ee974 to 0x8eea08 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0x53ce0
//
// This function is hookable on this platform (idp: arm, 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:56:57 +0000
//
OptionsLayer *__fastcall OptionsLayer::onRecordReplays(OptionsLayer *this, cocos2d::CCObject *a2)
{
OptionsLayer *v2; // x19
GameManager *v3; // x0
cocos2d::CCDelayTime *v4; // x0
cocos2d::CCSequence *v5; // x20
cocos2d::CCFiniteTimeAction *v6; // x0
cocos2d::CCAction *v7; // x0
if ( !*((_BYTE *)this + 644) )
{
v2 = this;
v3 = (GameManager *)*(unsigned __int8 *)(GameManager::sharedState(this) + 920);
if ( (_DWORD)v3 )
{
return (OptionsLayer *)OptionsLayer::tryEnableRecord(v2);
}
else
{
v4 = (cocos2d::CCDelayTime *)GameManager::sharedState(v3);
*((_BYTE *)v4 + 920) = 1;
*((_BYTE *)v2 + 644) = 1;
v5 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v4, 1.0);
v6 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v2, OptionsLayer::tryEnableRecord, 0);
v7 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v5, v6, 0);
return (OptionsLayer *)cocos2d::CCNode::runAction(v2, v7);
}
}
return this;
}