//
// UIPOptionsLayer::onReset from 0x1403ac010 to 0x1403ac12b (283 bytes)
//
// 2 xrefs:
// > UIPOptionsLayer::init @ 0x1403abb72
// > ??> @ 0x140923a68
//
// This function is hookable on this platform (idp: pc, 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 11:31:20 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall UIPOptionsLayer::onReset(_QWORD **a1)
{
__int64 v2; // rax
__int64 v3; // rcx
__int64 v4; // rbx
cocos2d::CCDirector *v5; // rax
float v6; // xmm0_4
__int64 v7; // rax
__int64 v8; // rdx
float v10; // [rsp+30h] [rbp+8h] BYREF
void *v11; // [rsp+40h] [rbp+18h]
char v12; // [rsp+48h] [rbp+20h] BYREF
v2 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v2, &v10);
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v11 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3);
v6 = cocos2d::CCDirector::getScreenBottom(v5) + 40.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, v10 * 0.5, v6);
cocos2d::CCPoint::operator=(v4 + 1752, v7);
v8 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v11 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v8 = qword_14090BFD0;
}
(*(void (__fastcall **)(_QWORD *, __int64))(*a1[126] + 184LL))(a1[126], v8 + 1752);
return ((__int64 (__fastcall *)(_QWORD **, __int64))(*a1)[145])(a1, 4294967267LL);
}