//
// SetupAreaTintTriggerPopup::onClose from 0x10003bf84 to 0x10003c020 (156 bytes)
//
// 2 xrefs:
// > ??> @ 0x1008b7950
// > ??> @ 0x1008b89f8
//
// 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 10:57:34 +0000
//
__int64 __fastcall SetupAreaTintTriggerPopup::onClose(__int64 a1, __int64 a2)
{
__int64 v4; // x8
__int64 v6; // x0
__int64 v7; // x21
if ( *(_BYTE *)(a1 + 1064) == 1 )
{
v4 = *(_QWORD *)(a1 + 680);
if ( v4 )
{
*(_OWORD *)(v4 + 1612) = *(_OWORD *)(a1 + 1048);
}
else
{
v6 = *(_QWORD *)(a1 + 688);
if ( v6 && (unsigned int)sub_1002E757C(v6) )
{
v7 = 0;
do
{
*(_OWORD *)(sub_1002E75A0(*(_QWORD *)(a1 + 688), v7) + 1612) = *(_OWORD *)(a1 + 1048);
v7 = (unsigned int)(v7 + 1);
}
while ( (unsigned int)v7 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 688)) );
}
}
}
return SetupTriggerPopup::onClose(a1, a2);
}