//
// sub_1005BD780 from 0x1005bd780 to 0x1005bd7e0 (96 bytes)
//
// 1 xrefs:
// > sub_1005C3DA8 @ 0x1005c4274
//
// 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_1005BD780(__int64 a1)
{
__int64 v2; // x0
int *v3; // x9
int v4; // w8
int v5; // t1
unsigned int v6; // w9
v2 = sub_1005B79D8(a1);
if ( (unsigned int)sub_1005B79E0(v2) != 407 )
return 0;
v3 = (int *)(a1 + 128);
v4 = -1;
do
{
v5 = *v3++;
++v4;
}
while ( v5 );
if ( v4 == 2 )
v6 = 682;
else
v6 = 0;
if ( v4 == 4 )
return 683;
else
return v6;
}