//
// OptionsLayer::onRecordReplays from 0x52dc14 to 0x52dc7e (106 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:02 +0000
//
OptionsLayer *__fastcall OptionsLayer::onRecordReplays(OptionsLayer *this, cocos2d::CCObject *a2)
{
OptionsLayer *v2; // r4
unsigned __int8 *v3; // r0
int v4; // r5
float v5; // r1
cocos2d::CCSequence *v6; // r6
cocos2d::CCFiniteTimeAction *v7; // r0
int v8; // r3
cocos2d::CCAction *v9; // r0
v2 = this;
if ( !*((_BYTE *)this + 500) )
{
v3 = (unsigned __int8 *)GameManager::sharedState(this);
v4 = v3[720];
if ( v3[720] )
{
return (OptionsLayer *)OptionsLayer::tryEnableRecord(v2);
}
else
{
*(_BYTE *)(GameManager::sharedState((GameManager *)v3) + 720) = 1;
*((_BYTE *)v2 + 500) = 1;
v6 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3F800000, v5);
v7 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v2, OptionsLayer::tryEnableRecord, v4);
v9 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v6, v7, v4, v8, OptionsLayer::tryEnableRecord, v4);
return (OptionsLayer *)cocos2d::CCNode::runAction(v2, v9);
}
}
return this;
}