//
// sub_10044C6C0 from 0x10044c6c0 to 0x10044c738 (120 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_10044C6C0(__int64 a1)
{
__int64 v2; // x19
int v3; // w22
__int64 v4; // x0
__int64 v5; // x21
v2 = *(_QWORD *)(a1 + 32);
sub_1004B5C70(v2);
if ( *(int *)(a1 + 56) < 1 )
{
LABEL_5:
v5 = 0;
*(_DWORD *)(a1 + 56) = 0;
}
else
{
v3 = 0;
while ( 1 )
{
v4 = sub_1004B5DD4(*(_QWORD *)(a1 + 40));
if ( (_DWORD)v4 )
break;
if ( ++v3 >= *(_DWORD *)(a1 + 56) )
goto LABEL_5;
}
v5 = v4;
}
sub_1004B5CA0(v2);
return v5;
}