//
// sub_100382D54 from 0x100382d54 to 0x100382db8 (100 bytes)
//
// 1 xrefs:
// > SetupAnimSettingsPopup::onClose @ 0x100382dcc
//
// 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:03:31 +0000
//
__int64 __fastcall sub_100382D54(__int64 a1)
{
__int64 v2; // x0
__int64 result; // x0
unsigned int v4; // w20
__int64 v5; // x0
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
return sub_1003E75A4(v2);
result = sub_1002E757C(*(_QWORD *)(a1 + 688));
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = sub_1002E75A0(*(_QWORD *)(a1 + 688), v4);
sub_1003E75A4(v5);
++v4;
result = sub_1002E757C(*(_QWORD *)(a1 + 688));
}
while ( v4 < (unsigned int)result );
}
return result;
}