//
// UIOptionsLayer::onReset from 0x1002a1ed0 to 0x1002a2021 (337 bytes)
//
// 1 xrefs:
// > UIOptionsLayer::init @ 0x1002a042a
//
// 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 12:27:54 +0000
//
__int64 __fastcall UIOptionsLayer::onReset(unsigned __int8 *a1)
{
__int64 v2; // rdx
double v3; // xmm0_8
__int64 v4; // rsi
__int64 v5; // rax
__int64 v6; // rdi
__int64 v7; // rdx
unsigned __int8 v8; // r14
__int64 v9; // rax
char *v10; // rbx
(*(void (__fastcall **)(unsigned __int8 *, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);
*(_QWORD *)&v3 = GameManager::sharedState(a1, 0, v2).u64[0];
v4 = a1[1012];
v6 = v5;
GameManager::resetDPadSettings(v5, v4, v3);
v8 = a1[1012];
if ( !v8 )
{
GameManager::sharedState(v6, v4, v7);
GameManager::setGameVariable(v9, "0113", 0);
v8 = a1[1012];
}
v10 = (char *)operator new(0x428u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v10);
*(_QWORD *)v10 = off_100B09910;
*((_QWORD *)v10 + 40) = off_100B09F00;
*((_QWORD *)v10 + 41) = &off_100B09F70;
*((_QWORD *)v10 + 42) = off_100B09F88;
*((_QWORD *)v10 + 43) = off_100B09FA8;
*((_QWORD *)v10 + 44) = off_100B09FD0;
*((_QWORD *)v10 + 51) = off_100B0A000;
*((_QWORD *)v10 + 54) = off_100B0A080;
*((_QWORD *)v10 + 68) = off_100B0A0A0;
*((_QWORD *)v10 + 83) = &off_100B0A0E8;
*((_QWORD *)v10 + 84) = off_100B0A100;
v10[1012] = 0;
*(_OWORD *)(v10 + 1016) = 0;
*(_OWORD *)(v10 + 1032) = 0;
*(_OWORD *)(v10 + 1044) = 0;
if ( !(unsigned __int8)UIOptionsLayer::init((__int64)v10, v8 & 1) )
sub_1009A64D0(v10);
cocos2d::CCObject::autorelease(v10);
return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v10 + 1312LL))(v10);
}