//
// VideoOptionsLayer::onClose from 0x52c6f8 to 0x52c72e (54 bytes)
//
// 1 xrefs:
// > VideoOptionsLayer::keyBackClicked @ 0x52c730
//
// 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:01 +0000
//
int __fastcall VideoOptionsLayer::onClose(VideoOptionsLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
int v4; // r0
v3 = (GameManager *)GameManager::sharedState(this);
if ( *((_DWORD *)v3 + 105) )
{
v4 = GameManager::sharedState(v3);
MenuLayer::videoOptionsClosed(*(_DWORD *)(v4 + 420));
}
(*(void (__fastcall **)(VideoOptionsLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return (*(int (__fastcall **)(VideoOptionsLayer *, int))(*(_DWORD *)this + 264))(this, 1);
}