//
// SetupRotatePopup::onClose from 0x100305f30 to 0x100305fac (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x10092b008
//
// 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:07 +0000
//
__int64 __fastcall SetupRotatePopup::onClose(__int64 a1)
{
__int64 v2; // x0
_QWORD *v3; // x0
unsigned int *v4; // x9
__int64 v5; // x8
float **v6; // x21
unsigned __int64 v7; // x22
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
{
v3 = sub_1002E73C8(v2);
if ( !v3 )
return SetupTriggerPopup::onClose(a1);
}
else
{
v3 = *(_QWORD **)(a1 + 688);
if ( !v3 )
return SetupTriggerPopup::onClose(a1);
}
v4 = (unsigned int *)v3[7];
v5 = *v4;
if ( (_DWORD)v5 )
{
v6 = *((float ***)v4 + 2);
v7 = (unsigned __int64)&v6[v5 - 1];
do
{
if ( !*v6 )
break;
sub_100302094(*v6++);
}
while ( (unsigned __int64)v6 <= v7 );
}
return SetupTriggerPopup::onClose(a1);
}