//
// sub_100044C60 from 0x100044c60 to 0x100044cfc (156 bytes)
//
// 1 xrefs:
// > SetupObjectOptionsPopup::init @ 0x100043cd8
//
// 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_100044C60(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x19
char v4; // w8
__int64 v5; // x1
__int64 v6; // x21
__int64 v7; // x0
result = GameManager::sharedState(a1);
v3 = *(_QWORD *)(result + 552);
if ( v3 )
{
v4 = *(_BYTE *)(a1 + 701) ^ 1;
*(_BYTE *)(a1 + 701) = v4;
v5 = *(_QWORD *)(a1 + 664);
if ( v5 )
{
return GJBaseGameLayer::updateExtendedCollision(v3, v5, v4 & 1);
}
else
{
result = sub_1002E757C(*(_QWORD *)(a1 + 672));
if ( (_DWORD)result )
{
v6 = 0;
do
{
v7 = sub_1002E75A0(*(_QWORD *)(a1 + 672), v6);
GJBaseGameLayer::updateExtendedCollision(v3, v7, *(unsigned __int8 *)(a1 + 701));
v6 = (unsigned int)(v6 + 1);
result = sub_1002E757C(*(_QWORD *)(a1 + 672));
}
while ( (unsigned int)v6 < (unsigned int)result );
}
}
}
return result;
}