//
// OptionsLayer::tryEnableRecord from 0x8ee278 to 0x8ee380 (264 bytes)
//
// 4 xrefs:
// > OptionsLayer::onRecordReplays @ 0x8eea04
// > ??> @ 0x101668
// > OptionsLayer::onRecordReplays @ 0x8ee9cc
// > ??> @ 0x1547dd8
//
// 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
//
__int64 __fastcall OptionsLayer::tryEnableRecord(OptionsLayer *this)
{
__int64 v1; // x20
_QWORD v3[2]; // [xsp+20h] [xbp+20h] BYREF
void *v4; // [xsp+30h] [xbp+30h]
*((_BYTE *)this + 644) = 0;
v4 = (void *)operator new(0x40u);
v3[0] = 65;
v3[1] = 51;
strcpy((char *)v4, "Gameplay recording is not supported on this device.");
v1 = FLAlertLayer::create(
0,
(cocos2d::CCLabelBMFont *)"Unavailable",
(char *)v3,
(ButtonSprite *)"OK",
nullptr,
300.0);
if ( (v3[0] & 1) != 0 )
operator delete(v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 1312LL))(v1);
return _stack_chk_guard;
}