//
// UIPOptionsLayer::onClose from 0x10038104c to 0x1003810bc (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x10093b7d0
//
// This function is hookable on this platform (idp: arm, 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:03:30 +0000
//
__int64 __fastcall UIPOptionsLayer::onClose(__int64 a1)
{
double *v2; // x21
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
v2 = (double *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1016) + 192LL))(*(_QWORD *)(a1 + 1016));
v3 = GameManager::sharedState(v2);
sub_10002630C((_QWORD *)(v3 + 1704), v2);
v5 = GameManager::sharedState(v4);
if ( *(_QWORD *)(v5 + 544) )
{
v6 = GameManager::sharedState(v5);
UILayer::updateCheckState(*(_QWORD *)(*(_QWORD *)(v6 + 544) + 13288LL));
}
return SetupTriggerPopup::onClose(a1);
}