//
// SetupObjectOptionsPopup::onReverse from 0x100305cb0 to 0x100305d50 (160 bytes)
//
// 1 xrefs:
// > SetupObjectOptionsPopup::init @ 0x100304ca9
//
// 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:28:34 +0000
//
char __fastcall SetupObjectOptionsPopup::onReverse(__int64 a1)
{
unsigned int v1; // eax
__int64 v2; // rcx
unsigned int i; // r14d
__int64 v4; // rax
*(_BYTE *)(a1 + 703) = 1;
LOBYTE(v1) = *(_BYTE *)(a1 + 700) ^ 1;
*(_BYTE *)(a1 + 700) = v1;
v2 = *(_QWORD *)(a1 + 664);
if ( v2 )
{
if ( *(_DWORD *)(v2 + 1248) == 1 )
*(_BYTE *)(v2 + 1780) = v1;
}
else
{
v1 = sub_1007FEF90(*(_QWORD *)(a1 + 672));
if ( v1 )
{
for ( i = 0; i < v1; ++i )
{
v4 = sub_1007FEFE0(*(_QWORD *)(a1 + 672), i);
if ( *(_DWORD *)(v4 + 1248) == 1 )
*(_BYTE *)(v4 + 1780) = *(_BYTE *)(a1 + 700);
v1 = sub_1007FEF90(*(_QWORD *)(a1 + 672));
}
}
}
return v1;
}