//
// SetupEnterEffectPopup::onClose from 0x100481de4 to 0x100481e8c (168 bytes)
//
// 1 xrefs:
// > ??> @ 0x10096ea38
//
// 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:05:46 +0000
//
__int64 __fastcall SetupEnterEffectPopup::onClose(__int64 a1)
{
__int64 v2; // x8
__int64 v4; // x0
unsigned int v5; // w21
if ( *(_DWORD *)(a1 + 1024) == 3021 && *(_BYTE *)(a1 + 1080) == 1 )
{
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
{
*(_OWORD *)(v2 + 1612) = *(_OWORD *)(a1 + 1064);
}
else
{
v4 = *(_QWORD *)(a1 + 688);
if ( v4 && (unsigned int)sub_1002E757C(v4) )
{
v5 = 0;
do
*(_OWORD *)(sub_1002E75A0(*(_QWORD *)(a1 + 688), v5++) + 1612) = *(_OWORD *)(a1 + 1064);
while ( v5 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 688)) );
}
}
}
return SetupTriggerPopup::onClose(a1);
}