//
// sub_1000449B0 from 0x1000449b0 to 0x100044a90 (224 bytes)
//
// 1 xrefs:
// > SetupObjectOptionsPopup::init @ 0x100043990
//
// 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_1000449B0(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 v4; // x21
__int64 result; // x0
__int64 v6; // x22
__int64 v7; // x23
*(_BYTE *)(a1 + 685) ^= 1u;
v2 = *(_QWORD *)(a1 + 664);
if ( v2 )
{
v2 = sub_1002E73C8();
v3 = v2;
}
else
{
v3 = *(_QWORD *)(a1 + 672);
}
v4 = *(_QWORD *)(GameManager::sharedState(v2) + 552);
result = sub_1002E757C(v3);
if ( (_DWORD)result )
{
v6 = 0;
do
{
v7 = sub_1002E75A0(v3, v6);
if ( v4 )
GJBaseGameLayer::removeObjectFromSection(v4, v7);
*(_BYTE *)(v7 + 1214) = *(_BYTE *)(a1 + 685);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 1808LL))(v7, *(unsigned int *)(v7 + 924));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1616LL))(v7);
if ( v4 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 1344LL))(v4, v7);
v6 = (unsigned int)(v6 + 1);
result = sub_1002E757C(v3);
}
while ( (unsigned int)v6 < (unsigned int)result );
}
return result;
}