//
// UIPOptionsLayer::onClose from 0x1402a5e40 to 0x1402a5f1d (221 bytes)
//
// 2 xrefs:
// > ??> @ 0x14057add0
// > ??> @ 0x1406d209c
//
// 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=3
void UIPOptionsLayer::onClose(UIPOptionsLayer *a1, cocos2d::CCObject *a2)
{
__int64 v4; // rbx
const cocos2d::CCPoint *v5; // rax
__int64 v6; // rcx
__int64 v7; // rcx
void *v8; // [rsp+30h] [rbp+8h]
void *v9; // [rsp+30h] [rbp+8h]
v4 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v8 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = qword_1406C2ED8;
}
v5 = a1->m_practiceNode->getPosition_0(a1->m_practiceNode);
cocos2d::CCPoint::operator=(v4 + 1624, v5);
v6 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v9 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v6 = qword_1406C2ED8;
}
v7 = *(_QWORD *)(v6 + 520);
if ( v7 )
UILayer::updateCheckState(*(UILayer **)(v7 + 13632));
SetupTriggerPopup::onClose(a1, a2);
}