//
// sub_10049C320 from 0x10049c320 to 0x10049c370 (80 bytes)
//
// 1 xrefs:
// > SetItemIDLayer::onClose @ 0x10049c384
//
// 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 11:05:59 +0000
//
__int64 __fastcall sub_10049C320(__int64 a1)
{
__int64 v1; // x19
__int64 result; // x0
unsigned int v3; // w20
__int64 v4; // x0
v1 = sub_1001AD5EC(a1);
result = sub_1002E757C(v1);
if ( (_DWORD)result )
{
v3 = 0;
do
{
v4 = sub_1002E75A0(v1, v3);
sub_10042F374(v4);
++v3;
result = sub_1002E757C(v1);
}
while ( v3 < (unsigned int)result );
}
return result;
}