//
// VideoOptionsLayer::onClose from 0x8edd6c to 0x8eddc8 (92 bytes)
//
// 5 xrefs:
// > VideoOptionsLayer::keyBackClicked @ 0x8eddcc
// > ??> @ 0x4be20
// > VideoOptionsLayer::init @ 0x8f5534
// > VideoOptionsLayer::init @ 0x8f5674
// > ??> @ 0x1541860
//
// 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:56 +0000
//
__int64 __fastcall VideoOptionsLayer::onClose(VideoOptionsLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
__int64 v4; // x0
v3 = *(GameManager **)(GameManager::sharedState(this) + 576);
if ( v3 )
{
v4 = GameManager::sharedState(v3);
MenuLayer::videoOptionsClosed(*(MenuLayer **)(v4 + 576));
}
(*(void (__fastcall **)(VideoOptionsLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(VideoOptionsLayer *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}