//
// VideoOptionsLayer::onClose from 0x140378950 to 0x1403789d0 (128 bytes)
//
// 3 xrefs:
// > VideoOptionsLayer::keyBackClicked @ 0x1403789d9
// > VideoOptionsLayer::init @ 0x140377a71
// > ??> @ 0x1406d5c48
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=2
void VideoOptionsLayer::onClose(VideoOptionsLayer *a1, cocos2d::CCObject *a2)
{
__int64 v3; // rax
__int64 v4; // rax
_BOOL8 v5; // rdx
void *v6; // [rsp+30h] [rbp+8h]
v3 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v6 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = qword_1406C2ED8;
}
v4 = *(_QWORD *)(v3 + 552);
if ( v4 )
*(_BYTE *)(*(_QWORD *)(v4 + 472) + 408LL) = 0;
a1->setKeypadEnabled(a1, 0);
LOBYTE(v5) = 1;
a1->removeFromParentAndCleanup(a1, v5);
}