//
// sub_100044CFC from 0x100044cfc to 0x100044d88 (140 bytes)
//
// 1 xrefs:
// > SetupObjectOptionsPopup::init @ 0x100043d8c
//
// 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:38 +0000
//
__int64 __fastcall sub_100044CFC(__int64 result)
{
bool v1; // w8
__int64 v2; // x9
__int64 v3; // x19
__int64 v4; // x20
__int64 v5; // x0
v1 = (*(_BYTE *)(result + 706) & 1) == 0;
*(_BYTE *)(result + 706) = v1;
v2 = *(_QWORD *)(result + 664);
if ( v2 )
{
if ( *(_DWORD *)(v2 + 1248) == 1 )
*(_BYTE *)(v2 + 1474) = v1;
}
else
{
v3 = result;
result = sub_1002E757C(*(_QWORD *)(result + 672));
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = sub_1002E75A0(*(_QWORD *)(v3 + 672), v4);
if ( *(_DWORD *)(v5 + 1248) == 1 )
*(_BYTE *)(v5 + 1474) = *(_BYTE *)(v3 + 706);
v4 = (unsigned int)(v4 + 1);
result = sub_1002E757C(*(_QWORD *)(v3 + 672));
}
while ( (unsigned int)v4 < (unsigned int)result );
}
}
return result;
}