//
// UIOptionsLayer::onReset from 0x5dd778 to 0x5dd7ba (66 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:13 +0000
//
int __fastcall UIOptionsLayer::onReset(UIOptionsLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
GameManager *v4; // r0
GameManager *v5; // r0
bool v6; // r1
const char *v7; // r5
GameManager *v8; // r0
SetupTriggerPopup *v9; // r0
v3 = (GameManager *)(*(int (__fastcall **)(UIOptionsLayer *, _DWORD))(*(_DWORD *)this + 684))(this, 0);
v4 = (GameManager *)GameManager::sharedState(v3);
v5 = (GameManager *)GameManager::resetDPadSettings(v4, *((unsigned __int8 *)this + 712));
v7 = (const char *)*((unsigned __int8 *)this + 712);
if ( !*((_BYTE *)this + 712) )
{
v8 = (GameManager *)GameManager::sharedState(v5);
GameManager::setGameVariable(v8, "0113", v7);
}
v9 = UIOptionsLayer::create((UIOptionsLayer *)*((unsigned __int8 *)this + 712), v6);
return (*(int (__fastcall **)(SetupTriggerPopup *))(*(_DWORD *)v9 + 656))(v9);
}