//
// sub_1004D4110 from 0x1004d4110 to 0x1004d41b4 (164 bytes)
//
// 1 xrefs:
// > sub_1004B7A3C @ 0x1004b7c4c
//
// 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_1004D4110(__int64 a1)
{
int v2; // w8
__int64 v3; // x21
__int64 v4; // x22
__int64 v5; // x1
__int64 v6; // x0
__int64 v7; // x20
if ( a1 )
sub_100442B5C(a1, 0x11u);
v2 = *(_DWORD *)(a1 + 1684);
if ( v2 < 1 )
{
v7 = 0;
LABEL_13:
sub_100442B7C(a1, 0x11u);
}
else
{
v3 = 0;
v4 = 48;
do
{
v5 = *(_QWORD *)(*(_QWORD *)(a1 + 1696) + v4);
if ( v5 )
{
v6 = sub_1004B65E4(*(_QWORD *)(a1 + 1648), v5);
if ( (_DWORD)v6 )
{
v7 = v6;
goto LABEL_13;
}
v2 = *(_DWORD *)(a1 + 1684);
}
++v3;
v4 += 56;
}
while ( v3 < v2 );
v7 = 0;
if ( a1 )
goto LABEL_13;
}
return v7;
}