//
// UIPOptionsLayer::onReset from 0x1402a5f20 to 0x1402a6035 (277 bytes)
//
// 2 xrefs:
// > UIPOptionsLayer::init @ 0x1402a5a87
// > ??> @ 0x1406d20a8
//
// 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 UIPOptionsLayer::onReset(UIPOptionsLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // rax
__int64 v4; // rcx
__int64 v5; // rbx
cocos2d::CCDirector *v6; // rax
float v7; // xmm0_4
__int64 v8; // rax
const cocos2d::CCPoint *v9; // rdx
float v10; // [rsp+30h] [rbp+8h]
void *v11; // [rsp+40h] [rbp+18h]
void *v12; // [rsp+40h] [rbp+18h]
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v3);
v5 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v11 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v5 = qword_1406C2ED8;
}
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
v7 = cocos2d::CCDirector::getScreenBottom(v6) + 40.0;
cocos2d::CCPoint::CCPoint(v7, v10 * 0.5);
cocos2d::CCPoint::operator=(v5 + 1624, v8);
v9 = (const cocos2d::CCPoint *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v12 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v9 = (const cocos2d::CCPoint *)qword_1406C2ED8;
}
a1->m_practiceNode->setPosition_0(a1->m_practiceNode, &v9[203]);
((void (__fastcall *)(UIPOptionsLayer *, __int64))a1->valueDidChange)(a1, 4294967267LL);
}