//
// SetupRotatePopup::onClose from 0x10066e890 to 0x10066e909 (121 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b83ba0
//
// This function is hookable on this platform (idp: pc, 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 12:35:02 +0000
//
__int64 __fastcall SetupRotatePopup::onClose(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // rdi
__int64 v5; // rax
unsigned int *v6; // rax
_QWORD *v7; // r15
unsigned __int64 v8; // r12
v4 = *(_QWORD *)(a1 + 680);
if ( v4 )
{
v5 = sub_1007FE9A0(v4);
if ( !v5 )
return SetupTriggerPopup::onClose(a1, a2, a3);
}
else
{
v5 = *(_QWORD *)(a1 + 688);
if ( !v5 )
return SetupTriggerPopup::onClose(a1, a2, a3);
}
v6 = *(unsigned int **)(v5 + 56);
if ( *v6 )
{
v7 = *((_QWORD **)v6 + 2);
v8 = (unsigned __int64)&v7[*v6 - 1];
do
{
if ( !*v7 )
break;
EnhancedGameObject::refreshRotateAction();
++v7;
}
while ( (unsigned __int64)v7 <= v8 );
}
return SetupTriggerPopup::onClose(a1, a2, a3);
}